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.8k stars 1.86k forks source link

x96max+ a100 支持写入emmc使用 #779

Closed dicsonpan closed 1 year ago

dicsonpan commented 1 year ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 用2022年6月份的版本,具体记不清了,也是jammy,内核5.15把,已经刷机成功,并正常写入 emmc ,也是一直能够正常运行 最近想折腾一下桌面环境,自己装老是有各种报错,非常苦恼。看了现在最新的版本,有 armbian-software 命令,可以比较方便地一键安装桌面环境,故想要重新刷机。 把现在最新的 release 正常刷进 TF 卡,通过 TF 卡启动,然后运行 armbian-install 来写入 emmc 后,再断电,拔 TF 卡,插电,一直黑屏,估计是变砖了。 用线刷刷入 sbx_x96max_plus_a100_atv_15_4_1.img,回到 SlimBox,再捅菊花,通过 usb读卡器加载 TF 卡,启动进入 armbian,再次运行 armbian-install 写入 emmc,变砖情况依旧。

变砖是连开机的 logo 都看不到,之前开机是有一个 x96max+ 的动画的,我是不是把某些更底层的启动代码给洗掉了?

ophub commented 1 year ago

1.恢复原厂安装系统 2.下载最新固件 3.安装时加参数启用主线 armbian-install -m yes select 522

D-Sta commented 1 year ago

1.恢复原厂安装系统 2.下载最新固件 3.安装时加参数启用主线 armbian-install -m yes select 522

I have already done those steps. But when I do armbian-install -m yes, the ethernet no longer works. But while running from USB, there is no problem.

And if I do armbian-install -m no the Ethernet works, but only 1GB ram available.

ophub commented 1 year ago

which kernel are you using

D-Sta commented 1 year ago

which kernel are you using

I have tried 5.15/5.10/5.4

tv4you2016 commented 1 year ago

please send pictures of your board

D-Sta commented 1 year ago

It was advertised as 1Gbps Ethernet, but it appears to be only 100Mbps.

Front Back

tv4you2016 commented 1 year ago

export to dtb

tv4you2016 commented 1 year ago

try https://github.com/ophub/amlogic-s9xxx-armbian/issues/788

D-Sta commented 1 year ago

This is the dtb that I have extracted from my box mybox.gz

tv4you2016 commented 1 year ago

The dtb you provided in the first post cannot be decompiled. The file is damaged.

used

https://unix.stackexchange.com/questions/347489/current-question-how-can-i-decompile-an-arm-firmware-file-to-get-the-device-tr

D-Sta commented 1 year ago

I have used this way to extract the dtb https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents#1213-how-to-decompile-a-dtb-file

Should I try the method you have just provided?

tv4you2016 commented 1 year ago

yes

D-Sta commented 1 year ago

mybox.gz

D-Sta commented 1 year ago

boot_log

tv4you2016 commented 1 year ago

try to open the error file

mybox.gz

The dtb you provided in the first post cannot be decompiled. The file is damaged.

if you can export the DTS

D-Sta commented 1 year ago

try to open the error file

mybox.gz

The dtb you provided in the first post cannot be decompiled. The file is damaged.

if you can export the DTS

The second one is working and I managed to decompile it:

mybox.dts

tv4you2016 commented 1 year ago

Hello @D-Sta follow the following steps: install original android firmware prepare the pen/sdcard with the latest version https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_jammy_12.12.0346

install select the 523 and after feedback

D-Sta commented 1 year ago

Hi @tv4you2016 Thanks for the instructions, currently downloading the new armbian image. Should install with the mainline u-boot or not? armbian-install -m yes/no?

D-Sta commented 1 year ago

@tv4you2016 I have tried to boot from the this image, but with no success. But this image seems different that those build for s905x3. This image has only 1 partition called armbi_root and not a separate boot partition. As well, could not find any u-boot and uEnv.txt to change the dtb, inside the boot directory in the root partition.

tv4you2016 commented 1 year ago

@D-Sta Please wait for the build to complete

https://github.com/ophub/amlogic-s9xxx-armbian/actions

D-Sta commented 1 year ago

OK, thanks. Waiting for the build to complete. Meanwhile I have tried Armbian_23.02.0_amlogic_s905x3_jammy_5.15.82_server_2022.12.08.img.gz with meson-sm1-x96-max-plus-q1.dtb which is the DTB for the 523 target that you advised me trying, and the system did NOT boot at all. Is that OK?

tv4you2016 commented 1 year ago

describe the procedures you performed

D-Sta commented 1 year ago

describe the procedures you performed

  1. I've prepared an USB drive with this image Armbian_23.02.0_amlogic_s905x3_jammy_5.15.82_server_2022.12.08.img.gz using Etcher.
  2. In uEnv.txt modified the DTB like that FDT=/dtb/amlogic/meson-sm1-x96-max-plus-q1.dtb
  3. Copied u-boot-x96maxplus.bin to u-boot.ext
  4. After powering the device with the USB plugged in, and doing the toothpick the device is stucked at the boot logo.

With the exact same setup and method, but only using meson-sm1-sei610.dtb the system boots normally and everything is working fine (WiFi, Ethernet, 4GB ram, ...). Then there are 2 options for installing:

  1. Using the mainline u-boot armbian-install -m yes: The RAM is 4GB, WiFi working, but Ethernet NOT working
  2. Not using the mainline u-boot armbian-install -m no: The RAM is 1GB, WiFi working, Ethernet working
tv4you2016 commented 1 year ago

put the dtb in the folder?? meson-sm1-x96-max-plus-q1.dtb??

tv4you2016 commented 1 year ago

@D-Sta follow the following steps:

  1. install original android firmware

  2. prepare the pen/sdcard with the Armbian_23.02.0_amlogic_s905x3_jammy_5.15.82_server_2022.12.08.img.gz

  3. download the https://github.com/ophub/amlogic-s9xxx-armbian/files/10200168/meson-sm1-x96-max-plus-q1.dtb.zip put file in /dtb/amlogic/

  4. In uEnv.txt modified the DTB like that FDT=/dtb/amlogic/meson-sm1-x96-max-plus-q1.dtb

  5. run the usb go to /etc/model_database.conf Modify one line, such as the line corresponding to 516

tv4you2016 commented 1 year ago

I can say that this works, because I did it in the box of @luucasmooreira https://github.com/ophub/amlogic-s9xxx-armbian/issues/784#

luucasmooreira commented 1 year ago

Yes it works. Congratulations to @tv4you2016

tv4you2016 commented 1 year ago

@D-Sta build completed

follow the following steps: install original android firmware prepare the pen/sdcard with the latest version

install select the 523 and after feedback

D-Sta commented 1 year ago

@D-Sta build completed

follow the following steps: install original android firmware prepare the pen/sdcard with the latest version

install select the 523 and after feedback

Thanks @tv4you2016!

I used the previous build, but used the DTB you have provided

download the https://github.com/ophub/amlogic-s9xxx-armbian/files/10200168/meson-sm1-x96-max-plus-q1.dtb.zip put file in /dtb/amlogic/

and update the /etc/model_database.conf

and after installing the system to the emmc, everything is working fine, WIFI + 4GB RAM + Ethernet.

But can you please provide some information about the solution? How is the new meson-sm1-x96-max-plus-q1.dtb different from the old one (which did not boot at all).

Regards