起動と終了

5.1. 起動

CON12 に電源を接続すると、Armadillo-640が起動します。

[注記]

USB シリアル変換アダプタのスライドスイッチによって起動モードが変わります。 詳しくは 「接続方法」「スライドスイッチの設定について」 を参照してください。

本章では、保守モードに設定しているときの例を示します。 オートブートモードを選択した場合は、途中でコマンドを入力することなく起動が完了します。

初めて起動した時は、 U-Boot の環境変数が eMMC に書き込まれていないために、上記のような Warning が表示されます。

U-Boot 2018.03-at1 (Apr 04 2018 - 12:12:16 +0900)

CPU:   Freescale i.MX6ULL rev1.0 at 396 MHz
Reset cause: POR
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In:    serial
Out:   serial
Err:   serial
Net:   FEC
=>

図5.1 電源投入直後のログ (U-Bootの環境変数が eMMC に無い場合)


env save すると、次の起動から表示されなくなります。 詳しくは 9章ブートローダー (U-Boot) 仕様 を参照してください。

U-Boot 2018.03-at1 (Apr 04 2018 - 12:12:16 +0900)

CPU:   Freescale i.MX6ULL rev1.0 at 396 MHz
Reset cause: POR
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   FEC
=>

図5.2 電源投入直後のログ (U-Bootの環境変数が eMMC にある場合)


Linux システム (Debian 9 "Stretch") を起動するには、次のように boot コマンドを実行してください。コマンドを実行するとブートローダーが Linux システムを起動させます。シリアル通信ソフトウェアには Linux の起動ログが表示されます。

=> boot
3345800 bytes read in 128 ms (24.9 MiB/s)
23185 bytes read in 54 ms (418.9 KiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.14-at1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3345736 Bytes = 3.2 MiB
   Load Address: 82000000
   Entry Point:  82000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Kernel Image ... OK
   Loading Device Tree to 9eeff000, end 9ef07a90 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14-at1 (atmark@atde7) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 Wed Apr 4 12:30:18 JST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Atmark Techno Armadillo-640
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x9f000000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 495096K/524288K available (4096K kernel code, 205K rwdata, 932K rodata, 1024K init, 222K bss, 12808K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0500000   (5088 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0800000   (1024 kB)
[    0.000000]       .data : 0xc0800000 - 0xc0833500   ( 206 kB)
[    0.000000]        .bss : 0xc0837ea4 - 0xc086f90c   ( 223 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000055] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001566] Console: colour dummy device 80x30
[    0.002150] console [tty0] enabled
[    0.002214] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002278] pid_max: default: 32768 minimum: 301
[    0.002676] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002732] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003859] CPU: Testing write buffer coherency: ok
[    0.004801] Setting up static identity map for 0x80100000 - 0x8010003c
[    0.006511] devtmpfs: initialized
[    0.014845] random: get_random_u32 called from bucket_table_alloc+0x84/0x1bc with crng_init=0
[    0.015271] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.015551] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015625] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.016914] pinctrl core: initialized pinctrl subsystem
[    0.017887] NET: Registered protocol family 16
[    0.019636] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.026662] vdd3p0: supplied by regulator-dummy
[    0.027342] cpu: supplied by regulator-dummy
[    0.027984] vddsoc: supplied by regulator-dummy
[    0.037305] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.060697] SCSI subsystem initialized
[    0.061040] usbcore: registered new interface driver usbfs
[    0.061167] usbcore: registered new interface driver hub
[    0.061306] usbcore: registered new device driver usb
[    0.063106] clocksource: Switched to clocksource mxc_timer1
[    0.074787] NET: Registered protocol family 2
[    0.075860] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.076007] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.076131] TCP: Hash tables configured (established 4096 bind 4096)
[    0.076328] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.076396] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.076763] NET: Registered protocol family 1
[    0.077447] RPC: Registered named UNIX socket transport module.
[    0.077498] RPC: Registered udp transport module.
[    0.077526] RPC: Registered tcp transport module.
[    0.077554] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.078867] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.094152] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.095627] NFS: Registering the id_resolver key type
[    0.095731] Key type id_resolver registered
[    0.095767] Key type id_legacy registered
[    0.095872] fuse init (API version 7.26)
[    0.097413] random: fast init done
[    0.103392] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.103456] io scheduler noop registered
[    0.103486] io scheduler deadline registered
[    0.103879] io scheduler cfq registered (default)
[    0.106845] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[    0.106926] Console IMX rounded baud rate from 114943 to 114900
[    0.571197] console [ttymxc0] enabled
[    0.576206] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 49, base_baud = 5000000) is a IMX
[    0.586159] libphy: Fixed MDIO Bus: probed
[    0.591838] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    0.601779] libphy: fec_enet_mii_bus: probed
[    0.607654] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.614318] ehci-mxc: Freescale On-Chip EHCI Host driver
[    0.619872] usbcore: registered new interface driver usb-storage
[    0.631466] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    0.636510] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    0.673145] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    0.679823] hub 1-0:1.0: USB hub found
[    0.683770] hub 1-0:1.0: 1 port detected
[    0.692494] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    0.697538] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    0.733143] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    0.739800] hub 2-0:1.0: USB hub found
[    0.743742] hub 2-0:1.0: 1 port detected
[    0.749035] i2c /dev entries driver
[    0.752682] IR NEC protocol handler initialized
[    0.757322] IR RC5(x/sz) protocol handler initialized
[    0.762409] IR RC6 protocol handler initialized
[    0.766991] IR JVC protocol handler initialized
[    0.771550] IR Sony protocol handler initialized
[    0.776223] IR SANYO protocol handler initialized
[    0.780955] IR Sharp protocol handler initialized
[    0.785707] IR MCE Keyboard/mouse protocol handler initialized
[    0.791568] IR XMP protocol handler initialized
[    0.796752] sdhci: Secure Digital Host Controller Interface driver
[    0.802981] sdhci: Copyright(c) Pierre Ossman
[    0.807432] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.873143] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    0.943550] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    0.952328] usbcore: registered new interface driver usbhid
[    0.958033] usbhid: USB HID core driver
[    0.963378] NET: Registered protocol family 17
[    0.968018] Key type dns_resolver registered
[    0.973564] ThumbEE CPU extension supported.
[    0.986466] mmc0: new DDR MMC card at address 0001
[    0.992696] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[    0.999756] mmcblk0: mmc0:0001 Q2J55L 3.53 GiB
[    1.005960] mmcblk0boot0: mmc0:0001 Q2J55L partition 1 2.00 MiB
[    1.012395] mmcblk0boot1: mmc0:0001 Q2J55L partition 2 2.00 MiB
[    1.018791] mmcblk0gp0: mmc0:0001 Q2J55L partition 4 8.00 MiB
[    1.024976] mmcblk0gp1: mmc0:0001 Q2J55L partition 5 8.00 MiB
[    1.031084] mmcblk0gp2: mmc0:0001 Q2J55L partition 6 8.00 MiB
[    1.038315] mmcblk0gp3: mmc0:0001 Q2J55L partition 7 8.00 MiB
[    1.045551] mmcblk0rpmb: mmc0:0001 Q2J55L partition 3 4.00 MiB
[    1.052754]  mmcblk0: p1 p2 p3
[    1.070413] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.087888] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.096168] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.104879] Freeing unused kernel memory: 1024K
[    1.332987] systemd[1]: System time before build time, advancing clock.
[    1.346222] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    1.376710] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.395593] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    1.434096] systemd[1]: Set hostname to <armadillo>.
[    1.983620] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    2.023802] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    2.053468] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    2.084241] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    2.123898] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    2.163705] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    2.194815] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Swap.
[UNSUPP] Starting of Arbitrary Executable Fi…tem Automount Point not supported.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-getty.slice.
         Starting File System Check on Root Device...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Journal Service...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Listening on udev Control Socket.
         Starting Load Kernel Modules...
[  OK  ] Started File System Check on Root Device.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Journal Service.
[  OK  ] Started File System Check Daemon to report status.
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Starting udev Kernel Device Manager...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
[    3.335346] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Reached target Local File Systems (Pre).
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
[  OK  ] Started Load/Save Random Seed.
[    3.942404] systemd-journald[68]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Found device /dev/ttymxc0.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Login Service...
[    5.533524] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
         Starting System Logging Service...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started System Logging Service.
[  OK  ] Started Login Service.
[    7.683515] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         Starting LSB: exim Mail Transport Agent...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: exim Mail Transport Agent.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 armadillo ttymxc0

armadillo login:

5.2. ログイン

起動が完了するとログインプロンプトが表示されます。表5.1「シリアルコンソールログイン時のユーザ名とパスワード」に示すユーザでログインすることができます。

表5.1 シリアルコンソールログイン時のユーザ名とパスワード

ユーザ名パスワード権限

root

root

root ユーザ

atmark

atmark

一般ユーザ


初めて機器を接続したときは、必ず以下の手順に従って、初期パスワードを変更してください。

  1. root でログイン

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

    [armadillo ~]# passwd
    Enter new UNIX password: # 新しいパスワードを入力
    Retype new UNIX password: # 再入力
  2. atmark でログイン

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

    [armadillo ~]$ passwd
    Enter new UNIX password: # 新しいパスワードを入力
    Retype new UNIX password: # 再入力
[警告]

Armadillo-640はネットワークに接続されることを前提としている機器です。初期パスワードのままご利用になると、セキュリティリスクが非常に高まります。最終製品として作り上げる場合は、外部からのログインは極力できないようにすることをお勧めします。どうしてもログインが必要な場合は、セキュリティ強度の高いパスワードに変更し、その後も適切にパスワードを運用されることを強くお勧めします。

5.3. Debianのユーザを管理する

例として guest というユーザを作成、パスワードの変更、sudo を許可する方法を紹介します。

[armadillo ~]# adduser guest
Adding user ` [user_name] ' ...
Adding new group `guest' (1001) ...
Adding new user `guest' (1001) with group `guest' ...
Creating home directory `/home/guest' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: # パスワードを入力
Retype new UNIX password: # 再入力
passwd: password updated successfully
Changing the user information for guest
Enter the new value, or press ENTER for the default
        Full Name []: # Enter を入力
        Room Number []: # Enter を入力
        Work Phone []: # Enter を入力
        Home Phone []: # Enter を入力
        Other []: # Enter を入力
Is the information correct? [Y/n] # Enter を入力

図5.3 ユーザの作成


[armadillo ~]# passwd guest
Enter new UNIX password: # 新しいパスワードを入力
Retype new UNIX password: # 再入力

図5.4 パスワードの変更


[armadillo ~]# sudo usermod -a -G sudo guest

図5.5 sudo を許可


[armadillo ~]# deluser guest
  or
[armadillo ~]# deluser --remove-home guest

図5.6 ユーザの削除


ホームディレクトリも合わせて消したいときは、 --remove-home オプションをつけます。

5.4. 終了方法

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

[armadillo ~]# halt
         Stopping Session c1 of user root.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping D-Bus System Message Bus...
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
         Stopping Serial Getty on ttymxc0...
         Stopping LSB: exim Mail Transport Agent...
         Stopping Regular background program processing daemon...
         Stopping User Manager for UID 0...
         Stopping System Logging Service...
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Removed slice User Slice of root.
         Stopping Login Service...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Removed slice system-getty.slice.
         Stopping Permit User Sessions...
[  OK  ] Stopped Login Service.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target Network.
         Stopping Raise network interfaces...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target System Initialization.
         Stopping Network Time Synchronization...
[  OK  ] Stopped target Swap.
         Stopping Load/Save Random Seed...
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped target Local File Systems.
         Unmounting /run/user/0...
[  OK  ] Unmounted /run/user/0.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[ 1012.593800] systemd-shutdow: 21 output lines suppressed due to ratelimiting
[ 1012.650219] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1012.667975] systemd-journald[68]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1012.684489] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1012.700722] systemd-shutdown[1]: Unmounting file systems.
[ 1012.707655] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[ 1012.727070] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 1012.739616] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[ 1012.748129] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 1012.754170] systemd-shutdown[1]: All filesystems unmounted.
[ 1012.759786] systemd-shutdown[1]: Deactivating swaps.
[ 1012.765075] systemd-shutdown[1]: All swaps deactivated.
[ 1012.770350] systemd-shutdown[1]: Detaching loop devices.
[ 1012.778377] systemd-shutdown[1]: All loop devices detached.
[ 1012.811460] ci_hdrc ci_hdrc.1: remove, state 1
[ 1012.816006] usb usb2: USB disconnect, device number 1
[ 1012.822050] ci_hdrc ci_hdrc.1: USB bus 2 deregistered
[ 1012.827394] ci_hdrc ci_hdrc.0: remove, state 1
[ 1012.831879] usb usb1: USB disconnect, device number 1
[ 1012.838029] ci_hdrc ci_hdrc.0: USB bus 1 deregistered
[ 1012.843458] reboot: System halted
[警告]

ストレージにデータを書き込んでいる途中に電源を切断した場合、ファイルシステム、及び、データが破損する恐れがあります。ストレージをアンマウントしてから電源を切断するようにご注意ください。

[ティップ]

poweroffコマンドでもArmadillo-640を終了させることができます。

[armadillo ~]# poweroff
: (省略)
[   30.356097] reboot: Power down

poweroffとhaltでは、コマンド実行後のArmadillo-640の状態が異なります。

poweroffの場合、Armadillo-640は、ONOFFピンをGNDとショートすることで電源をオフした場合と同じ状態になります。 そのため、RTC_BAT ピンからバックアップ電源が供給されている限り、5V 電源を切ったのち 5V 電源を再入力してもArmadillo-640が起動しません。 詳しくは「ONOFFピンの制御について」を参照してください。