返回列表 發帖

phicomm N1 install Armbian (買W2/W大,不要買yyf)

本帖最後由 yiucsw 於 2020-1-23 15:32 編輯

在拼多多買了 Phicomm N1 preload W2.2. image. (不用adb bootloader)
(不要買T1)
requirement : 1) 要 Remote control (在W2.2 按power off, i guess there is another way to do it), 2) 要一個 USB Stick (大小看在哪裡Run armbian)
Browser 選 Armbian unix image. 有 Debian/Ubuntu favor. 可以up folder 看看有沒有更新的。
  1. https://yadi.sk/d/srrtn6kpnsKz2/Linux/ARMBIAN/OLD/5.99_20191125
複製代碼
2) 寫到 USB. 8M/16M 都可以。
macos : e.g. write 5.99 to USB *rdisk is faser
  1. sudo diskutil unmountDisk /dev/disk2
  2. sudo dd if=./Armbian_5.99_Aml-g12_Ubuntu_disco_default_5.3.0_desktop_20191125.img of=/dev/rdisk2 bs=1m
複製代碼
https://blog.newnius.com/burn-li ... m-n1-under-mac.html
macos : enable edit to USB / change filename.dtb in uEnv.ini
  1. diskutil unmountDisk /dev/disk2
  2. sudo mkdir /Volumes/BOOT
  3. sudo mount -w -t msdos /dev/disk2s1 /Volumes/BOOT
  4. cd /Volumes/BOOT
  5. sed -i -e 's/meson-g12b-ugoos-am6.dtb/meson-gxl-s905d-phicomm-n1.dtb/' /Volumes/BOOT/uEnv.ini
複製代碼
https://gist.github.com/miguelmo ... 3afdd65c5c1375ddbde
4) Prepare N1 boot from external USB (1st time only)
i) unplug power from N1, plug again, Power off from remote, select the right side on-screen button, "线刷 boot"
ii) I select the boot to bootloader (may not need)  
5) Boot from external USB
i) insert the USB stick to USB port next to HDMI, plug in USB keyboard to another USB port.
ii) power off, then power on or remove power supply and plug in again.
iii) Initial userid/password is root/1234. need to change to at least 8 character with numeric.
iv) if it boot to graphic mode, press Ctrl-Alt-F1 to Exit Graphic mode, or press ctrl-c to stop create userid for graphic mode.

本帖最後由 yiucsw 於 2020-1-23 22:25 編輯

ssh to N1. look at N1 display output there is an IP address show. or check IP from router.  
Run
  1. armbian-config
複製代碼
-
   Network
    -Change eth0 to static (need change in advanced /etc/network/interfaces, or after nand-sata-install)
    -Disable IPV6
    -Enable WIFI
    -Install Bluetooth (if there is Bluetooth keyboard/mouse)
   System
     - Disable Desktop (if select Desktop linux) low memory and enable if needed.

Network Static ip
sudo nano /etc/network/interfaces
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1

* 改 mac address "hwaddress" 是沒有效果.

TOP

本帖最後由 yiucsw 於 2020-1-9 17:00 編輯

Install Docker and portainer
https://leeyr.com/324.html

TOP

本帖最後由 yiucsw 於 2020-1-9 17:05 編輯

Install docker management: portainer
  1. docker pull portainer/portainer:latest
  2. docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
複製代碼

in Brower url: ipaddress:9000 for portainer interface
from https://portainer.readthedocs.io/en/latest/deployment.html.

TOP

Copy USB to N1.
  1. ./install.sh if not work,
  2. nand–sata-install
複製代碼
Shutdown 0 then remove USB.
** Will reboot from USB after install Armbian, i.e. can overwrite the ROM again.

TOP

本帖最後由 yiucsw 於 2020-2-25 18:06 編輯

deleted, refer to T1

TOP

返回列表