Please enable Javascript to view the contents

玩客云刷Armbian关键步骤

 ·  ☕ 2 分钟

走了很多弯路,需要注意几点:

  1. 制作Armbian启动SD卡,https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=439086&page=1&authorid=30127

  2. TTL中断启动后如果任何命令均无反应(高版本u-boot屏蔽了命令行),需要通过Amlogic刷机工具usb-burn将玩客云刷成安卓系统,目的是降级u-boot

  3. 降级后通过TTL中断启动,设置u-boot启动参数如下:

setenv bootfromrecovery 0
setenv bootfromnand 0
setenv start_mmc_autoscript 'if fatload mmc 0 11000000 s805_autoscript; then autoscr 11000000; fi;'
setenv start_usb_autoscript "if fatload usb 0 11000000 s805_autoscript; then autoscr 11000000; fi; if fatload usb 1 11000000 s805_autoscript; then autoscr 11000000; fi;"
setenv start_autoscript 'if usb start; then run start_usb_autoscript; fi; if mmcinfo; then run start_mmc_autoscript; fi;'
setenv bootcmd 'run start_autoscript; run storeboot'
saveenv
  1. 执行以下命令,启动Armbian
fatload mmc 0 11000000 s805_autoscript;autoscr 11000000
  1. 启动Armbian后可以设置u-boot启动参数
fw_setenv bootfromrecovery 0
fw_setenv bootfromnand 0
fw_setenv start_mmc_autoscript 'if fatload mmc 0 11000000 s805_autoscript; then autoscr 11000000; fi;'
fw_setenv start_usb_autoscript "if fatload usb 0 11000000 s805_autoscript; then autoscr 11000000; fi; if fatload usb 1 11000000 s805_autoscript; then autoscr 11000000; fi;"
fw_setenv start_autoscript 'if usb start; then run start_usb_autoscript; fi; if mmcinfo; then run start_mmc_autoscript; fi;'
fw_setenv bootcmd 'run start_autoscript; run storeboot
  1. 此时启动的Armbian网卡工作不正常,需要恢复玩客云原始u-boot
dd if=/root/mmcblk1boot0 of=/dev/mmcblk1boot0
dd if=/root/mmcblk1boot1 of=/dev/mmcblk1boot1
  1. 再次启动Armbian,TTL输出后面会乱码。此时接上键盘显示器,console登陆后网卡正常。
  2. 降级玩客云u-boot, 下载 https://github.com/onethingpcs/onecloud-app/tree/master/app/miner.plugin-ubootinstall.ipk/bin 里的u-boot.bin。中断TTL启动后执行:
mmcinfo
fatload mmc 0 12000000 u-boot.bin
store rom_write 12000000 0 60000 

后面会发现网卡相关的信息都和u-boot及u-boot环境变量有关。

分享

couchp95
作者
couchp95