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.

X96 TVbox (S905x) - Cannot succesfully install to eMMC kernel 6.18 community image.

Featured Replies

I install the image from this page: https://armbian.com/boards/aml-s9xx-box.

Choose the version:

Debian 13 trixie Minimal (CLI) — current 6.18.60 361 MB

root@aml-s9xx-box:~# uname -a
Linux aml-s9xx-box 6.18.60-current-meson64 #1 SMP PREEMPT Fri Oct 30 12:06:41 UTC 2026 aarch64 GNU/Linux

I have successfully run with SDCard, but cannot install it to eMMC.

root@aml-s9xx-box:~# ./install-aml.sh
Start script create MBR and filesystem
/dev/mmcblk1
Start backup u-boot default
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.29 s, 3.3 MB/s
Start create MBR and partittion
Start restore u-boot
442+0 records in
442+0 records out
442 bytes copied, 0.0070075 s, 63.1 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.499351 s, 8.4 MB/s
Done
Start copy system for eMMC.
Formatting BOOT partition...mkfs.fat 4.2 (2021-01-31)
done.
Copying BOOT...done.
Edit init config...done.
sed: can't read /ddbr/install/boot.ini: No such file or directory
done.
Formatting ROOT partition...
/dev/mmcblk1p2 contains a ext4 file system labelled 'ROOT_EMMC'
        last mounted on /ddbr/install on Wed Nov  4 20:50:00 2026
e2fsck 1.47.2 (1-Jan-2025)
ROOT_EMMC: clean, 12/385024 files, 46947/1539328 blocks
done.
Copying ROOTFS.
Copy BIN
Create DEV
Copy ETC
Copy HOME
Copy LIB
Copy LIB64
tar: lib64: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Create MEDIA
Create MNT
Copy OPT
Create PROC
Copy ROOT
Create RUN
Copy SBIN
Copy SELINUX
Copy SRV
Create SYS
Create TMP
Copy USR
Copy VAR
Copy fstab
rm: cannot remove '/ddbr/install/usr/bin/ddbr': No such file or directory
*******************************************
Complete copy OS to eMMC
*******************************************

Even though it says Complete, but it cannot boot from eMMC, stuck in a loop. I notice it said "sed: can't read /ddbr/install/boot.ini: No such file or directory", which in this system, there is no boot.ini.

root@aml-s9xx-box:~# ls /
bin  boot  ddbr  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  selinux  srv  sys  tmp  usr  var
root@aml-s9xx-box:~# ls -la /ddbr
total 12
drwxrwxrwx  3 root root 4096 Nov  4 22:35 .
drwxr-xr-x 20 root root 4096 Nov  4 20:46 ..
drwxr-xr-x  2 root root 4096 Nov  4 22:35 install
root@aml-s9xx-box:~# ls -la /ddbr/install
total 8
drwxr-xr-x 2 root root 4096 Nov  4 22:35 .
drwxrwxrwx 3 root root 4096 Nov  4 22:35 ..
root@aml-s9xx-box:~# uname -a
Linux aml-s9xx-box 6.18.60-current-meson64 #1 SMP PREEMPT Fri Oct 30 12:06:41 UTC 2026 aarch64 GNU/Linux

I look up and see some suggest using armbian-install, but this image don't have that.

I tried to copy the armbian-install raw file from ophub github, but it failed at the checking for ophub release file step.

So how can I install it to eMMC?

Thank you for your help.

Edited by tyrys

  • Author
12 hours ago, SteeMan said:

Without logs from the boot, I can't quess at why this is failing. You will need to get and post logs from your failed boot.

I did take a picture of when it boot, please see the attached image.

More info: I also compile the new u-boot based on one of the comment on the other thread, in /boot/build-u-boot/readme.txt, I follow that with the s905x-s912.patch uboot 2020.07. Then I reflash the Android firmware using Burning Tool v2. Reflash the armbian img to the sdcard, using the patched uboot. It booted using sdcard. After that I run install-aml.sh, it said "Completed", then I poweroff, remove the sdcard, plug it back on. And this screen show up, its stuck there.

And this is the log using armbian-debug (armbianmonitor -u), when I successfully boot with sdcard : https://paste.armbian.com/ojuzarutuh

Thanks SteeMan

boot_log_armbian.jpg

Edited by tyrys

  • Author
On 11/8/2026 at 1:32 AM, SteeMan said:

Without logs from the boot, I can't quess at why this is failing. You will need to get and post logs from your failed boot.

@SteeMan This is the boot log I got from uart

bootlog

GXL:BL1:9ac50e:a1974b;FEAT:ADFC318C;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 163558

BL2 Built : 19:41:49, Jun 20 2016.
gxl ge299011 - xiaobo.gu@droid05

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 2
CPU clk: 1200MHz
DDR3 chl: Rank0+1 @ 912MHz - FAIL
DDR3 chl: Rank0 @ 912MHz - PASS
DQS-corr enabled
DDR scramble enabled
Rank0: 1024MB(auto)-2T-13
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x0000d600
Load bl31 from eMMC, src: 0x00020200, des: 0x10100000, size: 0x00014400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000a7e00
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:39:44, Jun 16 2016
aml log : bl31 normal boot !
[Image: gxl_v1.1.3137-2517a7a 2016-06-24 11:31:11 xing.xu@droid05]
OPS=0x82
46 e4 57 f1 8a ee 6 5d 77 86 84 cf [0.505223 Inits done]
secure task start!
high task start!
low task start!
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2015.01-g8d898ad-dirty (Aug 09 2016 - 13:58:51)

DRAM:  1 GiB
Relocation Offset is: 36ecb000
register usb cfg[0][1] = 0000000037f5f990
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
vpp: vpp_init
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC:   aml_priv->desc_buf = 0x0000000033ecb6b0
aml_priv->desc_buf = 0x0000000033ecd9d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: gxl platform: p212 variant: 1g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 2g
      Find match dtb: 0
start dts,buffer=0000000033ed0270,dt_addr=0000000033ed0a70
parts: 11
00:      logo   0000000002000000 1
01:  recovery   0000000002000000 1
02:       rsv   0000000000800000 1
03:       tee   0000000000800000 1
04:     crypt   0000000002000000 1
05:      misc   0000000002000000 1
06: instaboot   0000000020000000 1
07:      boot   0000000002000000 1
08:    system   0000000060000000 1
09:     cache   0000000020000000 2
10:      data   ffffffffffffffff 4
get_dtb_struct: Get emmc dtb OK!
overide_emmc_partition_table: overide cache
[mmc_get_partition_table] skip partition cache.
Partition table get from SPL is :
        name                        offset              size              flag
===================================================================================
   0: bootloader                         0            400000                  0
   1: reserved                     2400000           4000000                  0
   2: cache                        6c00000          20000000                  2
   3: env                         27400000            800000                  0
   4: logo                        28400000           2000000                  1
   5: recovery                    2ac00000           2000000                  1
   6: rsv                         2d400000            800000                  1
   7: tee                         2e400000            800000                  1
   8: crypt                       2f400000           2000000                  1
   9: misc                        31c00000           2000000                  1
  10: instaboot                   34400000          20000000                  1
  11: boot                        54c00000           2000000                  1
  12: system                      57400000          60000000                  1
  13: data                        b7c00000         11a400000                  4
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000
In:    serial
Out:   serial
Err:   serial
reboot_mode=cold_boot
hpd_state=0
cvbs performance type = 6, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: gxl platform: p212 variant: 1g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 2g
      Find match dtb: 0
Net:   dwmac.c9410000
wipe_data=successful
wipe_cache=successful
upgrade_step=2
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=3840, height=2160
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
gpio: pin GPIOAO_2 (gpio 102) value is 1
get_cpu_id flag_12bit=1
saradc - saradc sub-system

Usage:
saradc saradc open <channel>            - open a SARADC channel
saradc close    - close the SARADC
saradc getval   - get the value in current channel
saradc get_in_range <min> <max> - return 0 if current value in the range of current channel

InUsbBurn
noSof
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
reading emmc_autoscript
174 bytes read in 3 ms (56.6 KiB/s)
## Executing script at 01020000
## Error: "bootfromsd" not defined
reading u-boot.emmc
641479 bytes read in 13 ms (47.1 MiB/s)
## Starting application at 0x01000000 ...

Edited by tyrys

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.