Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Repurpose a TV Box Allwinner H313 (similar to H96 Max) to boot secure image

Featured Replies

Activity:

1) 159-add-x96-q-lpddr3-v1.3-defconfig.patch has been tested both ways: with original parameters and with suggested (above) parameters;

2) The box boots but I am unable to set  IP addresses, even in wlan0, via Armbian-config (errors reported);

3) So far the best result is from  ~/build/patch/u-boot/u-boot-sunxi/board_x96q/arm64-sun50i-h313-add-x96q-lpddr3-defconfig.patch with the appropriate +CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y

    and secure-boot.patch. Armbian-config works as designed and IP addresses can be set.

 

Ideas: 

describes a similar problem (eth0) 

Suggested action plan: https://github.com/armbian/build/pull/6617/files       [Fix issue #6528 opi-zero2w, ethernet PHY not powered #6617]

 

Problem: I don't know how to implement it and/or if that proposed corrections will tamper with ~/build/patch/u-boot/u-boot-sunxi/board_x96q/sunsi-add-h616-internal-eth-phy-support.patch

 

As usual, suggestions will be welcome 🙂

Edited by Sergioclr
link

@Sergioclr 

You don't need patches to edit the kernel config:
config/kernel/linux-sunxi64-legacy.config

 

sicxnull already has this patch, but with a different name:
drv-pwm-sun50i-h616-enhance-pwm.patch
drivers-pwm-Add-pwm-sunxi-enhance-driver-for-h616.patch

 

To add Zero2W Ethernet settings to your DTS, you can create your own patch using git commands:

 

Run ./compile.sh

 

Press Ctrl+C in the middle of the kernel compilation.

 

Navigate to the directory:
cd cache/sources/linux-kernel-worktree/6.6*/

 

Use the following commands:
sudo git status
sudo git add .
sudo git commit -m "dummypatch"


sudo pico arch/arm64/boot/dts/allwinner/sun50i-h313-x96q-lpddr3.dts
sudo git add .
sudo git commit -m "Fix Ethernet"
sudo git format-patch -1   

 

1 for the first commit (0001-Fix-Ethernet.patch)...  2 for the first and second commit (0002-dummypatch.patch) )

 

The first "add" and "commit" cleans the kernel of previous patches, leaving you with a clean, patched kernel.

 

The format-patch command will create a patch in the root directory of the kernel. Copy it to your patch directory.

 

For original Armbian kernel patches, you must add them to series.armbian and series.conf.

Edited by Nick A

Help needed (previous update):

 

What should be edited is this file?  sudo pico arch/arm64/boot/dts/allwinner/sun50i-h313-x96q-lpddr3.dts

 

Thanks in advance.

Newbie question: how can I do that (boot logs)? 🤔

Good evening.

 

Armbian for H313 X96-Q LPDDR3 TV-Box

sicXnull/armbian-build)

git clone --depth=1 --branch=main  https://github.com/armbian/build 

"+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" in ~/build/patch/u-boot/u-boot-sunxi/board_x96q/arm64-sun1-h313-addr-x96q-lpddr3-defconfig.patch , adding secure-boot.patch and

    ~/build/patch/u-boot/u-boot-sunxi/board_x96q/sunsi-add-h616-internal-eth-phy-support.patch left untouched  

 

Android-boot.txt  (normal boot sequence / eth & wlan=OK)

Armbian_image_reboot_dmesg.txt

Image reboot (sudo shutdown -r now) + dmesg log (wlan=OK, eth=not OK)

 

Thanks in advance.

Android-boot.txt Armbian_image_reboot_dmesg.txt

No, unfortunately, I don't have.

I will run your build and, possibly, have all required data by tomorrow morning.

 

Thanks for your prompt answer,

Good morning.

 

git clone https://github.com/NickAlilovic/build.git --branch v20251014

~/build/patch-u-boot/u-boot-aw/150-1dd-x96q-lpddr3-defconfig.patch     "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y"         ~/build/patch-u-boot/u-boot-aw/secure-boot.patch

./compile.sh choice = x96q-lpddr3

 

2026-04-26_0851h.txt boot sequence, shutdown -r and dmesg

 

Thanks in advance.

 

2026-04-26_0851h.txt

Update:

sicXnull/armbian-build (H96q) +  "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" and  "secure-boot.patch" solved the problem. 

Now, the ethernet interface is fully functional.

 

Thank you Nick & sicXnull.

Hi, I am assuming that you have a standard Q1 TV Box (Allwinner H313 based).

 

1) Download Armbian Imager here;

2) Install the version for your operating system;

3) After installing, choose "Manufacturer=ALLWINNER", Board="X96Q TV BOX", Operating system="minimal Trixie current" and Storage ( I suggest a good quality Class 10 SD card);

4) After writing the image, insert the SD card into the available SD slot;

5) Insert a wooden toothpick or a Q-tip  into AV/Reset input;

6) Click (kindly) and hold the toothpick and connect the TV Box power supply to the power entry;

7) Release the toothpick after 8-10 seconds.  if the HDMI connector is plugged you should see the Armbian initial boot process

 

Note: some TV Boxes don't need  items 5, 6 and 7.

 

I hope it helps.

 

no, it have secureboot, emcp 1,5gb instead 1 or 2gb ram, i tried to boot x96q lpddr3 + secure patch + orangepi zero3 1,5gb patch  but at uboot it allway say 2gb ram 0g  effective. uboot spl load 1,5gb ram correctly

Hi, I can suggest a general procedure but it is not guaranteed to work for every TV-Box.

 

1) Be sure of what TV-box you have (Allwinner, Ambian or Rockship);

2) download git clone --depth=1 --branch=main  https://github.com/armbian/build 

3) open downloaded git and search for /build/patch/u-boot

4) select the directory that corresponds to your TV-box. For example: /build/patch/u-boot/u-boot-sunxi

5) edit arm64-sun50i-H313-add-lpddr3-deconfig.patch,  if you have a secure image: add  +CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y and increment the counter to 32 (@@ -0,0 +1,32 @@) and  "secure-boot.patch" to

    /build/patch/u-boot/u-boot-sunxi. See procedure here  https://forum.armbian.com/profile/210518-nick-a/

6) ./compile.sh  observing Nick's instructions.

Nick's instructions:

You need to add this line to the bottom. "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" and change "@@ -0,0 +1,31 @@" to @@ -0,0 +1,32 @@. 

 

./compile.sh

choose "Do not change kernel configuration"

choose "Show CSC/WIP/EOS/TVB"

choose "I understand and agree"

choose "X98H"

choose "edge"

rest is up to you.

 

Your image should be in output/images directory.

Edited by Sergioclr
clarification

Hi, my knowledge about Armbian is limited. For such a specific configuration/compilation I suggest that you open a new topic

under "Allwinner sunxi".

 

Best regards.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.