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
6.28k stars 2.02k forks source link

armbian-install fails S912 #1057

Closed apoklyps3 closed 1 year ago

apoklyps3 commented 1 year ago

I'm trying to install armbian directly on eMMC on my MECOOL-M8S-Pro-L , as running from sdcard always fails (ext4-fs error) after some time. I check the SD Card, no errors or bad blocks, maybe it's a power source issue so I want to exclude external storage as an issue.

This is what I get. Makes no difference if I use "armbian-install" with no parameters.

root@armbian: # sudo armbian-install -m yes -a no
[ STEPS ] Start install Armbian to eMMC...
[ STEPS ] Start checking dependencies...
[ INFO ] Dependency check completes, Start installing Armbian.
[ STEPS ] Start initializing the environment...
[ INFO ] Use mainline u-boot: [ yes ]
[ INFO ] Using the Ampart tool: [ no ]
[ INFO ] Show all lists: [ no ]
[ INFO ] The device eMMC name: [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          DTB                                               
--------------------------------------------------------------------------------------
201   s912       Octopus-Planet                 meson-gxm-octopus-planet.dtb                      
202   s912       Octopus-Planet(FAKE)           meson-gxm-octopus-planet.dtb                      
203   s912       H96-Pro-Plus                   meson-gxm-octopus-planet.dtb                      
204   s912       Tanix-TX92                     meson-gxm-octopus-planet.dtb                      
205   s912       VORKE-Z6-Plus                  meson-gxm-octopus-planet.dtb                      
206   s912       MECOOL-M8S-Pro-L               meson-gxm-q201.dtb                                
207   s912       T95Z-Plus                      meson-gxm-t95z-plus.dtb                           
208   s912       TX9-Pro(3G_32G_1Gb)            meson-gxm-tx9-pro.dtb                             
209   s912       TX9-Pro(2G_16G_100Mb)          meson-gxm-q201.dtb                                
210   s912       Nexbox-A1/A95X                 meson-gxm-nexbox-a1.dtb                           
211   s912       Nexbox-A95X-A2                 meson-gxm-nexbox-a2.dtb                           
212   s912       Tanix-TX8-MAX                  meson-gxm-tx8-max.dtb                             
213   s912       Vontar-X92                     meson-gxm-x92.dtb                                 
214   s912       Phicomm-T1                     meson-gxm-phicomm-t1.dtb                          
0     Other      Customize                      Enter-custom-dtb-name                             
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 206
[ INFO ] Input Box ID: [ 206 ]
[ INFO ] FDTFILE: [ meson-gxm-q201.dtb ]
[ INFO ] MAINLINE_UBOOT: [  ]
[ INFO ] BOOTLOADER_IMG:  [  ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-s905x-s912.bin ]
[ INFO ] NEED_OVERLOAD: [ no ]
[ 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 backing up the default bootloader.
dd: error reading '/dev/mmcblk2': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 0.0443787 s, 0.0 kB/s
[ ERROR ] Using dd to backup [ /usr/lib/u-boot/mybox-bootloader.img ] failed.
ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/11718252c42f9f09dc86d8f3ba6dd60064e0020f/build-armbian/armbian-files/platform-files/amlogic/rootfs/usr/sbin/armbian-install#L327-L333

dd: error reading '/dev/mmcblk2': Input/output error

The reason for the failure is that your emmc cannot read

apoklyps3 commented 1 year ago

anything that can be done?

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents 12.16

apoklyps3 commented 1 year ago

so I have to recompile the dtb file with some settings modified

chuanshuojibi commented 1 year ago

好兄弟,解决了吗,我绕在这两天了,没读写权限

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/issues/1058#issuecomment-1429802427

参考使用