Radxa Rock 5 Model B

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Radxa Rock 5 Model B

Postby sehraf » Fri Nov 25, 2022 10:48 am

$this->bbcode_second_pass_quote('AaronVB', 'I')'m no expert but I think it won't update the kernel because it's not a package in any repo


exactly, pacman is not aware of the files.
Also, there is no mainline linux support at the moment, so updating the kernel will probably softbrick the device.
sehraf
 
Posts: 69
Joined: Mon Feb 03, 2014 10:06 pm

Re: Radxa Rock 5 Model B

Postby khamon » Fri Nov 25, 2022 12:36 pm

First try FAIL :)
Well it's hard to do it I need to get some USB-UART since I am completely blind here ... :) I will try to find one :D but I guess I would need to do some tar with the compiled kernel images and modules
khamon
 
Posts: 6
Joined: Thu Nov 17, 2022 1:23 am

Re: Radxa Rock 5 Model B

Postby khamon » Fri Nov 25, 2022 6:08 pm

Well I could boot this what I did:

0. Everything is done from the Rock5b itself using EMMC with the image from here the Image I am using as a base is: https://github.com/radxa/debos-radxa/re ... gpt.img.xz and the destination being a SD


1. Re-did partitions and creating Filesystems in the SD (/dev/mmcblk0) using the same geometry as the debian I'm using in emmc:


$this->bbcode_second_pass_code('', 'Device Start End Sectors Size Type
/dev/mmcblk0p1 32768 1081343 1048576 512M EFI System
/dev/mmcblk0p2 1081344 61069311 59987968 28.6G Linux filesystem')


2. Execute blkid and I get for example:

$this->bbcode_second_pass_code('', '/dev/mmcblk1p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="C3D8-FB42" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="boot" PARTUUID="2913d6d4-d377-49c4-8d7f-734c6c49d6cf"
/dev/mmcblk1p2: LABEL="rootfs" UUID="29a94882-5add-4f09-8cc5-3f43918624fa" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="9e1a9b50-bd9a-415c-b756-cf17ccbc97fd"
/dev/mmcblk0p1: UUID="CD8D-E892" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f103ade0-f696-b849-bf52-83f75d67ef14"
/dev/mmcblk0p2: LABEL="root" UUID="16e6c2ad-1b64-4e2e-aa8c-c80b3499d1ba" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="9b747d87-565e-a741-8232-a988d4018fd2"
')

3. Mounting /dev/mmcblk0p2 and untaring there http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz as:

$this->bbcode_second_pass_code('', 'wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
mkdir /root/arch
mount /dev/mmcblk0p2 /root/arch
tar -xpvf ArchLinuxARM-aarch64-latest.tar.gz -C /root/arch')


4. Mounting /dev/mmcblk0p1 on /root/arch/boot but before I clean the directory /root/arch/boot

$this->bbcode_second_pass_code('', 'rm -rf /root/arch/boot/*
mount /dev/mmcblk0p1 /root/arch/boot
cp -rpv /boot/* /root/arch/boot/')


5. Generate the /etc/fstab for the new arch with the correct UUID as:

/root/arch/etc/fstab
$this->bbcode_second_pass_code('', '
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
UUID=16e6c2ad-1b64-4e2e-aa8c-c80b3499d1ba / ext4 defaults 0 1
UUID=CD8D-E892 /boot vfat defaults,x-systemd.automount 0
')

6. Add the correct UUID into the /root/arch/boot/extlinux/extlinux.conf for the append line


$this->bbcode_second_pass_code('', 'append root=UUID=16e6c2ad-1b64-4e2e-aa8c-c80b3499d1ba earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=0 panic=10 rootwait rw init=/sbin/init rootfstype=ext4 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 irqchip.gicv3_pseudo_nmi=0 switolb=1 coherent_pool=2M')


7. Copy Firmware, modules and headers to the new arch image:

$this->bbcode_second_pass_code('', '
cp -rvp /lib/modules/5.10.66-27-rockchip-gea60d388902d /root/arch/lib/modules/
cp -rvp /lib/firmware/* /root/arch/lib/firmware/
cp -rvp /usr/src/linux-headers-5.10.66-27-rockchip-gea60d388902d /root/arch/usr/src/

')


8. Doing a `chroot` inside /dev/mmcblk0p2 and execute a `depmod` there... and exit from chroot

$this->bbcode_second_pass_code('', 'mount --bind /dev /root/arch/dev && mount --bind /sys /root/arch/sys && mount --bind /proc /root/arch/proc
chroot /root/arch
depmod
exit')


9. Build and do a dd with as written here u-boot https://wiki.radxa.com/Rock5/guide/buil ... oot_images

$this->bbcode_second_pass_code('', 'dd if=./idbloader.img of=/dev/mmcblk0 bs=512 seek=64
dd if=./u-boot.itb of=/dev/mmcblk0 bs=512 seek=16384')


10.Umount everything

$this->bbcode_second_pass_code('', '
umount /root/arch/dev /root/arch/proc /root/arch/sys /root/arch')

edit: some corrections :)
khamon
 
Posts: 6
Joined: Thu Nov 17, 2022 1:23 am

Re: Radxa Rock 5 Model B

Postby twarm » Wed Dec 14, 2022 1:33 pm

I used the generic tball and bsp kernel 5.10.110 without any problems other than editing pacman.conf with Ignorepkg = linux-aarch64. Ran pacman -Syu rebooted. Works so now to get mesa-panfork-git work with X going.
twarm
 
Posts: 4
Joined: Mon Feb 17, 2020 11:38 pm

Re: Radxa Rock 5 Model B

Postby sehraf » Tue Dec 20, 2022 9:34 pm

That packet didn't exist last month :o
OpenGL seems to work, haven't played anything yet, though.
No idea how far vulkan support is at the moment, though (with "PAN_I_WANT_A_BROKEN_VULKAN_DRIVER=1") vulkan caps viewer doesn't detect anything)
sehraf
 
Posts: 69
Joined: Mon Feb 03, 2014 10:06 pm

Re: Radxa Rock 5 Model B

Postby AaronVB » Tue Dec 20, 2022 10:14 pm

While we're on the topic of HW accel: for me, the debian image bootloops and the ubuntu image doesnt have any HW accelerated video encoding. any idea how/if its fixable? AFAIK the CPU should have encoders for H264 and H265.
AaronVB
 
Posts: 5
Joined: Fri Nov 04, 2022 7:23 pm

Re: Radxa Rock 5 Model B

Postby sehraf » Tue Dec 20, 2022 10:44 pm

Wouldn't be the first time that vendor images lack significant features, would it :mrgreen:
For it to work you need a driver and a compatible player. I would assume that there are packages somewhere (i'm speaking of debian/ubuntu), maybe ask on discord how to fix it?

Regarding hardware support: not sure about encoders. Though, since there is a HDMI-in port I'd guess that there are some modern encoders, too (beside the decoders)
sehraf
 
Posts: 69
Joined: Mon Feb 03, 2014 10:06 pm

Re: Radxa Rock 5 Model B

Postby AaronVB » Tue Dec 20, 2022 11:08 pm

We know there are encoders... unless Radxa sawed the CPU in half and ripped parts out. The CPU datasheet (https://www.cnx-software.com/pdf/Rockch ... 210727.pdf) tells us they exist:
02539-JpUVUMbg.png
02539-JpUVUMbg.png (99.26 KiB) Viewed 5378 times
Also, which Discord are you talking about? I couldnt find any...
AaronVB
 
Posts: 5
Joined: Fri Nov 04, 2022 7:23 pm

Re: Radxa Rock 5 Model B

Postby sehraf » Wed Dec 21, 2022 8:31 am

The Radxa Discord
sehraf
 
Posts: 69
Joined: Mon Feb 03, 2014 10:06 pm

Re: Radxa Rock 5 Model B

Postby Schlunze » Sat Jan 07, 2023 6:52 pm

I used this guide from boogiepop to get archlinux with mesa-panfork-git up and running on the rock5.
With armbian i needed to compile a dtb overlay.
rk3588-add-hdptxphy_hdmi_clk.dts from amazingfate

If i try to compile with
dtc -O dtb -o ~/rk3588-add-hdptxphy_hdmi_clk.dtbo ~/rk3588-add-hdptxphy_hdmi_clk.dts

i get
Error: /home/alarm/rk3588-add-hdptxphy_hdmi_clk.dts:1.1-2 syntax error FATAL ERROR: Unable to parse input tree

Do you have any advice to compile and use it in archlinux?

Thank you in advance
Schlunze
 
Posts: 10
Joined: Tue Aug 20, 2019 3:27 pm

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests