Rock 3 Slarm64 (aarch64 unofficial slackware)

first release (not tested on radxa 3) please check the booting.

slarm64-current-aarch64-server-rock_3-4.19.193-build-20210829.img.zst
slarm64-current-aarch64-server-rock_3-4.19.193-build-20210829.img.zst.sha256

1 Like

I will test this image and give you some feedback.

Good work. How can you make it so soon :slight_smile:

Hi @mara

I test the image. And get the error of failing to get rk3568-rock_3a.dtb.

** File not found /dtb/rk3568-rock_3a.dtb **

The following log may be helpful to you.

U-Boot 2017.09-rk3568 (Aug 29 2021 - 06:12:51 +0000)

Model: Radxa ROCK 3 Model A
PreSerial: 2, raw, 0xfe660000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: ed356000, fdt: eb9f8bf8 
Using default environment

dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
Failed to load DTB
Failed to get kernel dtb, ret=-19
io-domain: OK
Model: Radxa ROCK 3 Model A
rockchip_set_serialno: could not find efuse/otp device
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 528000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 24000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 100000 KHz
  armclk 816000 KHz
  aclk_bus 150000 KHz
  pclk_bus 50000 KHz
  aclk_top_high 300000 KHz
  aclk_top_low 200000 KHz
  hclk_top 150000 KHz
  pclk_top 50000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 50000 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0 
MMC error: The cmd index is 1, ret is -110
Card did not respond to voltage select!
mmc_init: -95, time 10
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
210 bytes read in 76 ms (2 KiB/s)
1:      slarm64
Retrieving file: /Image
23048200 bytes read in 270 ms (81.4 MiB/s)
append: root=/dev/mmcblk0p3 ro rootwait rootfstype=ext4 init=/sbin/init loglevel=4 earlycon=uart8250,mmio32,0xfe660000 console=tty1 console=ttyS2,1500000n8
Retrieving file: /dtb/rk3568-rock_3a.dtb
** File not found /dtb/rk3568-rock_3a.dtb **
Skipping slarm64 for failure retrieving fdt
SCRIPT FAILED: continuing...
starting USB...
Bus dwc3@fcc00000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3@fd000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus dwc3@fcc00000 for devices... 1 USB Device(s) found
scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
No ethernet found.
missing environment variable: pxeuuid
Retrieving file: /extlinux/pxelinux.cfg/00000000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/0000000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/000000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/00000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/0000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/000
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/00
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/0
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/default-arm-rockchip
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/default-arm
No ethernet found.
Retrieving file: /extlinux/pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
## Booting FIT Image FIT: No boot partition
FIT: No FIT image
Could not find misc partition
ANDROID: reboot reason: "(none)"
optee check api revision fail: -1.0
optee api revision is too low
### ERROR ### Please RESET the board ###

Thanks! there were developments on a different board

Thank you very much, the main thing is a correctly working u-boot.
slarm64-current-aarch64-server-rock_3-4.19.193-build-20210830.img.zst
slarm64-current-aarch64-server-rock_3-4.19.193-build-20210830.img.zst.sha256
slarm64-current-aarch64-xfce-rock_3-4.19.193-build-20210830.img.zst
slarm64-current-aarch64-xfce-rock_3-4.19.193-build-20210830.img.zst.sha256

kernel 4.19.207
slarm64-current-aarch64-server-rock_3-4.19.207-build-20210923.img.zst
slarm64-current-aarch64-server-rock_3-4.19.207-build-20210923.img.zst.sha256
slarm64-current-aarch64-xfce-rock_3-4.19.207-build-20210923.img.zst
slarm64-current-aarch64-xfce-rock_3-4.19.207-build-20210923.img.zst.sha256

kernel 5.16-rc2
slarm64-current-aarch64-server-rock_3-5.16.0-rc2-build-20211202.img.zst
slarm64-current-aarch64-server-rock_3-5.16.0-rc2-build-20211202.img.zst.sha256
slarm64-current-aarch64-xfce-rock_3-5.16.0-rc2-build-20211202.img.zst
slarm64-current-aarch64-xfce-rock_3-5.16.0-rc2-build-20211202.img.zst.sha256

Not booting on Rock3A 8GB model.Gets stuck at starting kernel…

UART log:

I can’t get the log.
i tested without eMMC.

I tested it with eMMC…

U-Boot 2017.09-rk3568 (Dec 01 2021 - 22:21:21 +0000)

Model: Radxa ROCK 3 Model A
PreSerial: 2, raw, 0xfe660000
DRAM: 7.7 GiB
Sysmem: init
Relocation Offset: ed357000, fdt: eb9f84f8
Using default environment

dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
Failed to load DTB
Failed to get kernel dtb, ret=-19
io-domain: OK
Model: Radxa ROCK 3 Model A
rockchip_set_serialno: could not find efuse/otp device
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
apll 816000 KHz
dpll 528000 KHz
gpll 1188000 KHz
cpll 1000000 KHz
npll 24000 KHz
vpll 24000 KHz
hpll 24000 KHz
ppll 100000 KHz
armclk 816000 KHz
aclk_bus 150000 KHz
pclk_bus 50000 KHz
aclk_top_high 300000 KHz
aclk_top_low 200000 KHz
hclk_top 150000 KHz
pclk_top 50000 KHz
aclk_perimid 300000 KHz
hclk_perimid 150000 KHz
pclk_pmu 50000 KHz
Net: No ethernet found.
Hit key to stop autoboot(‘CTRL+C’): 0
MMC error: The cmd index is 1, ret is -110
Card did not respond to voltage select!
mmc_init: -95, time 10
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
211 bytes read in 75 ms (2 KiB/s)
1: slarm64
Retrieving file: /Image
29649408 bytes read in 306 ms (92.4 MiB/s)
append: root=/dev/mmcblk1p2 ro rootwait rootfstype=ext4 init=/sbin/init logleve8
Retrieving file: /dtb/rk3568-rock-3-a.dtb
51386 bytes read in 393 ms (127 KiB/s)
Fdt Ramdisk skip relocation

Flattened Device Tree blob at 0x0a100000

Booting using the fdt blob at 0x0a100000
Using Device Tree in place at 000000000a100000, end 000000000a10f8b9
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: 2066.863 ms

Starting kernel …

[ 3.057890] rk_gmac-dwmac fe010000.ethernet: no regulator found
[ 3.228165] dwc3 usbdrd: missing memory resource
[ 3.229188] dwc3 usbhost: missing memory resource

so far everything is in order, let’s see more logs, change the /dev/mmcblk0p1 (sdcard) in file /extlinux/extlinux.conf loglevel=8

It does boot from uSD. Nice job.

LABEL slarm64
LINUX /Image
FDT /dtb/rk3568-rock-3-a.dtb
APPEND root=/dev/mmcblk1p2 ro rootwait rootfstype=ext4 init=/sbin/init loglevel=4 earlycon=uart8250,mmio32,0xfe660000 console=tty1 console=ttyS2,1500000n8

Do you have panfrost running?

No, the driver is included in the kernel:
CONFIG_DRM_PANFROST=y

I have that, but it is not probed. I wonder if it is ready to work on rk356x or needs something else to be configured.

I mean, no trace of gpu in kernel log.
Would you know what device should i see?

yes, something like:

# dmesg | grep panfrost
[    6.967937] panfrost ffa30000.gpu: clock rate = 400000000
[    6.968716] panfrost ffa30000.gpu: [drm:panfrost_devfreq_init [panfrost]] Failed to register cooling device
[    6.968776] panfrost ffa30000.gpu: mali-t760 id 0x750 major 0x0 minor 0x0 status 0x1
[    6.968783] panfrost ffa30000.gpu: features: 00000000,100277bf, issues: 00000000,24040400
[    6.968788] panfrost ffa30000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[    6.968794] panfrost ffa30000.gpu: shader_present=0xf l2_present=0x1
[    6.982893] [drm] Initialized panfrost 1.2.0 20180908 for ffa30000.gpu on minor 1

update kernel 5.16-rc4
slarm64-current-aarch64-server-rock_3-5.16.0-rc4-build-20211205.img.zst
slarm64-current-aarch64-server-rock_3-5.16.0-rc4-build-20211205.img.zst.sha256
slarm64-current-aarch64-xfce-rock_3-5.16.0-rc4-build-20211205.img.zst
slarm64-current-aarch64-xfce-rock_3-5.16.0-rc4-build-20211205.img.zst.sha256

1 Like

Thanks again for bringing it up :slight_smile:
First link is obviously wrong, but everything is ok here: http://dl.slarm64.org/slackware/images/rock_3/