by max11 » Thu Sep 12, 2019 9:51 pm
Hey,
I'm currently looking into running arch on the RK3399 board. I've compiled and flashed a u-boot bootloader and can boot up into u-boot, but I just cannot start the ramdisk provided by archlinuxarm. I've also compiled my own kernel + ramdisk, but these won't work either.
Basically I'm starting U-Boot, using serial console to set the bootargs:
$this->bbcode_second_pass_code('', '
=> setenv bootargs "root=/dev/mmcbpl1p1 rootwait rootfstype=ext4 loglevel=9 console=tty-S0 console=tty0"
=> load mmc 1:1 $kernel_addr_r /boot/Image
26436096 bytes read in 1316 ms (19.2 MiB/s)
=> load mmc 1:1 $ramdisk_addr_r /boot/initramfs-linux.img
7263143 bytes read in 461 ms (15 MiB/s)
=> load mmc 1:1 $ramdisk_addr_r /boot/initramfs-linux-fallback.img
18734584 bytes read in 1020 ms (17.5 MiB/s)
=> load mmc 1:1 $fdt_addr_r /boot/dtbs/rockchip/rk3399-orangepi.dtb
73675 bytes read in 12 ms (5.9 MiB/s)
=> fdt addr $fdt_addr_r
=> fdt resize
=> booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f5f17000, end f5f28fcb ... OK
Loading Device Tree to 00000000f5f01000, end 00000000f5f16fff ... OK
Starting kernel ...
')
After the starting kernel message nothing happens. From what I understand, since the board is supported by the kernel, after loading the dtb the ramdisk should load, but it just hangs up. Loading the dtb + ramdisk from armbian (another distro) works fine. I'll check the dtb file, as I feel like there could be an problem.
I'll investigate further and update here. If someone has an idea please feel free to help.