Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创维E900V22D刷写emmc失败 #1375

Closed
Domgur0 opened this issue May 5, 2023 · 13 comments
Closed

创维E900V22D刷写emmc失败 #1375

Domgur0 opened this issue May 5, 2023 · 13 comments

Comments

@Domgur0
Copy link

Domgur0 commented May 5, 2023

**Device Information |E900V22D

  • SOC: [e.g. S905l3a]
  • Model [e.g. HK1]

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

  • Kernel Version: [e.g. 5.15.100]
  • Release: [e.g. jammy]

**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
Copy link
Owner

ophub commented May 5, 2023

再试一下写入命令

@Domgur0
Copy link
Author

Domgur0 commented May 5, 2023

还是一样的,
这是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
Copy link
Owner

ophub commented May 5, 2023

emmc里现在是什么系统?

@Domgur0
Copy link
Author

Domgur0 commented May 5, 2023

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

@ophub
Copy link
Owner

ophub commented May 5, 2023

dd if=/dev/zero of=/dev/mmcblk2 bs=512 count=1 conv=fsync

armbian-install

@Domgur0
Copy link
Author

Domgur0 commented May 5, 2023

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

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
Copy link
Owner

ophub commented May 5, 2023

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

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

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

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

@Domgur0
Copy link
Author

Domgur0 commented May 5, 2023

成功了,感谢大佬

@ophub
Copy link
Owner

ophub commented May 5, 2023

好的,贡献你

@Domgur0
Copy link
Author

Domgur0 commented May 5, 2023

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

@ophub
Copy link
Owner

ophub commented May 5, 2023

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

@rdgjiose
Copy link

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

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

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

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

这个链接已经404了

@ophub
Copy link
Owner

ophub commented Dec 11, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants