Marco Schirrmeister
-
Posts
42 -
Joined
Reputation Activity
-
Marco Schirrmeister got a reaction from Vijay Gill in OrangePi 5 Plus - rtc hym8563 - irq issue
@Efe Çetin, PR is created. https://github.com/armbian/build/pull/6276
Bear with me, it is my first PR. So let me know whatever is wrong or needs to be changed.
-
Marco Schirrmeister got a reaction from Vijay Gill in OrangePi 5 Plus - rtc hym8563 - irq issue
Thank you for the confirmation @Vijay Gill.
Here is the patch I use. I did also add the poweroff support. Splitting it into multiple files might be better, but it is good enough for my test builds.
root@dumpster /m/t/t/n/build (main)# cat userpatches/kernel/rockchip-rk3588-edge/1000-arm64-dts-fix-rtc-add-poweroff-support-Orange-Pi-5-Plus.patch From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: John Doe <john.doe@somewhere.on.planet> Date: Mon, 29 Jan 2024 12:51:13 +0100 Subject: Patching kernel rockchip-rk3588 files arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts Signed-off-by: John Doe <john.doe@somewhere.on.planet> --- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts index 88bfce6237db..70cc6bd5a0af 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts @@ -462,11 +462,11 @@ &pcie3x4 { }; &pinctrl { hym8563 { hym8563_int: hym8563-int { - rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; + rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; }; }; leds { blue_led_pin: blue-led { @@ -572,10 +572,12 @@ pmic@0 { pinctrl-names = "default"; pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, <&rk806_dvs2_null>, <&rk806_dvs3_null>; spi-max-frequency = <1000000>; + system-power-controller; + vcc1-supply = <&vcc5v0_sys>; vcc2-supply = <&vcc5v0_sys>; vcc3-supply = <&vcc5v0_sys>; vcc4-supply = <&vcc5v0_sys>; vcc5-supply = <&vcc5v0_sys>; @@ -592,11 +594,11 @@ pmic@0 { gpio-controller; #gpio-cells = <2>; rk806_dvs1_null: dvs1-null-pins { - pins = "gpio_pwrctrl2"; + pins = "gpio_pwrctrl1"; function = "pin_fun0"; }; rk806_dvs2_null: dvs2-null-pins { pins = "gpio_pwrctrl2"; -- Created with Armbian build tools https://github.com/armbian/build
-
Marco Schirrmeister reacted to Werner in ZFS module not built on Jammy/Bookworm legacy/edge. Solutions or alternatives ?
https://openzfs.github.io/openzfs-docs/Developer Resources/Building ZFS.html
[ 424.596656] zfs: module license taints kernel. [ 425.491531] ZFS: Loaded module v2.2.99-311_gd9cb42da9, ZFS pool version 5000, ZFS filesystem version 5
tested on OPi5 with kernel 6.7.1
Getting it working on legacy 5.10.y rk Android-hackedtogether kernel is a bot tougher.
https://github.com/radxa/kernel/issues/54
Spoiler: patching method does not work anymore, at least not for me . Tested with 5.10.160...
-
Marco Schirrmeister got a reaction from octal8 in New install, ethernet doesn't work (no lights even) and USB3 ports are dead.
If you used the 6.7.0-rc7 image, then check what overlay and dt file you have configured. This image defaults to the dt file for the original non-plus version.
Check and adjust in /boot/armbianEnv.txt the following 2 lines.
overlay_prefix=rockchip-rk3588 fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
-
Marco Schirrmeister got a reaction from Endian in Mainline kernel
Without knowing what you did exactly, the following creates a bootable image.
./compile.sh BOARD=rock-5b BRANCH=collabora RELEASE=bookworm KERNEL_CONFIGURE=no BUILD_MINIMAL=no BUILD_DESKTOP=no COMPRESS_OUTPUTIMAGE=img BOOTSIZE=512
You may also need to clear whatever is in your SPI flash.
-
Marco Schirrmeister reacted to balbes150 in Armbian + EFI\grub + NVMe
Ver 20230609-edge (use u-boot) kernel 6.4-rc5 (no HDMI)
20230609-EDK2-EFI-edge kernel 6.4-rc5 - HDMI work only EDK2 (grub), HDMI in system not work
root@192.168.1.15's password: ____ _ ____ ____ | _ \ ___ ___| | __ | ___|| __ ) | |_) / _ \ / __| |/ / |___ \| _ \ | _ < (_) | (__| < ___) | |_) | |_| \_\___/ \___|_|\_\ |____/|____/ Welcome to Armbian 23.04 Lunar with bleeding edge Linux 6.4.0-rc5-media No end-user support: built from trunk System load: 7% Up time: 4 min Memory usage: 1% of 15.21G IP: 192.168.1.15 Usage of /: 26% of 7.0G RX today: 5.4 KiB [ 29 security updates available, 34 updates total: apt upgrade ] Last check: 2023-06-09 06:57 Last login: Fri Jun 9 11:08:36 2023 root@rock-5b:~# neofetch root@rock-5b ------------ █ █ █ █ █ █ █ █ █ █ █ OS: Armbian (23.04) aarch64 ███████████████████████ Host: ROCK 5 Model B 0 ▄▄██ ██▄▄ Kernel: 6.4.0-rc5-media ▄▄██ ███████████ ██▄▄ Uptime: 5 mins ▄▄██ ██ ██ ██▄▄ Packages: 559 (dpkg) ▄▄██ ██ ██ ██▄▄ Shell: bash 5.2.15 ▄▄██ ██ ██ ██▄▄ Terminal: /dev/pts/0 ▄▄██ █████████████ ██▄▄ CPU: (8) ▄▄██ ██ ██ ██▄▄ Memory: 222MiB / 15572MiB ▄▄██ ██ ██ ██▄▄ ▄▄██ ██ ██ ██▄▄ ▄▄██ ██▄▄ ███████████████████████ █ █ █ █ █ █ █ █ █ █ █ root@rock-5b:~# root@rock-5b:~# free -m total used free shared buff/cache available Mem: 15572 357 15113 9 251 15214 Swap: 7786 0 7786 root@rock-5b:~# lspci 0004:40:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3588 (rev 01) 0004:41:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04) root@rock-5b:~#
-
Marco Schirrmeister got a reaction from Vitalicus in Armbian images are now available for Rock 5b!
Looks like you use an image from balbes150. You may want to ask in this thread here, which is about his images.
But before asking, read the important comments a few times.
-
-
Marco Schirrmeister reacted to Igor in Mainline kernel
With working PCI
https://github.com/armbian/os/releases (look for Rock5 "midstream")
-
Marco Schirrmeister got a reaction from grablife in Orange Pi 5 Support
Releases 130+ works now for me as well to boot from NVMe and without a SD card inserted. Below are my steps that I used.
Clear disk in case there are partitions already.
dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=1 dd if=/dev/zero of=/dev/mtdblock0 bs=1M count=1
Create partitions, format them and set labels.
# create partitions parted -s /dev/nvme0n1 mklabel gpt parted -s /dev/nvme0n1 mkpart primary fat16 17m 285m parted -s /dev/nvme0n1 name 1 '"bootfs"' parted -s /dev/nvme0n1 set 1 bls_boot on parted -s /dev/nvme0n1 mkpart primary ext4 285m 100% parted -s /dev/nvme0n1 name 2 '" "' # format partitions mkfs.fat /dev/nvme0n1p1 mkfs.ext4 -F /dev/nvme0n1p2 # create labels dosfslabel /dev/nvme0n1p1 armbi_boot tune2fs -L armbi_root /dev/nvme0n1p2
Install the existing system onto the NVMe.
Select "Boot from MTD Flash, system on SATA, USB or NVMe" Select the partition "/dev/nvme0n1p2" for rootfs and format as EXT4 Then it installs bootloader to SPI (mtdblock0) Select "Exit" instead of "Power off" Since the armbian-install command does not copy data to the dedicated /boot partition and also does not update all files, we prepare the bootfs manually.
mkdir /mnt/boot /mnt/root mount /dev/nvme0n1p1 /mnt/boot mount /dev/nvme0n1p2 /mnt/root rsync -av /boot/* /mnt/boot/ rsync -av /boot/* /mnt/root/boot/ # The set command is "fish" shell syntax set UUID (blkid -o export /dev/nvme0n1p2 | grep -E '(^UUID=)' | cut -d '=' -f 2) sed -i "s#rootdev=UUID=[A-Fa-f0-9-]*#rootdev=UUID=$UUID#" /mnt/boot/armbianEnv.txt sed -i "s#rootdev=UUID=[A-Fa-f0-9-]*#rootdev=UUID=$UUID#" /mnt/root/boot/armbianEnv.txt # not needed, installer updated to the correct UUID already #sed -i "s#UUID=[A-Fa-f0-9-]* / ext4#UUID=$UUID / ext4#" /mnt/root/etc/fstab # Works without the next 2 steps. # /dev/nvme0n1p1 is not mounted as /boot partition and the armbian-install installed all /boot files into the /boot folder on the rootfs partition # Not sure which way is better. With or without /boot partition set UUID (blkid -o export /dev/nvme0n1p1 | grep -E '(^UUID=)' | cut -d '=' -f 2) echo "UUID=$UUID /boot vfat defaults 0 2" >> /mnt/root/etc/fstab Power off Remove SD card Boot from NVMe Output after NVMe boot.
root@orangepi5 ~# lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS mtdblock0 zram0 [SWAP] zram1 28.2M 32% /var/log nvme0n1 ├─nvme0n1p1 vfat FAT16 armbi_boot 9A27-3D56 128.8M 50% /boot └─nvme0n1p2 ext4 1.0 armbi_root 6df3fbd7-700a-4324-805e-b72a4c4d41ed 442G 0% /var/log.hdd / root@orangepi5 ~# uname -a Linux orangepi5 5.10.110-rockchip-rk3588 #trunk.0133 SMP Thu Jan 5 03:03:13 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
-
Marco Schirrmeister got a reaction from symball in Orange Pi 5 Support
Releases 130+ works now for me as well to boot from NVMe and without a SD card inserted. Below are my steps that I used.
Clear disk in case there are partitions already.
dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=1 dd if=/dev/zero of=/dev/mtdblock0 bs=1M count=1
Create partitions, format them and set labels.
# create partitions parted -s /dev/nvme0n1 mklabel gpt parted -s /dev/nvme0n1 mkpart primary fat16 17m 285m parted -s /dev/nvme0n1 name 1 '"bootfs"' parted -s /dev/nvme0n1 set 1 bls_boot on parted -s /dev/nvme0n1 mkpart primary ext4 285m 100% parted -s /dev/nvme0n1 name 2 '" "' # format partitions mkfs.fat /dev/nvme0n1p1 mkfs.ext4 -F /dev/nvme0n1p2 # create labels dosfslabel /dev/nvme0n1p1 armbi_boot tune2fs -L armbi_root /dev/nvme0n1p2
Install the existing system onto the NVMe.
Select "Boot from MTD Flash, system on SATA, USB or NVMe" Select the partition "/dev/nvme0n1p2" for rootfs and format as EXT4 Then it installs bootloader to SPI (mtdblock0) Select "Exit" instead of "Power off" Since the armbian-install command does not copy data to the dedicated /boot partition and also does not update all files, we prepare the bootfs manually.
mkdir /mnt/boot /mnt/root mount /dev/nvme0n1p1 /mnt/boot mount /dev/nvme0n1p2 /mnt/root rsync -av /boot/* /mnt/boot/ rsync -av /boot/* /mnt/root/boot/ # The set command is "fish" shell syntax set UUID (blkid -o export /dev/nvme0n1p2 | grep -E '(^UUID=)' | cut -d '=' -f 2) sed -i "s#rootdev=UUID=[A-Fa-f0-9-]*#rootdev=UUID=$UUID#" /mnt/boot/armbianEnv.txt sed -i "s#rootdev=UUID=[A-Fa-f0-9-]*#rootdev=UUID=$UUID#" /mnt/root/boot/armbianEnv.txt # not needed, installer updated to the correct UUID already #sed -i "s#UUID=[A-Fa-f0-9-]* / ext4#UUID=$UUID / ext4#" /mnt/root/etc/fstab # Works without the next 2 steps. # /dev/nvme0n1p1 is not mounted as /boot partition and the armbian-install installed all /boot files into the /boot folder on the rootfs partition # Not sure which way is better. With or without /boot partition set UUID (blkid -o export /dev/nvme0n1p1 | grep -E '(^UUID=)' | cut -d '=' -f 2) echo "UUID=$UUID /boot vfat defaults 0 2" >> /mnt/root/etc/fstab Power off Remove SD card Boot from NVMe Output after NVMe boot.
root@orangepi5 ~# lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS mtdblock0 zram0 [SWAP] zram1 28.2M 32% /var/log nvme0n1 ├─nvme0n1p1 vfat FAT16 armbi_boot 9A27-3D56 128.8M 50% /boot └─nvme0n1p2 ext4 1.0 armbi_root 6df3fbd7-700a-4324-805e-b72a4c4d41ed 442G 0% /var/log.hdd / root@orangepi5 ~# uname -a Linux orangepi5 5.10.110-rockchip-rk3588 #trunk.0133 SMP Thu Jan 5 03:03:13 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux