Packages for booting armtix (archlinux) on Oprange PI 5
|
il y a 2 ans | |
---|---|---|
8188eu-dkms-git | il y a 2 ans | |
linux-rockchip-rk3588-bin | il y a 2 ans | |
mesa-panfork-git | il y a 2 ans | |
orange-pi5-board-package | il y a 2 ans | |
uboot-files | il y a 2 ans | |
.gitignore | il y a 2 ans | |
README.md | il y a 2 ans |
AUR package with pre-build armbian kernel. Modified to allow DKMS to work.
Script and configs adapted from armbian. Includes script to generate uBoot image and boot.scr
Clone of AUR package with disabled gallium-nine and unrelated drivers.
DKMS module for random USB wifi dongle I had around. Modified so it builds.
partition table type: GPT
/dev/sdX1: ext4, type=linux extended boot, name=bootfs, start=32768, 512MB
/dev/sdX2: ext4, type=linux filesystem, rest of card
(notice 1st partition starts at offset 32768)
# wget https://notabug.org/not_tom/orange-pi5-packages/raw/master/uboot-files/{idbloader.img,u-boot.itb}
# dd if=idbloader.img of=/dev/sdX conv=notrunc seek=64
# dd if=u-boot.itb of=/dev/sdX conv=notrunc seek=16384
Make ABSOLUTELLY sure you are getting /dev/sdX correct here. You may blow up your system otherwise.
sync
, eject sdcard and put it back to make sure partitions are still intact after above step)mount /dev/sdX2 /tmp/sdcard
(make sure to replace X in sdX2)cd /tmp/sdcard && tar xvf <PATH_TO_TARBALL>
mount /dev/sdX1 /tmp/sdcard/boot/
(make sure to replace X in sdX1)cp -v /etc/resolv.conf /tmp/sdcard/etc
# mount -t devtmpfs none /tmp/sdcard/dev
# mount -t proc none /tmp/sdcard/proc
chroot /tmp/sdcard/ /usr/bin/bash
(this is what you need qemu-* packages for)pacman -R linux-aarch64 linux-aarch64-headers linux-aarch64-lts linux-aarch64-lts-headers
(please, make sure you are doing this in chroot)pacman -Syu && pacman -S git fakeroot uboot-tools make gcc flex bison
su -l armtix
git clone https://notabug.org/not_tom/orange-pi5-packages.git && cd orange-pi5-packages
cd linux-rockchip-rk3588-bin && makepkg
cd ../orange-pi5-board-package/ && makepkg
exit
) and install built packages:# pacman -U ~armtix/orange-pi5-packages/orange-pi5-board-package/*.tar.xz ~armtix/orange-pi5-packages/linux-rockchip-rk3588-bin/*.tar.xz
exit
) and check that /boot on sdcard is populated correctly# ls -la /tmp/sdcard/boot/
-rw-r--r-- 1 root root 212 Jan 22 18:52 armtixEnv.txt
-rw-r--r-- 1 root root 3249 Jan 22 18:49 boot.scr
lrwxrwxrwx 1 root root 4 Jan 22 18:49 dtb -> dtbs
drwxr-xr-x 3 root root 4096 Jan 22 18:51 dtbs
-rw------- 1 root root 9505049 Jan 22 18:52 initramfs-linux-rockchip-rk3588.img
lrwxrwxrwx 1 root root 29 Jan 22 18:49 Image -> vmlinuz-linux-rockchip-rk3588
lrwxrwxrwx 1 root root 29 Jan 22 18:49 uInitrd -> uInitrd-linux-rockchip-rk3588
-rw-r--r-- 1 root root 9505113 Jan 22 18:52 uInitrd-linux-rockchip-rk3588
-rw-r--r-- 1 root root 33020416 Jan 22 18:51 vmlinuz-linux-rockchip-rk3588
armtixEnv.txt
which couldn't be detected in chroot (make sure to replace X in sdX2)# sed -i 's|rootdev=.*|rootdev=UUID='$(lsblk /dev/sdX2 -o uuid | tail -1)'|' /tmp/sdcard/boot/armtixEnv.txt
# cat /tmp/sdcard/boot/armtixEnv.txt | grep rootdev && lsblk /dev/sdX2 -o uuid
(check that above command outputs two UUIDs, both same)
# for x in /tmp/sdcard/dev /tmp/sdcard/proc /tmp/sdcard/boot /tmp/sdcard ; do umount $x ; done
# sync