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

章鱼星球刷机方法 #253

Closed lanyucomputer closed 2 years ago

lanyucomputer commented 2 years ago

章鱼星球刷了这个Armbian_22.05.0_Aml_s912_focal_5.15.35_2022.04.21.0021.img.gz,已经写入EMMC成功,启动不了,启动也没有显示输出,刷入W大的Armbian_5.96_Aml-g12_Debian_buster_default_5.3.0-rc8_20190910,成功启动后可以从EMMC启动,也可以HDMI有显示输出

lanyucomputer commented 2 years ago
WARNING! The remote SSH server rejected X11 forwarding request.
    _              _        ___  _ ____  
   / \   _ __ ___ | |  ___ / _ \/ |___ \ 
  / _ \ | '_ ` _ \| | / __| (_) | | __) |
 / ___ \| | | | | | | \__ \\__, | |/ __/ 
/_/   \_\_| |_| |_|_| |___/  /_/|_|_____|

Welcome to Armbian 22.05.0-trunk Focal with Linux 5.15.35-flippy-72+o

No end-user support: built from trunk

System load:   2%               Up time:       8 min    
Memory usage:  13% of 1.77G     IP:        10.0.0.113
CPU temp:      48°C             Usage of /:    49% of 2.6G      
storage/:      38% of 255M      

[ 7 security updates available, 14 updates total: apt upgrade ]
Last check: 2022-04-21 20:43

[ General system configuration (beta): armbian-config ]

Last login: Thu Apr 21 20:43:40 2022 from 10.0.0.104

Waiting for system to finish booting ...
Welcome to ARMBIAN! 

Documentation: https://docs.armbian.com | Community: https://forum.armbian.com

Create root password: ***********
Repeat root password: ***********

Support status: no support (unsupported userspace)

Choose default system command shell:

1) bash
2) zsh

Shell: ZSH

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): ^C
Disabling user account creation procedure

You selected ZSH as your default shell. If you want to use it right away, please logout and login! 

root@armbian:~# ls
root@armbian:~# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:0    1  15.2G  0 disk 
├─sda1         8:1    1   255M  0 part /boot
└─sda2         8:2    1   2.7G  0 part /
mmcblk2      179:0    0   7.3G  0 disk 
├─mmcblk2p1  179:1    0   122M  0 part 
└─mmcblk2p2  179:2    0   6.5G  0 part 
mmcblk2boot0 179:32   0     4M  1 disk 
mmcblk2boot1 179:64   0     4M  1 disk 
zram0        254:0    0 904.8M  0 disk [SWAP]
zram1        254:1    0    50M  0 disk /var/log
zram2        254:2    0 904.8M  0 disk /var/tmp
root@armbian:~# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 201
Input Box ID: [ 201 ]
FDTFILE: [ meson-gxm-octopus-planet.dtb ]
UBOOT_OVERLOAD: [ u-boot-zyxq.bin ]
K510: [ 0 ]
--------------------------------------------
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 ]
Start backup default bootloader
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.53746 s, 2.7 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00209663 s, 244 kB/s
Start create MBR and partittion
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.
Formatting ROOTFS partition...
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.
******************************************************************************************
lanyucomputer commented 2 years ago

Successful installed, please unplug the USB, re-insert the power supply to start the armbian. 这个显示是写入成功的

ophub commented 2 years ago

试试5.10版本的

lanyucomputer commented 2 years ago

现在黑屏了,也从U盘启动不了了 正在先刷安卓包,看行不行

ophub commented 2 years ago

https://github.com/ophub/kernel/releases/tag/tools 这有工具和安卓固件

lanyucomputer commented 2 years ago

我刷 了W大提供的h96pro移植线刷包还是U盘启动不了了

ophub commented 2 years ago

你试试刷我发的链接里的安卓系统,听说复位按钮3秒可以进入USB启动

lanyucomputer commented 2 years ago

Reboot to LibreELEC :一款安卓系统下重启启动TF卡系统的APK应用,需要root权限,我用了这个软件进入U盘系统了

lanyucomputer commented 2 years ago

你的刷 了HDMI有输出吗?我可以用U盘启动的时候也是没有输出的,我等它启动差不多了,用的SSH登陆的,但写入EMMC后启动不了,又在重新搞

ophub commented 2 years ago

我没这个设备,我是根据OpenWrt里的设置,一样的。你刷OpenWrt可以正常HDMI显示吗? 要不你先刷F大的OpenWrt试试

lanyucomputer commented 2 years ago

先刷H96的安卓包,然后用U盘复制安装Reboot to LibreELEC.apk的APP,重启迅速插入另外一个U盘写好镜像Armbian_5.96_Aml-g12_Debian_buster_default_5.3.0-rc8_20190910插到USB口,这时系统重启进U盘的armbian5.96开始跑码,进系统 后运行./install.sh,把系统 写入到EMMC,剩下的就是来折腾你的这个包了

lanyucomputer commented 2 years ago

刷OPENWRT,可以正常进U盘系统,HDMI显示也没有输出

lanyucomputer commented 2 years ago
Connecting to 10.0.0.113:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
    _              _        ___  _ ____  
   / \   _ __ ___ | |  ___ / _ \/ |___ \ 
  / _ \ | '_ ` _ \| | / __| (_) | | __) |
 / ___ \| | | | | | | \__ \\__, | |/ __/ 
/_/   \_\_| |_| |_|_| |___/  /_/|_|_____|

Welcome to Armbian 22.05.0-trunk Focal with Linux 5.15.35-flippy-72+o

No end-user support: built from trunk

System load:   18%              Up time:       4 min    
Memory usage:  12% of 1.77G     IP:        10.0.0.113
CPU temp:      52°C             Usage of /:    49% of 2.6G      
storage/:      38% of 255M      

[ 7 security updates available, 14 updates total: apt upgrade ]
Last check: 2022-04-21 22:36

Last login: Thu Apr 21 22:36:16 2022 from 10.0.0.104
armbian:~:# ls
armbian:~:# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 201
Input Box ID: [ 201 ]
FDTFILE: [ meson-gxm-octopus-planet.dtb ]
UBOOT_OVERLOAD: [ u-boot-zyxq.bin ]
K510: [ 0 ]
--------------------------------------------
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 ]
Start backup default bootloader
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.53155 s, 2.7 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00146288 s, 350 kB/s
Start create MBR and partittion
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.
Formatting ROOTFS partition...
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.
*************************************************************************************************
armbian:~:# sudo -i
armbian:~:# sudo -i
armbian:~:# su
armbian:~:# armbian-update 5.15.35
Ready to update, please wait...
Already the latest version, no need to update.
armbian:~:# armbian-update 5.15.35
Ready to update, please wait...
Already the latest version, no need to update.
armbian:~:# ls
armbian:~:# reboot
Connection closing...Socket close.
重新来过一遍还是不行,5.15.35可以U盘启动,写入EMMC后启不动,因为HDMI没有输出,哪些卡死也不清楚,我再试试5.10的吧
lanyucomputer commented 2 years ago

重刷5.10.112版本的,用U盘启动的时候是比5.15内核 的相比HDMI显示有输出,但用armbian-install命令写入EMMC后重启,就和5.15版本的一样的了,没有显示输出,也启不动系统 ,也不能重新进U盘系统了,唉

ophub commented 2 years ago

armbian-install no 加no不使用主线u-boot试试

lanyucomputer commented 2 years ago

可以直接刷装原版的ARMBIAN吗?我也想试试,5.10内核的和5.3.0的区别是什么,5.3是不是太老了,我还有一个玩客云都是5.9的内核的,如果最后实在刷不了的话,我就用5.3了,而且5.3可以显示输出,还可以按复位键启动U盘系统

lanyucomputer commented 2 years ago
Connecting to 10.0.0.203:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
    _              _        ___  _ ____  
   / \   _ __ ___ | |  ___ / _ \/ |___ \ 
  / _ \ | '_ ` _ \| | / __| (_) | | __) |
 / ___ \| | | | | | | \__ \\__, | |/ __/ 
/_/   \_\_| |_| |_|_| |___/  /_/|_|_____|

Welcome to Armbian 22.05.0-trunk Focal with Linux 5.10.112-meson64-dev

No end-user support: built from trunk

System load:   11%              Up time:       4 min    
Memory usage:  10% of 1.89G     IP:        10.0.0.203
10.0.0.202
CPU temp:      48°C             Usage of /:    49% of 2.6G      
storage/:      40% of 255M      

[ 7 security updates available, 14 updates total: apt upgrade ]
Last check: 2022-04-21 23:22

[ General system configuration (beta): armbian-config ]

Last login: Thu Apr 21 23:23:21 2022 from 10.0.0.104
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x  12 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh
drwxr-xr-x 317 1023 1023  12288 Apr 21 00:24 /etc/oh-my-zsh/plugins
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/colorize
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/debian
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/docker
-rw-r--r--   1 1023 1023 130563 Apr 21 00:24 /etc/oh-my-zsh/plugins/docker/_docker
drwxr-xr-x   3 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/evalcache
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/extract
-rw-r--r--   1 1023 1023    356 Apr 21 00:24 /etc/oh-my-zsh/plugins/extract/_extract
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/git
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/git-extras
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/history
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/screen
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/tmux
drwxr-xr-x   2 1023 1023   4096 Apr 21 00:24 /etc/oh-my-zsh/plugins/web-search
drwxr-xr-x   3 1023 1023   4096 Apr 22 09:47 /root/.oh-my-zsh/cache

[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.

[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh]     compaudit | xargs chmod g-w,o-w

[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.

armbian:~:# armbian-install no
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 201
Input Box ID: [ 201 ]
FDTFILE: [ meson-gxm-octopus-planet.dtb ]
UBOOT_OVERLOAD: [ u-boot-zyxq.bin ]
K510: [ 1 ]
--------------------------------------------
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.00183778 s, 279 kB/s
Start create MBR and partittion
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-zyxq.bin ] to u-boot.emmc
Formatting ROOTFS partition...
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.
*************************************************************************************************
armbian:~:# reboot
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(10.0.0.203) at 09:51:00.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 
用你教的方法后面 armbian-install no
后还是一样的结果,启动不了,黑屏,也不能从U盘启动,又只能重刷H96从重来过了
ophub commented 2 years ago

https://github.com/ophub/kernel/releases/download/tools/android_tv_zyxq_octopus_planet_s912_1gb.tar.xz 你要不试试刷成这个章鱼的TV系统,不要刷H96的,先换成这个系统再刷armbian

链接:https://pan.baidu.com/s/1kbvtyxpcmniLKN_ziH-kqQ 提取码:jla9 f大的网盘里有他编译的armbian,如果你用上面的安卓系统还是不行,你下载他的固件试试

lanyucomputer commented 2 years ago

好的,我来试试,生命不息,折腾不止,哈哈

ophub commented 2 years ago

https://www.right.com.cn/FORUM/thread-7806483-1-1.html 你看看这个帖子,我看见有人说自己成功了。你有这个BootLoader没,好像必须换一下这个。 这个设备有不同板子?黑板是一种不常见的?你是什么的。

ophub commented 2 years ago

bootloader.zip dd if=./bootloader of=/dev/mmcblk0 bs=1M 刷入安卓系统后,先下载上面的bootloader并dd替换了。 然后重启测试下安卓是否正常启动。写入后如无法启动可断电,按住reset后再通电,按住5秒以上。

如果上述正常,再直接刷入armbian-install no试试

lanyucomputer commented 2 years ago

我是黑版,没有替换bootloader,替换是在刷安卓系统后替换是吧,怎么替换,怎么进入的?dd if=./bootloader of=/dev/mmcblk0 bs=1M这条命令是在哪里输入的?

ophub commented 2 years ago

https://bbs.nas66.com/forum.php?mod=viewthread&tid=3184&extra=&page=1&mobile=no&_dsign=2ecbb2be

我看了一些刷章鱼星球的帖子,我理解是这样刷: 1.先换安卓TV系统:线刷H96PRO 2.更换bootloader并安装armbian: u盘写入armbian系统,从u盘启动进入armbian, 2.1 先换bootloader:bootloader.zip 先下载并把bootloader上传到/root目录下,更换命令:dd if=/root/bootloader of=/dev/mmcblk0 bs=1M 2.2 写入armbian:armbian-install

lanyucomputer commented 2 years ago
Connecting to 10.0.0.132:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
##############################################
#                  CoreELEC                  #
#            https://coreelec.org            #
##############################################

CoreELEC (official): 9.0.3 (Amlogic.arm)
CoreELEC:~ # ls
backup       lost+found   pictures     tvshows
downloads    music        screenshots  videos
CoreELEC:~ # cd sownloads
-sh: cd: can't cd to sownloads: No such file or directory
CoreELEC:~ # cd downloads
CoreELEC:~/downloads # ls
bootloadernew
CoreELEC:~/downloads # dd if=./bootloadernew of=/dev/mmcblk0 bs=1M
4+0 records in
4+0 records out
4194304 bytes (4.0MB) copied, 0.100014 seconds, 40.0MB/s
CoreELEC:~/downloads # Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(10.0.0.132) at 11:03:58.
先刷 CoreELEC系统后,用SSH登陆,用SMB复制bootloader 到CoreELEC系统,然后用命令dd if=./bootloader of=/dev/mmcblk0 bs=1M
,这样就改了BOOTLOADER
ophub commented 2 years ago

对,这样也可以刷入新bootloader 我看了章鱼的armbian没有主线u-boot,所以直接armbian-install即可安装armbian 如果你加了这个bootloader可以启动,我把他添加到固件里,以后就不用手动刷了

lanyucomputer commented 2 years ago
WARNING! The remote SSH server rejected X11 forwarding request.
    _              _        ___  _ ____  
   / \   _ __ ___ | |  ___ / _ \/ |___ \ 
  / _ \ | '_ ` _ \| | / __| (_) | | __) |
 / ___ \| | | | | | | \__ \\__, | |/ __/ 
/_/   \_\_| |_| |_|_| |___/  /_/|_|_____|

Welcome to Armbian 22.05.0-trunk Focal with Linux 5.10.112-meson64-dev

No end-user support: built from trunk

System load:   10%              Up time:       3 min    
Memory usage:  11% of 1.89G     IP:        10.0.0.203
CPU temp:      52°C             Usage of /:    49% of 2.6G      
storage/:      40% of 255M      

[ 7 security updates available, 14 updates total: apt upgrade ]
Last check: 2022-04-22 12:14

Last login: Fri Apr 22 12:15:10 2022 from 10.0.0.104
armbian:~:# ls
bootloadernew
armbian:~:# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 0     
Please Input SoC Name: dtb.img
Please Input DTB Name: dtb.img
Please Input UBOOT_OVERLOAD Name: dtb.img
Please Input MAINLINE_UBOOT Name: ^C
armbian:~:# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 201
Input Box ID: [ 201 ]
FDTFILE: [ meson-gxm-octopus-planet.dtb ]
UBOOT_OVERLOAD: [ u-boot-zyxq.bin ]
K510: [ 1 ]
--------------------------------------------
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 ]
Start backup default bootloader
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.934647 s, 4.5 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00153355 s, 334 kB/s
Start create MBR and partittion
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-zyxq.bin ] to u-boot.emmc
Formatting ROOTFS partition...
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.
*************************************************************************************************
armbian:~:# ls
bootloadernew  dtb.img
armbian:~:# dd if=./bootloadernew of=/dev/mmcblk0 bs=1M
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0839783 s, 49.9 MB/s
armbian:~:# reboot
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(10.0.0.203) at 12:22:28.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 
我把每个步骤都做了,但还是不行,你的这个包就是启动不了,直接是黑屏的,会不会是DTB的问题,我看到你的让选择201的那个DTB导致的,我也写了BOOTLOADER了,甚至armbian-install完成之后又重启用这个命令写入一遍bootloader,依然是黑屏
lanyucomputer commented 2 years ago

顺便说一下,如果不用H96的包,用这个包的话android_tv_zyxq_octopus_planet_s912_1gb,最后写入arm5.10到EMMC的时候报错, Socket error Event: 32 Error: 10053. Connection closing...Socket close.

ophub commented 2 years ago

我一会把原来的删了,换成你的这个安卓。

你使用5.15.35的固件,这个和5.4/5.3的固件一样,不用u-boot支持。你再试试。 还是1.刷H96PRO安卓,2.刷bootloader(两条dd命令),3.刷armbian

另外还原bootloader需要2条命令,我看你只输入了一条,你仔细看是不是少输入了。

dd if=/root/bootloader of="/dev/mmcblk0" conv=fsync bs=1 count=442
dd if=/root/bootloader of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1
ophub commented 2 years ago

https://www.right.com.cn/FORUM/thread-7806483-1-1.html 根据这个帖子说刷入5.3内核的armbian可以使用,我把这个固件下载看了,他使用的是meson-gxm-q200.dtb这个dtb。 你先按上面说的,试试5.15固件,两次dd还原bootloader,如果还是不启动,你试试改/boot/uEnv.txt里的dtb的值再刷一下。

以下是从Armbian_5.96_Aml-g12_Debian_buster_default_5.3.0-rc8_20190910.img这个固件里看的他的dtb配置及安装文件,从这2个文件看,没u-boot,区别只是dtb不同。

我觉的可以从两个方面解决:

  1. 是 bootloader 命令dd少了一条
  2. 把/boot/uEnv.txt换成/boot/extlinux/extlinux.conf(T95也是写入emmc只能用extlinux.conf启动)
  3. 换公版dtb文件:meson-gxm-q200.dtb

cat extlinux.conf

Snip20220422_2

ls /boot Snip20220422_3

cat /root/install.sh


#!/bin/sh

echo "Start script create MBR and filesystem"

hasdrives=$(lsblk | grep -oE '(mmcblk[0-9])' | sort | uniq)
if [ "$hasdrives" = "" ]
then
    echo "UNABLE TO FIND ANY EMMC OR SD DRIVES ON THIS SYSTEM!!! "
    exit 1
fi
avail=$(lsblk | grep -oE '(mmcblk[0-9]|sda[0-9])' | sort | uniq)
if [ "$avail" = "" ]
then
    echo "UNABLE TO FIND ANY DRIVES ON THIS SYSTEM!!!"
    exit 1
fi
runfrom=$(lsblk | grep /$ | grep -oE '(mmcblk[0-9]|sda[0-9])')
if [ "$runfrom" = "" ]
then
    echo " UNABLE TO FIND ROOT OF THE RUNNING SYSTEM!!! "
    exit 1
fi
emmc=$(echo $avail | sed "s/$runfrom//" | sed "s/sd[a-z][0-9]//g" | sed "s/ //g")
if [ "$emmc" = "" ]
then
    echo " UNABLE TO FIND YOUR EMMC DRIVE OR YOU ALREADY RUN FROM EMMC!!!"
    exit 1
fi
if [ "$runfrom" = "$avail" ]
then
    echo " YOU ARE RUNNING ALREADY FROM EMMC!!! "
    exit 1
fi
if [ $runfrom = $emmc ]
then
    echo " YOU ARE RUNNING ALREADY FROM EMMC!!! "
    exit 1
fi
if [ "$(echo $emmc | grep mmcblk)" = "" ]
then
    echo " YOU DO NOT APPEAR TO HAVE AN EMMC DRIVE!!! "
    exit 1
fi

DEV_EMMC="/dev/$emmc"

echo $DEV_EMMC

echo "Start backup u-boot default"

dd if="${DEV_EMMC}" of=/boot/u-boot-default.img bs=1M count=4

echo "Start create MBR and partittion"

parted -s "${DEV_EMMC}" mklabel msdos
parted -s "${DEV_EMMC}" mkpart primary fat32 700M 828M
parted -s "${DEV_EMMC}" mkpart primary ext4 829M 100%

echo "Start restore u-boot"

dd if=/boot/u-boot-default.img of="${DEV_EMMC}" conv=fsync bs=1 count=442
dd if=/boot/u-boot-default.img of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1

sync

echo "Done"

echo "Start copy system for eMMC."

mkdir -p /ddbr
chmod 777 /ddbr

PART_BOOT="${DEV_EMMC}p1"
PART_ROOT="${DEV_EMMC}p2"
DIR_INSTALL="/ddbr/install"

if [ -d $DIR_INSTALL ] ; then
    rm -rf $DIR_INSTALL
fi
mkdir -p $DIR_INSTALL

if grep -q $PART_BOOT /proc/mounts ; then
    echo "Unmounting BOOT partiton."
    umount -f $PART_BOOT
fi
echo -n "Formatting BOOT partition..."
mkfs.vfat -n "BOOT_EMMC" $PART_BOOT
echo "done."

mount -o rw $PART_BOOT $DIR_INSTALL

echo -n "Cppying BOOT..."
cp -r /boot/* $DIR_INSTALL && sync
echo "done."

echo -n "Edit init config..."
sed -e "s/ROOTFS/ROOT_EMMC/g" \
 -i "$DIR_INSTALL/uEnv.ini"
echo "done."

rm $DIR_INSTALL/s9*
rm $DIR_INSTALL/aml*

umount $DIR_INSTALL

if grep -q $PART_ROOT /proc/mounts ; then
    echo "Unmounting ROOT partiton."
    umount -f $PART_ROOT
fi

echo "Formatting ROOT partition..."
mke2fs -F -q -t ext4 -L ROOT_EMMC -m 0 $PART_ROOT
e2fsck -n $PART_ROOT
echo "done."

echo "Copying ROOTFS."

mount -o rw $PART_ROOT $DIR_INSTALL

cd /
echo "Copy BIN"
tar -cf - bin | (cd $DIR_INSTALL; tar -xpf -)
#echo "Copy BOOT"
#mkdir -p $DIR_INSTALL/boot
#tar -cf - boot | (cd $DIR_INSTALL; tar -xpf -)
echo "Create DEV"
mkdir -p $DIR_INSTALL/dev
#tar -cf - dev | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy ETC"
tar -cf - etc | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy HOME"
tar -cf - home | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy LIB"
tar -cf - lib | (cd $DIR_INSTALL; tar -xpf -)
echo "Create MEDIA"
mkdir -p $DIR_INSTALL/media
#tar -cf - media | (cd $DIR_INSTALL; tar -xpf -)
echo "Create MNT"
mkdir -p $DIR_INSTALL/mnt
#tar -cf - mnt | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy OPT"
tar -cf - opt | (cd $DIR_INSTALL; tar -xpf -)
echo "Create PROC"
mkdir -p $DIR_INSTALL/proc
echo "Copy ROOT"
tar -cf - root | (cd $DIR_INSTALL; tar -xpf -)
echo "Create RUN"
mkdir -p $DIR_INSTALL/run
echo "Copy SBIN"
tar -cf - sbin | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy SELINUX"
tar -cf - selinux | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy SRV"
tar -cf - srv | (cd $DIR_INSTALL; tar -xpf -)
echo "Create SYS"
mkdir -p $DIR_INSTALL/sys
echo "Create TMP"
mkdir -p $DIR_INSTALL/tmp
echo "Copy USR"
tar -cf - usr | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy VAR"
tar -cf - var | (cd $DIR_INSTALL; tar -xpf -)
sync

echo "Copy fstab"

rm $DIR_INSTALL/etc/fstab
cp -a /root/fstab $DIR_INSTALL/etc/fstab

rm $DIR_INSTALL/root/install.sh
rm $DIR_INSTALL/root/fstab
rm $DIR_INSTALL/usr/bin/ddbr

cd /
sync

umount $DIR_INSTALL

echo "*******************************************"
echo "Complete copy OS to eMMC "
echo "*******************************************"
lanyucomputer commented 2 years ago

我一会把原来的删了,换成你的这个安卓。

你使用5.15.35的固件,这个和5.4/5.3的固件一样,不用u-boot支持。你再试试。 还是1.刷H96PRO安卓,2.刷bootloader(两条dd命令),3.刷armbian

另外还原bootloader需要2条命令,我看你只输入了一条,你仔细看是不是少输入了。

dd if=/root/bootloader of="/dev/mmcblk0" conv=fsync bs=1 count=442 dd if=/root/bootloader of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1

我不是输的这个命令,我输入的是dd if=./bootloadernew of=/dev/mmcblk0 bs=1M,没有这么长

bootloadernew 这个是我上传上去的名字

ophub commented 2 years ago

两个dd命令,你先试试这个,说不准就是少了一条的问题。你按我发的敲,bootloader的路径和名称改对即可

dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1
lanyucomputer commented 2 years ago
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
    _    __  __ _     ____ _ ____  
   / \  |  \/  | |   / ___/ |___ \ 
  / _ \ | |\/| | |  | |  _| | __) |
 / ___ \| |  | | |__| |_| | |/ __/ 
/_/   \_\_|  |_|_____\____|_|_____|

Welcome to Debian Buster with Armbian Linux 5.3.0-rc8-aml-g12
System load:   0.00 0.00 0.00   Up time:       10 min       
Memory usage:  10 % of 1805MB   IP:            10.0.0.133
CPU temp:      51°C             
Usage of /:    19% of 6.4G      

[ General system configuration (beta): armbian-config ]

Last login: Fri Apr 22 05:45:42 2022 from 10.0.0.104

root@aml:~# ls
bootloader  g12_sound.sh
root@aml:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
dd: failed to open './bootloadernew': No such file or directory
root@aml:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
dd: failed to open './bootloadernew': No such file or directory
root@aml:~# ls
bootloader  g12_sound.sh
root@aml:~# ls
bootloader  g12_sound.sh
root@aml:~# ls
bootloader  bootloadernew  g12_sound.sh
root@aml:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
442+0 records in
442+0 records out
442 bytes copied, 0.00440484 s, 100 kB/s
root@aml:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.0976788 s, 42.9 MB/s
root@aml:~# 
ophub commented 2 years ago

5.3.0是w大的,这个应该可以启动。 你试试我的5.15的固件,dd这个bootloader可以启动不。我的他的区别是引导文件不同,他是/boot/extlinux/extlinux.conf,我是/boot/uEnv.txt 这个bootloader他的固件里也没有带,是别人分享的文件。

lanyucomputer commented 2 years ago

是的5.3的可以启动,我嫌它版本低了,我用了上面发给你的命令之后,从U盘启不动了,但可以直接EMMC启动,现在EMMC是W大的5.3.0的

ophub commented 2 years ago

应该刷了w大的armbian可以从usb启动吧,我看帖子说先刷他的再刷我的。 但是我看了他的没bootloader,应该不需要刷,直接dd了bootloader刷我的应该也是可以启动的。因为帖子里没说uEnv.txt不行,他是直接刷入就可以了。

lanyucomputer commented 2 years ago

可以的呢,刷W大的5.30的可以正常启动,正常写入EMMC

ophub commented 2 years ago

你再折腾一次,1.刷H96PRO安卓,2.刷bootloader(两条dd命令),3.刷我的armbian

dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1

我觉得核心点在2个部分,1是刷了H96换了安卓分区表信息,2是刷入新bootloader换了引导,这样就可以刷armbian了

lanyucomputer commented 2 years ago

好,听你的,我还就不信刷不了了

lanyucomputer commented 2 years ago

你再折腾一次,1.刷H96PRO安卓,2.刷bootloader(两条dd命令),3.刷我的armbian

dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442 dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1 我觉得核心点在2个部分,1是刷了H96换了安卓分区表信息,2是刷入新bootloader换了引导,这样就可以刷armbian了

最后这个ARMBIAN镜像是5.15还是5.10的?

ophub commented 2 years ago

你先刷5.15吧,他和w大的5.3完全相同,都是无u-boot版

5.10就是/boot下多了一个u-boot.ext,我们先排除是这个文件不合适导致不启动

lanyucomputer commented 2 years ago
WARNING! The remote SSH server rejected X11 forwarding request.
    _              _        ___  _ ____  
   / \   _ __ ___ | |  ___ / _ \/ |___ \ 
  / _ \ | '_ ` _ \| | / __| (_) | | __) |
 / ___ \| | | | | | | \__ \\__, | |/ __/ 
/_/   \_\_| |_| |_|_| |___/  /_/|_|_____|

Welcome to Armbian 22.05.0-trunk Focal with Linux 5.15.35-flippy-72+o

No end-user support: built from trunk

System load:   62%              Up time:       5 min    
Memory usage:  20% of 1.77G     IP:        10.0.0.113
10.0.0.112
CPU temp:      53°C             Usage of /:    51% of 2.6G      
storage/:      38% of 255M      

[ General system configuration (beta): armbian-config ]

Last login: Fri Apr 22 14:55:27 2022 from 10.0.0.104

Waiting for system to finish booting ...
Welcome to ARMBIAN! 

Documentation: https://docs.armbian.com | Community: https://forum.armbian.com

Create root password: ***********
Repeat root password: ***********

Support status: no support (unsupported userspace)

Choose default system command shell:

1) bash
2) zsh

Shell: ZSH

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): ^C
Disabling user account creation procedure

You selected ZSH as your default shell. If you want to use it right away, please logout and login! 

root@armbian:~# ls
bootloadernew  iozone.tmp
root@armbian:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442
442+0 records in
442+0 records out
442 bytes copied, 0.00309133 s, 143 kB/s
root@armbian:~# dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.125784 s, 33.3 MB/s
root@armbian:~# armbian-install
Start install armbian to emmc...
DEV_EMMC: /dev/mmcblk2
--------------------------------------------------------------------------------------
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                             
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: 201
Input Box ID: [ 201 ]
FDTFILE: [ meson-gxm-octopus-planet.dtb ]
UBOOT_OVERLOAD: [ u-boot-zyxq.bin ]
K510: [ 0 ]
--------------------------------------------
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 ]
Start backup default bootloader
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.08938 s, 3.9 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00165146 s, 310 kB/s
Start create MBR and partittion
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.
Formatting ROOTFS partition...
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.
*************************************************************************************************
root@armbian:~# reboot
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(10.0.0.113) at 15:01:13.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 10.0.0.113:22...
Could not connect to '10.0.0.113' (port 22): Connection failed.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 10.0.0.203:22...
Could not connect to '10.0.0.203' (port 22): Connection failed.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

你从这个命令看有没有什么问题?我最后按你的DD 两次后刷入5.15,你看从U盘启动进入的也是5.15,但运行ARMBIAN-INSTALL安装后重启就失联了,启不动,还有用5.15U盘启动的时候HDMI也是没有输出的,但可以看到U盘灯在闪在读盘,等灯没有闪就可以SSH到5.15了,意思就是U盘启动的时候5.15虽然没有显示,但是是可以启动的,就是不知道为什么一写EMMC就启动不了
lanyucomputer commented 2 years ago

你从这个命令看有没有什么问题?我最后按你的DD 两次后刷入5.15, 你看从U盘启动进入的也是5.15,但运行ARMBIAN-INSTALL安装后重启就失联了, 启不动,还有用5.15U盘启动的时候HDMI也是没有输出的,但可以看到U盘灯在闪在读盘, 等灯没有闪就可以SSH到5.15了,意思就是U盘启动的时候5.15虽然没有显示,但是是可以启动的, 就是不知道为什么一写EMMC就启动不了

ophub commented 2 years ago

稍等会,我给你做个5.3的引导文件/boot/extlinux/extlinux.conf,你换换

lanyucomputer commented 2 years ago

dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442 dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1 刚才这两条命令我不是在coreecle系统SSH下执行的,我是在W大5.30下执行的,这个有影响吗?

lanyucomputer commented 2 years ago

我从昨天到货晚上一直搞到现在,汗

ophub commented 2 years ago

armbian-install.zip bootloadernew.zip

  1. 下载上面的文件并解压缩。安装文件必须换:armbian-install。这个bootloadernew是你之前的,可以用你的
  2. 刷入H96安卓系统
  3. U盘刷我的armbian,从USB启动后进行2处替换,一定要严格保证路径正确: 3.1 替换安装文件:/usr/sbin/armbian-install 3.2 上传bootloader到固定路径下:/usr/lib/u-boot/bootloadernew
  4. 替换好后安装armbian-install ,选择201
  5. 不需要在任何地方dd了,我在安装脚本里把他写进去了。你把bootloadernew放固定路径会由脚本正确写入
lanyucomputer commented 2 years ago

在W大5.30写入EMMC后,可以正常启动 用这两条命令之后 dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=1 count=442 dd if=./bootloadernew of="/dev/mmcblk0" conv=fsync bs=512 skip=1 seek=1 就直接不能从优盘启动了,拔掉U盘可以正常从EMMC启动,再次SSH后输入 dd if=./bootloadernew of=/dev/mmcblk0 bs=1M后重启, 就可以从U盘启动了

lanyucomputer commented 2 years ago

armbian-install.zip bootloadernew.zip

  1. 下载上面的文件并解压缩。安装文件必须换:armbian-install。这个bootloadernew是你之前的,可以用你的
  2. 刷入H96安卓系统
  3. U盘刷我的armbian,从USB启动后进行2处替换,一定要严格保证路径正确: 3.1 替换安装文件:/usr/sbin/armbian-install 3.2 上传bootloader到固定路径下:/usr/lib/u-boot/bootloadernew
  4. 替换好后安装armbian-install ,选择201
  5. 不需要在任何地方dd了,我在安装脚本里把他写进去了。你把bootloadernew放固定路径会由脚本正确写入

好的,我现在试这个

ophub commented 2 years ago

你先试试我上面的这个方法,2个文件替换对路径。 如果dd了反而进不去usb,说明可以不dd,但是咱们一步步来,这次是判断是不是引导文件需要是extlinux.conf

这次的修改是加了dd换bootloader,换了启动引导文件为extlinux.conf 这种修改和5.3完全一样了

lanyucomputer commented 2 years ago

你的armbian选哪个版本5.10还是5.15?