Jump to content

Recommended Posts

Posted (edited)

 Hi, @Nick A .I used the repository at https://github.com/armbian/build/to compile (./compile.sh build BOARD=x96q BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=bookworm) the image. Except for WiFi and Bluetooth not working properly, everything else runs fine on the SD card. When using ddbr to back up the Android system, it freezes after a few seconds. Using armbian-install also causes it to freeze, and afterward, I can't boot into the Android system anymore. Below is my device's dts.

dtb dtb.0 dtb.0.dts dtb.0.dts.yaml

Edited by ARx8
Posted
14 hours ago, ARx8 said:

Hi, @Nick A .I used the repository at https://github.com/armbian/build/to compile (./compile.sh build BOARD=x96q BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=bookworm) the image. Except for WiFi and Bluetooth not working properly, everything else runs fine on the SD card. When using ddbr to back up the Android system, it freezes after a few seconds. Using armbian-install also causes it to freeze, and afterward, I can't boot into the Android system anymore. Below is my device's dts.
你好,@Nick A。我使用了 https://github.com/armbian/build 的仓库来编译(./compile.sh build BOARD=x96q BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=bookworm)镜像。除了 WiFi 和蓝牙无法正常工作外,其他功能在 SD 卡上运行一切正常。使用 ddbr 备份 Android 系统时,几秒后会卡住。使用 armbian-install 也会导致卡住,之后就无法再进入 Android 系统了。以下是我的设备的 dts 文件。

dtb dtb.0 dtb.0.dts dtb.0.dts.yaml

Edited 3 hours ago by ARx8  编辑于 ARx8

@Nick A Thank you

Posted (edited)

@ARx8 can you take a picture of your board so we can figure out if your wifi chip has mainline kernel drivers. 
 

You can find the gpio #’s using your dts.0.dts file. 

The wifi might already be detected but you are missing firmware. If you can post your dmesg.
 

 

Edited by Nick A
Posted (edited)

Hello, I have x96q2 H313 2/16 board v4.0 ram k4b2g0446c hyh9 and apx305. I tried all img, and no one worked on my TV box. Mb u can help me, how I can build img for my board? I need sd card version armbian or arch Linux (not emmc installation)

IMG_20250811_131836.thumb.jpg.81cc67b6df15e1ef177953aadf11743d.jpgIMG_20250811_035609.thumb.jpg.5879e44bfc0b9d33a49988062f5c10e5.jpg

Edited by jdie
Posted (edited)
8 hours ago, Nick A said:

@ARx8 can you take a picture of your board so we can figure out if your wifi chip has mainline kernel drivers. 
 

You can find the gpio #’s using your dts.0.dts file. 

The wifi might already be detected but you are missing firmware. If you can post your dmesg.

@rafaeldavid My device appears to have the same problem as yours. What was your fix?
@Nick AThanks!  The chips on the motherboard include H313, AXP313A, KMQN10006B-B318, and EA6521QF (Wi-Fi + BT chip).
I have the Linux driver package for this Wi-Fi chip. this Wi-Fi chip (EA6521QF) likely isn't supported by mainline Linux kernel.I’ll figure out how to integrate it later when I need to use Wi-Fi.

Using Wi-Fi is not the most important thing; the key is that I want to install it into the eMMC instead of booting from the SD card. May I ask what modifications I need to make to the original Armbian project code based on the dts I provided to ensure stable read/write operations on the eMMC without crashes?
Moreover, I've already tried using a different TF card. These same cards work fine when installing to eMMC on my other X96Q (DDR v5.1), but they keep freezing up on this device.。

IMG_20250806_1.jpg

IMG_20250806_2.jpg

IMG_20250807_3.jpg

dmesg.txt

Edited by ARx8
add dmesg
Posted

Unfortunately that patch has not made a significant difference in how far it boots. It does detects 1.5gb in startup now but then detect 2gb later once uboot dts loads and then halts as usual:

Spoiler

U-Boot SPL 2025.01-armbian-2025.01-S6d41-Pc657-H8869-V004f-Bb703-R448a-dirty (Aug 12 2025 - 15:25:01 +0000)
testing 32-bit width, rank = 2
DRAM:Store cfg
DRAM:1st writing pattern
DRAM:detecting column address bits
detected 10 columns
DRAM:restore cfg
DRAM:reconfigure for all active rows
DRAM:store cfg
DRAM:2nd writing pattern
DRAM:detecting row address bits
detected 15 rows
DRAM:restoring cfg
DRAM:end of auto detect dram size
DRAM base address is defined as 0x40000000
DRAM has 15 b/raw, 10 b/col, 4 B/width, 2 #rank and 8 #bank
DRAM top address must be less than 0x80000000
DRAM top address must be less than 0x60000000
MBUS port 0 cfg0 0100000d cfg1 00640080
MBUS port 1 cfg0 06000009 cfg1 01000578
MBUS port 2 cfg0 0200000d cfg1 00600100
MBUS port 3 cfg0 01000009 cfg1 00500064
MBUS port 4 cfg0 20000209 cfg1 1388157c
MBUS port 5 cfg0 00640209 cfg1 00200040
MBUS port 6 cfg0 00640209 cfg1 00200040
MBUS port 8 cfg0 01000009 cfg1 00400080
MBUS port 11 cfg0 01000009 cfg1 00640080
MBUS port 14 cfg0 04000009 cfg1 00400100
MBUS port 16 cfg0 2000060d cfg1 09600af0
MBUS port 21 cfg0 0800060d cfg1 02000300
MBUS port 22 cfg0 01000009 cfg1 00640080
MBUS port 25 cfg0 0064000f cfg1 00200040
MBUS port 26 cfg0 20000209 cfg1 1388157c
MBUS port 37 cfg0 01000009 cfg1 00400080
MBUS port 38 cfg0 00640209 cfg1 00200040
MBUS port 39 cfg0 20000209 cfg1 1388157c
MBUS port 40 cfg0 00640209 cfg1 00200040
DRAM: 1536 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.10.14(debug):armbian
NOTICE:  BL31: Built : 20:20:28, Aug  7 2025
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a0b2520, model: hechuang,x96-q LPDDR3
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP305 on RSB
ERROR:   RSB: set run-time address: 0x10003
INFO:    Could not init RSB: -65539
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for erratum 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for erratum 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
INFO:    Changed devicetree.
ns16550_serial serial@5000000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19


U-Boot 2025.01-armbian-2025.01-S6d41-Pc657-H8869-V004f-Bb703-R448a-dirty (Aug 12 2025 - 15:25:01 +0000) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: hechuang,x96-q LPDDR3
DRAM:  2 GiB (effective 0 Bytes)

 

Posted (edited)

Oh sorry I forgot… you can add the secure boot patch but compiling minimyth2 might take awhile.

 

or you can copy over minimyth2 latest uboot patches. 

https://github.com/warpme/minimyth2/tree/master/script/bootloaders/u-boot-aw/files

 

these patches are for uboot version 2025.04. So you need to change the version number here.

https://github.com/NickAlilovic/build/blob/v20250306/config/sources/families/include/sunxi64_common.inc

declare -g BOOTBRANCH="${BOOTBRANCH:-"tag:v2025.01"}"

Edited by Nick A
Posted

I've been doing some research/reading and I see that this was a problem before with a somewhat similar box with 1.5gb ram: 

I will try copying the patches over, thank you for all your help so far!

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines