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.44k stars 1.74k forks source link

E900V22C 5.4 内核执行armbian-install报错 #220

Closed LomotHo closed 2 years ago

LomotHo commented 2 years ago

下面是报错日志

--------------------------------------------
Please Input ID: 1
Input Type ID: [ 1 ]
The type of file system: [ ext4 ]
Start backup default bootloader
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.17413 s, 3.6 MB/s
[  257.250749] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[  257.255685] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
[  257.315808] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[  257.320767] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
[  257.348312] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[  257.353258] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
dd: fsync failed for '/dev/mmcblk2': Input/output error
1+0 records in
1+0 records out
512 bytes copied, 0.0153305 s, 33.4 kB/s
Start create MBR and partittion
[  257.475080] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 3 prio class 0
[  257.480029] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
[  257.487649] Buffer I/O error on dev mmcblk2, logical block 1, lost async page write
[  257.495211] Buffer I/O error on dev mmcblk2, logical block 2, lost async page write
[  257.516070] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[  257.521030] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
Start write u-boot
Restore the mybox u-boot
442+0 records in
442+0 records out
442 bytes copied, 0.00326571 s, 135 kB/s
[  257.925936] blk_update_request: I/O error, dev mmcblk2, sector 0 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  257.931056] Buffer I/O error on dev mmcblk2, logical block 0, lost async page write
[  257.938675] Buffer I/O error on dev mmcblk2, logical block 1, lost async page write
[  257.946253] Buffer I/O error on dev mmcblk2, logical block 2, lost async page write
[  257.955328] blk_update_request: I/O error, dev mmcblk2, sector 504 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  257.965048] blk_update_request: I/O error, dev mmcblk2, sector 1008 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  257.975751] blk_update_request: I/O error, dev mmcblk2, sector 1512 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  257.986368] blk_update_request: I/O error, dev mmcblk2, sector 2520 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  262.213143] meson-gx-mmc ffe07000.mmc: Card stuck in wrong state! card_busy_detect status: 0xe00
[  262.221974] mmcblk2: recovery failed!
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, 4.60795 s, 910 kB/s
Start copy system for eMMC.
Formatting BOOTFS partition...
mkfs.fat 4.1 (2017-01-24)
[  262.294689] mmc2: tuning execution failed: -5
[  262.703138] meson-gx-mmc ffe07000.mmc: Card stuck in wrong state! card_busy_detect status: 0xe00
[  262.712192] mmc2: cache flush error -110
[  262.795579] print_req_error: 1 callbacks suppressed
[  262.795592] blk_update_request: I/O error, dev mmcblk2, sector 133120 op 0x1:(WRITE) flags 0x4800 phys_seg 63 prio class 0
[  262.809584] buffer_io_error: 375 callbacks suppressed
[  262.809589] Buffer I/O error on dev mmcblk2p1, logical block 0, lost async page write
[  262.822360] Buffer I/O error on dev mmcblk2p1, logical block 1, lost async page write
[  262.830116] Buffer I/O error on dev mmcblk2p1, logical block 2, lost async page write
[  262.837876] Buffer I/O error on dev mmcblk2p1, logical block 3, lost async page write
[  262.845640] Buffer I/O error on dev mmcblk2p1, logical block 4, lost async page write
[  262.853400] Buffer I/O error on dev mmcblk2p1, logical block 5, lost async page write
[  262.861164] Buffer I/O error on dev mmcblk2p1, logical block 6, lost async page write
[  262.868953] Buffer I/O error on dev mmcblk2p1, logical block 7, lost async page write
[  262.876694] Buffer I/O error on dev mmcblk2p1, logical block 8, lost async page write
[  262.884452] Buffer I/O error on dev mmcblk2p1, logical block 9, lost async page write
[  267.106471] meson-gx-mmc ffe07000.mmc: Card stuck in wrong state! card_busy_detect status: 0xe00
[  267.114011] mmcblk2: recovery failed!
[  267.117699] blk_update_request: I/O error, dev mmcblk2, sector 133624 op 0x1:(WRITE) flags 0x800 phys_seg 4 prio class 0
[  267.133714] mmc2: tuning execution failed: -5
[  267.539804] meson-gx-mmc ffe07000.mmc: Card stuck in wrong state! card_busy_detect status: 0xe00
[  267.547560] mmc2: cache flush error -110
[  267.641212] blk_update_request: I/O error, dev mmcblk2, sector 133120 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
Start copy BOOT_EMMC partition data...
[  268.103030] blk_update_request: I/O error, dev mmcblk2, sector 133128 op 0x1:(WRITE) flags 0x0 phys_seg 7 prio class 0
[  268.112622] buffer_io_error: 58 callbacks suppressed
[  268.112629] Buffer I/O error on dev mmcblk2p1, logical block 8, lost async page write
[  268.125284] Buffer I/O error on dev mmcblk2p1, logical block 9, lost async page write
[  268.133046] Buffer I/O error on dev mmcblk2p1, logical block 10, lost async page write
[  268.140892] Buffer I/O error on dev mmcblk2p1, logical block 11, lost async page write
[  268.148738] Buffer I/O error on dev mmcblk2p1, logical block 12, lost async page write
[  268.156588] Buffer I/O error on dev mmcblk2p1, logical block 13, lost async page write
[  268.164435] Buffer I/O error on dev mmcblk2p1, logical block 14, lost async page write
[  268.172425] blk_update_request: I/O error, dev mmcblk2, sector 133144 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  268.182902] Buffer I/O error on dev mmcblk2p1, logical block 24, lost async page write
[  268.190878] blk_update_request: I/O error, dev mmcblk2, sector 133165 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  268.201355] Buffer I/O error on dev mmcblk2p1, logical block 45, lost async page write
[  268.209306] blk_update_request: I/O error, dev mmcblk2, sector 133225 op 0x1:(WRITE) flags 0x0 phys_seg 13 prio class 0
[  268.219896] Buffer I/O error on dev mmcblk2p1, logical block 105, lost async page write
[  268.228818] blk_update_request: I/O error, dev mmcblk2, sector 133376 op 0x1:(WRITE) flags 0x0 phys_seg 7 prio class 0
[  268.238769] blk_update_request: I/O error, dev mmcblk2, sector 133392 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  268.249335] blk_update_request: I/O error, dev mmcblk2, sector 133413 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  268.259953] blk_update_request: I/O error, dev mmcblk2, sector 133473 op 0x1:(WRITE) flags 0x0 phys_seg 13 prio class 0
[  268.271670] FAT-fs (mmcblk2p1): error, fat_get_cluster: invalid cluster chain (i_pos 8206)
[  268.274333] blk_update_request: I/O error, dev mmcblk2, sector 133624 op 0x1:(WRITE) flags 0x0 phys_seg 4 prio class 0
[  268.279824] FAT-fs (mmcblk2p1): Filesystem has been set read-only
[  268.290628] blk_update_request: I/O error, dev mmcblk2, sector 133631 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[  268.296531] FAT-fs (mmcblk2p1): error, fat_free_clusters: deleting FAT entry beyond EOF
[  268.317883] FAT-fs (mmcblk2p1): error, fat_get_cluster: invalid cluster chain (i_pos 8206)
cp: error writing '/ddbr/install/System.map-5.4.188-flippy-71+o': Input/output error
cp: cannot create directory '/ddbr/install/System Volume Information': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-gtking.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-gtkingpro.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-gtkingpro-rev-a.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-n1.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-odroid-n2.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-p201.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-p212.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-s905.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-s905x2-s922.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-s905x-s912.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot.sd': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-sei510.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-sei610.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-tx3-bz.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-tx3-qz.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-u200.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-ugoos-x3.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot.usb': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-x96max.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-x96maxplus.bin': Read-only file system
cp: cannot remove '/ddbr/install/u-boot-zyxq.bin': Read-only file system
cp: cannot remove '/ddbr/install/uEnv.txt': Read-only file system
cp: cannot remove '/ddbr/install/uInitrd': Read-only file system
cp: cannot create regular file '/ddbr/install/uInitrd-5.4.188-flippy-71+o': Read-only file system
cp: cannot create regular file '/ddbr/install/vmlinuz-5.4.188-flippy-71+o': Read-only file system
cp: cannot remove '/ddbr/install/zImage': Read-only file system
Generate the new uEnv.txt file.
/usr/sbin/armbian-install: line 295: /ddbr/install/uEnv.txt: Read-only file system
rm: cannot remove '/ddbr/install/s9*': No such file or directory
rm: cannot remove '/ddbr/install/aml*': No such file or directory
mv: cannot move '/ddbr/install/boot-emmc.ini' to '/ddbr/install/boot.ini': Read-only file system
sed: couldn't open temporary file /ddbr/install/sedXtjLu1: Read-only file system
mv: cannot move '/ddbr/install/boot-emmc.scr' to '/ddbr/install/boot.scr': Read-only file system
mv: cannot move '/ddbr/install/boot-emmc.cmd' to '/ddbr/install/boot.cmd': Read-only file system
Formatting ROOTFS partition...
/dev/mmcblk2p2 contains a ext4 file system labelled 'ROOTFS_EMMC'
        last mounted on /ddbr/install on Sun Apr  3 23:02:12 2022
mkfs.ext4: Input/output error while writing out and closing file system
[  275.666887] EXT4-fs (mmcblk2p2): VFS: Can't find ext4 filesystem
mount: /ddbr/install: wrong fs type, bad option, bad superblock on /dev/mmcblk2p2, missing codepage or helper program, or other error.
Failed to mount ROOTFS partition
LomotHo commented 2 years ago

同时 5.4 内核网卡会报错

root@armbian:/boot# [  628.087049] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[  628.096833] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  628.217051] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[  628.226641] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  628.350381] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[  628.359751] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  628.483610] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[  628.487093] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
LomotHo commented 2 years ago

用5.4的主要原因是5.9以上的内核不能从emmc启动, 只能尝试旧版内核

ophub commented 2 years ago

写入时大量的I/O error,说明emmc有问题

另外你选择设备时输入了1,我的固件里没有1,你从哪下的固件?

不写入emmc,在usb中可以正常使用不。

LomotHo commented 2 years ago

我直接使用的release里面的 Armbian_22.05.0_Aml_s905l3a_focal_5.4.188_2022.04.03.0215.img.gz, usb里面io正常, 毕竟也没写emmc, 就是会报网卡错, 如果用5.15, 那就全部正常, 写入emmc全过程也没问题, 但是写入后会不启动

LomotHo commented 2 years ago

上面那个选择1是选择文件系统, 设备选的是304, e900v22c/d

LomotHo commented 2 years ago

附上5.15的安装日志, 这里是正常的

armbian:~:# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
This Kernel Version: [ 5.15.32 ]
K510: [ 1 ]
--------------------------------------------------------------------------------------
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-&-b860h                 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
201   s912       Octopus-Planet                 meson-gxm-octopus-planet.dtb
202   s912       H96-Pro-Plus                   meson-gxm-octopus-planet.dtb
203   s912       Tanix-TX92                     meson-gxm-octopus-planet.dtb
204   s912       VORKE-Z6-Plus                  meson-gxm-octopus-planet.dtb
205   s912       MECOOL-M8S-Pro-L               meson-gxm-q201.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-u200.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     HK1-Box                        meson-sm1-hk1box-vontar-x3.dtb
504   s905x3     HK1-Box-(OverClock)            meson-sm1-hk1box-vontar-x3-oc.dtb
505   s905x3     H96-Max-X3                     meson-sm1-h96-max-x3.dtb
506   s905x3     H96-Max-X3-(OverClock)         meson-sm1-h96-max-x3-oc.dtb
507   s905x3     Ugoos-X3                       meson-sm1-ugoos-x3.dtb
508   s905x3     Ugoos-X3-(OverClock)           meson-sm1-ugoos-x3-oc.dtb
509   s905x3     TX3-1Gb                        meson-sm1-tx3-qz.dtb
510   s905x3     TX3-1Gb-(OverClock)            meson-sm1-tx3-qz-oc.dtb
511   s905x3     TX3-100Mb                      meson-sm1-tx3-bz.dtb
512   s905x3     TX3-100Mb-(OverClock)          meson-sm1-tx3-bz-oc.dtb
513   s905x3     X96-Air-1Gb                    meson-sm1-x96-air-gbit.dtb
514   s905x3     X96-Air-100Mb                  meson-sm1-x96-air.dtb
515   s905x3     A95XF3-Air-1Gb                 meson-sm1-a95xf3-air-gbit.dtb
516   s905x3     A95XF3-Air-100Mb               meson-sm1-a95xf3-air.dtb
0     Other      Unknown                        Import-custom-dtb-file
--------------------------------------------------------------------------------------
Please Input ID: 304
Input Box ID: [ 304 ]
FDTFILE: [ meson-g12a-u200.dtb ]
UBOOT_OVERLOAD: [ u-boot-u200.bin ]
--------------------------------------------
Please select the type of file system:
1. ext4
2. btrfs
--------------------------------------------
Please Input ID: 1
Input Type ID: [ 1 ]
The type of file system: [ ext4 ]
1+0 records in
1+0 records out
512 bytes copied, 0.00685754 s, 74.7 kB/s
Start create MBR and partittion
[  300.215576]  mmcblk2:
[  300.316035]  mmcblk2: p1
[  300.439509]  mmcblk2: p1 p2
Start write u-boot
Restore the mybox u-boot
442+0 records in
442+0 records out
442 bytes copied, 0.00482354 s, 91.6 kB/s
[  300.463911]  mmcblk2: p1 p2
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copi[  300.827401]  mmcblk2: p1 p2
ed, 0.371272 s, 11.3 MB/s
Start copy system for eMMC.
Formatting BOOTFS partition...
mkfs.fat 4.1 (2017-01-24)
Start copy BOOT_EMMC partition data...
Generate the new uEnv.txt file.
Copy [ u-boot-u200.bin ] to u-boot.emmc
Formatting ROOTFS partition...
[  316.689507] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
Start copy ROOTFS_EMMC partition data...
copy [ etc ] ...
copy [ home ] ...
copy [ lib64 ] ...
copy [ opt ] ...
copy [ root ] ...
copy [ selinux ] ...
copy [ srv ] ...
copy [ usr ] ...
copy [ var ] ...
Copy complete.
Generate the new fstab file.
Update the relevant parameters
*************************************************************************************************
Successful installed, please unplug the USB, re-insert the power supply to start the armbian.
*************************************************************************************************
LomotHo commented 2 years ago

5.15 的相关问题我开了一个新的issue #222

ophub commented 2 years ago

KryptonLee 为这个设备提供了u-boot支持,现在已经可以完美写入emmc使用了。