JamesCL Posted January 17 Posted January 17 Is there any armbian image that we can try with the Orange pi 4A ? Many thanks 0 Quote
Nick A Posted January 19 Posted January 19 (edited) You can find patches for A523/A527 here. Just need to port them over to Armbian. https://github.com/warpme/minimyth2/tree/master/script/bootloaders/board-t527.orangepi_4a/files https://github.com/warpme/minimyth2/tree/master/script/kernel/linux-6.12/files https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-6.12/files/1172-arm64-dts-allwinner-t527-add-orangepi-4a-dts.patch Edited January 19 by Nick A 0 Quote
hexdump Posted January 20 Posted January 20 it should be noted that all this is very very early bringup work not really useable for anything - iirc. no display, no cpu frequency scaling, no emmc etc. - all is still very much hacked together etc. ... it is good for people interested and having the skills to help in bringing this platform up but nothing yet for people wanting to really use this hardware ... this should be kept in mind when playing around with those patches ... 0 Quote
Nick A Posted February 6 Posted February 6 (edited) if anyone has a Radxa cubie A5E and wants to test the lastest bringup work here you go. I don't own the other h728/a523/t527 boards so I can't test them. I willl not provide images because this is experimental. git clone https://github.com/NickAlilovic/build.git --branch warpme-6.12 --single-branch Edited February 11 by Nick A 0 Quote
JuanEsf Posted February 8 Posted February 8 Hi, thank you very much for sharing the repository. I have compiled armbian and when I try to start the code I get an error and it does not manage to run the kernel. I attach the log armbian-cubie-a5e.log 0 Quote
Nick A Posted February 9 Posted February 9 Hi Juan, I'm having the same issue. I believe it's due to this scp.bin file that's needed by a523 u-boot. Trying to figure out how to modify the build scripts to add scp.bin before u-boot compiles. I tried to add a patch to include this binary but I would get an error about patching binary files not supported. https://github.com/warpme/minimyth2/tree/master/script/bootloaders/board-a527.cubie_a5e/files I also need to add extlinux.conf or boot.cmd/boot.scr. 0 Quote
JuanEsf Posted February 10 Posted February 10 nano /home/juanesf91/build/config/bootscripts/extlinux label ARMBIAN kernel /vmlinuz-6.12.12-edge-sunxi fdt /dtbs/allwinner/sun55i-a527-radxa-a5e.dtb append earlycon=uart8250,mmio32,0x02500000 clk_ignore_unused console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p2 rw rootwait nano config/boards/radxa-cubie-a5e.csc BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb" BOOTFS_TYPE="fat" BOOTSCRIPT="extlinux" IMAGE_PARTITION_TABLE="msdos" BOOTSTART="1" BOOTSIZE="512" ROOTSTART="513" UBOOT_EXTLINUX=yes" UBOOT_EXTLINUX_ROOT=root=UUID=%%ROOT_PARTUUID%%" UBOOT_EXTLINUX_FDT="sun55i-a527-radxa-a5e.dtb" fdisk -l output/images/Armbian-unofficial_25.02.0-trunk_Radxa-cubie-a5e_bookworm_edge_6.12.12_minimal.img Disk output/images/Armbian-unofficial_25.02.0-trunk_Radxa-cubie-a5e_bookworm_edge_6.12.12_minimal.img: 1.81 GiB, 1946157056 bytes, 3801088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xd91fa24c Device Boot Start End Sectors Size Id Type output/images/Armbian-unofficial_25.02.0-trunk_Radxa-cubie-a5e_bookworm_edge_6.12.12_minimal.img1 8192 1056767 1048576 512M ea Linux extended boot output/images/Armbian-unofficial_25.02.0-trunk_Radxa-cubie-a5e_bookworm_edge_6.12.12_minimal.img2 1056768 3801087 2744320 1.3G 83 Linux 0 Quote
Nick A Posted February 10 Posted February 10 (edited) Thanks Juan, I was able to boot the kernel with some changes. I used this extlinux.conf file. Changed the kernel to /Image and fdt to /dtb. I manually created a directory called extlinux in the boot directory. I then moved the extlinux.conf there. /extlinux/extlinux.conf label ARMBIAN kernel /Image fdt /dtb/allwinner/sun55i-a527-radxa-a5e.dtb append earlycon=uart8250,mmio32,0x02500000 clk_ignore_unused console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p2 rw rootwait radxa-cubie-a5e.csc I changed one line BOOTSCRIPT="extlinux.conf" # Allwinner Cortex-A55 octa core 2/4GB RAM SoC USB3 USB-C 2x GbE BOARD_NAME="radxa cubie a5e" BOARDFAMILY="sun55iw3" BOARD_MAINTAINER="Nick A" BOOTCONFIG="radxa-a5e_defconfig" OVERLAY_PREFIX="sun55i-a527" BOOT_LOGO="desktop" KERNEL_TARGET="edge" FORCE_BOOTSCRIPT_UPDATE="yes" BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb" BOOTFS_TYPE="fat" BOOTSCRIPT="extlinux.conf" IMAGE_PARTITION_TABLE="msdos" BOOTSTART="1" BOOTSIZE="512" ROOTSTART="513" UBOOT_EXTLINUX=yes" UBOOT_EXTLINUX_ROOT=root=UUID=%%ROOT_PARTUUID%%" UBOOT_EXTLINUX_FDT="sun55i-a527-radxa-a5e.dtb" Most Armbian boards use the boot.cmd for their bootscript. I found the line I missed in build/config/sources/families/sun55iw3.conf. I cloned a clean build and changed one line in sun55iw3.conf. declare -g BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd' declare -g ATF_TARGET_MAP="PLAT=sun55i_a523 DEBUG=1 bl31;;build/sun55i_a523/debug/bl31.bin" declare -g ATFBRANCH="branch:a523" declare -g BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd' declare -g BOOTDELAY=1 declare -g BOOTSOURCE='https://github.com/apritzel/u-boot' _ _ _ __ __ _ _ _ /_\ _ _ _ __ | |__(_)__ _ _ _ ___ _ _ _ _ ___ / _|/ _(_)__(_)__ _| | / _ \| '_| ' \| '_ \ / _` | ' \___| || | ' \/ _ \ _| _| / _| / _` | | /_/ \_\_| |_|_|_|_.__/_\__,_|_||_| \_,_|_||_\___/_| |_| |_\__|_\__,_|_| v25.02 rolling for radxa cubie a5e running Armbian Linux 6.12.12-edge-sun55iw3 Packages: Debian stable (bookworm) Updates: Kernel upgrade enabled and 6 packages available for upgrade Support: DIY (custom image) IP addresses: (LAN) IPv4: IPv6: Performance: Load: 5% Up time: 4 min Memory usage: 4% of 3.83G Usage of /: 3% of 58G Commands: Configuration : armbian-config Upgrade : armbian-upgrade Monitoring : htop nick@radxa-cubie-a5e:~$ Edited February 11 by Nick A 2 Quote
JuanEsf Posted February 11 Posted February 11 Great, last night was too late and did not finish playing with the boot partition to achieve it. Arriving home in a while I will compile and try 0 Quote
Nick A Posted February 11 Posted February 11 (edited) I just updated my repository. I changed one line to include boot.cmd https://github.com/NickAlilovic/build/commit/d578b352143d15abee25c805880f6ba6016a9490 Edited February 11 by Nick A 0 Quote
Nick A Posted February 11 Posted February 11 (edited) My build uses warpme-6.12 patches so people with other boards can make a board config to compile their own images. https://github.com/NickAlilovic/build/blob/warpme-6.12/config/boards/radxa-cubie-a5e.csc https://github.com/NickAlilovic/build/tree/warpme-6.12/patch/kernel/archive/warpme-6.12 1170-arm64-dts-allwinner-h728-add-x96q-pro-tvbox-plus.patch 1172-arm64-dts-allwinner-t527-add-orangepi-4a-dts.patch 1173-arm64-dts-allwinner-a527-add-Radxa-A5E-support.patch Orangepi 4a uses the same radxa-a5e_defconfig. https://github.com/warpme/minimyth2/blob/master/script/bootloaders/board-t527.orangepi_4a/Makefile x96q_pro_plus_defconfig https://github.com/warpme/minimyth2/blob/master/script/bootloaders/board-h728.x96q_pro_plus/Makefile Edited February 11 by Nick A 0 Quote
BillyBlaze Posted February 12 Posted February 12 _ _ _ __ __ _ _ _ /_\ _ _ _ __ | |__(_)__ _ _ _ ___ _ _ _ _ ___ / _|/ _(_)__(_)__ _| | / _ \| '_| ' \| '_ \ / _` | ' \___| || | ' \/ _ \ _| _| / _| / _` | | /_/ \_\_| |_|_|_|_.__/_\__,_|_||_| \_,_|_||_\___/_| |_| |_\__|_\__,_|_| v25.02 rolling for radxa cubie a5e running Armbian Linux 6.12.12-edge-sun55iw3 Packages: Debian stable (bookworm) Support: DIY (custom image) IP addresses: (LAN) IPv4: *.*.*.* IPv6: *::*:*:*:* (WAN) *.*.*.* Performance: Load: 1% Up time: 10 min Memory usage: 3% of 3.83G Usage of /: 4% of 29G Commands: Configuration : armbian-config Monitoring : htop Thank you for the hard work! I was also able to run the image with your latest changes. Things that didn't work for me yet (but of course expected at this time): - WLAN/bluetooth - NVME SSD 0 Quote
BillyBlaze Posted February 14 Posted February 14 Thank you, I can confirm I got wifi working. It seems it's not using its full capabilities yet, I believe M8800DS2 can reach 600Mbps? root@radxa-cubie-a5e:~# speedtest -I wlan0 (5Ghz) Speedtest by Ookla Server: Odido - Amsterdam (id: -) ISP: Odido Netherlands Idle Latency: 4.23 ms (jitter: 17.23ms, low: 4.14ms, high: 38.60ms) Download: 98.09 Mbps (data used: 74.8 MB) 21.69 ms (jitter: 3.98ms, low: 4.55ms, high: 30.03ms) Upload: 95.48 Mbps (data used: 43.1 MB) 39.30 ms (jitter: 2.27ms, low: 10.70ms, high: 43.91ms) Packet Loss: 0.0% Result URL: - root@radxa-cubie-a5e:~# speedtest -I wlan0 (2.4Ghz) Speedtest by Ookla Server: Odido - Amsterdam (id: -) ISP: Odido Netherlands Idle Latency: 6.20 ms (jitter: 1.25ms, low: 5.49ms, high: 8.00ms) Download: 8.57 Mbps (data used: 13.6 MB) 244.00 ms (jitter: 64.45ms, low: 11.59ms, high: 793.78ms) Upload: 2.13 Mbps (data used: 3.9 MB) 343.91 ms (jitter: 74.53ms, low: 20.12ms, high: 2764.11ms) Packet Loss: 0.0% Result URL: - root@radxa-cubie-a5e:~# speedtest -I end0 Speedtest by Ookla Server: Odido - Amsterdam (id: -) ISP: Odido Netherlands Idle Latency: 3.23 ms (jitter: 0.29ms, low: 2.83ms, high: 3.36ms) Download: 745.43 Mbps (data used: 741.8 MB) 31.46 ms (jitter: 38.90ms, low: 3.39ms, high: 397.61ms) Upload: 834.05 Mbps (data used: 397.4 MB) 41.68 ms (jitter: 44.13ms, low: 2.73ms, high: 459.89ms) Packet Loss: 0.0% Result URL: - 0 Quote
ZlobniyDaemon Posted Tuesday at 01:25 PM Posted Tuesday at 01:25 PM Hello everyone! I apologize for using a neural translation, but I'm as not strong in English as I am in assembling Linux. I have purchased an OrangePI 4A to use as a host for Klipper on my 3D printer, but I encountered a problem: none of the official images include CAN bus support modules, which are absolutely essential for me. Unfortunately, I was unable to build an image myself using WSL. Could someone here share a compiled image for this board with CAN modules included? 0 Quote
MisterSBC Posted Tuesday at 09:32 PM Posted Tuesday at 09:32 PM @Nick A Thanks for all your work! I have been trying to compile the image to test using your code, but I keep receiving the following error: " make[2]: *** [scripts/kconfig/Makefile:75: syncconfig] Error 1 [🐳|🔨] make[1]: *** [Makefile:586: syncconfig] Error 2 [🐳|🔨] make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop. " 0 Quote
Ditrih Bolen Posted Wednesday at 09:33 AM Posted Wednesday at 09:33 AM I'm sorry for the neuro translation. Thank you for the work done, thanks to you, I began to understand this new wonderful world more) Target device: orange pi 4A I tried to collect it from a branch yesterday https://github.com/NickAlilovic/build/tree/warpme-6.12 an image for armbian. But the image does not start after I uploaded it to the SD card with the indication radxa-cubie-a5e. There is currently no way to check through FTDI. I did the launch via ./compile.sh docker-shell Could you give me a hint?: 1. Tell me with what parameters you run the image build. 2. Whether it is necessary to make changes to the instructions for the importer specified above. 0 Quote
ZlobniyDaemon Posted Wednesday at 09:48 AM Posted Wednesday at 09:48 AM Tonight, I finally managed to build an image on the OPI4a itself. However, after writing it to the eMMC using Balena Etcher, the board did not boot. If I understood Nick A's message correctly: 'Orangepi 4a uses the same radxa-a5e_defconfig. https://github.com/warpme/minimyth2/blob/master/script/bootloaders/board-t527.orangepi_4a/Makefile', I needed to select the radxa-a5e board from the list. Here's what I did: bash git clone https://github.com/NickAlilovic/build.git --branch warpme-6.12 --single-branch cd build ./compile.sh I selected the radxa-a5e board, edge, bookworm, server, standard. The image was compiled, and then I wrote it to the eMMC via Balena Etcher. After powering on, the board shows no signs of activity. I suspect that some patch or bootloader was not included in the image. Unfortunately, my knowledge is insufficient to understand what I did wrong and how to fix the issue. I kindly ask for your help. 1 Quote
Nick A Posted Wednesday at 02:28 PM Posted Wednesday at 02:28 PM (edited) After looking at the Minimyth2 sources again. Orangepi 4a uses the same u-boot. But the exlinux.conf changes the fdt. (flat device tree) before it boots the kernel. Quote fdt /dtbs/allwinner/sun55i-t527-orangepi-4a.dtb https://github.com/warpme/minimyth2/blob/master/script/bootloaders/board-t527.orangepi_4a/files/extlinux.conf My build uses boot-sun50i-next.cmd instead of exlinux.conf. Quote declare -g BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd' https://github.com/NickAlilovic/build/blob/warpme-6.12/config/sources/families/sun55iw3.conf Quote # DO NOT EDIT THIS FILE # # Please edit /boot/armbianEnv.txt to set supported parameters # https://github.com/NickAlilovic/build/blob/warpme-6.12/config/bootscripts/boot-sun50i-next.cmd So to change the dtb you need to add this in your /boot/armbianEnv.txt fdtfile=sun55i-t527-orangepi-4a.dtb Remember this is early mainline uboot and linux bring up work. There's no HDMI. You'll need a USB to TTL serial converter connected to your uart pins. Edited Wednesday at 02:36 PM by Nick A 0 Quote
ZlobniyDaemon Posted Wednesday at 02:43 PM Posted Wednesday at 02:43 PM I'm continuing to try compiling the image. I created a file named "orangepi-4a-dts.csc" with the following content (idk is that correct) # Allwinner Cortex-A55 octa core 2/4GB RAM SoC USB3 USB-C 2x GbE BOARD_NAME="Orangepi-4a" BOARDFAMILY="sun55iw3" BOARD_MAINTAINER="Nick A" BOOTCONFIG="radxa-a5e_defconfig" OVERLAY_PREFIX="sun55i-a527" BOOT_LOGO="desktop" KERNEL_TARGET="edge" function post_family_tweaks__radxa_cubie-a5e() { display_alert "Applying wifi firmware" pushd "$SDCARD/lib/firmware" ln -s "aic8800/SDIO/aic8800D80" "aic8800_sdio" # use armbian-firmware popd } placed it in /build/config/boards. started the build with the command ./compile.sh EXPERT="yes" KERNEL_GIT="FULL" Select Show a kernel configuration menu before compilation (just for check is CAN из selected) Board: orangepi-4a-dts Kernel: edge Release package base: bookworm Image type: Image with console interface (server) Standard image with console interface Run build Flash with BalenaEtcher to eMMC and try to start my OPI4A And again, no any kind of activity after board starts, only red led is light up Build log attached. Please, help with bilding img for this board log-build-no-uuidgen-yet-8696-91019.log.ans 0 Quote
ZlobniyDaemon Posted Wednesday at 02:50 PM Posted Wednesday at 02:50 PM While I was writing the message, Nick A already replied. I'll check it now and let you know the result. Цитата Remember this is early mainline uboot and linux bring up work. There's no HDMI. You'll need a USB to TTL serial converter connected to your uart pins. Does this mean that HDMI will not work at all with this image? 0 Quote
Nick A Posted Wednesday at 02:53 PM Posted Wednesday at 02:53 PM (edited) Nope, you are better off sticking with vender supplied images if you need hdmi support. It may take months before there's a working hdmi. Edited Wednesday at 02:54 PM by Nick A 0 Quote
ZlobniyDaemon Posted Wednesday at 02:54 PM Posted Wednesday at 02:54 PM (edited) I would be glad, but I really need CAN BUS support, which is not available in the official images. I haven't been able to add CAN kernel modules to the official image by any means. HDMI is not the most essential feature. If SSH and CAN work correctly, that will suffice for me as a temporary solution even over an extended period. Edited Wednesday at 02:59 PM by ZlobniyDaemon 0 Quote
ZlobniyDaemon Posted Wednesday at 03:02 PM Posted Wednesday at 03:02 PM Цитата So to change the dtb you need to add this in your /boot/armbianEnv.txt fdtfile=sun55i-t527-orangepi-4a.dtb Does this need to be done in the already assembled image or in the files before assembly? 0 Quote
Nick A Posted Wednesday at 03:03 PM Posted Wednesday at 03:03 PM (edited) There's a board that's similar to orangepi 4a called Avaota A1. https://github.com/armbian/build/blob/main/config/boards/avaota-a1.csc This script uses the legacy kernel and drivers that come with the Avaota A1 vender image. Orangepi probably uses a similar kernel source so I don't know if it will make any difference. legacy) KERNELSOURCE='https://github.com/AvaotaSBC/linux.git' # This is Allwinner's new BSP kernel, # which consists of a specific version of the mainline kernel source code and a folder containing BSP driver source code files. KERNELBRANCH="branch:linux-5.15" declare -g KERNEL_MAJOR_MINOR="5.15" KERNELPATCHDIR="sun55iw3-syterkit-${BRANCH}" LINUXCONFIG="linux-sun55iw3-syterkit-${BRANCH}" https://github.com/armbian/build/blob/main/config/sources/families/sun55iw3-syterkit.conf orangepi 4a https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/sources/families/sun55iw3.conf https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/sources/arm64.conf Edited Wednesday at 04:15 PM by Nick A 0 Quote
Nick A Posted Wednesday at 03:05 PM Posted Wednesday at 03:05 PM (edited) Quote Does this need to be done in the already assembled image or in the files before assembly? Already assembled image. After you write to your SDcard. Edit the file /boot/armbianEnv.txt. Again this is early bring up work. This will only boot off SDcard not your internel eMMC. Edited Wednesday at 03:51 PM by Nick A 0 Quote
ZlobniyDaemon Posted Wednesday at 05:51 PM Posted Wednesday at 05:51 PM Цитата Again this is early bring up work. This will only boot off SDcard not your internel eMMC. Is it possible that there are any non-minimal builds on earlier kernel versions? 0 Quote
Nick A Posted Wednesday at 06:19 PM Posted Wednesday at 06:19 PM Quote Is it possible that there are any non-minimal builds on earlier kernel versions? Have you tried building your own orangepi 4a image using the orangpi build scripts? Maybe the build script will let you edit the kernel config or you can replace it with your own. https://github.com/orangepi-xunlong/orangepi-build/tree/next https://github.com/orangepi-xunlong/orangepi-build/blob/0a00a8bc4d7874643203c38fe3c62943931397b3/external/config/kernel/linux-5.15-sun55iw3-current.config 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.