[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slackwarearm:inst_sa64_cur_rk3399_pinebookpro [2021/10/26 08:48 (UTC)] mozesslackwarearm:inst_sa64_cur_rk3399_pinebookpro [2021/12/13 11:09 (UTC)] (current) – removed mozes
Line 1: Line 1:
-<note warning>October 2021 - wip - Slackware AArch64 is not yet released !</note> 
  
- 
- 
-====== Installing Slackware on the Pinebook Pro ====== 
- 
-^          ^       ^ 
-| Document name    | inst_sa64_cur_rk3399_pinebookpro | 
-| Document purpose | Document the installation of Slackware Linux onto the Hardware Model: [[https://www.pine64.org/pinebook-pro/|Pinebook Pro]] | 
-| Author           | Stuart Winter <mozes@slackware> | 
-| Date             | 25-Oct-2021 | 
-| Version          | 1.00 | 
- 
-==== Video Tutorial ==== 
- 
-This tutorial is also available in video form. 
- 
-==== Installation Lifecycle ==== 
- 
-The Installation consists of nine distinct stages: 
- 
-  - Acquiring all required hardware 
-  - Setting up local environment to support the installation over the network 
-  - Downloading the Slackware assets 
-  - Writing the Initialisation Bootware to the Micro SD card 
-  - Setup of the Pinebook Pro hardware 
-  - Initialising the Pinebook Pro with the Bootware 
-  - Writing the Slackware Installer to the Micro SD card 
-  - Booting the Slackware Installer 
-  - Installing Slackware 
-  - Completing the installation 
-  - Booting the Slackware OS 
- 
-===== Requirements ===== 
- 
-=== Hardware === 
- 
-^ Item ^ Specification ^ Notes ^ 
-| [[https://www.pine64.org/pinebook-pro/|Pinebook Pro]] | Single specification | The Pinebook Pro laptop | 
-| Micro SD Card | 2GB **minimum**, fast speed, good quality make | Used as Slackware' /boot partition | 
-| [[https://www.amazon.co.uk/UGREEN-Adapter-Windows-Surface-Chromebook/dp/B01EFPX9XA|USB Multi-Card Reader]] | Must accept Micro SD cards | Used to write the Bootware on your host Linux computer.  This isn't required if your host computer has a Micro SD card reader. | 
-| [[https://wiki.pine64.org/wiki/Pinebook_Pro_Hardware_Accessory_Compatibility#NVMe_SSD_drives|NVME Storage Module]] | Tested: Kingston A2000 SSD = 250G & 500GB | Contains the Slackware Operating System | 
-| [[https://pine64.com/product/pinebook-pro-m-2-ngff-nvme-ssd-interface-adapter/?v=0446c16e2e66|PINEBOOK Pro NVMe SSD Interface Adapter]] | The specific model for the Pinebook Pro | Required to house the NVME Storage Module | 
-| [[https://pine64.com/product/pinebook-pinephone-pinetab-serial-console/?v=0446c16e2e66|Serial console adapter]]| 3.5" audio jack wired version | Optional. This is useful for debugging during development, but its use precludes the ability to enable sound on the laptop. Most users will not use the Serial adapter. | 
-| [[https://pine64.com/product/pinebook-pro-usb-c-docking-deck/|PINEBOOK Pro USB-C Docking Deck]] | The specific model for the Pinebook Pro | Recommended but optional. The Pinebook Pro has no onboard Ethernet, so this is used during the installer (but the installation media can also be stored on a USB stick).  For the Slackware Installer, other USB Ethernet adapters can be used - although this is the only one that has been tested. | 
- 
-=== Computing / Network Environment === 
- 
- 
-^ Item ^ Specification ^ Notes ^ 
-| Host Computer: an Internet-connected computer running an existing Linux distribution | Preferably a full installation of Slackware x86/64, but any distribution that can provide the required Python environment and HTTP server module. The Host Computer needs approximately **5GB free storage** to download the required software assets.  **You must be able to obtain //root// access to this Host computer**.  | This will be used to download the Slackware distribution from the Internet, and serve the Pinebook Pro client to install Slackware over the LAN (Local Area Network).  | 
- 
- 
-===== Hardware Setup ===== 
- 
-In this section we'll prepare the physical aspects of the Pinebook Pro to receive Slackware Linux. 
-There are seven distinct parts to this phase: 
- 
-  - Unscrew the case 
-  - Disable eMMC (and remove storage module) 
-  - Enable Sound (disabling Serial console) 
-  - Securely attach NVME to NVME adapter 
-  - Connect NVME adapter to the main board 
-  - Securely attach NVME adapter within the Pinebook Pro's case 
-  - Screw case back together 
- 
-=== 1. Remove the base cover from the Pinebook Pro === 
- 
-Turn the Pinebook Pro over, and remove all screws. 
- 
-{{:slackwarearm:pinebookpro-base.jpg?400|}} 
- 
-{{:slackwarearm:pinebookpro-factory-look-emmc-enabled.jpg?400|}} 
- 
-===== Software and Network Environment Setup ===== 
- 
-In this section, we'll prepare the Linux Host Computer to receive and download the Slackware assets required for the installation. 
- 
-=== 1. Downloading the Slackware Linux AArch64 Distribution and Installation Assets  === 
- 
-<note important>The '$' prefixes in the commands indicates the shell prompt - it's not to be typed/copied</note> 
- 
-Open a shell on the Linux Host Computer. 
- 
-== Determine where you are within the Host Computer's Filesystem == 
- 
-<code> 
-$ cd 
-$ pwd 
-/home/mozes/slackware 
-</code> 
- 
-<note important>Note the directory location returned - you'll need this later</note> 
- 
-== Prepare a directory to hold and serve the Slackware Distribution == 
- 
-We'll download the Slackware Linux distribution into a directory named 'slackware'. 
- 
-<note warning> 
-The contents of this directory will be served via an HTTP server to the LAN (Local Area Network), so only place the Slackware assets here. 
-</note> 
- 
-<code> 
-$ mkdir slackware 
-$ cd slackware 
-</code> 
- 
-== Installing the Slackware ARM GPG key == 
- 
-The Slackware ARM GPG key will be used to verify the Bootware and Slackware Installation images. 
- 
-<code> 
-$ curl -sSL https://www.slackware.com/infra/keys/arm/GPG-KEY | gpg --import - 
-</code> 
- 
-== Set the version of Slackware AArch64 to download == 
- 
-At the time of writing, the only version available is 'current'. 
-<code> 
-$ SLKVER=current 
-</code> 
- 
-== Set the distribution server == 
- 
-If you are using a mirror server rather than the master Slackware ARM server, set it here. 
-The format is:  <hostname>::<rsync module name> 
- 
-<code> 
-$ SLKSRV=ftp.arm.slackware.com::slackwarearm 
-</code> 
- 
-== Download the Bootware == 
- 
-<note important>Note the period/full stop after the rsync commands - this instructs rsync to download to the current directory (it's not punctuation!)</note> 
- 
-The U-Boot Boot Loader that will be installed onto the SPI flash: 
-<code> 
-rsync -PavL $SLKSRV/platform/aarch64/bootware/recovery/rk3399/flash-spi-pinebookpro.img.xz . 
-</code> 
- 
-//The Bootware (recovery/initialisation) images are approximately 400KBytes in size.// 
- 
-The Slackware Linux installer for the RK3399 AArch64 platform: 
-<code> 
-rsync -PavL $SLKSRV/platform/aarch64/bootware/installer/slackwareaarch64-${SLKVER}/rk3399_generic.sdimg_latest.img.xz . 
-</code> 
- 
-//The Slackware Installer images are approximately 300MBytes in size.// 
- 
- 
-== Verify the assets == 
- 
-Verify the digital signature of the Slackware Installer: 
-<code> 
-$ gpg2 --verify rk3399_generic-sdimg_*.img.xz.asc 
-</code> 
- 
- 
-Verify the digital signature of the Boot Loader: 
-<code> 
-$ gpg2 --verify flash-spi-pinebookpro.img.xz.asc 
-</code> 
- 
-The output will be similar to this.  You are looking for 'Good signature from Slackware ARM...' 
- 
-<code> 
-gpg: assuming signed data in 'rk3399_generic-sdimg_5.14.14_1.img.xz' 
-gpg: Signature made Mon 25 Oct 2021 06:07:44 PM BST 
-gpg:                using RSA key F7ABB8691623FC33 
-gpg: Good signature from "Slackware ARM (Slackware ARM Linux Project) <mozes@slackware.com>" [unknown] 
-gpg: WARNING: This key is not certified with a trusted signature! 
-gpg:          There is no indication that the signature belongs to the owner. 
-Primary key fingerprint: 36D3 7609 2F12 9B6B 3D59  A517 F7AB B869 1623 FC33 
-</code> 
- 
-== Download the Slackware AArch64 tree == 
- 
-You will now download the Slackware distribution. This contains all of the software included within Slackware. 
- 
-<code> 
-rsync \ 
-   --exclude '*/source/*' \ 
-   --delete -Prlvv \ 
-   $SLKSRV/slackwareaarch64-${SLKVER} . 
-</code> 
- 
-//The Slackware distribution is approximately 4.5GBytes in size.// 
- 
-=== Write the Initialisation Bootware to the SD Card  === 
- 
-Slackware stores the U-Boot Boot Loader firmware within the SPI flash of the Hardware Models that use the RK3399 SoC (including the Pinebook Pro,  RockPro64 et al). 
- 
-In this step, we'll write the Boot Loader firmware to the same Micro SD card that will later be used to contain the Slackware Installer, and subsequently the Slackware OS' /boot partition. 
-If you have multiple Micro SD cards available, you may prefer to use separate SD cards; but this document assumes the availability of a single Micro SD card. 
- 
- 
-== Elevate yourself to root == 
- 
-On your Host computer, obtain root: 
- 
-<note tip>The # prefix indicates that you're using the **root** user</note> 
- 
-<code> 
-$ su -   ## Note the hyphen - it's required 
-</code> 
- 
-== Check what block devices are present == 
- 
-Prior to inserting the Micro SD Card into the USB adapter, we need to see what's already present within the OS so that we can easily locate our Micro SD card: 
- 
-<code> 
-# lsblk  
-NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
-sda      8:0    0 465.8G  0 disk 
-├─sda1   8:   0     8G  0 part [SWAP] 
-└─sda2   8:   0 457.7G  0 part / 
-</code> 
- 
-As you can see, this Host Computer there is a single storage device - //sda//. 
- 
- 
-Now insert the Micro SD card into your USB Card Reader and connect the adapter to a free USB port on the Host Computer. 
- 
-Run lsblk again: 
- 
-<code> 
-# lsblk 
-NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
-sda      8:0    0 465.8G  0 disk 
-├─sda1   8:   0     8G  0 part [SWAP] 
-└─sda2   8:   0 457.7G  0 part / 
-sdc      8:32      58G  0 disk 
-sdd      8:48       0B  0 disk 
-</code> 
- 
-As you can see, //sdc// is 58GBytes in size.  This is the Micro SD card (in this example, it's labeled as '64GB' on the exterior of Micro SD card). 
- 
-If your Micro SD card has existing partitions, you will see them surfaced in this list also. 
- 
-<note tip>You'll also observe the presence of //sdd// - often the USB adapter itself obtains a block device. You can ignore this as it's 0Bytes.</note> 
- 
-== Write the Bootware Initialisation Image to the Micro SD Card == 
- 
-Still as the **root** user, we'll switch to the directory to which the the Slackware assets have been downloaded (see earlier steps): 
- 
-<code> 
-# cd /home/mozes/slackware/ 
-</code> 
- 
-Write the Bootware Initialisation Image to the device identified as our Micro SD card. 
-You'll then exit the root shell, returning to your usual standard user environment: 
- 
-<note warning>All data on this Micro SD Card will be erased! Ensure you have inserted the correct card!</note> 
- 
-<code> 
-# xzcat flash-spi-pinebookpro.img.xz > /dev/sdc  ## Replace /dev/sdc with the correct block device (presented above by the lsblk tool) on your Host Computer 
-# sync 
-# exit 
-</code> 
- 
-The Bootware Initialisation image is now ready to boot on the Pinebook Pro. 
-You are ready to move into the Hardware Initialisation setup. 
- 
- 
-===== Installing the Boot Loader to SPI flash ===== 
- 
- 
-* Disconnect any peripherals (including the Pinebook Pro docking station) from the Pinebook Pro. 
- 
-*** COLD BOOT - hold down for about 8 seconds after installer 
- 
- 
-<note warning> Disconnect any USB devices that aren't required for the OS installation</note> 
- 
- 
-SPI flash issues 
-https://wiki.pine64.org/wiki/Pinebook_Pro_SPI 
-According to Rockchip documentation, these steps should work; unfortunately, many users have reported them to be unsuccessful. You may need to repeat these steps several times for them to work. 
- 
-    Press and hold recovery button. 
-    Short press reset. 
-    Release recovery button after about 3 seconds. 
-     
-     
-===== Installation Method: Installing Slackware ===== 
-     
-Write the Slackware Installer to the Micro SD card. 
-Start the HTTP server on the Linux Host Computer 
-Power on the Pinebook Pro 
-Ensure power is connected throughout the installation process. 
- 
-Connect the Pinebook Pro docking station (or USB Ethernet adapter if not using the docking station) 
- 
- 
-Start the HTTP server on the Linux Host Computer 
- 
-As your normal (not root) user on your Linux Host Computer, within the 'slackware' directory you created earlier: 
- 
-== Determine the Linux Host Computer's IP address == 
- 
-We will direct the Slackware Installer to download the packages from your Linux Host Computer, thus require its IP address. 
- 
-For most basic installations, the following command will provide the correct IP.  If your Linux Host Computer has a more complex setup, you'll need to determine the IP address yourself using //ifconfig// or one of the other tools. 
- 
-<code> 
-$ hostname -I 
-192.168.1.15 
-</code> 
- 
-In this example, the IP address of the Linux Host Computer is 192.168.1.15 
- 
- 
-== Start the HTTP server == 
- 
-On the Linux Host Computer, enter the Slackware distribution tree and start the HTTP web server. 
- 
-<code> 
-$ cd slackwareaarch64-*/ 
-$ python3 -m http.server 
-</code> 
- 
-<note important>The HTTP server will remain in the foreground - you may now leave it.  We will return to close it post installation.</note> 
- 
-=== Installing Slackware === 
- 
-The date on your system may be incorrect: 
- 
-<code> 
-ntpdate clock.akamai.com 
-hwclock -w 
-</code> 
- 
-Pick option //'5 - Install from FTP/HTTP server'// 
-<code> 
-URL: http://192.168.1.15:8000 
-Directory: / 
-</code> 
- 
-=== Using the Serial adapter === 
- 
- 
-     
-     
-====  =====References ==== 
-    https://wiki.pine64.org/wiki/Pinebook_Pro 
 slackwarearm:inst_sa64_cur_rk3399_pinebookpro ()