Jump to content

Recommended Posts

Posted

My TV Box (x96q) has a secure image (Android) installed.

 

Because of this, I cannot install any Armbian image.

 

My question: is it possible to compile an Armbian image with the inclusion of a secure-boot.patch ?

Posted (edited)

Hi,

+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y    @@ -0,0 +1,32 @@  was added to /build/userpatches/u-boot/v2026.07-sunxi64/0001-add-x96q-lpddr3-dt-and-defconfig.patch

secure-boot.patch (created as per examples in this forum) was added to /build/userpatches/u-boot/v2026.07-sunxi64

 

./compile.sh build BOARD=x96q BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie

note:: compilation defaults to v2026.07-sunxi64

 

 Armbian-unofficial_26.08.0-trunk_X96q_trixie_current_6.18.44_minimal.img generated without errors

 

output from less -RS output/logs/log-build-d35da0cb-8215-486c-b8d4-515a190d281e.log.ans

Screenshot_2026-08-12_17-09-14.thumb.png.8220f48e75866ca16314e3cde22b5288.png

 

Generated image (booted by SD card) still not capable of bypassing the TV Box secure lock. 

 

Any suggestions?

 

Edited by ironclad
clarification
Posted

Yes, I can.

 

I will connect the TTL-to-USB device and record the TV Box boot sequence.

 

Note: just for the sake of the challenge, I tested the Armbian Framework 20241125 (NickAlilovic released this Nov 25, 2024)

and it compiles OK (bookworm, X96Q plus secure-boot.patch and "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" )

The TV Box boots OK,. ethernet adapter is recognized and, apparently, everything is fine.

Caveat: no Armbian-config and ethernet adapter is lost if command apt upgrade is issued.  

 

 

Posted

Conditions:

Armbian Framework=current

TV Box: X96Q 

Compile: full run (no options)/Trixie/ v2026.07-sunxi64 plus conditions described early

Selection: manually through app (X96Q/Trixie/Server image minimal)

 

Without SD card

[01.199]CPU:   Allwinner Family
[01.202]Model: sun50iw9
I2C:   ready
[01.207]Relocation Offset is: 75ebe000
[01.252]secure enable bit: 1
[01.255]pmu_axp152_probe pmic_bus_read fail
[01.259]PMU: AXP1530
[01.264]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[01.272]drv_disp_init
[01.302]__clk_enable: clk is null.
[01.308]drv_disp_init finish
[01.310]gic: sec monitor mode
[01.339]flash init start
[01.341]workmode = 0,storage type = 2
[01.344]MMC:     2
[01.346][mmc]: mmc driver ver uboot2018:2021-07-19 14:09:00
[01.352][mmc]: get sdc_type fail and use default host:tm4.
[01.363][mmc]: SUNXI SDMMC Controller Version:0x40502
[01.480][mmc]: Best spd md: 3-HS200/SDR104, freq: 4-150000000, Bus width: 8
[01.486]sunxi flash init ok
[fd650] show_string:  8888  8
[01.496]Loading Environment from SUNXI_FLASH... OK
[01.506]Item0 (Map) magic is bad
[01.509]the secure storage item0 copy0 magic is bad
[01.513]Item0 (Map) magic is bad
[01.516]the secure storage item0 copy1 magic is bad
[01.521]Item0 (Map) magic is bad
secure storage read hdcpkey fail
[01.527]secure storage read hdcpkey fail with:-1
secure storage read widevine fail
[01.534]secure storage read widevine fail with:-1
[01.539]probe MP tools from boot
delay time 0
weak:otg_phy_config
[01.553]usb init ok
[02.056]usb overtime
[02.061]usb burn from boot
delay time 0
weak:otg_phy_config
[02.075]usb prepare ok
[02.878]overtime
[02.882]do_burn_from_boot usb : no usb exist
[02.886]boot_gui_init:start
** Unable to read file disp_rsl.fex **
tcon_de_attach:de=0,tcon=2[03.171]boot_gui_init:finish
[03.174]bmp_name=bootlogo.bmp
2764854 bytes read in 22 ms (119.9 MiB/s)
[03.219][mmc]: delete mmc-hs400-1_8v from dtb
[03.227]update dts
** Unrecognized filesystem type **
[03.239]load file(ULI/factory/rootwait init.txt) error.
** Unrecognized filesystem type **
[03.254]load file(ULI/factory/snum.txt) error.
** Unrecognized filesystem type **
[03.269]load file(ULI/factory/mac.txt) error.
** Unrecognized filesystem type **
[03.284]load file(ULI/factory/wifi_mac.txt) error.
** Unrecognized filesystem type **
[03.299]load file(ULI/factory/bt_mac.txt) error.
** Unrecognized filesystem type **
[03.314]load file(ULI/factory/selinux.txt) error.
** Unrecognized filesystem type **
[03.329]load file(ULI/factory/specialstr.txt) error.
[03.342]update part info
[03.440]update bootcmd
[03.442]No ethernet found.
Hit any key to stop autoboot:  0
[03.694]not supported key
[03.697]actual n size:1000, e:10001
[03.700]exptect n size:800, e:10001
show hash of file
f0 2c 0a e4 44 f7 cc 7f 39 ca ff 4b 50 55 36 a0
c8 d1 41 56 ad 8c 60 26 ef d4 d9 19 bc a7 ef 7a

image vbmeta hash valid
CACHE: Misaligned operation at range [44ffffe0, 462a6800]
[03.873]Starting kernel ...

[03.876][mmc]: mmc exit start
[04.007][mmc]: mmc 2 exit ok
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.170 (chenzanchao@ubuntu11) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #280 SMP PREEMPT Tue Jun 17 17:24:17 CST 2025
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] bootconsole [earlycon0] enabled
console:/ $ Gatekeeper_TA_CreateEntryPoint

 

With SD card (one line only)

U-Boot SPL 2026.07_armbian-2026.07-Sece3-P0207-H8076-V4771-B5da4-R448a (Aug 14 2026 - 09:04:47 -0300)
DRAM:

 

Posted

Any ideas?

 

Note: is there a repository of previous Armbian Frameworks?

May be I can try with an older version.

 

Herzlichen Dank.

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