ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.45k stars 1.74k forks source link

Question: How to enable Ethernet on X96Max+ ? #380

Closed CarlKuhligk closed 2 years ago

CarlKuhligk commented 2 years ago

Hello, I really appreciate your work. I wanted to install Armbian on my X96Max+. Everything worked fine except the ethernet. I saw some pictures in question issues, my board don't have a IC. I'm not familiar with the s905x, I guess it will have a build in controller.

20220617-DSC03568 20220617-DSC03570

Waht i did:

  1. download image Armbian_22.08.0_Aml_s905x3_jammy_5.10.123_server_2022.06.17.img.gz based on this table: https://github.com/ophub/amlogic-s9xxx-armbian

used sd card: Samsung 64GB EVO Plus U3 flash tool: balenaEtcher-Portable-1.7.9 (running as administrator)

  1. burning image Armbian_22.08.0_Aml_s905x3_jammy_5.10.123_server_2022.06.17.img

  2. reinsert sd card checking boot files

    • /boot/uEnv.txt
      LINUX=/zImage
      INITRD=/uInitrd
      FDT=/dtb/amlogic/meson-sm1-x96-max-plus-100m.dtb
      APPEND=root=UUID=f140e063-15db-4e45-9233-d320cf2eeddd rootflags=data=writeback rw rootfstype=ext4 console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
    • /boot/extlinux/extlinux.conf.bak (no renaming)
      label Armbian
          kernel /zImage
          initrd /uInitrd
          fdt /dtb/amlogic/meson-sm1-x96-max-plus-100m.dtb
          append root=UUID=f140e063-15db-4e45-9233-d320cf2eeddd rootflags=data=writeback rw rootfstype=ext4 console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 loglevel=1 voutmode=hdmi disablehpd=false overscan=100 sdrmode=auto
    • armbian_first_run.txt.template - renamed to - armbian_first_run.txt
  3. enabled multiboot with toothpick method

  4. inserted sd card

  5. inserted power connector boot log file - first boot from sd card.txt

  6. reboot

  7. armbian-install

    model 501
    filesystem ext4

    install log - reboot + install armbian from sd card.txt

  8. unplugged power

  9. removed sd card

  10. inserted power connector start from emmc - booting from emmc.txt

Errors that correlate to ethernet

[   10.669313] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma
[   10.673357] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[   10.682335] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed
[   12.240962] systemd[1]: Finished Armbian memory supported logging.
[   12.254922] systemd[1]: Starting Journal Service...
[   12.364734] systemd[1]: Started Journal Service.
[   12.391336] systemd-journald[933]: Received client request to flush runtime journal.
[   15.746064] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [Generic PHY] (irq=POLL)
[   15.962639] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma
[   15.965750] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[   15.977177] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed
[   16.402745] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [Generic PHY] (irq=POLL)
[   16.619227] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-docs/amlogic_model_database.md Says ANDROID_UBOOT hk1box-bootloader.img, at least some information, but i have no idea waht to do.

I read a lot of threads about hk1box-bootloader.img but i couldn't found helpful information.

Tried this from https://forum.armbian.com/topic/15376-methods-to-fix-x96-max-pluss905x3-gigabit-ethernet-problem/

Step 1:  upload three dtbs into /boot/dtb/amlogic :
    meson-sm1-x96-max-plus-100m.dtb
    meson-sm1-x96-max-plus.dtb
    meson-sm1-hk1box-vontar-x3.dtb  (Similar to meson-sm1-x96-max-plus.dtb, only the modal name is changed)

Step 2:  modify /boot/uEnv.txt, replace dtb with meson-sm1-x96-max-plus-100m.dtb,  restart the Armbian system

Step 3:  upload hk1box-bootloader.img to /tmp

Step 4:  Run these commands under the shell:

dd if=/tmp/hk1box-bootloader.img of=/dev/mmcblk2 bs=1 count=442
dd if=/tmp/hk1box-bootloader.img of=/dev/mmcblk2 bs=512 skip=1 seek=1
sync
reboot

The result of these steps is that the device don't boot.

Im not sure if I found the "right" hk1box-bootloader.img because it's not available.

What did I forget to get ethernet working?

ophub commented 2 years ago

your motherboard soc is s905x3, not s905x.

The firmware has already brought meson-sm1-x96-max-plus.dtb, you can choose 501 or 503 when installing with armbian-install. If it is used in usb, manually modify the dtb in /boot/uEnv.txt to meson-sm1-x96-max-plus.dtb and restart.

The above operations such as uploading and replacing dtb are incorrect. You do not need to replace dtb, nor do you need dd operations. Your methods of operation are wrong. Please refer to the documentation in my repository, the usage of other firmware is not universal.

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-docs/amlogic_model_database.md

https://github.com/ophub/amlogic-s9xxx-armbian/blob/66b57255ae407d68a69067795cc99825e5802400/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L55

You if the test 501 option is not available, try the 503, a newly discovered variant that uses the IP1001M chip: meson-sm1-x96-max-plus-ip1001m.dtb https://github.com/ophub/amlogic-s9xxx-armbian/blob/66b57255ae407d68a69067795cc99825e5802400/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L57

https://github.com/ophub/amlogic-s9xxx-armbian#armbian-firmware-instructions

CarlKuhligk commented 2 years ago

Thanks for the quick reply!

503x was a typing mistake, my fault.

On the picture you can see that my board (PCB Version: Q5X3_141V4.1 20112) dont have an ethernet controller. 20220617-DSC03568

I will reset the hole device with the original firmware. Then i will try out the documented installation procedure again.

ophub commented 2 years ago

@CarlKuhligk

meson-g12a-x96-max-rmii.dtb

meson-sm1-x96-air.dtb

Is yours a 100M NIC? Modify the dtb name in /boot/uEnv.txt to the above, and test them separately. Feedback your test results.

CarlKuhligk commented 2 years ago

Testing results

Firmware X96Max_Plus_Q1_20201209-1630 and X96Max_Plus_100_20201125-1731 works fine, only problems with Bluetooth and WIFI in the Androidsystem, Ethernet works. All other Firmware Version don't work at all.

I tested all x96 dtb-Files, only your suggested meson-sm1-x96-air.dtb worked if i boot from sd-card. Ethernet dont work if install it to emmc and run it.

Booting

U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus

Model: AMedia X96 Max+
SoC:   Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2)
DRAM:  3.8 GiB
MMC:   sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@ff3f0000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

running from sd-card

ip a

4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 9e:61:dd:65:17:aa brd ff:ff:ff:ff:ff:ff permaddr 5a:a7:11:67:4d:4f
    inet 192.168.212.86/24 brd 192.168.212.255 scope global dynamic eth0
       valid_lft 863981sec preferred_lft 863981sec
    inet 192.168.212.87/24 brd 192.168.212.255 scope global secondary dynamic noprefixroute eth0
       valid_lft 863985sec preferred_lft 863985sec
    inet6 fe80::9c61:ddff:fe65:17aa/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

ifdown eth0

/etc/network/if-down.d/resolved: 12: mystatedir: not found
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/9e:61:dd:65:17:aa
Sending on   LPF/eth0/9e:61:dd:65:17:aa
Sending on   Socket/fallback
DHCPRELEASE of 192.168.212.86 on eth0 to 192.168.212.1 port 67 (xid=0x14028e72)
[  113.396864] meson8b-dwmac ff3f0000.ethernet eth0: Link is Down

ifup eth0

Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[  145.421625] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.1:08] driver [Meson G12A Internal PHY] (irq=37)
[  145.437608] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found
[  145.442018] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
[  145.448761] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rmii link mode
Listening on LPF/eth0/9e:61:dd:65:17:aa
Sending on   LPF/eth0/9e:61:dd:65:17:aa
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x1db91504)
[  146.908451] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 (xid=0x1db91504)
DHCPOFFER of 192.168.212.86 from 192.168.212.1
DHCPREQUEST for 192.168.212.86 on eth0 to 255.255.255.255 port 67 (xid=0x415b91d)
DHCPACK of 192.168.212.86 from 192.168.212.1 (xid=0x1db91504)
bound to 192.168.212.86 -- renewal in 346217 seconds.
/etc/network/if-up.d/resolved: 12: mystatedir: not found

after installing armbian to EMMC:

[   11.477476] systemd[1]: Starting Journal Service...
[   11.599434] systemd[1]: Started Journal Service.
[   11.650017] systemd-journald[878]: Received client request to flush runtime journal.
[   14.596784] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   14.608818] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   14.614756] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   14.910087] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   14.922217] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   14.928204] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   15.026759] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   15.039086] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   15.044984] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   15.150099] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   15.162547] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   15.168424] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   15.256796] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   15.269474] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   15.275259] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

I'm not an expert with all of these SoC´s, how could I identify my board as meson-sm1-x96-air ? IMG_20220618_110311

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/5dc3e2ba6a9f8744e1e62cd7d67cd9608f5a530e/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L70

install to emmc opts: 516

CarlKuhligk commented 2 years ago

The installation to emmc must change stomting fundametely. If i boot from sd card again ethernet dont work anymore. After flashing the original image again ethernet works if i boot from sd card. Installing option 516 causes the exact same behavior.

root@armbian:~# armbian-install
[ STEPS ] Start install armbian to emmc...
[ STEPS ] Start initializing the environment...
[ INFO ] DEV_EMMC: [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          DTB
--------------------------------------------------------------------------------------
101   s905d      Phicomm-N1                     meson-gxl-s905d-phicomm-n1.dtb
102   s905d      Phicomm-N1-(DMA-thresh)        meson-gxl-s905d-phicomm-n1-thresh.dtb
103   s905x      HG680P-&-TBee                  meson-gxl-s905x-p212.dtb
104   s905w      X96-Mini-&-TX3-Mini            meson-gxl-s905w-tx3-mini.dtb
105   s905d      MECOOL-KI-Pro                  meson-gxl-s905d-mecool-ki-pro.dtb
106   s905x      T95                            meson-gxl-s905x-p212.dtb
107   s905x      B860H                          meson-gxl-s905x-b860h.dtb
201   s912       Octopus-Planet                 meson-gxm-octopus-planet.dtb
202   s912       Octopus-Planet-(FAKE)          meson-gxm-octopus-planet.dtb
203   s912       H96-Pro-Plus                   meson-gxm-octopus-planet.dtb
204   s912       Tanix-TX92                     meson-gxm-octopus-planet.dtb
205   s912       VORKE-Z6-Plus                  meson-gxm-octopus-planet.dtb
206   s912       MECOOL-M8S-Pro-L               meson-gxm-q201.dtb
207   s912       T95Z-Plus                      meson-gxm-t95z-plus.dtb
208   s912       TX9-Pro                        meson-gxm-tx9-pro.dtb
209   s912       Nexbox-A1-&-A95X               meson-gxm-nexbox-a1.dtb
301   s905x2     X96-Max-4GB                    meson-g12a-x96-max.dtb
302   s905x2     X96-Max-2GB                    meson-g12a-x96-max-rmii.dtb
303   s905x2     MECOOL-KM3-4G                  meson-g12a-sei510.dtb
304   s905l3a    E900V22C-D                     meson-g12a-s905l3a-e900v22c.dtb
401   s922x      Beelink-GT-King                meson-g12b-gtking.dtb
402   s922x      Beelink-GT-King-Pro            meson-g12b-gtking-pro.dtb
403   s922x      Beelink-GT-King-Pro-H          meson-g12b-gtking-pro-h.dtb
404   s922x      Beelink-GT-King-Pro-Rev_A      meson-g12b-gtking-pro.dtb
405   s922x      Hardkernel-ODroid-N2           meson-g12b-odroid-n2.dtb
406   s922x      UGOOS-AM6-Plus                 meson-g12b-ugoos-am6.dtb
407   a311d      Khadas-VIM3                    meson-g12b-a311d-khadas-vim3.dtb
501   s905x3     X96-Max+                       meson-sm1-x96-max-plus.dtb
502   s905x3     X96-Max+-(OverClock)           meson-sm1-x96-max-plus-oc.dtb
503   s905x3     X96-Max+-(IP1001M-phy)         meson-sm1-x96-max-plus-ip1001m.dtb
504   s905x3     X96-Max+-Q2                    meson-sm1-x96-max-plus-q2.dtb
505   s905x3     HK1-Box                        meson-sm1-hk1box-vontar-x3.dtb
506   s905x3     HK1-Box-(OverClock)            meson-sm1-hk1box-vontar-x3-oc.dtb
507   s905x3     H96-Max-X3                     meson-sm1-h96-max-x3.dtb
508   s905x3     H96-Max-X3-(OverClock)         meson-sm1-h96-max-x3-oc.dtb
509   s905x3     Ugoos-X3                       meson-sm1-ugoos-x3.dtb
510   s905x3     Ugoos-X3-(OverClock)           meson-sm1-ugoos-x3-oc.dtb
511   s905x3     TX3-1Gb                        meson-sm1-tx3-qz.dtb
512   s905x3     TX3-1Gb-(OverClock)            meson-sm1-tx3-qz-oc.dtb
513   s905x3     TX3-100Mb                      meson-sm1-tx3-bz.dtb
514   s905x3     TX3-100Mb-(OverClock)          meson-sm1-tx3-bz-oc.dtb
515   s905x3     X96-Air-1Gb                    meson-sm1-x96-air-gbit.dtb
516   s905x3     X96-Air-100Mb                  meson-sm1-x96-air.dtb
517   s905x3     X96-Air-Q1000                  meson-sm1-x96-max-plus-q2.dtb
518   s905x3     A95XF3-Air-1Gb                 meson-sm1-a95xf3-air-gbit.dtb
519   s905x3     A95XF3-Air-100Mb               meson-sm1-a95xf3-air.dtb
0     Other      Customize                      Enter-custom-dtb-name
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 516
[ INFO ] Input Box ID: [ 516 ]
[ INFO ] FDTFILE: [ meson-sm1-x96-air.dtb ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-x96maxplus.bin ]
[ INFO ] K510: [ 1 ]
[ STEPS ] Start selecting file system type...
-----------------------------------------------
ID  TYPE
-----------------------------------------------
1   ext4
2   btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID: 2
[ INFO ] Input Type ID: [ 2 ]
[ INFO ] The type of file system: [ btrfs ]
[ STEPS ] Start creating eMMC partition...
[ INFO ] Start backup default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.249315 s, 16.8 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00220497 s, 232 kB/s
[ INFO ] Start create MBR and partittion.
[   98.507886]  mmcblk2:
[   98.644880]  mmcblk2: p1
[   98.828384]  mmcblk2: p1 p2
[ INFO ] Write Mainline bootloader: [ /usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin ]
444+0 records in
444+0 records out
444 bytes copied, 0.00432139 s, 103 kB/s
[   98.858077]  mmcblk2: p1 p2
2170+1 records in
2170+1 records out
1111408 bytes (1.1 MB, 1.1 MiB) copied, 0.102386 s, 10.9 MB/s
[ STEPS ] Start processing the bootfs partition...
[ INFO ] Formatting BOOTFS partition.
mkfs.fat 4.2 (2021-01-31)
[ INFO ] Start copy BOOTFS partition data.
[ INFO ] Generate the new uEnv.txt file.
[ INFO ] Copy [ u-boot-x96maxplus.bin ] to u-boot.emmc
[ STEPS ] Start processing the rootfs partition...
[ INFO ] Formatting ROOTFS partition.
btrfs-progs v5.16.2
See http://btrfs.wiki.kernel.org for more information.

Performing full device TRIM /dev/mmcblk2p2 (27.79GiB) ...
NOTE: several default settings have changed in version 5.15, please make sure
      this does not affect your deployments:
      - DUP for metadata (-m dup)
      - enabled no-holes (-O no-holes)
      - enabled free-space-tree (-R free-space-tree)

Label:              ROOTFS_EMMC
UUID:               77224756-7bb9-406e-a217-80dfa1425051
Node siz[  108.845509] BTRFS: device label ROOTFS_EMMC devid 1 transid 6 /dev/mmcblk2p2 scanned by mkfs.btrfs (3686)
e:          16384
Sector size:        4096
Filesystem size:    27.79GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         single            8.00MiB
  System:           single            4.00MiB
SSD detected:       yes
Zoned device:       no
Incompat features:  extref, skinny-metadata, no-holes
Runtime features:   free-space-tree
Checksum:           crc32c
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1    27.79GiB  /dev/mmcblk2p2

[  111.864590] BTRFS info (device mmcblk2p2): flagging fs with big metadata feature
[  111.866474] BTRFS info (device mmcblk2p2): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[  111.875276] BTRFS info (device mmcblk2p2): use zstd compression, level 6
[  111.881906] BTRFS info (device mmcblk2p2): using free space tree
[  111.887840] BTRFS info (device mmcblk2p2): has skinny extents
[  111.897714] BTRFS info (device mmcblk2p2): enabling ssd optimizations
[  111.900345] BTRFS info (device mmcblk2p2): checking UUID tree
[ INFO ] Start copy ROOTFS partition data.
[ INFO ] Copy the [ etc ] directory.
[ INFO ] Copy the [ home ] directory.
[ INFO ] Copy the [ lib64 ] directory.
[ INFO ] Copy the [ opt ] directory.
[ INFO ] Copy the [ root ] directory.
[ INFO ] Copy the [ selinux ] directory.
[ INFO ] Copy the [ srv ] directory.
[ INFO ] Copy the [ usr ] directory.
[ INFO ] Copy the [ var ] directory.
[ INFO ] Generate the new fstab file.
[ INFO ] Update the relevant parameters.
[ SUCCESS ] Successful installed, please unplug the USB, re-insert the power supply to start the armbian.

Ethernet-Error still the same


[   14.319416] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   14.332725] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   14.340821] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   14.609364] meson8b-dwmac ff3f0000.ethernet eth0: validation of rmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[   14.622838] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
CarlKuhligk commented 2 years ago

Discovered following:

Flash original firmware boot from sd card FDTFILE:meson-sm1-x96-air.dtb -> ethernet work well (rebooting 5 times, behavior don't change) install armbian to emmc option 516 booting from emmc -> ethernet dont work (rebooting 5 times, behavior don't change) boot from sd card FDTFILE:meson-sm1-x96-air.dtb again - ethernet dont work (rebooting 5 times, behavior don't change) installing option 518 or 519 (i know makes no sense, im just tryout and found something, maybe worth it?) booting from emmc - as expected don't boot at all, makes sense because 518,519 its made for different soc. BUT boot from sd card FDTFILE:meson-sm1-x96-air.dtb -> ethernet works again ! (rebooting 5 times, behavior don't change)

Why does it now work again? What has changed? The difference between option 516, 501-504 and 518,519 is the MAINLINE_UBOOT ignoring FDTFILE and ANDROID_UBOOT.

I can only guess, the MAINLINE_UBOOT gets removed while installing option 518. Can the x96maxplus-u-boot.bin.sd.bin file causes the issue?

ophub commented 2 years ago

# 1. Brush back to the original Android TV system, so that the bootloader can be restored

# 2. Re-flash the sd card

# 3. Add a line to /etc/amlogic_model_database.conf, numbered 700, as follows:
700:A95XF3 Air 1Gb:s905x3:meson-sm1-a95xf3-air-gbit.dtb:u-boot-x96maxplus.bin:NA:NA

# 4. Select 700 when installing

This should be fine, you can give feedback after testing.

CarlKuhligk commented 2 years ago

I tried your suggestion, but im running in to bootloader problems after installation. It seems to me that the bootloader forces sd-card boot?, if i hold the reset button, the android system starts.

Booting after installation without sd card.

Click to expand! ```` SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02 L0:00000000 L1:00000703 L2:00008067 L3:15000020 S1:00000000 B2:20282000 B1:a0f83180 TE: 392518 BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz Board ID = 1 Set cpu clk to 24M Set clk81 to 24M Use GP1_pll as DSU clk. DSU clk: 1200 Mhz CPU clk: 1200 MHz Set clk81 to 166.6M eMMC boot @ 0 sw8 s DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45 board id: 1 Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0 fw parse done Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0 Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0 PIEI prepare done fastboot data load 00000000 emmc switch 1 ok ddr saved addr:00016000 Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0 00000000 emmc switch 0 ok fastboot data verify verify result: 265 Cfg max: 5, cur: 1. Board id: 255. Force loop cfg DDR4 probe ddr clk to 912MHz Load ddrfw from eMMC, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : ERROR : Training has failed! 1D training failed Cfg max: 5, cur: 2. Board id: 255. Force loop cfg DDR3 probe ddr clk to 792MHz Load ddrfw from eMMC, src: 0x0002c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : End of read dq deskew training INFO : End of MPR read delay center optimization INFO : End of Write leveling coarse delay INFO : End of write delay center optimization INFO : End of read delay center optimization INFO : End of max read latency training INFO : Training has run successfully! 1D training succeed aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31 auto size-- 65535DDR cs0 size: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass 100bdlr_step_size ps== 407 result report boot times 0Enable ddr reg access 00000000 emmc switch 3 ok BL2: rpmb counter: 0x00019bae 00000000 emmc switch 0 ok Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0 Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000c8000, part: 0 bl2z: ptr: 05129330, size: 00001e40 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000 MVN_2=0x00000000 [Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz] OPS=0x10 ring efuse init 2b 0c 10 00 01 26 03 00 00 06 33 37 33 50 42 50 [0.017319 Inits done] secure task start! high task start! low task start! run into bl31 NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast U-Boot 2015.01 (Nov 25 2020 - 17:22:26) DRAM: 3.8 GiB Relocation Offset is: d6e5f000 spi_post_bind(spifc): req_seq = 0 register usb cfg[0][1] = 00000000d7f3f138 NAND: get_sys_clk_rate_mtd() 290, clock setting 200! NAND device id: 0 ff ff ff ff ff No NAND device found!!! nand init failed: -6 get_sys_clk_rate_mtd() 290, clock setting 200! NAND device id: 0 ff ff ff ff ff No NAND device found!!! nand init failed: -6 MMC: aml_priv->desc_buf = 0x00000000d3e4fa70 aml_priv->desc_buf = 0x00000000d3e51db0 SDIO Port B: 0, SDIO Port C: 1 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 400000 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 40000000 aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x162000 [mmc_startup] mmc refix success init_part() 282: PART_TYPE_DOS [mmc_init] mmc init success Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected Multi dtb tool version: v2 . Support 4 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 2g dtb 1 soc: g12a plat: u212 vari: 4g dtb 2 soc: sm1 plat: ac213 vari: 2g dtb 3 soc: sm1 plat: ac213 vari: 4g Find match dtb: 3 start dts,buffer=00000000d3e54620,dt_addr=00000000d3e54620 get_partition_from_dts() 91: ret 0 Amlogic multi-dtb tool Single dtb detected parts: 17 00: logo 0000000000800000 1 01: recovery 0000000001800000 1 02: misc 0000000000800000 1 03: dtbo 0000000000800000 1 04: cri_data 0000000000800000 2 05: param 0000000001000000 2 06: boot 0000000001000000 1 set has_boot_slot = 0 07: rsv 0000000001000000 1 08: metadata 0000000001000000 1 09: vbmeta 0000000000200000 1 10: tee 0000000002000000 1 11: vendor 0000000046000000 1 12: odm 0000000008000000 1 13: system 0000000050000000 1 14: product 0000000008000000 1 15: cache 0000000046000000 2 16: data ffffffffffffffff 4 init_part() 282: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!! crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!! crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!! mmc env offset: 0x4d400000 In: serial Out: serial Err: serial reboot_mode=cold_boot [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-3477: calc f13319ae, store f13319ae _verify_dtb_checksum()-3477: calc f13319ae, store f13319ae dtb_read()-3694: total valid 2 update_old_dtb()-3675: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected Multi dtb tool version: v2 . Support 4 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 2g dtb 1 soc: g12a plat: u212 vari: 4g dtb 2 soc: sm1 plat: ac213 vari: 2g dtb 3 soc: sm1 plat: ac213 vari: 4g Find match dtb: 3 amlkey_init() enter! [EFUSE_MSG]keynum is 4 vpu: clk_level in dts: 7 vpu: vpu_power_on vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100) vpu: vpu_module_init_config vpp: vpp_init vpp: vpp osd2 matrix rgb2yuv.............. cvbs: cpuid:0x2b Net: dwmac.ff3f0000amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 CONFIG_AVB2: null Start read misc partition datas! info->magic = info->version_major = 1 info->version_minor = 0 info->slots[0].priority = 15 info->slots[0].tries_remaining = 7 info->slots[0].successful_boot = 0 info->slots[1].priority = 14 info->slots[1].tries_remaining = 7 info->slots[1].successful_boot = 0 info->crc32 = -1075449479 active slot = 0 wipe_data=successful wipe_cache=successful upgrade_step=2 reboot_mode:::: cold_boot amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet hpd_state=0 edid preferred_mode is [0] hdr mode is 0 dv mode is ver:0 len: 0 hdr10+ mode is 0 [OSD]load fb addr from dts:/meson-fb [OSD]load fb addr from dts:/fb [OSD]set initrd_high: 0xdf800000 [OSD]fb_addr for logo: 0xdf800000 [OSD]load fb addr from dts:/meson-fb [OSD]load fb addr from dts:/fb [OSD]fb_addr for logo: 0xdf800000 [OSD]VPP_OFIFO_SIZE:0xfff01fff [CANVAS]canvas init [CANVAS]addr=0xdf800000 width=3840, height=2160 [OSD]osd_hw.free_dst_data: 0,719,0,575 [OSD]osd1_update_disp_freescale_enable vpp: vpp_matrix_update: 2 cvbs performance type = 9, table = 0 cvbs_config_hdmipll_g12a cvbs_set_vid2_clk vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0 amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet gpio: pin GPIOAO_3 (gpio 3) value is 1 SARADC channel(2) is 0x2a7. saradc - saradc sub-system Usage: saradc saradc open - open a SARADC channel saradc close - close the SARADC saradc getval - get the value in current channel saradc test - test the SARADC by channel-7 saradc get_in_range - return 0 if current value in the range of current channel Command: bcb uboot-command Start read misc partition datas! BCB hasn't any datas,exit! InUsbBurn noSof sof timeout, reset usb phy tuning amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet Hit Enter or space or Ctrl+C key to stop autoboot -- : 0 card out (Re)start USB... USB0: USB3.0 XHCI init start Register 3000140 NbrPorts 2 Starting the controller USB XHCI 1.10 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 831 bytes read in 3 ms (270.5 KiB/s) ## Executing script at 01020000 reading u-boot.emmc 746678 bytes read in 23 ms (31 MiB/s) ## Starting application at 0x01000000 ... U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus Model: AMedia X96 Max+ SoC: Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2) DRAM: 3.8 GiB MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2 Loading Environment from nowhere... OK In: serial Out: serial Err: serial Net: eth0: ethernet@ff3f0000 Hit any key to stop autoboot: 0 starting USB... Bus usb@ff500000: Register 3000140 NbrPorts 3 Starting the controller USB XHCI 1.10 scanning bus usb@ff500000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: unknown device Card did not respond to voltage select! : -110 Card did not respond to voltage select! : -110 unable to select a mode : -110 DMA reset timeout missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/01-5a-a7-11-67-4d-4f DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/0 DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-meson-ac2xx DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-meson DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm DMA reset timeout missing environment variable: bootfile Retrieving file: pxelinux.cfg/default DMA reset timeout Config file not found DMA reset timeout DMA reset timeout => ````

I tested the hole day, but no success with different configurations. Maybe you have an idea what is going on.

Booting from fresh android

Click to expand! ```` =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.06.20 10:57:10 =~=~=~=~=~=~=~=~=~=~=~= SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02 L0:00000000 L1:00000703 L2:00008067 L3:15000020 S1:00000000 B2:20282000 B1:a0f83180 TE: 383298 BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz Board ID = 1 Set cpu clk to 24M Set clk81 to 24M Use GP1_pll as DSU clk. DSU clk: 1200 Mhz CPU clk: 1200 MHz Set clk81 to 166.6M eMMC boot @ 0 sw8 s DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45 board id: 1 Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0 fw parse done Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0 Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0 PIEI prepare done fastboot data load 00000000 emmc switch 1 ok ddr saved addr:00016000 Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0 00000000 emmc switch 0 ok fastboot data verify verify result: 265 Cfg max: 5, cur: 1. Board id: 255. Force loop cfg DDR4 probe ddr clk to 912MHz Load ddrfw from eMMC, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : ERROR : Training has failed! 1D training failed Cfg max: 5, cur: 2. Board id: 255. Force loop cfg DDR3 probe ddr clk to 792MHz Load ddrfw from eMMC, src: 0x0002c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : End of read dq deskew training INFO : End of MPR read delay center optimization INFO : End of Write leveling coarse delay INFO : End of write delay center optimization INFO : End of read delay center optimization INFO : End of max read latency training INFO : Training has run successfully! 1D training succeed aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31 auto size-- 65535DDR cs0 size: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass 100bdlr_step_size ps== 415 result report boot times 0Enable ddr reg access 00000000 emmc switch 3 ok BL2: rpmb counter: 0x00019bae 00000000 emmc switch 0 ok Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0 Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000c8000, part: 0 bl2z: ptr: 05129330, size: 00001e40 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000 MVN_2=0x00000000 [Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz] OPS=0x10 ring efuse init 2b 0c 10 00 01 26 03 00 00 06 33 37 33 50 42 50 [0.017354 Inits done] secure task start! high task start! low task start! run into bl31 NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast U-Boot 2015.01 (Nov 25 2020 - 17:22:26) DRAM: 3.8 GiB Relocation Offset is: d6e5f000 spi_post_bind(spifc): req_seq = 0 register usb cfg[0][1] = 00000000d7f3f138 NAND: get_sys_clk_rate_mtd() 290, clock setting 200! NAND device id: 0 ff ff ff ff ff No NAND device found!!! nand init failed: -6 get_sys_clk_rate_mtd() 290, clock setting 200! NAND device id: 0 ff ff ff ff ff No NAND device found!!! nand init failed: -6 MMC: aml_priv->desc_buf = 0x00000000d3e4fa70 aml_priv->desc_buf = 0x00000000d3e51db0 SDIO Port B: 0, SDIO Port C: 1 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 400000 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 co-phase 0x3, tx-dly 0, clock 400000 co-phase 0x3, tx-dly 0, clock 40000000 aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x162000 [mmc_startup] mmc refix success init_part() 297: PART_TYPE_AML [mmc_init] mmc init success Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected Multi dtb tool version: v2 . Support 4 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 2g dtb 1 soc: g12a plat: u212 vari: 4g dtb 2 soc: sm1 plat: ac213 vari: 2g dtb 3 soc: sm1 plat: ac213 vari: 4g Find match dtb: 3 start dts,buffer=00000000d3e54620,dt_addr=00000000d3e54620 get_partition_from_dts() 91: ret 0 Amlogic multi-dtb tool Single dtb detected parts: 17 00: logo 0000000000800000 1 01: recovery 0000000001800000 1 02: misc 0000000000800000 1 03: dtbo 0000000000800000 1 04: cri_data 0000000000800000 2 05: param 0000000001000000 2 06: boot 0000000001000000 1 set has_boot_slot = 0 07: rsv 0000000001000000 1 08: metadata 0000000001000000 1 09: vbmeta 0000000000200000 1 10: tee 0000000002000000 1 11: vendor 0000000046000000 1 12: odm 0000000008000000 1 13: system 0000000050000000 1 14: product 0000000008000000 1 15: cache 0000000046000000 2 16: data ffffffffffffffff 4 init_part() 297: PART_TYPE_AML eMMC/TSD partition table have been checked OK! crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!! crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!! crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!! mmc env offset: 0x4d400000 In: serial Out: serial Err: serial reboot_mode=cold_boot [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-3477: calc f13319ae, store f13319ae _verify_dtb_checksum()-3477: calc f13319ae, store f13319ae dtb_read()-3694: total valid 2 update_old_dtb()-3675: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected Multi dtb tool version: v2 . Support 4 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 2g dtb 1 soc: g12a plat: u212 vari: 4g dtb 2 soc: sm1 plat: ac213 vari: 2g dtb 3 soc: sm1 plat: ac213 vari: 4g Find match dtb: 3 amlkey_init() enter! [EFUSE_MSG]keynum is 4 vpu: clk_level in dts: 7 vpu: vpu_power_on vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100) vpu: vpu_module_init_config vpp: vpp_init vpp: vpp osd2 matrix rgb2yuv.............. cvbs: cpuid:0x2b Net: dwmac.ff3f0000amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 CONFIG_AVB2: null Start read misc partition datas! info->magic = info->version_major = 1 info->version_minor = 0 info->slots[0].priority = 15 info->slots[0].tries_remaining = 7 info->slots[0].successful_boot = 0 info->slots[1].priority = 14 info->slots[1].tries_remaining = 7 info->slots[1].successful_boot = 0 info->crc32 = -1075449479 active slot = 0 wipe_data=successful wipe_cache=successful upgrade_step=2 reboot_mode:::: cold_boot amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet hpd_state=0 edid preferred_mode is [0] hdr mode is 0 dv mode is ver:0 len: 0 hdr10+ mode is 0 [OSD]load fb addr from dts:/meson-fb [OSD]load fb addr from dts:/fb [OSD]set initrd_high: 0xdf800000 [OSD]fb_addr for logo: 0xdf800000 [OSD]load fb addr from dts:/meson-fb [OSD]load fb addr from dts:/fb [OSD]fb_addr for logo: 0xdf800000 [OSD]VPP_OFIFO_SIZE:0xfff01fff [CANVAS]canvas init [CANVAS]addr=0xdf800000 width=3840, height=2160 [OSD]osd_hw.free_dst_data: 0,719,0,575 [OSD]osd1_update_disp_freescale_enable vpp: vpp_matrix_update: 2 cvbs performance type = 9, table = 0 cvbs_config_hdmipll_g12a cvbs_set_vid2_clk vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0 amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet gpio: pin GPIOAO_3 (gpio 3) value is 1 SARADC channel(2) is 0x2a6. saradc - saradc sub-system Usage: saradc saradc open - open a SARADC channel saradc close - close the SARADC saradc getval - get the value in current channel saradc test - test the SARADC by channel-7 saradc get_in_range - return 0 if current value in the range of current channel Command: bcb uboot-command Start read misc partition datas! BCB hasn't any datas,exit! InUsbBurn [MSG]sof Set Addr 7 Get DT cfg Get DT cfg Get DT cfg set CFG waitIdentifyTime(751) > timeout(750) amlkey_init() enter! amlkey_init() 71: already init! [EFUSE_MSG]keynum is 4 [KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet [KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet Hit Enter or space or Ctrl+C key to stop autoboot -- : 1  0 Unknown command 'ddr_auto_fast_boot_check' - try 'help' pll tsensor avg: 0x20f3, u_efuse: 0x15 temp1: 46 ddr tsensor avg: 0x2112, u_efuse: 0x2d temp2: 48 device cool done CONFIG_SYSTEM_AS_ROOT: systemroot system_mode: 1 Start read misc partition datas! info->magic = info->version_major = 1 info->version_minor = 0 info->slots[0].priority = 15 info->slots[0].tries_remaining = 7 info->slots[0].successful_boot = 0 info->slots[1].priority = 14 info->slots[1].tries_remaining = 7 info->slots[1].successful_boot = 0 info->crc32 = -1075449479 active slot = 0 CONFIG_AVB2: null active_slot: normal avb2: 0 ee_gate_off ... avb2: 0 ## Booting Android Image at 0x01080000 ... Kernel command line: androidboot.dtbo_idx=0 --cmdline root=/dev/mmcblk0p18 buildvariant=userdebug Start read misc partition datas! info->magic = info->version_major = 1 info->version_minor = 0 info->slots[0].priority = 15 info->slots[0].tries_remaining = 7 info->slots[0].successful_boot = 0 info->slots[1].priority = 14 info->slots[1].tries_remaining = 7 info->slots[1].successful_boot = 0 info->crc32 = -1075449479 active slot = 0 active_slot is normal load dtb from 0x1000000 ...... Amlogic multi-dtb tool Single dtb detected find 1 dtbos dtbos to be applied: 0 Apply dtbo 0 Loading Kernel Image(COMP_NONE) ... OK kernel loaded at 0x01080000, end = 0x0199c9e0 Loading Device Tree to 0000000009fe7000, end 0000000009fff5bf ... OK Starting kernel ... uboot time: 4353236 us [ 0.000000@0] Booting Linux on physical CPU 0x0 [ 0.000000@0] Linux version 4.9.113 (yxt-rd01@yxtrd01-Super-Server) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP PREEMPT Wed Nov 25 18:29:27 CST 2020 [ 0.000000@0] CPU: ARMv7 Processor [411fd050] revision 0 (ARMv7), cr=10c5383d [ 0.000000@0] CPU: div instructions available: patching division code [ 0.000000@0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000@0] OF: fdt:Machine model: Amlogic ````
ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/193911f872ee5756166cabd1b103d98d803abb7e/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L59

  1. You must flash back to the original Android system first, otherwise the subsequent reinstallation will be invalid

  2. You must download today's firmware, the previous one is invalid

  3. After booting from usb, select 505