humanus Posted Sunday at 07:18 PM Posted Sunday at 07:18 PM @alexc @qq20739111 I would be very surprised if the UART log showed anything other than mine. You can find it attached above. 0 Quote
alexc Posted Sunday at 07:53 PM Posted Sunday at 07:53 PM @humanus Thanks, just noticed the log. Interestingly looks like it's the mmc part. A few things I can think of: 1. emmc is only presented on A7A/S, so if you are using emmc or your board has an emmc, it might be a problem. You can try to disable sdc2 on device tree and see if it works. 1. sd card part is the same on A7A/S/Z, but I don't think my card is a UHS-II card. Looking at the log, it might be doing something with UHS-II, so it might be worth trying a different SD card to see if it behaves differently. If it does turn out to be related to UHS-II handling, I can look into a proper fix later. on. 0 Quote
humanus Posted Sunday at 08:12 PM Posted Sunday at 08:12 PM (edited) I have no eMMC and the card isn't UHS-II (I use WD Purple cards, they are UHS-I). I don't think I have any UHS-II cards at the moment... Could try a different one though. Edited Sunday at 08:13 PM by humanus clarify 0 Quote
alexc Posted Sunday at 10:23 PM Posted Sunday at 10:23 PM (edited) @humanus I took a second look at the log, I think it's probably due to the enabled eMMC. EDIT: I added the emmc part to my A7Z dts, it also crashes... So that's definitely the root cause. I disable it for A7S in my repo for now, you can compile it yourself with a Linux 6.18 kernel or wait for Nick. By the way A733 eMMC seems to use the same eMMC driver as A523, so probably mainline already supports it. Edited Sunday at 10:31 PM by alexc 1 Quote
Wintermute Posted Monday at 03:44 PM Posted Monday at 03:44 PM (edited) On 4/26/2026 at 8:33 PM, Dalibor Pospíšil said: @alexc What about SATA support? The a7a board has m.2 pcie where the PentaHAT can be attached (I tested it with a custom sunxi kernel). Also want to ask about SATA support, specifically for PentaHat. I saw a thread on official forum https://forum.radxa.com/t/radxa-cubie-a7a-sata-support/29154 looks like electrically there is no issues. But are there necessary drivers in armbian? Edited Monday at 03:45 PM by Dmitry Maslov space 0 Quote
qq20739111 Posted Monday at 08:10 PM Posted Monday at 08:10 PM @Nick A Hi Nick, I'm using your image (Radxa-cubie-a7z-v0.6.4_trixie_vendor_6.6.98_xfce_desktop.img) on my Radxa Cubie A7Z, which I've DIY-modified to have 6GB of RAM. Micron D9XKK (MT53E1536M32D4DT-046 AAT:A) 6GB LPDDR4 chip. Unfortunately, it fails to boot. Here is the UART output below. Do you know how to fix this? Does the system need specific configuration to recognize the 6GB RAM? ...... [212]HELLO! BOOT0 is starting! [215]BOOT0 commit : {4721ad08} [218]board gpio withstand voltage auto mode [233]dram_para_total:0xf [235]vaild para:6 select dram para10 [mmc]: mmc driver ver 2025-10-16 17:10 [mmc]: Wrong media type 0x0 [mmc]: ***Try SD card 0*** [mmc]: HSSDR52/SDR25 4 bit [mmc]: 50000000 Hz [mmc]: 15279 MB [mmc]: ***SD/MMC 0 init OK!!!*** [273]DRAM BOOT DRIVE INFO: V0.601 [277]DRAM_VCC set to 1100 mv [280]DRAM CLK =1800 MHZ [282]DRAM Type =8 (8:LPDDR4,9:LPDDR5) [387]Training result is = 7 [390]DRAM Pstate 1 training, frequency is 1200 Mhz [503]Training result is = 7 [506]DRAM Pstate 2 training, frequency is 800 Mhz [716]Training result is = 7 [718]DRAM Pstate 3 training, frequency is 400 Mhz [3934]Training result is = 7 [3937]DRAM Pstate 0 training, frequency is 1800 Mhz [3945]Actual DRAM SIZE =8192 M [3948]DRAM SIZE =8192 MBytes, para1 = 311a, para2 = 20001001, dram_tpr13 = 6067 [3962]DRAM simple test OK. [3968]error:bad magic. [4032]error: dtb not found for scp [4036]mmc not para [4038]Jump to ATF: monitor_base = 0x48000000, uboot_base = 0x4a000000, optee_base = 0x0 NOTICE: BL31: OP-TEE 32bit detected NOTICE: BL31: U-BOOT 32bit detected NOTICE: BL31: dram size is 8589934592 bytes NOTICE: BL31: v2.5(debug):48e54578a NOTICE: BL31: Built : 14:13:06, Jul 2 2025 NOTICE: BL31: No DTB found. ERROR: Error initializing runtime service opteed_fast U-Boot 2018.07-17-boot-aw2501-g4c7078cfdf7-dirty (Apr 29 2026 - 10:03:59 +0000) Allwinner Technology [04.094]CPU: Allwinner Family [04.097]Model: Radxa Cubie A7A I2C: ready [04.160]DRAM: 8 GiB [04.169]Relocation Offset is: 75d89000 [04.223]secure enable bit: 0 [04.226]PMU: AXP8191 [04.228]PMU: AXP8191 VER_A FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL [04.240]bmu_axp515_probe pmic_bus_read fail [04.244][AXP8191] onoff status: 0x50 = 0x1, 0x51 = 0x0 [04.249][AXP8191] charge status: 0x4 = 0x0 [04.252]CPU=1014 MHz,PLL6=1200 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=600Mhz [04.259]gic: sec monitor mode SPI ALL: ready [04.303]flash init start [04.305]workmode = 0,storage type = 1 [04.308][mmc]: mmc driver ver uboot2018:2024-10-18 9:01:00 -- uboot2018:2025-03-28 10:03:00 [04.317][mmc]: get sdc_type fail and use default host:tm1. [04.325][mmc]: can't find node "mmc0",will add new node [04.329][mmc]: fdt err returned <no error> [04.333][mmc]: Using default timing para [04.337][mmc]: SUNXI SDMMC Controller Version:0x50530 [04.355][mmc]: card_caps:0x3000000a [04.358][mmc]: host_caps:0x3000003f [04.362]sunxi flash init ok get value error [04.373]Loading Environment from SUNXI_FLASH... OK No ethernet found. [04.411]NOT support bridge yet [04.413]Warn: no find panel or bridge [04.515]drm hdmi get mode: 1920x1080@60Hz hdmi0@5520000: use force output detailed mode clock 148500 kHz, flags[5] H: 1920 2008 2052 2200 V: 1080 1084 1089 1125 bus_format: 0 clk_set_rate: <NULL> has NULL parent [04.620]suxni tcon hdmi set rate: 148500000Hz and get diff: -148500000Hz [04.692]the secure storage item0 copy0 magic is bad [04.704]the secure storage item0 copy1 magic is bad [04.709]usb burn from boot delay time 0 [04.715]usb prepare ok [04.924]usb sof ok [04.926]usb probe ok [04.928]usb setup ok set address 0x4 set address 0x4 ok [05.334]do_burn_from_boot usb : have no handshake skip update boot_param cann't get the boot_base from the env [05.346]update part info [05.351]battery temp is -1 [05.358]update bootcmd [05.366](not enough data: expected >= 8 cells, got 4 cells) Link up timeout Speed change timeout PCIe speed of Gen1 Override default fdtfile to allwinner/sun60i-a733-cubie-a7z.dtb [07.810]libfdt fdt_check_header(): FDT_ERR_BADMAGIC [07.816]libfdt fdt_path_offset() returned FDT_ERR_BADMAGIC [07.821][mmc]: get sunxi-mmc0 string failed [07.826]The storage not support sample function [07.832]## error: update_fdt_dram_para_from_bootpara : FDT_ERR_NOTFOUND ret 0 [07.842]chip id : 0x00005100 0x00004900 0x0000c418 0x00002294 [07.847]mac addr => 08:51:49:dc:b6:2c [07.851]chip id : 0x00005100 0x00004900 0x0000c418 0x00002294 [07.856]mac addr => 08:51:49:dc:b6:2d [07.860]/chosen/rng-seed node not exit [07.864]no battery, disabled battery functons [07.868]Could not find nodeoffset for bat_supply [07.872]update dts curr_device:0 Device: SUNXI SD/MMC Manufacturer ID: 1b OEM: 534d Name: 00000 Bus Speed: 50000000 Mode : SD High Speed (50MHz) Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.9 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes [ufs]info:Driver version 0.0.24 2024.12.30 16:00 [ufs]info:Cal words 0x60:val 0xae400000, 0x64:val 0x4f21885d [ufs]err:uic c 16,uic a 0,1,0 [ufs]err:e 80000010,0,0,0,0 [ufs]err:int s 0,400 [ufs]err:Device not present [ufs]err:wait device link startup failed [ufs]info:peer link startup timeout [ufs]info:Cal words 0x60:val 0xae400000, 0x64:val 0x4f21885d [ufs]err:uic c 16,uic a 0,1,0 [ufs]err:e 80000010,0,0,0,0 [ufs]err:int s 0,400 [ufs]err:Device not present [ufs]err:wait device link startup failed [ufs]info:peer link startup timeout [ufs]info:Cal words 0x60:val 0xae400000, 0x64:val 0x4f21885d [ufs]err:uic c 16,uic a 0,1,0 [ufs]err:e 80000010,0,0,0,0 [ufs]err:int s 0,400 [ufs]err:Device not present [ufs]err:wait device link startup failed [ufs]info:peer link startup timeout [ufs]info:Cal words 0x60:val 0xae400000, 0x64:val 0x4f21885d [ufs]err:uic c 16,uic a 0,1,0 [ufs]err:e 80000010,0,0,0,0 [ufs]err:int s 0,400 [ufs]err:Device not present [ufs]err:wait device link startup failed [ufs]info:peer link startup timeout [ufs]err:link startup failed -6 [ufs]err:ufshcd_probe() failed -6 fail to init ufs sunxi_flash - sunxi_flash sub-system Usage: sunxi_flash sunxi_flash init storage_type sunxi_flash read mem_addr part_name [size] sunxi_flash read_mtd mem_addr part_name [size] sunxi_flash write <mem_addr> <part_name> [size] sunxi_flash write <mem_addr> <part_name> [offset] [size] sunxi_flash write_mtd <mem_addr> <part_name> sunxi_flash boot0 force_dram_update_size <new_val> sunxi_flash boot0 force_dram_update_flag <new_val> Hit any key to stop autoboot: 0 starting USB... USB0: start sunxi USB-DRD... config usb clk ok sunxi USB-DRD init ok... USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found USB1: start sunxi USB1-Host... config usb clk ok sunxi USB1-Host init ok... USB EHCI 1.00 scanning bus 1 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: device type unknown ... is now current device ** Bad device usb 0 ** ** Bad device usb 0 ** mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 5210 bytes read in 5 ms (1017.6 KiB/s) ## Executing script at 4fc00000 subfdt=sun60i-a733-cubie-a7z.dtb U-boot loaded from SD Boot script loaded from mmc 377 bytes read in 3 ms (122.1 KiB/s) subfdt=sun60i-a733-cubie-a7z.dtb Load fdt: /dtb/allwinner/sun60i-a733-cubie-a7z.dtb 195011 bytes read in 17 ms (10.9 MiB/s) 24361472 bytes read in 1013 ms (22.9 MiB/s) 23892015 bytes read in 995 ms (22.9 MiB/s) [15.233]libfdt fdt_path_offset() returned FDT_ERR_BADMAGIC [15.242]The storage not support sample function ret 0 [15.349]mac addr => 08:51:49:dc:b6:2c [15.353]mac addr => 08:51:49:dc:b6:2d [15.358]no battery, disabled battery functons [15.365]update dts stop sunxi USB-DRD ok... stop sunxi USB1-Host ok... [15.391]Starting kernel ... [15.394]total: 15394 ms [15.396][mmc]: MMC Device 2 not found [15.400][mmc]: mmc 2 not find, so not exit NOTICE: [SCP] :wait arisc ready.... NOTICE: [SCP] :arisc version: [d463b9da43dc50320f21ba51c6c51afe2db20d83] NOTICE: [SCP] :arisc startup ready NOTICE: [SCP] :arisc startup notify message feedback NOTICE: [SCP] :sunxi-arisc driver is starting NOTICE: BL3-1: Next image address = 0x40200000 NOTICE: BL3-1: Next image spsr = 0x3c5 0 Quote
qq20739111 Posted Monday at 08:52 PM Posted Monday at 08:52 PM (edited) @alexc @humanus Here is the UART log get from the image for which I published the SHA256. UART_log.md Edited Monday at 08:56 PM by qq20739111 0 Quote
humanus Posted Monday at 09:56 PM Posted Monday at 09:56 PM (edited) @alexc With the latest changes from you, incorporated by Nick, the 6.18 kernel boots. But there's a problem with PCI-Express. I can't get anything to work. I tried a GPU and a USB 3.0 hub, connected via a powered flex-to-pcie-1x adapter. Both are detected and get power but don't work. When I do lspci, the hub appears (the GPU doesn't) and when I try `lspci -t`, I get a segmentation fault. So something is wrong. Here is the log: https://paste.armbian.eu/akilodanus.yaml Edited Monday at 09:58 PM by humanus Clarify 0 Quote
alexc Posted Monday at 10:10 PM Posted Monday at 10:10 PM (edited) @humanus That's something we might need to work on next. I only have a M.2 board but my Raspberry Pi is using it right now. Let me see if I can use it to test later. So PCIE definitely works on 5.15/6.6, right? Your log doesn't really say where it crashes. For the GPU, what's the GPU? I don't think we built the kernel with any PCIE GPU drivers enabled, so that might be a potential problem. @Wintermute The same thing goes to the SATA. It's possible your PCIE to SATA controller is not supported/enabled in the kernel config (This applies to any kernel version). Edited Monday at 10:12 PM by alexc 0 Quote
qq20739111 Posted Tuesday at 10:05 AM Posted Tuesday at 10:05 AM @alexc @Nick A With the latest changes from you, incorporated by Nick, the 6.18 kernel. This is the boot log of the serial port: uart_log_20260512.md The blue LED is blinking normally, but there is no display output via the DP port on the dock, and the wired Ethernet isn't working either. I haven't tested the PCIe interface yet as I don't have the adapter module on hand. 0 Quote
alexc Posted Tuesday at 01:14 PM Posted Tuesday at 01:14 PM Hi @qq20739111, In the log, DP looks fine to me, maybe you can try plug in / out a few times? The display is not that stable to be honest. As for the ethernet, I think @Nick A didn't update the config so the driver is still not built into the kernel (https://github.com/NickAlilovic/build/blob/Radxa-mainline-WIP-a7s/config/kernel/linux-sun60iw2-edge.config). You can build by yourself (just enable CONFIG_AW_STMMAC_ETH) 0 Quote
Nick A Posted Tuesday at 01:44 PM Author Posted Tuesday at 01:44 PM @qq20739111 Sorry, I forgot to update the kernel config. Ethernet should work now. @humanus "DP works without replugging" 0 Quote
qq20739111 Posted Tuesday at 03:12 PM Posted Tuesday at 03:12 PM @alexc I've already tried plug in/out the DP port, but it didn't work. Since Nick just updated the config, I'll give it a try with the new one. 0 Quote
qq20739111 Posted Tuesday at 07:56 PM Posted Tuesday at 07:56 PM (edited) @Nick A @alexc I recompiled and tested the v6.18.19 build after you updated the Ethernet settings. Here are my findings: 1. The Ethernet link lights are blinking, but the connection seems unstable. I am unable to ping the device. 2. There is still no display output via the DP interface. (I'm wondering if it's due to the interface type of my USB-C to HDMI adapter, even though it works fine on other versions.) 3. The UART console is spamming logs with what appears to be a large number of errors. Please take a look at the attached logs. log1.mdlog2.mdlog3.md And,,, Do you know how to fix the 6GB RAM issue on the A7Z I mentioned in the post above? Edited Tuesday at 08:05 PM by qq20739111 0 Quote
humanus Posted Tuesday at 08:32 PM Posted Tuesday at 08:32 PM @alexc amdgpu, it is built as a mainline module by default from what I can see, as well as pcie support. 0 Quote
pinky Posted Tuesday at 09:10 PM Posted Tuesday at 09:10 PM Trying to compile the new A7S image: I get an empty image folder and a few tar files (armbian .... .tar and kernel .... .tar). Anyone can tell me what more needs to be done to get the xz image file (image folder is empty). ./compile.sh build BOARD=radxa-cubie-a7s BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie Thanks pinky 0 Quote
alexc Posted Tuesday at 09:16 PM Posted Tuesday at 09:16 PM @qq20739111 1. The logs show the Ethernet link repeatedly going up and down, but without any explicit errors. Could you double-check whether the cable and related hardware are in good condition? Does the same cable work properly with your other laptops/devices? Since I don’t have an A7A/S board myself, and there are no clear errors in the logs, I’m not entirely sure what’s causing it. Hopefully others can help test as well. 2. The logs also contain many messages like: [ 216.539249][ T97] sunxi:sunxidrm:[INFO]: [EDP_INFO]: drm_edp->desc->connector_type: 10 [ 216.547367][ T97] sunxi:sunxidrm:[INFO]: [EDP_INFO]: drm_edp->hpd_state_now: 0 This usually means the display could not be detected, or that it isn’t providing an HPD signal. I’d suggest trying a native USB-C to DisplayPort adapter or cable instead. As for the RAM issue, unfortunately since this is a DIY-modified board, it’s difficult to determine exactly what’s going wrong. @humanus I'll test the PCIE later. But in the meantime, could you also take a look at these? Probably helpful. https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/430 https://github.com/geerlingguy/raspberry-pi-pcie-devices/discussions/756 0 Quote
humanus Posted Tuesday at 09:48 PM Posted Tuesday at 09:48 PM @alexc Thanks... But the state of PCIE on raspberry pi is much better than on this board. Before getting the GPU working, we should concentrate on getting anything working via the PCIE, and so far now I've not been able to get anything to work (I'll try an nvme drive soon). 0 Quote
qq20739111 Posted 15 hours ago Posted 15 hours ago (edited) @alexc 1. This Ethernet cable works perfectly on other devices and has never had any loose connection issues. 2. The A7S board also works fine with this same cable when booting other systems. 3. I don't think it's a cable issue. Before posting, I already tested it by repeatedly plugging and unplugging the cable. I'm hoping others can test it as well to verify my findings. 4. I don't have a direct USB-C to DP cable on hand right now. However, using Nick's kernel 6.6 build and the official Radxa r6 system, this USB-C to HDMI hub works perfectly. It only fails to work on this kernel 6.18 system. 5. @humanus Did you not run into these issues? --- Thanks for your response regarding the A7Z memory issue. I'll look into it further. Edited 15 hours ago by qq20739111 0 Quote
humanus Posted 13 hours ago Posted 13 hours ago I've not tried the build with working ethernet yet. As for the DP Alt Mode, I had no issues so far with mainline. It might depend a bit on the adapter, the one I tried works great but I can try others which may be worse. I buy very low priced stuff usually, so some may have problems, and it would be representative. 0 Quote
qq20739111 Posted 12 hours ago Posted 12 hours ago So, you set up the wifi on the DP display... 0 Quote
humanus Posted 11 hours ago Posted 11 hours ago I set up WiFi via serial connection. Then the UI started on the display. You can also do this via USB ethernet dongle. 0 Quote
qq20739111 Posted 8 hours ago Posted 8 hours ago (edited) @humanus Are we talking about the A7S? Doesn't it already have a ethernet port? 😂 Edited 8 hours ago by qq20739111 0 Quote
humanus Posted 7 hours ago Posted 7 hours ago Yes, of course, but as you said yourself, there are issues with ethernet on mainline. So you can just use a dongle as a temporary workaround to get a stable (or any) connection. 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.