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.41k stars 1.72k forks source link

E900v22c写入emmc错误 #773

Closed payzulla0706 closed 1 year ago

payzulla0706 commented 1 year ago

@ophub

Device Information | 设备信息

Armbian Version | 系统版本 Armbian_23.02.0_amlogic_s905l3a_bullseye_5.15.80_server_2022.12.03.img

Describe the bug | 问题描述 armbian-install 后出错 现在不敢重启 不知道怎么办

root@armbian:~# armbian-install
[ STEPS ] Start install armbian to emmc...
[ INFO ] Custom setting parameters: [  ]
[ STEPS ] Start initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using the Ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] DEV_EMMC: [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          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
305   s905l3a    CM311-1a-YST                   meson-g12a-s905l3a-cm311.dtb
306   s905l3a    M401A                          meson-g12a-s905l3a-m401a.dtb
0     Other      Customize                      Enter-custom-dtb-name
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 304
[ INFO ] Input Box ID: [ 304 ]
[ INFO ] FDTFILE: [ meson-g12a-s905l3a-e900v22c.dtb ]
[ INFO ] MAINLINE_UBOOT: [  ]
[ INFO ] BOOTLOADER_IMG:  [  ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-e900v22c.bin ]
[ INFO ] K510: [ 0 ]
[ STEPS ] Start selecting file system type...
-----------------------------------------------
ID  TYPE
-----------------------------------------------
1   ext4
2   btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID: 1
[ INFO ] Input Type ID: [ 1 ]
[ INFO ] The type of file system: [ ext4 ]
[ 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, 2.09465 s, 2.0 MB/s
dd: fsync failed for '/dev/mmcblk2': Input/output error
1+0 records in
1+0 records out
512 bytes copied, 0.0894131 s, 5.7 kB/s
[ INFO ] Start create MBR and partittion.
[ INFO ] Restore the mybox bootloader: [ /usr/lib/u-boot/mybox-bootloader.img ]
444+0 records in
444+0 records out
444 bytes copied, 0.00317366 s, 140 kB/s
dd: fsync failed for '/dev/mmcblk2': Input/output error
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.430569 s, 9.7 MB/s
[ STEPS ] Start processing the bootfs partition...
[ INFO ] Formatting BOOTFS partition.
mkfs.fat 4.2 (2021-01-31)
mkfs.vfat: unable to open /dev/mmcblk2p1: No such file or directory
mount: /ddbr/install: special device /dev/mmcblk2p1 does not exist.
[ ERROR ] Failed to mount BOOTFS partition
urenai commented 1 year ago

更换6.0内核试试呢???

payzulla0706 commented 1 year ago

更换6.0内核试试呢???

6.0的昨天试了 网卡也不正常

我这个已经扩展U盘分区用了两天 是不是这个原因呢?

LittleFengSir commented 1 year ago

我使用该镜像发现进入系统后,掉网络了,发现路由器连接电视盒子的灯根本不亮,请问该怎么解决。

payzulla0706 commented 1 year ago

我使用该镜像发现进入系统后,掉网络了,发现路由器连接电视盒子的灯根本不亮,请问该怎么解决。

找到对应你盒子的 U-BOOT复制一份 然后重命名为u-boot.ext 我的e900v22c就是这么解决的

ophub commented 1 year ago

armbian-install yes 这个设备加yes使用即可

但是你的错误和没有u-boot无关,是你的emmc不让写入数据

payzulla0706 commented 1 year ago

armbian-install yes 这个设备加yes使用即可

但是你的错误和没有u-boot无关,是你的emmc不让写入数据

不让写入数据是什么原因呢?有没有解决办法能写入emmc 我试一试 在线等O大指导 @ophub

ophub commented 1 year ago

不能正常读写emmc可能要降低频率才能正常使用。

https://github.com/unifreq/linux-5.15.y/blob/851d49cfb5f2a6f5f18d3d9bda8cb136a03a1a75/arch/arm64/boot/dts/amlogic/meson-g12a-s905l3a-e900v22c.dts#L120

max-frequency = <100000000>;

ophub commented 1 year ago

meson-g12a-s905l3a-e900v22c.dtb.zip

下载解压缩出dtb后缀的文件。 系统从U盘启动,把dtb文件上传到U盘的/boot/dtb/amlogic目录下覆盖同名文件,重启 sync && reboot 重启后再试试写入,命令加yes armbian-install -m yes 选择304

payzulla0706 commented 1 year ago

meson-g12a-s905l3a-e900v22c.dtb.zip

下载解压缩出dtb后缀的文件。 系统从U盘启动,把dtb文件上传到U盘的/boot/dtb/amlogic目录下覆盖同名文件,重启 sync && reboot 重启后再试试写入,命令加yes armbian-install yes 选择304

[ STEPS ] Start install armbian to emmc... [ INFO ] Custom setting parameters: [ yes ] [ STEPS ] Start initializing the environment... [ ERROR ] Invalid option [ yes ]!

ophub commented 1 year ago

armbian-install -m yes

LittleFengSir commented 1 year ago

我从U盘启动后,一开始是有网络的,到后面路由器灯灭了,一直显示没有网络,提示的是网络没有连接,但是我网线与路由器是正常连接的,错误代码是-19。盒子型号为E900V22C,该如何解决。

ophub commented 1 year ago

5.15内核的话,自己进入/boot复制一下u-boot

cd /boot
cp -f u-boot-e900v22c.bin u-boot.ext
sync && reboot