Orange Pi RK3399 support

This is for ARMv8 based devices

Orange Pi RK3399 support

Postby yaron » Thu Aug 01, 2019 11:29 am

Hi!
Has anyone worked on this device?
I recently purchased one and I'd like to help with testing and adding support.

So far I've acquired a USB to TTL device, I'll try see what I can get from the debug port and continue from there.
yaron
 
Posts: 3
Joined: Wed Dec 27, 2017 8:34 am

Re: Orange Pi RK3399 support

Postby 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.
max11
 
Posts: 2
Joined: Thu Sep 12, 2019 9:47 pm

Re: Orange Pi RK3399 support

Postby yaron » Thu Sep 19, 2019 6:54 am

Sorry for taking you a little bit backwards, can you take a picture of how you connected the TTL adapter in terms of RX/TX?

Thanks!
yaron
 
Posts: 3
Joined: Wed Dec 27, 2017 8:34 am

Re: Orange Pi RK3399 support

Postby max11 » Sun Sep 22, 2019 12:01 pm

Hi,

it's
1 - RXD
2 - TXD
3 - GND
seen from left to right (where 1 is to the side of the DC Connector, GND is near the USB Ports).

Image

Remember to set your baud rate to 1500000.

So far I haven't had time to look into the problem any further. I'd like to try to boot a kernel compiled with debug parameters, hoping I can gather a bit more information.
max11
 
Posts: 2
Joined: Thu Sep 12, 2019 9:47 pm

Re: Orange Pi RK3399 support

Postby yaron » Mon Sep 23, 2019 6:36 am

Which kernel did you use?
Do you think the latest patches in 5.2 and 5.3 will make it better?

Is there a way to recompile the DTBs according to the desired kernel and initramfs?
yaron
 
Posts: 3
Joined: Wed Dec 27, 2017 8:34 am


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 40 guests