![]() |
NEO Core Startter Kit に電源を入れる |
NanoPi NEO(無印)と違って NEO Core には eMMC がついていて,最初から Linux が入っています.実は,最近の Linux のことはよくわかっていないので,ブートシーケンスすら「???」って感じで流れるメッセージを眺めていました.最初に ROM に入っているプログラムが U-Boot SPL を起動していると思うのですが,最初にデバッグ用シリアルコンソールに出てくるのは U-Boot SPL のメッセージですね.
----------------------------------------
U-Boot SPL 2017.11 (Nov 19 2018 - 10:39:56)
DRAM: 512 MiB(408MHz)
CPU Freq: 408MHz
memory test: 1
Pattern 55aa Writing...Reading...OK
Trying to boot from MMC2
Boot device: emmc
U-Boot 2017.11 (Nov 19 2018 - 10:39:56 +0800) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM: 512 MiB
Detecting eMMC...
No MMC device available
No MMC device available
eMMC not exist
CPU Freq: 1008MHz
MMC: SUNXI SD/MMC: 1, SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
こんな警告↑が出ていました.
In: serial
Out: serial
Err: serial
Net: No ethernet found.
eMMC exist
BOARD: nanopi-neo-core
starting USB...
No controllers found
Hit any key to stop autoboot: (ここで3秒のウェイト)
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
968 bytes read in 18 ms (51.8 KiB/s)
## Executing script at 43100000
reading zImage
5747656 bytes read in 284 ms (19.3 MiB/s)
reading rootfs.cpio.gz
2845838 bytes read in 151 ms (18 MiB/s)
reading sun8i-h3-nanopi-neo-core.dtb
34911 bytes read in 26 ms (1.3 MiB/s)
## Flattened Device Tree blob at 48000000
Booting using the fdt blob at 0x48000000
Loading Ramdisk to 49b00000, end 4a000000 ... OK
Loading Device Tree to 49af4000, end 49aff85e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.52 (root@wwd) (gcc version 4.9.3 (ctng-1.21.0-229g-FA)) #90 SMP Thu Oct 25 18:26:40 CST 2018
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
(途中省略)
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
Ubuntu 16.04.2 LTS NanoPi-NEO-Core ttyS0
NanoPi-NEO-Core login: pi (automatic login)
Last login: Wed Mar 6 09:57:42 UTC 2019 on tty1
[ 9.177862] rc.local[546]: Ready: shared memory ready (key: 431317).
[ 9.178943] rc.local[546]:
_____ _ _ _ _____ _ _____ ____
| ___| __(_) ___ _ __ __| | |_ _| ____| | | ____/ ___|
| |_ | '__| |/ _ \ '_ \ / _` | | | | | _| | | | _|| |
| _|| | | | __/ | | | (_| | | |_| | |___| |___| |__| |___
|_| |_| |_|\___|_| |_|\__,_|_|\__, |_____|_____|_____\____|
|___/
Welcome to Ubuntu 16.04.2 LTS 4.14.52
System load: 0.16 Up time: 10 sec
Memory usage: 7 % of 491Mb IP:
CPU temp: 32℃
Usage of /: 27% of 7.1G
* Documentation: http://wiki.friendlyarm.com/Ubuntu
* Forum: http://www.friendlyarm.com/Forum/
pi@NanoPi-NEO-Core:~$
----------------------------------------
こんな感じで Ubuntu が起動して,ユーザ pi で自動ログインします.
最初の bad CRC の経緯はよくわかりませんが以下のコマンドで出なくなりました.
----------------------------------------
Hit any key to stop autoboot: (ここで何かキーを押す)
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... done
=>
----------------------------------------
その他にブートの途中で,
----------------------------------------
[ OK ] Mounted POSIX Message Queue File System.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Set console keymap.
----------------------------------------
というのがあるので,調べた結果,
----------------------------------------
pi@NanoPi-NEO-Core:~$ systemctl status systemd-modules-load.service
systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-03-06 10:13:43 UTC; 23s ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 230 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 230 (code=exited, status=1/FAILURE)
pi@NanoPi-NEO-Core:~$ su
Password: (デフォルトパスワードは fa)
root@NanoPi-NEO-Core:/home/pi# journalctl _PID=230
-- Logs begin at Wed 2019-03-06 10:13:43 UTC, end at Wed 2019-03-06 10:15:04 UTC. --
Mar 06 10:13:43 NanoPi-NEO-Core systemd-modules-load[230]: Failed to find module 'bcmdhd'
Mar 06 10:13:43 NanoPi-NEO-Core systemd-modules-load[230]: Inserted module 'g_mass_storage'
----------------------------------------
というわけで bcmdhd が見つからないということらしいです.
これは Broadcom の wifi モジュールで,とりあえず今は不要なのでロードしないように設定しました.
----------------------------------------
root@NanoPi-NEO-Core:/home/pi# cd /etc/modules-load.d
root@NanoPi-NEO-Core:/etc/modules-load.d# vi bcmdhd.conf
bcmdhd
↓(以下のように変更して保存)
#bcmdhd
----------------------------------------
これで赤い [FAILED] は出なくなりました.
インストールしなくても電源 ON でいきなり Linux が起動してしまうなんて,メーカー製の Windows ノートパソコンみたいですね.(笑)