• NanoPi NEO2 – это маленький одноплатный компьютер от компании FriendlyElec. В нём используется 64-разрядный четырехъядерный процессор Allwinner H5 (ARM Cortex-A53). В процессоре так же имеется шестиядерный графический процессор Mali450 GPU, есть версии с 512MB и 1024MB оперативной памяти DDR3. Для компьютера производитель подготовил образы дисков с UbuntuCore и Armbian.

  • Форм-фактор у нового NanoPi NEO2 наследует форм-фактор предыдущей версии NEO и имеет совместимые интерфейсы и порты с NEO. Кроме того, имея такой небольшой размер, компьютер имеет гигабитную сетевую карту (которая в отличии от Raspberry Pi внутренне подключена не через USB-шину) и два USB-порта (один распаян, а второй в виде 4 пинов). Эти функции делают его особенно подходящим для приложений, требующих высокой пропускной способности данных, быстрой передачи данных и высокой производительности.

Техническая спецификация

  • Процессор: Allwinner H5, Quad-core 64-bit high-performance Cortex A53;
  • Память: 512MB/1024MB DDR3;
  • Связь: 10/100/1000M Ethernet, чип RTL8211E-VB-CG;
  • USB Host: USB Type A x 1 и USB pin header x 2;
  • Слот MicroSD: MicroSD x 1 для системного загрузчика и данных;
  • LED: Power LED x 1, System LED x 1;
  • GPIO1: 2.54mm pitch 24-пиновая колодка, совместимые с Raspberry Pi's GPIO пины с 1 по 24 (включает в себя UART, SPI, I2C, IO и т.д.);
  • GPIO2: 2.54mm pitch 12-пиновая колодка (включает в себя USB, IR-приёмник, I2S, IO и т.д.);
  • Консольный порт: 2.54mm pitch 4-пиновая колодка;
  • Аудио вход/выход: 2.54mm pitch 4-пиновая колодка;
  • MicroUSB: Power input(5V/2A) and OTG;
  • Размеры: 40 x 40mm;
  • Рабочая температура: -20℃ to 70℃;
  • Вес платы: 13g;
  • Программное обеспечение: u-boot, Ubuntu Core.

Распаковка и сборка

  • Приклеиваем термопроводящую прокладку в специально отведённое место на нижней части корпуса;

  • Отклеиваем прозрачную защитную плёнку с прокладки, аккуратно устанавливаем плату NanoPi NEO2 в корпус и прикручиваем плату к части корпуса используя два маленьких винтика (М1.6x3мм) из комплекта;

  • Аккуратно надеваем модуль NanoHat OLED на плату NanoPi NEO2;

  • Кладём на стол верхнюю часть корпуса и устанавливаем три круглых кнопки в специальные отверстия;

  • Снимаем защитную плёнку с экрана, аккуратно соединяем две части корпуса и привинчиваем обе части корпуса при помощи длинных винтов (М2.5x23мм) из комплекта;

  • Затем переворачивам корпус и приклеиваем резиновые ножки в специальные места на корпусе, кстати, обратите внимание на резьбу M3 в этих специальных местах (при необходимости, корпус можно прикрутить куда-нибудь).

  • В итоге получилось как-то так:

Программное обеспечение

Открываем ссылку http://download.friendlyarm.com/nanopineo2 и нажимаем на иконку Google Drive. Далее заходим в папку official-ROMs и выбираем файл с образом. Т.к. у меня версия NanoPi NEO2 с OLED-экраном, я для себя скачиваю образ nanopi-neo2_sd_ubuntu-oled-xenial_4.14_arm64_20181011.img.zip из папки accessory-ROMs.

$ unzip nanopi-neo2_sd_ubuntu-oled-xenial_4.14_arm64_20181011.img.zip
$ dd if=nanopi-neo2_sd_ubuntu-oled-xenial_4.14_arm64_20181011.img of=/dev/disk2
  • Если подключить microSD-карточку, которая шла в комплекте (или которую мы сейчас записали), к другому компьютеру с Linux (например к Synology) и посмотреть, что на ней есть, мы увидим примерно следующее:
NAS2:~# parted /dev/sdq print
Model: Generic- USB3.0 CRW -0 (scsi)
Disk /dev/sdq: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      25.2MB  130MB   105MB   primary
 2      130MB   3900MB  3770MB  primary

NAS2:~# mount | grep /dev/sdq
/dev/sdq1 on /volumeUSB1/usbshare1-1 type vfat (rw,relatime,uid=1024,gid=100,fmask=0000,dmask=0000,allow_utime=0022,codepage=fault,iocharset=default,shortname=mixed,quiet,utf8,flush,errors=remount-ro)
/dev/sdq2 on /volumeUSB1/usbshare1-2 type ext4 (rw,relatime,nodelalloc,synoacl,data=ordered)

NAS2:~# df -h | grep /dev/sdq
/dev/sdq1       100M   18M   83M  18% /volumeUSB1/usbshare1-1
/dev/sdq2       2.4G  1.8G  623M  75% /volumeUSB1/usbshare1-2

NAS2:~# ls -alh /volumeUSB1/usbshare1-1/
total 18M
drwxrwxrwx  5 admin users  16K 2019-03-05 .
drwxr-xr-x 11 root  root  4.0K 2019-03-05 ..
-rwxrwxrwx  1 admin users 1.1K 2018-06-28 boot.cmd
-rwxrwxrwx  1 admin users 1.2K 2018-06-28 boot.scr
-rwxrwxrwx  1 admin users  14M 2018-06-28 Image
drwxrwxrwx  2 admin users 2.0K 2018-06-28 overlays
-rwxrwxrwx  1 admin users 4.3M 2018-06-28 rootfs.cpio.gz
-rwxrwxrwx  1 admin users  35K 2018-06-28 sun50i-h5-nanopi-k1-plus.dtb
-rwxrwxrwx  1 admin users  34K 2018-06-28 sun50i-h5-nanopi-m1-plus2.dtb
-rwxrwxrwx  1 admin users  33K 2018-06-28 sun50i-h5-nanopi-neo2.dtb
-rwxrwxrwx  1 admin users  33K 2018-06-28 sun50i-h5-nanopi-neo-core2.dtb
-rwxrwxrwx  1 admin users  34K 2018-06-28 sun50i-h5-nanopi-neo-plus2.dtb

NAS2:~# ls -alh /volumeUSB1/usbshare1-2/
total 92K
drwxrwxrwx  23 root root 4.0K 2019-03-05 .
drwxr-xr-x  11 root root 4.0K 2019-03-05 ..
drwxr-xr-x   2 root root 4.0K 2018-06-28 bin
drwxr-xr-x   2 root root 4.0K 2015-10-19 boot
drwxr-xr-x   4 root root 4.0K 2018-06-28 dev
drwxr-xr-x  89 root root 4.0K 2018-06-28 etc
drwxr-xr-x   4 root root 4.0K 2017-03-28 home
drwxr-xr-x  17 root root 4.0K 2018-06-28 lib
drwx------   2 root root 4.0K 1970-01-01 lost+found
drwxr-xr-x   2 root root 4.0K 2015-10-21 media
drwxr-xr-x   4 root root 4.0K 2018-06-28 mnt
drwxr-xr-x   3 root root 4.0K 2018-06-28 opt
drwxr-xr-x   2 root root 4.0K 2015-10-19 proc
drwxr-xr-x  12 root root 4.0K 2018-06-28 root
drwxr-xr-x   8 root root 4.0K 2017-03-15 run
drwxr-xr-x   2 root root 4.0K 2018-04-17 sbin
drwxr-xr-x   2 root root 4.0K 2015-10-21 srv
drwxr-xr-x   2 root root 4.0K 2015-10-16 sys
drwxrwxrwt   2 root root 4.0K 2018-06-28 tmp
drwxr-xr-x  11 root root 4.0K 2017-10-10 usr
drwxr-xr-x  11 root root 4.0K 2016-06-21 var

Как мы видим, на первом разделе размером 100 мегабайт – файловая система FAT32, на этом разделе расположен загрузчик. А на втором разделе размером 2.4GiB – файловая система ext4, на этом разделе расположен предустановленный Linux.

Первое включение

Подключаем к NanoPi NEO2 сетевой кабель и кабель питания с разъёмом micro USB. Устройство включается, через несколько секунд получает IP-адрес с DHCP-сервера, затем ещё через несколько секунд загорается дисплей. На экране видно неправильную дату и время, а ещё через пару секунд дата и время исправляются на правильные (с поправкой на неправильно установленный по умолчанию часовой пояс).

Кнопки по умолчанию работают стандартно:

  • F1 – отображается текущую дату и время на экране;
  • F2 – отображается системная информация с IP-адресом, загрузкой процессора, количеством свободной/установленной оперативной памяти, местом на диске и температурой процессора;
  • F3 – выключение NanoPi NEO2 (в этом режиме нажатие кнопки F1 изменяет пункт меню Yes/No, а нажатие F2 выполняет роль кнопки Enter).

Как мы видели в parted, раздел с предустановленным Linux был размером чуть меньше 4GB, но после первой загрузки, раздел раздуло до 15GB. Это сделано для того, чтобы можно было брать для установки любую microSD-карточку от 4GB и выше, копировать на неё образ с предустановленным Linux, и загружаться. А дальше после первой загрузки размер корневого раздела увеличивается до максимума установленной microSD-карточки.

Кстати сказать, если NanoPi NEO2 подключить для питания не в блок питания, а к любому другому компьютеру, NanoPi NEO2 определится как USB-устройство, и даже будет доступен для чтения первый раздел с загрузчиком:

$ dmesg -T
[Tue Mar  5 15:36:56 2019] usb 2-1.2: new high-speed USB device number 15 using ehci-pci
[Tue Mar  5 15:36:57 2019] usb 2-1.2: New USB device found, idVendor=0525, idProduct=a4a5, bcdDevice= 4.14
[Tue Mar  5 15:36:57 2019] usb 2-1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[Tue Mar  5 15:36:57 2019] usb 2-1.2: Product: Mass Storage Gadget
[Tue Mar  5 15:36:57 2019] usb 2-1.2: Manufacturer: Linux 4.14.52 with musb-hdrc
[Tue Mar  5 15:36:57 2019] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[Tue Mar  5 15:36:57 2019] usb-storage 2-1.2:1.0: Quirks match for vid 0525 pid a4a5: 10000
[Tue Mar  5 15:36:57 2019] scsi host34: usb-storage 2-1.2:1.0
[Tue Mar  5 15:36:58 2019] scsi 34:0:0:0: Direct-Access     Linux    File-Stor Gadget 0414 PQ: 0 ANSI: 2
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: Attached scsi generic sg3 type 0
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: Power-on or device reset occurred
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: [sdc] 204800 512-byte logical blocks: (105 MB/100 MiB)
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: [sdc] Write Protect is off
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: [sdc] Write cache: enabled, read cache: enabled, does not support DPO or FUA
[Tue Mar  5 15:36:58 2019] sd 34:0:0:0: [sdc] Attached SCSI disk

$ lsusb | grep 0525
Bus 002 Device 015: ID 0525:a4a5 Netchip Technology, Inc. Pocketbook Pro 903

$ sudo parted /dev/sdc print
Model: Linux File-Stor Gadget (scsi)
Disk /dev/sdc: 105MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  105MB  105MB  fat16

После загрузки, к NanoPi NEO2 можно подключаться по ssh используя следующие учётные записи: pi@pi, fa@fa и root@fa:

$ ssh root@nanopi
root@nanopi password: 
 _____     _                _ _       _____ _     _____ ____ 
|  ___| __(_) ___ _ __   __| | |_   _| ____| |   | ____/ ___|
| |_ | '__| |/ _ \ '_ \ / _` | | | | |  _| | |   |  _|| |    
|  _|| |  | |  __/ | | | (_| | | |_| | |___| |___| |__| |___ 
|_|  |_|  |_|\___|_| |_|\__,_|_|\__, |_____|_____|_____\____|
                                |___/                        

Welcome to Ubuntu core 16.04 LTS 4.14.52
System load:   0.25             Up time:       6 min        Local users:   2                
Memory usage:  5 % of 992Mb     IP:            192.168.255.15
CPU temp:      21°C             
Usage of /:    13% of 15G       

 * Documentation: http://wiki.friendlyarm.com/Ubuntu
 * Forum: http://www.friendlyarm.com/Forum/

root@NanoPi-NEO2:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            462M     0  462M   0% /dev
tmpfs           100M  3.4M   96M   4% /run
/dev/mmcblk0p2   15G  1.8G   13G  13% /
tmpfs           497M     0  497M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           497M     0  497M   0% /sys/fs/cgroup
/dev/mmcblk0p1  100M   18M   83M  18% /boot
tmpfs           100M     0  100M   0% /run/user/1000
tmpfs           100M     0  100M   0% /run/user/0

root@NanoPi-NEO2:~# dmesg -T
[Tue Mar  5 12:36:36 2019] Booting Linux on physical CPU 0x0
[Tue Mar  5 12:36:36 2019] Linux version 4.14.52 (root@wwd) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #94 SMP Thu Jun 28 18:34:19 CST 2018
[Tue Mar  5 12:36:36 2019] Boot CPU: AArch64 Processor [410fd034]
[Tue Mar  5 12:36:36 2019] Machine model: FriendlyElec NanoPi-NEO2
[Tue Mar  5 12:36:36 2019] cma: Reserved 64 MiB at 0x000000007c000000
[Tue Mar  5 12:36:36 2019] On node 0 totalpages: 262144
[Tue Mar  5 12:36:36 2019]   DMA zone: 4096 pages used for memmap
[Tue Mar  5 12:36:36 2019]   DMA zone: 0 pages reserved
[Tue Mar  5 12:36:36 2019]   DMA zone: 262144 pages, LIFO batch:31
[Tue Mar  5 12:36:36 2019] psci: probing for conduit method from DT.
[Tue Mar  5 12:36:36 2019] psci: PSCIv0.2 detected in firmware.
[Tue Mar  5 12:36:36 2019] psci: Using standard PSCI v0.2 function IDs
[Tue Mar  5 12:36:36 2019] psci: Trusted OS migration not required
[Tue Mar  5 12:36:36 2019] percpu: Embedded 21 pages/cpu @ffff80003bf72000 s46232 r8192 d31592 u86016
[Tue Mar  5 12:36:36 2019] pcpu-alloc: s46232 r8192 d31592 u86016 alloc=21*4096
[Tue Mar  5 12:36:36 2019] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[Tue Mar  5 12:36:36 2019] Detected VIPT I-cache on CPU0
[Tue Mar  5 12:36:36 2019] CPU features: enabling workaround for ARM erratum 845719
[Tue Mar  5 12:36:36 2019] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[Tue Mar  5 12:36:36 2019] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait fsck.repair=yes panic=10 fbcon=map:0
[Tue Mar  5 12:36:36 2019] log_buf_len individual max cpu contribution: 4096 bytes
[Tue Mar  5 12:36:36 2019] log_buf_len total cpu_extra contributions: 12288 bytes
[Tue Mar  5 12:36:36 2019] log_buf_len min size: 16384 bytes
[Tue Mar  5 12:36:36 2019] log_buf_len: 32768 bytes
[Tue Mar  5 12:36:36 2019] early log buf free: 14828(90%)
[Tue Mar  5 12:36:36 2019] PID hash table entries: 4096 (order: 3, 32768 bytes)
[Tue Mar  5 12:36:36 2019] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[Tue Mar  5 12:36:36 2019] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[Tue Mar  5 12:36:36 2019] Memory: 945420K/1048576K available (9022K kernel code, 730K rwdata, 3072K rodata, 512K init, 413K bss, 37620K reserved, 65536K cma-reserved)
[Tue Mar  5 12:36:36 2019] Virtual kernel memory layout:
[Tue Mar  5 12:36:36 2019]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[Tue Mar  5 12:36:36 2019]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[Tue Mar  5 12:36:36 2019]       .text : 0xffff000008080000 - 0xffff000008950000   (  9024 KB)
[Tue Mar  5 12:36:36 2019]     .rodata : 0xffff000008950000 - 0xffff000008c60000   (  3136 KB)
[Tue Mar  5 12:36:36 2019]       .init : 0xffff000008c60000 - 0xffff000008ce0000   (   512 KB)
[Tue Mar  5 12:36:36 2019]       .data : 0xffff000008ce0000 - 0xffff000008d96808   (   731 KB)
[Tue Mar  5 12:36:36 2019]        .bss : 0xffff000008d96808 - 0xffff000008dfdf40   (   414 KB)
[Tue Mar  5 12:36:36 2019]     fixed   : 0xffff7dfffe7fb000 - 0xffff7dfffec00000   (  4116 KB)
[Tue Mar  5 12:36:36 2019]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[Tue Mar  5 12:36:36 2019]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[Tue Mar  5 12:36:36 2019]               0xffff7e0000000000 - 0xffff7e0001000000   (    16 MB actual)
[Tue Mar  5 12:36:36 2019]     memory  : 0xffff800000000000 - 0xffff800040000000   (  1024 MB)
[Tue Mar  5 12:36:36 2019] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[Tue Mar  5 12:36:36 2019] Hierarchical RCU implementation.
[Tue Mar  5 12:36:36 2019] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[Tue Mar  5 12:36:36 2019] GIC: Using split EOI/Deactivate mode
[Tue Mar  5 12:36:36 2019] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[Tue Mar  5 12:36:36 2019] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[Tue Mar  5 12:36:36 2019] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[Tue Mar  5 12:36:36 2019] Console: colour dummy device 80x25
[Tue Mar  5 12:36:36 2019] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[Tue Mar  5 12:36:36 2019] pid_max: default: 32768 minimum: 301
[Tue Mar  5 12:36:36 2019] Security Framework initialized
[Tue Mar  5 12:36:36 2019] AppArmor: AppArmor disabled by boot time parameter
[Tue Mar  5 12:36:36 2019] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[Tue Mar  5 12:36:36 2019] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[Tue Mar  5 12:36:36 2019] ASID allocator initialised with 32768 entries
[Tue Mar  5 12:36:36 2019] Hierarchical SRCU implementation.
[Tue Mar  5 12:36:36 2019] smp: Bringing up secondary CPUs ...
[Tue Mar  5 12:36:36 2019] Detected VIPT I-cache on CPU1
[Tue Mar  5 12:36:36 2019] CPU1: Booted secondary processor [410fd034]
[Tue Mar  5 12:36:36 2019] Detected VIPT I-cache on CPU2
[Tue Mar  5 12:36:36 2019] CPU2: Booted secondary processor [410fd034]
[Tue Mar  5 12:36:36 2019] Detected VIPT I-cache on CPU3
[Tue Mar  5 12:36:36 2019] CPU3: Booted secondary processor [410fd034]
[Tue Mar  5 12:36:36 2019] smp: Brought up 1 node, 4 CPUs
[Tue Mar  5 12:36:36 2019] SMP: Total of 4 processors activated.
[Tue Mar  5 12:36:36 2019] CPU features: detected feature: 32-bit EL0 Support
[Tue Mar  5 12:36:36 2019] CPU features: detected feature: Kernel page table isolation (KPTI)
[Tue Mar  5 12:36:36 2019] CPU: All CPU(s) started at EL2
[Tue Mar  5 12:36:36 2019] alternatives: patching kernel code
[Tue Mar  5 12:36:36 2019] devtmpfs: initialized
[Tue Mar  5 12:36:36 2019] random: get_random_u32 called from bucket_table_alloc+0xf8/0x280 with crng_init=0
[Tue Mar  5 12:36:36 2019] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[Tue Mar  5 12:36:36 2019] futex hash table entries: 1024 (order: 5, 131072 bytes)
[Tue Mar  5 12:36:36 2019] pinctrl core: initialized pinctrl subsystem
[Tue Mar  5 12:36:36 2019] NET: Registered protocol family 16
[Tue Mar  5 12:36:36 2019] cpuidle: using governor menu
[Tue Mar  5 12:36:36 2019] vdso: 2 pages (1 code @ ffff000008956000, 1 data @ ffff000008ce4000)
[Tue Mar  5 12:36:36 2019] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[Tue Mar  5 12:36:36 2019] DMA: preallocated 256 KiB pool for atomic allocations
[Tue Mar  5 12:36:36 2019] Serial: AMBA PL011 UART driver
[Tue Mar  5 12:36:36 2019] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[Tue Mar  5 12:36:36 2019] reg-fixed-voltage gmac-3v3: could not find pctldev for node /soc/pinctrl@01c20800/gmac_power_pin@0, deferring probe
[Tue Mar  5 12:36:36 2019] gpio-regulator gpio-regulator: could not find pctldev for node /soc/pinctrl@01f02c00/regulator_pins@0, deferring probe
[Tue Mar  5 12:36:36 2019] SCSI subsystem initialized
[Tue Mar  5 12:36:36 2019] usbcore: registered new interface driver usbfs
[Tue Mar  5 12:36:36 2019] usbcore: registered new interface driver hub
[Tue Mar  5 12:36:36 2019] usbcore: registered new device driver usb
[Tue Mar  5 12:36:36 2019] media: Linux media interface: v0.10
[Tue Mar  5 12:36:36 2019] Linux video capture interface: v2.00
[Tue Mar  5 12:36:36 2019] pps_core: LinuxPPS API ver. 1 registered
[Tue Mar  5 12:36:36 2019] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[Tue Mar  5 12:36:36 2019] PTP clock support registered
[Tue Mar  5 12:36:36 2019] Advanced Linux Sound Architecture Driver Initialized.
[Tue Mar  5 12:36:36 2019] clocksource: Switched to clocksource arch_sys_counter
[Tue Mar  5 12:36:36 2019] VFS: Disk quotas dquot_6.6.0
[Tue Mar  5 12:36:36 2019] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[Tue Mar  5 12:36:36 2019] FS-Cache: Loaded
[Tue Mar  5 12:36:36 2019] CacheFiles: Loaded
[Tue Mar  5 12:36:36 2019] NET: Registered protocol family 2
[Tue Mar  5 12:36:36 2019] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[Tue Mar  5 12:36:36 2019] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[Tue Mar  5 12:36:36 2019] TCP: Hash tables configured (established 8192 bind 8192)
[Tue Mar  5 12:36:36 2019] UDP hash table entries: 512 (order: 2, 16384 bytes)
[Tue Mar  5 12:36:36 2019] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[Tue Mar  5 12:36:36 2019] NET: Registered protocol family 1
[Tue Mar  5 12:36:36 2019] RPC: Registered named UNIX socket transport module.
[Tue Mar  5 12:36:36 2019] RPC: Registered udp transport module.
[Tue Mar  5 12:36:36 2019] RPC: Registered tcp transport module.
[Tue Mar  5 12:36:36 2019] RPC: Registered tcp NFSv4.1 backchannel transport module.
[Tue Mar  5 12:36:36 2019] Unpacking initramfs...
[Tue Mar  5 12:36:36 2019] Initramfs unpacking failed: junk in compressed archive
[Tue Mar  5 12:36:36 2019] Freeing initrd memory: 5120K
[Tue Mar  5 12:36:36 2019] audit: initializing netlink subsys (disabled)
[Tue Mar  5 12:36:36 2019] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[Tue Mar  5 12:36:36 2019] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[Tue Mar  5 12:36:36 2019] FS-Cache: Netfs 'nfs' registered for caching
[Tue Mar  5 12:36:36 2019] NFS: Registering the id_resolver key type
[Tue Mar  5 12:36:36 2019] Key type id_resolver registered
[Tue Mar  5 12:36:36 2019] Key type id_legacy registered
[Tue Mar  5 12:36:36 2019] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[Tue Mar  5 12:36:36 2019] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[Tue Mar  5 12:36:36 2019] NET: Registered protocol family 38
[Tue Mar  5 12:36:36 2019] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[Tue Mar  5 12:36:36 2019] io scheduler noop registered
[Tue Mar  5 12:36:36 2019] io scheduler deadline registered
[Tue Mar  5 12:36:36 2019] io scheduler cfq registered (default)
[Tue Mar  5 12:36:36 2019] io scheduler mq-deadline registered
[Tue Mar  5 12:36:36 2019] io scheduler kyber registered
[Tue Mar  5 12:36:36 2019] sun4i-usb-phy 1c19400.phy: Could not request ID GPIO, pinctrl may not init
[Tue Mar  5 12:36:36 2019] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[Tue Mar  5 12:36:36 2019] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[Tue Mar  5 12:36:36 2019] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[Tue Mar  5 12:36:36 2019] console [ttyS0] disabled
[Tue Mar  5 12:36:36 2019] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[Tue Mar  5 12:36:37 2019] console [ttyS0] enabled
[Tue Mar  5 12:36:37 2019] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 31, base_baud = 1500000) is a U6_16550A
[Tue Mar  5 12:36:37 2019] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[Tue Mar  5 12:36:37 2019] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 33, base_baud = 1500000) is a U6_16550A
[Tue Mar  5 12:36:37 2019] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[Tue Mar  5 12:36:37 2019] [drm] No driver support for vblank timestamp query.
[Tue Mar  5 12:36:37 2019] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_ops)
[Tue Mar  5 12:36:37 2019] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[Tue Mar  5 12:36:37 2019] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_ops)
[Tue Mar  5 12:36:37 2019] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[Tue Mar  5 12:36:37 2019] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[Tue Mar  5 12:36:37 2019] sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops)
[Tue Mar  5 12:36:37 2019] [drm] Cannot find any crtc or sizes - going 1920x1080
[Tue Mar  5 12:36:37 2019] Console: switching to colour frame buffer device 240x67
[Tue Mar  5 12:36:37 2019] sun4i-drm display-engine: fb0:  frame buffer device
[Tue Mar  5 12:36:37 2019] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[Tue Mar  5 12:36:37 2019] cacheinfo: Unable to detect cache hierarchy for CPU 0
[Tue Mar  5 12:36:37 2019] loop: module loaded
[Tue Mar  5 12:36:37 2019] libphy: Fixed MDIO Bus: probed
[Tue Mar  5 12:36:37 2019] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[Tue Mar  5 12:36:37 2019] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[Tue Mar  5 12:36:37 2019] ehci-platform: EHCI generic platform driver
[Tue Mar  5 12:36:37 2019] ehci-platform 1c1a000.usb: EHCI Host Controller
[Tue Mar  5 12:36:37 2019] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[Tue Mar  5 12:36:37 2019] ehci-platform 1c1a000.usb: irq 12, io mem 0x01c1a000
[Tue Mar  5 12:36:37 2019] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[Tue Mar  5 12:36:37 2019] hub 1-0:1.0: USB hub found
[Tue Mar  5 12:36:37 2019] hub 1-0:1.0: 1 port detected
[Tue Mar  5 12:36:37 2019] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[Tue Mar  5 12:36:37 2019] ohci-platform: OHCI generic platform driver
[Tue Mar  5 12:36:37 2019] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[Tue Mar  5 12:36:37 2019] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[Tue Mar  5 12:36:37 2019] ohci-platform 1c1a400.usb: irq 13, io mem 0x01c1a400
[Tue Mar  5 12:36:37 2019] hub 2-0:1.0: USB hub found
[Tue Mar  5 12:36:37 2019] hub 2-0:1.0: 1 port detected
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver uas
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver usb-storage
[Tue Mar  5 12:36:37 2019] mousedev: PS/2 mouse device common for all mice
[Tue Mar  5 12:36:37 2019] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[Tue Mar  5 12:36:37 2019] sun6i-rtc 1f00000.rtc: RTC enabled
[Tue Mar  5 12:36:37 2019] i2c /dev entries driver
[Tue Mar  5 12:36:37 2019] lirc_dev: IR Remote Control driver registered, major 244
[Tue Mar  5 12:36:37 2019] IR NEC protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR RC5(x/sz) protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR RC6 protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR JVC protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR Sony protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR SANYO protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR Sharp protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR MCE Keyboard/mouse protocol handler initialized
[Tue Mar  5 12:36:37 2019] IR LIRC bridge handler initialized
[Tue Mar  5 12:36:37 2019] IR XMP protocol handler initialized
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver ati_remote
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver imon
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver mceusb
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver redrat3
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver streamzap
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver igorplugusb
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver iguanair
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver ttusbir
[Tue Mar  5 12:36:37 2019] thermal thermal_zone0: failed to read out thermal zone (-16)
[Tue Mar  5 12:36:37 2019] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[Tue Mar  5 12:36:37 2019] sdhci: Secure Digital Host Controller Interface driver
[Tue Mar  5 12:36:37 2019] sdhci: Copyright(c) Pierre Ossman
[Tue Mar  5 12:36:37 2019] Synopsys Designware Multimedia Card Interface Driver
[Tue Mar  5 12:36:37 2019] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[Tue Mar  5 12:36:37 2019] sunxi-mmc 1c0f000.mmc: base:0xffff000008e4d000 irq:10
[Tue Mar  5 12:36:37 2019] sdhci-pltfm: SDHCI platform and OF driver helper
[Tue Mar  5 12:36:37 2019] ledtrig-cpu: registered to indicate activity on CPUs
[Tue Mar  5 12:36:37 2019] hidraw: raw HID events driver (C) Jiri Kosina
[Tue Mar  5 12:36:37 2019] usbcore: registered new interface driver usbhid
[Tue Mar  5 12:36:37 2019] usbhid: USB HID core driver
[Tue Mar  5 12:36:37 2019] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[Tue Mar  5 12:36:37 2019] ip_tables: (C) 2000-2006 Netfilter Core Team
[Tue Mar  5 12:36:37 2019] NET: Registered protocol family 10
[Tue Mar  5 12:36:37 2019] Segment Routing with IPv6
[Tue Mar  5 12:36:37 2019] NET: Registered protocol family 17
[Tue Mar  5 12:36:37 2019] mmc0: host does not support reading read-only switch, assuming write-enable
[Tue Mar  5 12:36:37 2019] 9pnet: Installing 9P2000 support
[Tue Mar  5 12:36:37 2019] Key type dns_resolver registered
[Tue Mar  5 12:36:37 2019] registered taskstats version 1
[Tue Mar  5 12:36:37 2019] Key type encrypted registered
[Tue Mar  5 12:36:37 2019] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[Tue Mar  5 12:36:37 2019] dwmac-sun8i 1c30000.ethernet: Will use external PHY
[Tue Mar  5 12:36:37 2019] mmc0: new high speed SDHC card at address aaaa
[Tue Mar  5 12:36:37 2019] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[Tue Mar  5 12:36:37 2019]  mmcblk0: p1 p2
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: COE Type 2
[Tue Mar  5 12:36:38 2019] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[Tue Mar  5 12:36:38 2019] libphy: stmmac: probed
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1b000.usb: EHCI Host Controller
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1b000.usb: irq 14, io mem 0x01c1b000
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[Tue Mar  5 12:36:38 2019] hub 3-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 3-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1c000.usb: EHCI Host Controller
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1c000.usb: irq 16, io mem 0x01c1c000
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[Tue Mar  5 12:36:38 2019] hub 4-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 4-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1d000.usb: EHCI Host Controller
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1d000.usb: irq 18, io mem 0x01c1d000
[Tue Mar  5 12:36:38 2019] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[Tue Mar  5 12:36:38 2019] hub 5-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 5-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1b400.usb: irq 15, io mem 0x01c1b400
[Tue Mar  5 12:36:38 2019] hub 6-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 6-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1c400.usb: irq 17, io mem 0x01c1c400
[Tue Mar  5 12:36:38 2019] hub 7-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 7-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[Tue Mar  5 12:36:38 2019] ohci-platform 1c1d400.usb: irq 19, io mem 0x01c1d400
[Tue Mar  5 12:36:38 2019] hub 8-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 8-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
[Tue Mar  5 12:36:38 2019] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[Tue Mar  5 12:36:38 2019] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 9
[Tue Mar  5 12:36:38 2019] hub 9-0:1.0: USB hub found
[Tue Mar  5 12:36:38 2019] hub 9-0:1.0: 1 port detected
[Tue Mar  5 12:36:38 2019] input: r-gpio-keys as /devices/platform/r-gpio-keys/input/input0
[Tue Mar  5 12:36:38 2019] usb0-vbus: disabling
[Tue Mar  5 12:36:38 2019] ALSA device list:
[Tue Mar  5 12:36:38 2019]   #0: Dummy 1
[Tue Mar  5 12:36:38 2019]   #1: Loopback 1
[Tue Mar  5 12:36:38 2019]   #2: H3 Audio Codec
[Tue Mar  5 12:36:38 2019] Freeing unused kernel memory: 512K
[Tue Mar  5 12:36:38 2019] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[Tue Mar  5 12:36:38 2019] random: udevadm: uninitialized urandom read (16 bytes read)
[Tue Mar  5 12:36:38 2019] random: udevadm: uninitialized urandom read (16 bytes read)
[Tue Mar  5 12:36:39 2019] random: fast init done
[Tue Mar  5 12:36:39 2019] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[Tue Mar  5 12:36:39 2019] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[Tue Mar  5 12:36:39 2019] systemd[1]: System time before build time, advancing clock.
[Tue Mar  5 12:36:39 2019] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[Tue Mar  5 12:36:39 2019] systemd[1]: Detected architecture arm64.
[Tue Mar  5 12:36:39 2019] systemd[1]: Set hostname to <NanoPi-NEO2>.
[Tue Mar  5 12:36:39 2019] systemd[1]: Listening on Journal Socket.
[Tue Mar  5 12:36:40 2019] systemd[1]: Reached target Encrypted Volumes.
[Tue Mar  5 12:36:40 2019] systemd[1]: Listening on Journal Socket (/dev/log).
[Tue Mar  5 12:36:40 2019] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[Tue Mar  5 12:36:40 2019] systemd[1]: Listening on udev Kernel Socket.
[Tue Mar  5 12:36:40 2019] systemd[1]: Created slice User and Session Slice.
[Tue Mar  5 12:36:40 2019] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[Tue Mar  5 12:36:40 2019] Mass Storage Function, version: 2009/09/11
[Tue Mar  5 12:36:40 2019] LUN: removable file: (no medium)
[Tue Mar  5 12:36:40 2019] LUN: file: /dev/mmcblk0p1
[Tue Mar  5 12:36:40 2019] Number of LUNs=1
[Tue Mar  5 12:36:40 2019] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[Tue Mar  5 12:36:40 2019] g_mass_storage gadget: userspace failed to provide iSerialNumber
[Tue Mar  5 12:36:40 2019] g_mass_storage gadget: g_mass_storage ready
[Tue Mar  5 12:36:40 2019] Adding 524284k swap on /mnt/512MB.swap.  Priority:-2 extents:5 across:1089556k SS
[Tue Mar  5 12:36:40 2019] systemd-journald[266]: Received request to flush runtime journal from PID 1
[Tue Mar  5 12:36:40 2019] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
[Tue Mar  5 12:36:41 2019] asoc-simple-card soc:sound: i2s-hifi <-> 1c22800.i2s mapping ok
[Tue Mar  5 12:36:43 2019] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[Tue Mar  5 12:36:43 2019] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[Tue Mar  5 12:36:43 2019] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[Tue Mar  5 12:36:43 2019] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[Tue Mar  5 12:36:43 2019] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[Tue Mar  5 12:36:43 2019] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[Tue Mar  5 12:36:43 2019] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[Tue Mar  5 12:36:44 2019] random: crng init done
[Tue Mar  5 12:36:44 2019] random: 7 urandom warning(s) missed due to ratelimiting
[Tue Mar  5 12:36:48 2019] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[Tue Mar  5 12:36:48 2019] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Смена паролей:

NanoPi-NEO2:~# passwd 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
NanoPi-NEO2:~# passwd pi
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
NanoPi-NEO2:~# passwd fa
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

Переименование дефолтных пользователей pi и fa:

NanoPi-NEO2:~# ps --user pi
  PID TTY          TIME CMD
  742 ?        00:00:00 systemd
  744 ?        00:00:00 (sd-pam)
  748 tty1     00:00:00 bash
  749 ttyS0    00:00:00 bash

NanoPi-NEO2:~# systemctl stop getty@tty1.service
Warning: getty@tty1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
NanoPi-NEO2:~# systemctl stop serial-getty@ttyS0.service
Warning: serial-getty@ttyS0.service changed on disk. Run 'systemctl daemon-reload' to reload units.
NanoPi-NEO2:~# systemctl daemon-reload
NanoPi-NEO2:~# ps --user pi
  PID TTY          TIME CMD

NanoPi-NEO2:~# usermod --login newuser --home /home/newuser --move-home pi
NanoPi-NEO2:~# groupmod --new-name newgroup pi
NanoPi-NEO2:~# find /etc/systemd/ -name autologin.conf -exec sed -i "s/\bpi\b/newuser/g" {} \;
NanoPi-NEO2:~# systemctl daemon-reload

Таким же образом необходимо переименовать пользователя fa.

Настройка локали:

NanoPi-NEO2:~# echo en_US.UTF-8 UTF-8 >/var/lib/locales/supported.d/en
NanoPi-NEO2:~# nano -w /etc/locale.gen
en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8
NanoPi-NEO2:~# locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8... done
  ru_RU.UTF-8... done
Generation complete.

Если не исправить файл /var/lib/locales/supported.d/en, то дополнительно будет создано около 15 лишних локалей.

Настройка временной зоны:

NanoPi-NEO2:~# dpkg-reconfigure tzdata

Общая настройка официальной утилитой:

NanoPi-NEO2:~# npi-config

1 Change User Password Change password for the default user (pi)
2 Hostname             Set the visible name for this Pi on a network
3 Boot Options         Configure options for start-up
    B1 Autologin                Choose how to boot into text console, autologin or requiring user
    B2 Wait for Network at Boot Choose whether to wait for network connection during boot
    B3 Boot device              Choose the boot device
4 Localisation Options Set up language and regional settings to match your location
    I1 Change Locale          Set up language and regional settings to match your location
    I2 Change Timezone        Set up timezone to match your location
    I3 Change Keyboard Layout Set the keyboard layout to match your keyboard
    I4 Change Wi-fi Country   Set the legal channels used in your country
5 Interfacing Options  Configure connections to peripherals
    P1 SSH Enable/Disable remote command line access to your Pi using SSH
6 Advanced Options     Configure advanced settings
    A0 Display         Select system default display device
    A1 Audio           Select system default audio device
    A2 Welcome message Disable/Enable Linux welcome message
    A3 Serial          Enable/Disable Serial
    A4 I2C             Enable/Disable I2C
    A5 SPI             Enable/Disable SPI
    A6 PWM             Enable/Disable PWM
    A7 I2S             Enable/Disable I2S
    A8 IR              Enable/Disable IR
    A9 CPUFreq         Select CPU highest frequency
7 Update               Update this tool to the latest version
8 About npi-config     Information about this configuration tool

Обновление и перезагрузка операционной системы:

NanoPi-NEO2:~# apt update
NanoPi-NEO2:~# apt upgrade
NanoPi-NEO2:~# reboot

Установка дополнительных утилит и настройка рабочего окружения в bash:

NanoPi-NEO2:~# apt install mc bash-completion curl htop pinfo screen usbutils

Далее можно настроить рабочее окружение в bash по этой заметке. А если есть необходимость в подключении к NanoPi NEO2 при помощи консольного порта для отладки воспользуйтесь информацией из этой заметки.

Update: Через пару недель использования устройства, оказалось что OLED-экран уже начал выгорать, поэтому крайне желательно сразу после покупки и установки включить таймер сна для дисплея. Здесь описано как это сделать.


Добавить комментарий

Следующая запись Предыдущая запись