Rock 5 Slarm64 (aarch64 unofficial slackware)

Thanks @icecream95,
I’ll fix that too, but the kernel is what the radxa team uses for their images.

@icecream95 these images are rebuilt with new kernel configuration.

slarm64-current-aarch64-server-rock_5-5.10.66-build-20220724.img.zst
slarm64-current-aarch64-server-rock_5-5.10.66-build-20220724.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5-5.10.66-build-20220724.img.zst
slarm64-current-aarch64-xfce-rock_5-5.10.66-build-20220724.img.zst.sha256

mmcblk0                 179:0    0  14.4G  0 disk 
|-mmcblk0p1             179:1    0   512M  0 part 
`-mmcblk0p2             179:2    0  13.9G  0 part /

So it is mmcblk0 after all!

It’d probably be better to use the partition UUID for the root device in uEnv.txt and fstab like most other distributions do, in case kernel changes move it around again.

After making that change, the latest image does boot and appears to work well enough. The board tends to reset once during startup because of flaky USB-PD, but that’s no worse than many of the other images at the moment.

The -server images at least are missing the dependencies for quite a few packages—I noticed that man doesn’t work (libseccomp.so.2 is not there), nor does sshfs (libfuse3.so.3), and without libinih.so.0 anyone wanting to install to XFS will have difficulties.

@icecream95 Thanks, reboot at the first start expands the partition to the entire memory card.

@icecream95
new fixed images
slarm64-current-aarch64-server-rock_5-5.10.66-build-20220729.img.zst
slarm64-current-aarch64-server-rock_5-5.10.66-build-20220729.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5-5.10.66-build-20220729.img.zst
slarm64-current-aarch64-xfce-rock_5-5.10.66-build-20220729.img.zst.sha256

installation README.TXT
kernel 5.10.110

slarm64-current-aarch64-server-rock_5-5.10.110-build-20230204.img.zst
slarm64-current-aarch64-server-rock_5-5.10.110-build-20230204.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230204.img.zst
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230204.img.zst.sha256

1 Like

Ive added it on the discord too if you could join it would also be cool for sharing info

Currently I get “Forbidden You don’t have permission to access this resource.”
when trying to access the README.TXT.

Access is restored, there are problems with electricity.
mirror

1 Like

Can confirm I have access now. Thank you.

installation README.TXT
kernel 5.10.110

slarm64-current-aarch64-core-rock_5-5.10.110-build-20230502.img.zst
slarm64-current-aarch64-core-rock_5-5.10.110-build-20230502.img.zst.sha256
slarm64-current-aarch64-server-rock_5-5.10.110-build-20230502.img.zst
slarm64-current-aarch64-server-rock_5-5.10.110-build-20230502.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230502.img.zst
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230502.img.zst.sha256

DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
Manufacturer ID:0xff 
CH0 RX Vref:26.7%, TX Vref:22.8%,22.8%
CH1 RX Vref:29.7%, TX Vref:21.8%,21.8%
CH2 RX Vref:24.7%, TX Vref:24.8%,23.8%
CH3 RX Vref:28.7%, TX Vref:23.8%,23.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-rk3588 (May 02 2023 - 21:59:05)
Trying to boot from MMC1
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(bb1bbbc832...) + OK
## Checking uboot 0x00200000 ... sha256(375d6e529a...) + OK
## Checking fdt 0x00311908 ... sha256(83adf972b8...) + OK
## Checking atf-2 0x000f0000 ... sha256(30812190d0...) + OK
## Checking atf-3 0xff100000 ... sha256(cb7bdbec2b...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 584.47 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-499-ge63a16361:derrick.huang
NOTICE:  BL31: Built : 10:58:38, Jan 10 2023
INFO:    spec: 0x1
INFO:    ext 32k is not valid
INFO:    ddr: stride-en 4CH
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO:    system boots from cpu-hwid-0
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO:    dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO:    dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO:    dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO:    dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO:    BL31: Initialising Exception Handling Framework
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 = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-rk3588 (May 02 2023 - 22:00:59 +0300)

Model: Radxa ROCK 5B
PreSerial: 2, raw, 0xfeb50000
DRAM:  15.7 GiB
Sysmem: init
Relocation Offset: eda65000
Relocation fdt: eb9f95d8 - eb9fecd0
CR: M/C/I
Using default environment

mmc@fe2c0000: 0, mmc@fe2e0000: 1
Bootdev(atags): mmc 0
MMC0: Legacy, 52Mhz
PartType: EFI
DM: v1
boot mode: normal
Model: Radxa ROCK 5B
CLK: (sync kernel. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
  b0pll 24000 KHz
  b1pll 24000 KHz
  lpll 24000 KHz
  v0pll 24000 KHz
  aupll 24000 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 24000 KHz
  ppll 1100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0 
switch to partitions #0, OK
mmc0 is current device
mmc@fe2c0000: 0 (SD)
mmc@fe2e0000: 1
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2604 bytes read in 10 ms (253.9 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
173 bytes read in 13 ms (12.7 KiB/s)
250246 bytes read in 127 ms (1.9 MiB/s)
30685696 bytes read in 15022 ms (1.9 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
6397 bytes read in 86 ms (72.3 KiB/s)
Applying kernel provided DT overlay rockchip-rk3588-opp-oc-24ghz.dtbo
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
17672258 bytes read in 8165 ms (2.1 MiB/s)
Fdt Ramdisk skip relocation
## Loading init Ramdisk from Legacy Image at 0a200000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    17672194 Bytes = 16.9 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=a3000
  'reserved-memory' cma: addr=10000000 size=10000000
  'reserved-memory' ramoops@110000: addr=110000 size=f0000
   Using Device Tree in place at 000000000a100000, end 000000000a1a5fff
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x3fc000000 (size: 0x2fc000000)
Adding bank: 0x3fc500000 - 0x3fff00000 (size: 0x03a00000)
Total: 23936.88 ms

Starting kernel ...

[   25.766532] fiq_debugger fiq_debugger.0: IRQ fiq not found
[   25.766545] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[   25.766552] fiq_debugger_probe: could not install nmi irq handler
[   26.678841] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[   26.679327] rk-pcie fe170000.pcie: IRQ msi not found
[   26.679338] rk-pcie fe170000.pcie: Missing *config* reg space
[   26.679407] rk-pcie fe170000.pcie: Missing *config* reg space
[   26.679432] rk-pcie fe170000.pcie: invalid resource
[   26.690336] rk-pcie fe150000.pcie: IRQ msi not found
[   26.690369] rk-pcie fe150000.pcie: Missing *config* reg space
[   26.690497] rk-pcie fe150000.pcie: Missing *config* reg space
[   26.690534] rk-pcie fe150000.pcie: invalid resource
[   26.690613] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[   26.690622] rkvdec2_init:1008: No niu aclk reset resource define
[   26.690628] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[   26.690634] rkvdec2_init:1011: No niu hclk reset resource define
[   26.691281] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[   26.691288] rkvdec2_init:1008: No niu aclk reset resource define
[   26.691295] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[   26.691300] rkvdec2_init:1011: No niu hclk reset resource define
[   26.756070] rk806 spi2.0: no sleep-setting state
[   26.756087] rk806 spi2.0: no reset-setting pinctrl state
[   26.756094] rk806 spi2.0: no dvs-setting pinctrl state
[   27.088394] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[   27.103427] debugfs: File 'Capture' in directory 'dapm' already present!
[   27.104444] rk-multicodecs es8316-sound: ASoC: Property 'rockchip,audio-routing' does not exist or its length is not even
[   27.719817] mmc1: delay init for 600 ms to enable UHS mode
[   27.721209] debugfs: File 'Left Hp mixer' in directory 'dapm' already present!
[   27.721257] debugfs: File 'Right Hp mixer' in directory 'dapm' already present!
[   27.721295] debugfs: File 'HPCP L' in directory 'dapm' already present!
[   27.721318] debugfs: File 'HPCP R' in directory 'dapm' already present!
[   27.721348] debugfs: File 'HPVOL L' in directory 'dapm' already present!
[   27.721370] debugfs: File 'HPVOL R' in directory 'dapm' already present!
[   27.768422] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[   27.771562] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[   27.771600] rockchip-dmc dmc: failed to get vop pn to msch rl
[   27.772693] rockchip-dmc dmc: could not find power_model node
[   27.780291] rk-pcie fe190000.pcie: IRQ msi not found
[   27.780319] rk-pcie fe190000.pcie: Missing *config* reg space
[   27.780426] rk-pcie fe190000.pcie: Missing *config* reg space
[   27.780447] rk-pcie fe190000.pcie: invalid resource
[   27.784324] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[   27.784363] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[   27.784386] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[   27.788526] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[   27.810214] RKNPU fdab0000.npu: failed to find power_model node
[   27.810241] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[   27.810254] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
[   29.152386] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_cancel_cpu_limit_freq freq qos nod add
[   31.355973] BUG: spinlock bad magic on CPU#5, udevd/468
[   31.356019]  lock: 0xffffffc012a29080, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0


=======================================================================

if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk

=======================================================================

slarm64 GNU/Linux (ttyFIQ0)
Kernel 5.10.110 (aarch64)

rock-5 login:
2 Likes

installation README.TXT
kernel 5.10.110

slarm64-current-aarch64-core-rock_5-5.10.110-build-20230513.img.zst
slarm64-current-aarch64-core-rock_5-5.10.110-build-20230513.img.zst.sha256
slarm64-current-aarch64-server-rock_5-5.10.110-build-20230513.img.zst
slarm64-current-aarch64-server-rock_5-5.10.110-build-20230513.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230513.img.zst
slarm64-current-aarch64-xfce-rock_5-5.10.110-build-20230513.img.zst.sha256

[    26.581] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    26.581] (==) modeset(0): RGB weight 888
[    26.581] (==) modeset(0): Default visual is TrueColor
[    26.581] (II) Loading sub module "glamoregl"
[    26.581] (II) LoadModule: "glamoregl"
[    26.581] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    26.599] (II) Module glamoregl: vendor="X.Org Foundation"
[    26.599]    compiled for 1.21.1.8, module version = 1.0.1
[    26.599]    ABI class: X.Org ANSI C Emulation, version 0.4
[    27.878] (II) modeset(0): glamor X acceleration enabled on Mali-G610 (Panfrost)
[    27.879] (II) modeset(0): glamor initialized
[    27.879] (==) modeset(0): VariableRefresh: disabled
[    27.879] (==) modeset(0): AsyncFlipSecondaries: disabled
[    27.879] (II) modeset(0): Output HDMI-1 has no monitor section
[    28.025] (II) modeset(0): Output HDMI-2 has no monitor section
[    28.026] (II) modeset(0): Output DP-1 has no monitor section
[    28.027] (II) modeset(0): EDID for output HDMI-1
[    28.169] (II) modeset(0): EDID for output HDMI-2
[    28.169] (II) modeset(0): Manufacturer: SAM  Model: f57  Serial#: 810834008
[    28.169] (II) modeset(0): Year: 2019  Week: 26
[    28.169] (II) modeset(0): EDID Version: 1.3
[    28.169] (II) modeset(0): Digital Display Input
[    28.169] (II) modeset(0): Max Image Size [cm]: horiz.: 60  vert.: 34
[    28.170] (II) modeset(0): Gamma: 2.20
[    28.170] (II) modeset(0): DPMS capabilities: Off
[    28.170] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    28.170] (II) modeset(0): First detailed timing is preferred mode
[    28.170] (II) modeset(0): redX: 0.652 redY: 0.341   greenX: 0.320 greenY: 0.608
[    28.170] (II) modeset(0): blueX: 0.146 blueY: 0.065   whiteX: 0.313 whiteY: 0.329

video is played by ffplay and mpv --vo=gpu

installation README.TXT
kernel 6.3.3

slarm64-current-aarch64-core-rock_5-6.3.3-build-20230520.img.zst
slarm64-current-aarch64-core-rock_5-6.3.3-build-20230520.img.zst.sha256
slarm64-current-aarch64-server-rock_5-6.3.3-build-20230520.img.zst
slarm64-current-aarch64-server-rock_5-6.3.3-build-20230520.img.zst.sha256

1 Like

Well, after another power outage, the board stopped working, the power LED lights up on uart, there is also nothing but a little garbage, the power button stopped turning off the board when pressed for a long time.

when connected in a maskrom, the board is determined in the system

> lsusb  
Bus 005 Device 018: ID 2207:350b Fuzhou Rockchip Electronics Company

> rkdeveloptool ld
DevNo=1	Vid=0x2207,Pid=0x350b,LocationID=501	Maskrom

if you use the method Install the bootloader to the SPI NOR flash

> rkdeveloptool db rk3588_spl_loader_v1.08.111.bin
Downloading bootloader succeeded.

> rkdeveloptool wl 0 rock-5b-spi-image-g3caf61a44c2-debug.img 
Write LBA failed!

> rkdeveloptool db rk3588_spl_loader_v1.08.111.bin
Downloading bootloader succeeded.

> rkdeveloptool wl 0 zero.img
Write LBA failed!

installation README.TXT
kernel 6.3.7

slarm64-current-aarch64-core-rock_5-6.3.7-build-20230610.img.zst
slarm64-current-aarch64-core-rock_5-6.3.7-build-20230610.img.zst.sha256
slarm64-current-aarch64-server-rock_5-6.3.7-build-20230610.img.zst
slarm64-current-aarch64-server-rock_5-6.3.7-build-20230610.img.zst.sha256

1 Like

installation README.TXT
kernel 6.5.0-rc6

slarm64-current-aarch64-core-rock_5b-6.5.0-rc6-build-20230814.img.zst
slarm64-current-aarch64-core-rock_5b-6.5.0-rc6-build-20230814.img.zst.sha256
slarm64-current-aarch64-server-rock_5b-6.5.0-rc6-build-20230814.img.zst
slarm64-current-aarch64-server-rock_5b-6.5.0-rc6-build-20230814.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5b-6.5.0-rc6-build-20230814.img.zst
slarm64-current-aarch64-xfce-rock_5b-6.5.0-rc6-build-20230814.img.zst.sha256

Dear Mara,

thank you very much for your builds, but I could not boot.
Is there anything special that we must do?

Regards,

Hi @darkstar

you need to look at the output on the debug console, today I checked it on another board, it also does not load.

installation README.TXT
kernel 6.6.0-rc6

slarm64-current-aarch64-core-rock_5b-6.6.0-rc6-build-20231019.img.zst
slarm64-current-aarch64-core-rock_5b-6.6.0-rc6-build-20231019.img.zst.sha256
slarm64-current-aarch64-server-rock_5b-6.6.0-rc6-build-20231019.img.zst
slarm64-current-aarch64-server-rock_5b-6.6.0-rc6-build-20231019.img.zst.sha256
slarm64-current-aarch64-xfce-rock_5b-6.6.0-rc6-build-20231019.img.zst
slarm64-current-aarch64-xfce-rock_5b-6.6.0-rc6-build-20231019.img.zst.sha256

2 Likes

Thanks very much for this! The slarm64 project has been super helpful (thanks to your RISC-V support, I managed to produce an image that boots on the DevTerm)! So I was very excited to see a version available for the Rock5b.

It boots fine and I can ssh to it (if I tail the DHCP logs to find out what it gets assigned), but I seem to be having trouble with video using this image. No video, no /dev/fb*, and startx (predictably) can’t find a video device. Is the official kernel missing some drivers?

# dmesg | grep -iE 'video|frame.?buffer|vpu|fb|gpu'
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000003fbffffff]
[   14.395170] videodev: Linux video capture interface: v2.00
[   14.526113] hantro-vpu fdc70000.av1d: registered rockchip,rk3588-av1-vpu-dec as /dev/video0
[   33.761189] vdd_gpu_s0: disabling
root@rock-5b:~# dmesg | grep -C3 -iE 'video|frame.?buffer|vpu|fb|gpu'
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000003fbffffff]
[    0.000000]   node   0: [mem 0x00000003fc500000-0x00000003ffefffff]
[    0.000000]   node   0: [mem 0x00000004f0000000-0x00000004ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000004ffffffff]
--
[   13.566476] EXT4-fs (mmcblk1p2): mounted filesystem 32539e08-a5c0-4084-9f32-0932043d95e3 ro without journal. Quota mode: none.
[   14.206440] udevd[543]: starting eudev-3.2.14
[   14.358235] mc: Linux media interface: v0.10
[   14.395170] videodev: Linux video capture interface: v2.00
[   14.417442] r8169 0004:41:00.0: enabling device (0000 -> 0003)
[   14.441765] r8169 0004:41:00.0 eth0: RTL8125B, 00:e0:4c:68:00:fc, XID 641, IRQ 103
[   14.441775] r8169 0004:41:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
--
[   14.470723] rockchip-dw-pcie a40000000.pcie:      MEM 0x00f0200000..0x00f0ffffff -> 0x00f0200000
[   14.470729] rockchip-dw-pcie a40000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0040000000
[   14.481749] rockchip-dw-pcie a40000000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G
[   14.526113] hantro-vpu fdc70000.av1d: registered rockchip,rk3588-av1-vpu-dec as /dev/video0
[   14.557767] input: rk3588-es8316 Headphones as /devices/platform/analog-sound/sound/card0/input2
[   14.831049] device-mapper: uevent: version 1.0.3
[   14.831184] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
--
[   17.301120] RTL8226B_RTL8221B 2.5Gbps PHY r8169-4-4100:00: attached PHY driver (mii_bus:phy_addr=r8169-4-4100:00, irq=MAC)
[   17.473361] r8169 0004:41:00.0 eth0: Link is Down
[   20.488477] r8169 0004:41:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   33.761189] vdd_gpu_s0: disabling
[   34.739946] Adding 131068k swap on /swap.  Priority:-2 extents:3 across:54689792k SS
[   34.753954] dw-apb-uart feb50000.serial: forbid DMA for kernel console
[ 1320.123375] usb 5-1: new full-speed USB device number 2 using ohci-platform

Out of desperation, I even tried the XFCE image (which apparently has neither vi nor ed): no luck, same results. Any ideas?