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

创维E900V22D刷写emmc失败 #1375

Closed Domgur0 closed 1 year ago

Domgur0 commented 1 year ago

**Device Information |E900V22D

**Armbian Version |[Armbian_23.05.0_amlogic_s905l3a_bullseye_5.15.110_server_2023.05.04.img

**Describe the bug | 机子本来刷入emmc的,想重装,现在只能从u盘启动,拔掉u盘后盒子正常启动,有ip但ssh连不上 Describe the problem in detail and attach screenshots if necessary. 以下是执行过程

root@armbian:~# armbian-install
[ STEPS ] Installing Armbian to internal eMMC...
[ STEPS ] Checking dependencies...
[ INFO ] Dependency check completed. Proceeding installation...
[ STEPS ] Initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] Internal eMMC : [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          DTB                                               
--------------------------------------------------------------------------------------
301   s905x2     X96-Max-4GB,Tx5-Max            meson-g12a-x96-max.dtb                            
302   s905x2     X96-Max-2GB,A95X-F2            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,UNT403A,B863AV3.2-M      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 ] NEED_OVERLOAD: [ no ]
[ STEPS ] Which type of filesystem do you want for your root? 
-----------------------------------------------
  ID   TYPE
-----------------------------------------------
  1    ext4
  2    btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID (1/2): 1
[ INFO ] Input Type ID: [ 1 ]
[ INFO ] Type of filesystem: [ ext4 ]
[ STEPS ] Partitioning eMMC...
[ INFO ] Start backing up the default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 2.03855 s, 2.1 MB/s
[ INFO ] Delete the existing [ 2 ] partitions.
Error: Input/output error during write on /dev/mmcblk2
[ ERROR ] Failed to delete partition [ 1 ]. Please try again.

感谢

ophub commented 1 year ago

再试一下写入命令

Domgur0 commented 1 year ago

还是一样的, 这是lsblk查看结果

root@armbian:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda            8:0    1 58.6G  0 disk 
├─sda1         8:1    1  255M  0 part /boot
└─sda2         8:2    1 58.3G  0 part /var/log.hdd
                                      /
mmcblk2      179:0    0  7.2G  0 disk 
├─mmcblk2p1  179:1    0  255M  0 part 
└─mmcblk2p2  179:2    0  6.4G  0 part 
mmcblk2boot0 179:32   0    4M  1 disk 
mmcblk2boot1 179:64   0    4M  1 disk 
zram0        254:0    0  977M  0 disk [SWAP]
zram1        254:1    0   50M  0 disk /var/log
zram2        254:2    0    0B  0 disk 
ophub commented 1 year ago

emmc里现在是什么系统?

Domgur0 commented 1 year ago

armbian,但启动不了,有ip地址,无法ssh,linux 5.15.43

ophub commented 1 year ago
dd if=/dev/zero of=/dev/mmcblk2 bs=512 count=1 conv=fsync

armbian-install
Domgur0 commented 1 year ago

还是不行这次多了两个错误

root@armbian:~# dd if=/dev/zero of=/dev/mmcblk2 bs=512 count=1 conv=fsync
1+0 records in
1+0 records out
512 bytes copied, 0.012295 s, 41.6 kB/s
root@armbian:~# armbian-install
[ STEPS ] Installing Armbian to internal eMMC...
[ STEPS ] Checking dependencies...
[ INFO ] Dependency check completed. Proceeding installation...
[ STEPS ] Initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] Internal eMMC : [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          DTB                                               
--------------------------------------------------------------------------------------
301   s905x2     X96-Max-4GB,Tx5-Max            meson-g12a-x96-max.dtb                            
302   s905x2     X96-Max-2GB,A95X-F2            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,UNT403A,B863AV3.2-M      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 ] NEED_OVERLOAD: [ no ]
[ STEPS ] Which type of filesystem do you want for your root? 
-----------------------------------------------
  ID   TYPE
-----------------------------------------------
  1    ext4
  2    btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID (1/2): 1
[ INFO ] Input Type ID: [ 1 ]
[ INFO ] Type of filesystem: [ ext4 ]
[ STEPS ] Partitioning eMMC...
[ INFO ] Start backing up the default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.26783 s, 3.3 MB/s
[ INFO ] Start create MBR and partittion.
Error: Input/output error during write on /dev/mmcblk2
Error: /dev/mmcblk2: unrecognised disk label
Error: /dev/mmcblk2: unrecognised disk label
[ ERROR ] Failed to partition internal eMMC using [ parted ].
ophub commented 1 year ago

刚才的错误是不让删除现有的分区 现在的错误是删了,但不让新建分区

看一下文档里有介绍,看来你的魔百盒需要降低一下dtb的频率,才能正常使用emmc

直接在当前usb里操作即可,dtb复制到某处,反编译修改了再盖回去

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/documents/README.cn.md 看12.16

Domgur0 commented 1 year ago

成功了,感谢大佬

ophub commented 1 year ago

好的,贡献你

Domgur0 commented 1 year ago

安装成功,但好像网口没接上是什么问题嘛

ophub commented 1 year ago

https://github.com/ophub/kernel/releases/tag/tools 大部分魔百盒的安卓系统是4.0,需要先刷成9.0的安卓系统,再刷armbian就能正常使用。这有之前用户分享的部分安卓系统,你也可以网上下载其他人分享的有root权限的安卓系统。

rdgjiose commented 6 months ago

刚才的错误是不让删除现有的分区 现在的错误是删了,但不让新建分区

看一下文档里有介绍,看来你的魔百盒需要降低一下dtb的频率,才能正常使用emmc

直接在当前usb里操作即可,dtb复制到某处,反编译修改了再盖回去

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/documents/README.cn.md 看12.16

这个链接已经404了

ophub commented 6 months ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/documents/README.cn.md