PineTab2 install
by BGB from LinuxQuestions.org on (#6CG6Q)
Progress 6/26/23
Make sure you have the USB to UART board, a USB A to C cable, your micro SD, and micro-hdmi to whatever your external monitor wants.
get img from https://dl.slarm64.org/slackware/images/quartz64/
e.g.,
slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst
On my Slackware15 laptop (for ref: 86_64 AMD Ryzen 7 5700U ) microSD (128G) in adaptor which detects as /dev/sda
dd if=slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst of=/dev/sda
( careful with the device name... don't bork your working computer )
insert microSD in PT2
Set the switch on UART board to 'SD boot'
and then insert in bottom slot with pinecone and usbc sockets facing you
connect usb cable to bottom USiC on UART board (in my situation laptop to uart)
Start 'screen' or minicom with /dev/ttyUSB0 1500000
e.g., screen /dev/ttyUSB0 1500000
boot PT2 (only a slight short puch of the power button is needed, not 2 sec)
wait and watch for boot info
Code:ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=8192MB
tdqss: cs0 dqs0: 24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -192ps,
tdqss: cs1 dqs0: 24ps, dqs1: -120ps, dqs2: -48ps, dqs3: -168ps,
change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x63
change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
&< snipped
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE: BL31: Built : 10:55:41, Oct 18 2021
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: pmu v1 is valid
INFO: dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
&< snip
no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
No resource partition
Failed to load DTB, ret=-19
Failed to get kernel dtb, ret=-19
io-domain: OK
Model: Pine64 RK3566 Quartz64 Board
&< snip
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
2602 bytes read in 9 ms (282.2 KiB/s)
## Executing script at 00c00000
Boot script loaded from mmc 1
138 bytes read in 10 ms (12.7 KiB/s)
55624 bytes read in 54 ms (1005.9 KiB/s)
31742464 bytes read in 11799 ms (2.6 MiB/s)
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 6475251 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
Booting using the fdt blob at 0x0a100000
reserving fdt memory region: addr=a100000 size=73000
Using Device Tree in place at 000000000a100000, end 000000000a175fff
&< snip
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 6475251 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
Booting using the fdt blob at 0x0a100000
reserving fdt memory region: addr=a100000 size=73000
Using Device Tree in place at 000000000a100000, end 000000000a175fff
can't found rockchip,drm-logo, use rockchip,fb-logo
WARNING: could not set reg FDT_ERR_BADOFFSET.
failed to reserve fb-loader-logo memory
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 12969.112 ms
Starting kernel ...
[ 1.003402] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[ 1.005517] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[ 1.053412] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[ 1.151029] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[ 6.858838] mmc1: error -110 whilst initialising MMC card
[ 12.540707] mmc1: error -110 whilst initialising MMC card
[ 13.447869] of_dma_request_slave_channel: dma-names property of node '/serial@fe650000' missing or empty
=======================================================================
if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk
=======================================================================
slarm64 GNU/Linux (ttyS2)
Kernel 6.2.0 (aarch64)
quartz64 login:Note that on UART board, comm tx rx blinks tiny blue and red LED (really fast)
Make sure you have the USB to UART board, a USB A to C cable, your micro SD, and micro-hdmi to whatever your external monitor wants.
get img from https://dl.slarm64.org/slackware/images/quartz64/
e.g.,
slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst
On my Slackware15 laptop (for ref: 86_64 AMD Ryzen 7 5700U ) microSD (128G) in adaptor which detects as /dev/sda
dd if=slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst of=/dev/sda
( careful with the device name... don't bork your working computer )
insert microSD in PT2
Set the switch on UART board to 'SD boot'
and then insert in bottom slot with pinecone and usbc sockets facing you
connect usb cable to bottom USiC on UART board (in my situation laptop to uart)
Start 'screen' or minicom with /dev/ttyUSB0 1500000
e.g., screen /dev/ttyUSB0 1500000
boot PT2 (only a slight short puch of the power button is needed, not 2 sec)
wait and watch for boot info
Code:ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=8192MB
tdqss: cs0 dqs0: 24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -192ps,
tdqss: cs1 dqs0: 24ps, dqs1: -120ps, dqs2: -48ps, dqs3: -168ps,
change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x63
change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
&< snipped
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE: BL31: Built : 10:55:41, Oct 18 2021
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: pmu v1 is valid
INFO: dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
&< snip
no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
No resource partition
Failed to load DTB, ret=-19
Failed to get kernel dtb, ret=-19
io-domain: OK
Model: Pine64 RK3566 Quartz64 Board
&< snip
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
2602 bytes read in 9 ms (282.2 KiB/s)
## Executing script at 00c00000
Boot script loaded from mmc 1
138 bytes read in 10 ms (12.7 KiB/s)
55624 bytes read in 54 ms (1005.9 KiB/s)
31742464 bytes read in 11799 ms (2.6 MiB/s)
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 6475251 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
Booting using the fdt blob at 0x0a100000
reserving fdt memory region: addr=a100000 size=73000
Using Device Tree in place at 000000000a100000, end 000000000a175fff
&< snip
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 6475251 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
Booting using the fdt blob at 0x0a100000
reserving fdt memory region: addr=a100000 size=73000
Using Device Tree in place at 000000000a100000, end 000000000a175fff
can't found rockchip,drm-logo, use rockchip,fb-logo
WARNING: could not set reg FDT_ERR_BADOFFSET.
failed to reserve fb-loader-logo memory
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 12969.112 ms
Starting kernel ...
[ 1.003402] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[ 1.005517] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[ 1.053412] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[ 1.151029] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[ 6.858838] mmc1: error -110 whilst initialising MMC card
[ 12.540707] mmc1: error -110 whilst initialising MMC card
[ 13.447869] of_dma_request_slave_channel: dma-names property of node '/serial@fe650000' missing or empty
=======================================================================
if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk
=======================================================================
slarm64 GNU/Linux (ttyS2)
Kernel 6.2.0 (aarch64)
quartz64 login:Note that on UART board, comm tx rx blinks tiny blue and red LED (really fast)