[All upstream, WORKING!] Support for RockPi 4

This is for ARMv8 based devices

[All upstream, WORKING!] Support for RockPi 4

Postby adam900710 » Sun Oct 13, 2019 1:47 am

Hi,

After my previous experience with RockPro64, now I managed to run ArchlinuxARM on RockPi 4 (4G RAM, B model).

What's not working:
- M.2 Slot
Looks like upstream dtb has disabled M.2/PCIE support. Only power supply, no signal nor RockChip PCIE controller initiliazation.
- BT/Wifi of B model
Not a problem to me though, I prefer ethernet anyway.

What's working
- HDMI output with panfrost
So hardware acceleration is working, GNOME tested
- USB3.0/USB2.0 host controller
- Memory initialization
This used to be the main problem for upstream Uboot, however in latest U-boot, v2019.10, it's solved.
So we can use upstream Uboot with idbloader to initialize the LPDDR4 ram, no more SError for memory problems.

What's strange
- Super long boot time
At least 150s. Several long wait in kernel space. But if you're patient enough, it will boot.

How to install:
- Find a way to compile the following uboot-rockpi64 package
I *manually* compiled the package using cross-compile.
Since my PKGBUILD describes all the needed steps:
https://github.com/archlinuxarm/PKGBUIL ... 06ef0b585e

- Follow the .install file to dd needed files to sdcard

- Partion the sdcard
Please note that, we need the extra space to contain the bootloader, trust, idbloader, so the first partition should start at 32M.

- Mkfs and populate the parition
Extract the aarch64 rootfs into that partition.
The latest rootfs can be found here:
http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz

- Generate uboot boot script
Copy the boot.txt and mkscr from my uboot-rockpi4 package to sdcard/boot.
Then run ./mkscr, it will use the *host* mkimage to generate the uboot script.

- umount the sdcard, plug it into the board, power on
You may need to be patient for 200s, as the kernel will take a long time to boot due to strange selftest.

Also, since latest mesa has also included panfrost for midguard GPUs, one can run GNOME with upstream mesa.
$this->bbcode_second_pass_code('', '# pacman -S mesa xorg-server gnome')

Enjoy the upstream experience of RockPi4.
adam900710
 
Posts: 44
Joined: Thu Sep 13, 2012 1:27 pm

Re: [All upstream, WORKING!] Support for RockPi 4

Postby sehraf » Wed Oct 16, 2019 9:53 pm

Hey, nice write up!

I can confirm the ridiculous long boot time using an uboot from a vendor image (from 2017 or so).
Also thumbs up for GPU hardware acceleration 8-)
sehraf
 
Posts: 79
Joined: Mon Feb 03, 2014 10:06 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 13 guests