- 电脑插上 U 盘(8G 以上),刻录 img 到 U 盘
重新拔插 U 盘(若提示是否格式化,直接忽略),打开boot分区
https://github.com/yangxuan8282/phicomm-n1/releases/tag/dtb
将 BOOT / uEnv.ini 中的 修改为 p230.dtb 或其他 - 拔掉 N1 电源,插上 U 盘,连接好网线,再插上电源,启动
进入路由器查找 N1 的 ip ,然后 SSH 连接 N1,执行
./install.sh完成后执行
poweroff关机,拔掉 U 盘启动就 OK 了
过程记录:
login as: rootroot@aml's password:____ ___/ ___|/ _ \__ ____ ____ __\___ \ (_) \ \/ /\ \/ /\ \/ /___) \__, |> < > < > <|____/ /_//_/\_\/_/\_\/_/\_\Welcome to ARMBIAN 5.68 user-built Debian GNU/Linux 9 (stretch) 4.19.13-aml-s9xx xSystem load: 2.28 0.70 0.25 Up time: 1 minMemory usage: 4 % of 1843MB IP: 192.168.0.104CPU temp: 27°CUsage of /: 6% of 29G storage/: 50% of 128MLast login: Wed Jan 16 07:50:16 2019root@aml:~# ./install.shStart script create MBR and filesystemStart backup u-boot default4+0 records in4+0 records out4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0701825 s, 59.8 MB/sStart create MBR and partittionStart restore u-boot442+0 records in442+0 records out442 bytes copied, 0.00277858 s, 159 kB/s8191+0 records in8191+0 records out4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.282464 s, 14.8 MB/sDoneStart copy system for eMMC.Formatting BOOT partition...mkfs.fat 4.1 (2017-01-24)done.Cppying BOOT...done.Edit init config...done.Formatting ROOT partition.../dev/mmcblk1p2 contains a ext4 file system labelled 'ROOT_EMMC'last mounted on /root on Thu Jan 1 00:00:11 1970e2fsck 1.43.4 (31-Jan-2017)ROOT_EMMC: clean, 11/427392 files, 50723/1706240 blocksdone.Copying ROOTFS.Copy BINCreate DEVCopy ETCCopy HOMECopy LIBCreate MEDIACreate MNTCopy OPTCreate PROCCopy ROOTCreate RUNCopy SBINCopy SELINUXCopy SRVCreate SYSCreate TMPCopy USRCopy VARCopy fstab*******************************************Complete copy OS to eMMC*******************************************root@aml:~# poweroff
