起動と終了

5.1. 起動

電源入力インターフェースに電源を接続すると Armadillo-IoT ゲートウェイ A6E +Di8+Ai4 が起動します。起動すると CON7 (USB コンソールインターフェース) から起動ログが表示されます。

[注記]

Armadillo-IoT ゲートウェイ A6E +Di8+Ai4 の電源投入時点での起動デバイス設定スイッチ SW2 の状態によって起動モードが変化します。 詳しくは 「起動デバイス設定スイッチについて」 を参照してください。

以下に起動ログの例を示します。

U-Boot 2020.04-at17 (Jul 07 2023 - 06:28:15 +0000)

CPU:   i.MX6ULL rev1.1 at 396 MHz
Model: Atmark Techno Armadillo-IoT Gateway A6E Board
DRAM:  512 MiB
WDT:   Started with servicing (10s timeout)
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
In:    mxc_serialt from MMC... OK
Out:   mxc_serial
Err:   mxc_serial
switch to partitions #0, OK
mmc0(part 0) is current device
flash target is MMC:0
Net:   eth0: ethernet@2188000
Fastboot: Normal
Saving Environment to MMC... Writing to MMC(0)... OK
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0(part 0) is current device
6861600 bytes read in 160 ms (40.9 MiB/s)
Booting from mmc ...
39145 bytes read in 6 ms (6.2 MiB/s)
Loading fdt boot/armadillo.dtb
3184 bytes read in 3 ms (1 MiB/s)
Applying fdt overlay: armadillo-iotg-a6e-di8ai4-1st.dtbo
76 bytes read in 3 ms (24.4 KiB/s)
2366 bytes read in 3 ms (769.5 KiB/s)
Applying fdt overlay: armadillo-iotg-a6e-els31.dtbo
3038 bytes read in 3 ms (988.3 KiB/s)
Applying fdt overlay: armadillo-iotg-a6e-lwb5plus.dtbo
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Linux-5.10.185-1-at
   Created:      2023-07-07   7:06:17 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6861536 Bytes = 6.5 MiB
   Load Address: 82000000
   Entry Point:  82000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83500000
   Booting using the fdt blob at 0x83500000
   Loading Kernel Image
   Loading Device Tree to 9ef1c000, end 9ef48fff ... OK

Starting kernel ...


   OpenRC 0.45.2 is starting up Linux 5.10.185-1-at (armv7l)

 * Mounting /proc ... [ ok ]
 * Mounting /run ... * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Caching service dependencies ... [ ok ]
 * Mounting /sys ... * Remounting devtmpfs on /dev ... [ ok ]
 [ ok ]
 * Mounting security filesystem ... [ ok ]
 * Mounting config filesystem ... [ ok ]
 * Mounting /dev/mqueue ... [ ok ]
 * Mounting /dev/pts ... [ ok ]
 * Mounting /dev/shm ... [ ok ]
fsck_atlog               | * Checking at-log filesystem /dev/mmcblk0gp1 ...udev                     | * Starting udev ... [ ok ]
 [ ok ]
fsck                     | * Checking local filesystems  ... [ ok ]
root                     | * Remounting filesystems ... [ ok ]
localmount               | * Mounting local filesystems ... [ ok ]
overlayfs                | * Preparing overlayfs over / ... [ ok ]
hostname                 | * Setting hostname ... [ ok ]
sysctl                   | * Configuring kernel parameters ...udev-trigger             | * Generating a rule to create a /dev/root symlink ... [ ok ]
udev-trigger             | * Populating /dev with existing devices through uevents ... [ ok ]
 [ ok ]
bootmisc                 | * Migrating /var/lock to /run/lock ... [ ok ]
bootmisc                 | * Creating user login records ... [ ok ]
bootmisc                 | * Wiping /var/tmp directory ... [ ok ]
syslog                   | * Starting busybox syslog ...dbus                     | * /run/dbus: creating directory
dbus                     | * /run/dbus: correcting owner
dbus                     | * Starting System Message Bus ... [ ok ]
 [ ok ]
klogd                    | * Starting busybox klogd ... [ ok ]
modemmanager             | * Starting modemmanager ... [ ok ]
networkmanager           | * Starting networkmanager ... [ ok ]
dnsmasq                  | * /var/lib/misc/dnsmasq.leases: creating file
dnsmasq                  | * /var/lib/misc/dnsmasq.leases: correcting owner
dnsmasq                  | * Starting dnsmasq ... [ ok ]
buttond                  | * Starting button watching daemon ...wwan-led                 | * Starting wwan-led ... [ ok ]
reset_bootcount          | * Resetting bootcount in bootloader env ...Environment OK, copy 0
reset_bootcount          | [ ok ]
 [ ok ]
connection-recover       | * Starting connection-recover ...zramswap                 | [ ok ]
podman-atmark            | * Starting configured podman containers ...zramswap                 | * Creating zram swap device ...avahi-daemon             | * Starting avahi-daemon ... [ ok ]
atmark-power-utils       | * Starting atmark-power-utils ... [ ok ]
chronyd                  | * Starting chronyd ... [ ok ]
 [ ok ]
Starting 'a6e-gw-container'
abos-web                 | * Skipping abos-web start without password on installed system
 [ ok ]
podman-atmark            |3fa373cf324e819ce3addf65d64071863e158c13b91e7ccf2c3163e6f207e2b3
podman-atmark            | [ ok ]
local                    | * Starting local ... [ ok ]

Welcome to Alpine Linux 3.17
Kernel 5.10.185-1-at on an armv7l (/dev/ttymxc2)

armadillo login:

U-Boot プロンプト

ユーザースイッチ(SW1) を押しながら電源を投入すると、 U-Boot のプロンプトが表示されます。

U-Boot 2020.04-at17 (Jul 07 2023 - 06:28:15 +0000)

CPU:   i.MX6ULL rev1.1 at 396 MHz
Model: Atmark Techno Armadillo-IoT Gateway A6E Board
DRAM:  512 MiB
WDT:   Started with servicing (10s timeout)
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
In:    mxc_serialt from MMC... OK
Out:   mxc_serial
Err:   mxc_serial
switch to partitions #0, OK
mmc0(part 0) is current device
flash target is MMC:0
Net:   eth0: ethernet@2188000
Fastboot: Normal
Saving Environment to MMC... Writing to MMC(0)... OK
Normal Boot
=>

5.2. ログイン

起動が完了するとログインプロンプトが表示されます。「root」か一般ユーザーの「atmark」でログインすることができます。

initial_setup.swu を適用しない場合、「root」ユーザーは初回ログイン時にパスワードを入力せずに新しいパスワードを促されます。 「atmark」ユーザーは、初期状態ではロックされています。そのロックを解除するには、「root」ユーザーでログインし、 passwd atmark コマンドで「atmark」ユーザーのパスワードを設定してください。

設定するパスワードには大文字のアルファベット、小文字のアルファベット、0から9までの数字、その他(記号・句読点など)を含める事ができます。

  1. root でログイン

    初期パスワードを変更します。

    armadillo login: root
    You are required to change your password immediately (administrator enforced).
    New password: 1
    Retype new password: 2
    Welcome to Alpine!

    1

    新しいパスワードを入力します

    2

    新しいパスワードを再入力します

  2. atmark でログイン

    初期状態でロックされてますので、rootで一度パスワードを設定してからログインします。

    armadillo:~# passwd atmark 1
    New password:
    Retype new password:
    passwd: password updated successfully
    armadillo:~# persist_file /etc/shadow 2
    armadillo:~# exit
    
    Welcome to Alpine Linux 3.17
    Kernel 5.10.185-1-at on an armv7l (/dev/ttymxc2)
    
    armadillo login: atmark
    Password: 3
    Welcome to Alpine!

    1

    atmarkユーザーのパスワード変更コマンド。「SWUイメージの作成」 を使用した場合には不要です

    2

    パスワードファイルを永続化します。

    3

    設定したパスワードでログインすることができます。

[警告]

Armadillo BaseOS ではルートファイルシステムに overlayfs を採用しており、そのままではシステムが OFF すると内容は消えてしまいます。そのため persist_file コマンドが用意されています。このコマンドを利用することでファイル単位で変更を反映することができます。パスワードを設定した後には以下のコマンドを実行してください。

[armadillo ~]# persist_file /etc/shadow

persist_file コマンドに関する詳細は「overlayfs と persist_file について」を参照してください。

5.3. 終了方法

安全に終了させる場合は、次のようにpoweroffコマンドを実行し、「reboot: Power down」と表示されたのを確認してから電源を切断します。

armadillo:~# poweroff
armadillo:~# zramswap                 | * Deactivating zram swap device ...podman-atmark            | * Stopping all podman containers ...local                    | * Stopping local ...modemmanager             | * Stopping modemmanager ...avahi-daemon             | * Stopping avahi-daemon ...atmark-power-utils       | * Stopping atmark-power-utils ... [ ok ]
wwan-led                 | * Stopping wwan-led ... [ ok ]
connection-recover       | * Stopping connection-recover ... [ ok ]
chronyd                  | * Stopping chronyd ...buttond                  | * Stopping button watching daemon ... [ ok ]
dnsmasq                  | * Stopping dnsmasq ...abos-web                 | * Stopping abos-web ... * start-stop-daemon: no matching processes found
atmark-power-utils       | [ ok ]
 [ ok ]
 [ ok ]
 [ ok ]
 [ ok ]
klogd                    | * Stopping busybox klogd ... [ ok ]
 * start-stop-daemon: no matching processes found
abos-web                 | [ ok ]
 [ ok ]
syslog                   | * Stopping busybox syslog ... [ ok ]
networkmanager           | * Stopping networkmanager ...udev                     | * Stopping udev ... [ ok ]
 [ ok ]
dbus                     | * Stopping System Message Bus ...nm-dispatcher: Caught signal 15, shutting down...
 [ ok ]
cgroups                  | * cgroups: waiting for podman-atmark (50 seconds)
 [ ok ]
localmount               | * Unmounting loop devices
localmount               | * Unmounting filesystems
localmount               | *   Unmounting /mnt ... [ ok ]
localmount               | *   Unmounting /run/netns ... [ ok ]
localmount               | *   Unmounting /var/at-log ... [ ok ]
localmount               | *   Unmounting /var/tmp ... [ ok ]
localmount               | *   Unmounting /var/app/volumes ... [ ok ]
localmount               | *   Unmounting /var/app/rollback/volumes ... [ ok ]
localmount               | *   Unmounting /var/lib/containers/storage_readonly ... [ ok ]
localmount               | *   Unmounting /var/log ... [ ok ]
localmount               | *   Unmounting /tmp ... [ ok ]
killprocs                | * Terminating remaining processes ... [ ok ]
killprocs                | * Killing remaining processes ... [ ok ]
wwan-safe-poweroff       | * Starting safe poweroff for WWAN ...mount-ro                 | * Remounting remaining filesystems read-only ... *   Remounting / read only ... [ ok ]
mount-ro                 | [ ok ]
. [ ok ]
indicator_signals        | * Signaling external devices we are shutting down ... [ ok ]
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system poweroff
[ 2923.728066] imx2-wdt 20bc000.watchdog: Device shutdown: Expect reboot!
[ 2923.735159] reboot: Power down
[警告]

電源を再投入する際は、コンデンサに蓄えられた電荷を抜くため、電源を切断後、一定時間以上待つ必要があります。 開発セット付属のACアダプタの場合に必要な時間は以下のとおりです。

  • DCプラグ側で電源を切断した場合 : 約5秒
  • ACプラグ側で電源を切断した場合 : 約1分

コンデンサに蓄えられた電荷が抜ける前に電源を再投入した場合、 電源シーケンスが守られず、起動しない等の動作不具合の原因となります。