slarm64This forum is for the discussion of slarm64.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
nothing in 'dmesg' other than
usbcore: registered new interface driver rt2500usb
tried bringing this up with dhcpcd on eth0, eth1, wlan0, wlan1 ...
and plugged into upper UART USBC and upper USBC
dhcpcd_prestartinterface: Connection timed out
eth0: waiting for carrier
many lines from dmesg like[ 665.124866] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 665.126800] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[ 666.127059] rk_gmac-dwmac fe010000.ethernet: Failed to reset the dma
Code:
root@quartz64:~# transfer-to-disk
│ current runlevel 3 │
│ in order to correctly transfer the system, │
│ you must go to runlevel 2 or lower │
│ bash$ init 2
root@quartz64:~# init 2
root@quartz64:~# transfer-to-disk
│
│ select one of the items │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 1 system moving on the emmc, hdd, ssd or nand │ │
│ │ │ │
│ │ │ │
│ └──────────────────────────────────────────────────────┘ │
│ │
├──────────────────────────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────────────────────────┘
boots (with some pauses for missing files) and I can run xfce. Not sure how to get keybd/mouse to talk to xsession.
Tried mouse on UART USBC and builtin ... no power to mouse. Also, builtin keybd, no response
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[ 219.393] Current Operating System: Linux quartz64 6.4.0-rc7 #1 SMP PREEMPT S
un Jun 25 23:01:39 EEST 2023 aarch64
[ 219.393] Kernel command line: root=UUID=32539e08-a5c0-4084-9f32-0932043d95e3
ro rootwait rootfstype=ext4 init=/sbin/init console=ttyS2,1500000n8 console=tty
1 consoleblank=0 loglevel=4 usb-storage.quirks=
I updated the images, for pinetab2 to work correctly, it is necessary to replace rk3566-quartz64-a.dtb with rk3566-pinetab2.dtb on the mmcblk0p1 section in the uEnv.txt file.
setback. PT2 only boots with power to lower USB (seems like UART board does not passthru power)... even though battery indicator says 100% in DanctNix, PT2 shuts down when power cable is removed. Could be a bad battery or power control circuit? Not sure how to proceed. I did let it run to empty battery once.
No RX on UART board... should this work with DanctNix?
Maybe time to order another UART board.
Updates 6/30/23:
1) reinstalled factory image and battery seems to take full charge and run for hours
2) From pine64 sales "Serial debugging board for PINETAB2 will be available for sale around mid-late July 2023."
3) question, can I just use a pair of aliexpress.com/item/1005005324791017.html and would I cross TX<->RX?
Last edited by BGB; 06-30-2023 at 08:47 AM.
Reason: supplemental
Remember, I can't get a shell. My UART seems to have gone silent, the wired and wireless usb dongles don't detect and the Host-Host usb isn't workng, so I have been popping the microSD into my x86 laptop to alter the rc files.
Could I add the rebuild instructions to rc.local in PT2 and then reboot ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.