起動と終了

5.1. 起動

電源入力インターフェース (Armadillo-610 拡張ボード: CON12) に電源を接続すると、Armadillo-610が起動します。

[注記]

USB シリアル変換アダプタのスライドスイッチやユーザースイッチ(Armadillo-610 拡張ボード: SW1)によって起動モードが変わります。 詳しくは 「接続方法」「スライドスイッチの設定について」「U-Boot の起動モード」 を参照してください。

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

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

U-Boot 2018.03-at8 (Feb 17 2020 - 19:19:11 +0900)

CPU:   Freescale i.MX6ULL rev1.1 at 396 MHz
Reset cause: POR
I2C:   ready
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
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
Net:   FEC
=>

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


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

U-Boot 2018.03-at8 (Feb 17 2020 - 19:19:11 +0900)

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

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


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

=> boot
7229976 bytes read in 219 ms (31.5 MiB/s)
27994 bytes read in 53 ms (515.6 KiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.14-at28
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    7229912 Bytes = 6.9 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 9eef9000, end 9ef02d59 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14-at28 (atmark@atde8) (gcc version 8.3.0 (Debian 8.3.0-2)) #1 Fri Dec 11 14:37:04 JST 2020
[    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-610
[    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: 490892K/524288K available (6144K kernel code, 272K rwdata, 1388K rodata, 3072K init, 244K bss, 17012K 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 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0c00000   (3072 kB)
[    0.000000]       .data : 0xc0c00000 - 0xc0c44220   ( 273 kB)
[    0.000000]        .bss : 0xc0c49494 - 0xc0c867fc   ( 245 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.000053] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001859] Console: colour dummy device 80x30
[    0.002522] console [tty0] enabled
[    0.002591] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002656] pid_max: default: 32768 minimum: 301
[    0.003074] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003131] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.004349] CPU: Testing write buffer coherency: ok
[    0.005452] Setting up static identity map for 0x80100000 - 0x80100060
[    0.007494] devtmpfs: initialized
[    0.017944] random: get_random_u32 called from bucket_table_alloc+0x84/0x1a4 with crng_init=0
[    0.018457] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.018890] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018971] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.020395] pinctrl core: initialized pinctrl subsystem
[    0.021611] NET: Registered protocol family 16
[    0.023508] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.032648] vdd3p0: supplied by regulator-dummy
[    0.033453] cpu: supplied by regulator-dummy
[    0.034276] vddsoc: supplied by regulator-dummy
[    0.049450] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.050154] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[    0.065642] GPIO line 45 (SWITCH_LCD_DATA18) hogged as output/high
[    0.065724] GPIO line 47 (SE_RST_N) hogged as output/high
[    0.070984] GPIO line 104 (ISO3086TDWR_RE) hogged as output/low
[    0.079757] SCSI subsystem initialized
[    0.080132] usbcore: registered new interface driver usbfs
[    0.080239] usbcore: registered new interface driver hub
[    0.080376] usbcore: registered new device driver usb
[    0.082342] i2c i2c-0: IMX I2C adapter registered
[    0.082410] i2c i2c-0: can't use DMA, using PIO instead.
[    0.083473] i2c i2c-1: IMX I2C adapter registered
[    0.083538] i2c i2c-1: can't use DMA, using PIO instead.
[    0.084288] i2c i2c-2: IMX I2C adapter registered
[    0.084354] i2c i2c-2: can't use DMA, using PIO instead.
[    0.085044] Advanced Linux Sound Architecture Driver Initialized.
[    0.086281] Bluetooth: Core ver 2.22
[    0.086385] NET: Registered protocol family 31
[    0.086422] Bluetooth: HCI device and connection manager initialized
[    0.086472] Bluetooth: HCI socket layer initialized
[    0.086508] Bluetooth: L2CAP socket layer initialized
[    0.086551] Bluetooth: SCO socket layer initialized
[    0.087641] clocksource: Switched to clocksource mxc_timer1
[    0.103535] NET: Registered protocol family 2
[    0.104722] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104867] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104993] TCP: Hash tables configured (established 4096 bind 4096)
[    0.105201] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.105273] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.105615] NET: Registered protocol family 1
[    0.106367] RPC: Registered named UNIX socket transport module.
[    0.106428] RPC: Registered udp transport module.
[    0.106460] RPC: Registered tcp transport module.
[    0.106491] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.436222] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.452599] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.454573] NFS: Registering the id_resolver key type
[    0.454686] Key type id_resolver registered
[    0.454722] Key type id_legacy registered
[    0.455201] fuse init (API version 7.26)
[    0.463249] NET: Registered protocol family 38
[    0.463840] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.463904] io scheduler noop registered
[    0.463934] io scheduler deadline registered
[    0.464376] io scheduler cfq registered (default)
[    0.475162] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.476312] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[    0.477019] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.477065] pfuze100-regulator 0-0008: pfuze3000 found.
[    0.489775] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[    0.489861] Console IMX rounded baud rate from 114943 to 114900
[    1.068625] console [ttymxc0] enabled
[    1.074108] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 55, base_baud = 5000000) is a IMX
[    1.084070] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 56, base_baud = 5000000) is a IMX
[    1.095304] libphy: Fixed MDIO Bus: probed
[    1.099943] tun: Universal TUN/TAP device driver, 1.6
[    1.105467] CAN device driver interface
[    1.111355] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    1.121451] libphy: fec_enet_mii_bus: probed
[    1.161815] usbcore: registered new interface driver awl13
[    1.167370] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.174965] usbcore: registered new interface driver pegasus
[    1.180791] usbcore: registered new interface driver rtl8150
[    1.186550] usbcore: registered new interface driver r8152
[    1.192173] usbcore: registered new interface driver lan78xx
[    1.197964] usbcore: registered new interface driver asix
[    1.203469] usbcore: registered new interface driver ax88179_178a
[    1.209689] usbcore: registered new interface driver cdc_ether
[    1.215621] usbcore: registered new interface driver net1080
[    1.221428] usbcore: registered new interface driver cdc_subset
[    1.227450] usbcore: registered new interface driver zaurus
[    1.233177] usbcore: registered new interface driver cdc_ncm
[    1.238905] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.245476] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.251101] usbcore: registered new interface driver cdc_acm
[    1.256809] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.264986] usbcore: registered new interface driver usb-storage
[    1.271256] usbcore: registered new interface driver usbserial
[    1.277193] usbcore: registered new interface driver usbserial_generic
[    1.283866] usbserial: USB Serial support registered for generic
[    1.290006] usbcore: registered new interface driver cp210x
[    1.295670] usbserial: USB Serial support registered for cp210x
[    1.301720] usbcore: registered new interface driver ftdi_sio
[    1.307560] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.315016] usbcore: registered new interface driver mxuport
[    1.320804] usbserial: USB Serial support registered for MOXA UPort
[    1.327166] usbcore: registered new interface driver pl2303
[    1.332857] usbserial: USB Serial support registered for pl2303
[    1.351749] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.356760] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    1.387688] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.394637] hub 1-0:1.0: USB hub found
[    1.398609] hub 1-0:1.0: 1 port detected
[    1.404817] using random self ethernet address
[    1.409419] using random host ethernet address
[    1.415084] usb0: HOST MAC 62:bd:d5:ab:7f:c7
[    1.419577] usb0: MAC a2:67:ee:05:83:f7
[    1.423527] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.431114] g_cdc gadget: g_cdc ready
[    1.439764] rtc-nr3225sa 1-0032: Voltage low, temperature compensation stopped.
[    1.447157] rtc-nr3225sa 1-0032: Voltage low, data loss detected.
[    1.454423] rtc-nr3225sa 1-0032: Voltage low, data is invalid.
[    1.460755] rtc-nr3225sa 1-0032: registered as rtc0
[    1.466960] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc1
[    1.473486] i2c /dev entries driver
[    1.478024] IR NEC protocol handler initialized
[    1.482609] IR RC5(x/sz) protocol handler initialized
[    1.487747] IR RC6 protocol handler initialized
[    1.492311] IR JVC protocol handler initialized
[    1.496869] IR Sony protocol handler initialized
[    1.501539] IR SANYO protocol handler initialized
[    1.506274] IR Sharp protocol handler initialized
[    1.511048] IR MCE Keyboard/mouse protocol handler initialized
[    1.516915] IR XMP protocol handler initialized
[    1.523346] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.529310] random: fast init done
[    1.533203] usbcore: registered new interface driver btusb
[    1.539073] sdhci: Secure Digital Host Controller Interface driver
[    1.545297] sdhci: Copyright(c) Pierre Ossman
[    1.549725] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.617688] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    1.667288] mmc0: new DDR MMC card at address 0001
[    1.672919] mmcblk0: mmc0:0001 S0J35A 3.53 GiB
[    1.677967] mmcblk0boot0: mmc0:0001 S0J35A partition 1 31.5 MiB
[    1.684290] mmcblk0boot1: mmc0:0001 S0J35A partition 2 31.5 MiB
[    1.690764] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    1.700828] mmcblk0gp0: mmc0:0001 S0J35A partition 4 8.00 MiB
[    1.713711] mmcblk0gp1: mmc0:0001 S0J35A partition 5 8.00 MiB
[    1.720822] usbcore: registered new interface driver usbhid
[    1.726458] usbhid: USB HID core driver
[    1.731483] mmcblk0gp2: mmc0:0001 S0J35A partition 6 8.00 MiB
[    1.742117] mmcblk0gp3: mmc0:0001 S0J35A partition 7 8.00 MiB
[    1.754694] mmcblk0rpmb: mmc0:0001 S0J35A partition 3 4.00 MiB, chardev (248:0)
[    1.768935] imx-mqs sound-mqs: fsl-mqs-dai <-> 2028000.sai mapping ok
[    1.775939]  mmcblk0: p1 p2 p3
[    1.779434] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    1.789314] imx-mqs sound-mqs: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
[    1.796691] imx-mqs sound-mqs: fsl-mqs-dai <-> 2028000.sai mapping ok
[    1.814433] Netfilter messages via NETLINK v0.30.
[    1.819680] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    1.826179] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[    1.832873] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
[    1.840885] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.847918] NET: Registered protocol family 10
[    1.855433] Segment Routing with IPv6
[    1.859392] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.866536] NET: Registered protocol family 17
[    1.871167] can: controller area network core (rev 20170425 abi 9)
[    1.877794] NET: Registered protocol family 29
[    1.882293] can: raw protocol (rev 20170425)
[    1.886602] can: broadcast manager protocol (rev 20170425 t)
[    1.892351] can: netlink gateway (rev 20170425) max_hops=1
[    1.898694] Bluetooth: RFCOMM TTY layer initialized
[    1.903744] Bluetooth: RFCOMM socket layer initialized
[    1.908986] Bluetooth: RFCOMM ver 1.11
[    1.912776] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.918151] Bluetooth: BNEP filters: protocol multicast
[    1.923423] Bluetooth: BNEP socket layer initialized
[    1.928448] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.934412] Bluetooth: HIDP socket layer initialized
[    1.939640] Key type dns_resolver registered
[    1.944788] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 900000000, volt: 1275000, enabled: 1. New: freq: 900000000, volt: 1275000, enabled: 1
[    1.959146] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 792000000, volt: 1225000, enabled: 1. New: freq: 792000000, volt: 1225000, enabled: 1
[    1.973446] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 528000000, volt: 1175000, enabled: 1. New: freq: 528000000, volt: 1175000, enabled: 1
[    1.987726] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 396000000, volt: 1025000, enabled: 1. New: freq: 396000000, volt: 1025000, enabled: 1
[    2.001998] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 198000000, volt: 950000, enabled: 1. New: freq: 198000000, volt: 950000, enabled: 1
[    2.016972] ThumbEE CPU extension supported.
[    2.529456] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[    2.537290] rtc-nr3225sa 1-0032: Voltage low, data is invalid.
[    2.543308] rtc-nr3225sa 1-0032: hctosys: unable to read the hardware clock
[    2.550899] USB_OTG1_VBUS: disabling
[    2.554529] ALSA device list:
[    2.557522]   #0: mqs-audio
[    2.560642] Warning: unable to open an initial console.
[    2.571572] Freeing unused kernel memory: 3072K
[    2.578090] hub 1-1:1.0: USB hub found
[    2.587108] hub 1-1:1.0: 3 ports detected
[    2.728885] systemd-udevd[85]: starting version 215
[    2.736265] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.803201] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.272654] systemd[1]: System time before build time, advancing clock.
[    4.299437] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    4.321873] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 10 (buster)!

[    4.368630] systemd[1]: Set hostname to <armadillo>.
[    5.924151] random: systemd: uninitialized urandom read (16 bytes read)
[    5.945138] random: systemd: uninitialized urandom read (16 bytes read)
[    5.953225] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    5.988038] random: systemd: uninitialized urandom read (16 bytes read)
[    5.995252] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    6.039318] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    6.068780] systemd[1]: Condition check resulted in Kernel Debug File System being skipped.
[    6.095483] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    6.138139] systemd[1]: Condition check resulted in Create list of required static device nodes for the current kernel being skipped.
[    6.170529] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Slices.
[  OK  ] Reached target Swap.
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Reached target Paths.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[    7.150940] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Load/Save Random Seed...
         Starting Create System Users...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting netfilter persistent configuration...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started netfilter persistent configuration.
[  OK  ] Started udev Kernel Device Manager.
[    8.560547] systemd-journald[158]: Received request to flush runtime journal from PID 1
[  OK  ] Reached target Network (Pre).
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Found device /dev/ttymxc0.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Found device /dev/mmcblk0gp0.
[  OK  ] Reached target Sound Card.
         Mounting /opt/license...
[  OK  ] Started ifup for eth0.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Basic System.
         Starting Permit User Sessions...
         Starting Login Service...
         Starting System Logging Service...
[  OK  ] Started D-Bus System Message Bus.
[   13.998061] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[   14.105285] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily apt upgrade and clean activities.
         Starting LSB: exim Mail Transport Agent...
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Reached target Timers.
[  OK  ] Started System Logging Service.
[  OK  ] Mounted /opt/license.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Login Service.
[   16.168434] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   16.176361] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  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 10 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-610はネットワークに接続されることを前提としている機器です。初期パスワードのままご利用になると、セキュリティリスクが非常に高まります。最終製品として作り上げる場合は、外部からのログインは極力できないようにすることをお勧めします。どうしてもログインが必要な場合は、セキュリティ強度の高いパスワードに変更し、その後も適切にパスワードを運用されることを強くお勧めします。

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 Sound Card.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily man-db regeneration.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
         Unmounting /opt/license...
[  OK  ] Stopped target Multi-User System.
         Stopping Regular background program processing daemon...
         Stopping System Logging Service...
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
         Stopping Serial Getty on ttymxc0...
         Stopping LSB: exim Mail Transport Agent...
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Unmounted /opt/license.
[  OK  ] Stopped Session c1 of user root.
         Stopping Login Service...
         Stopping User Manager for UID 0...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target System Time Synchronized.
         Stopping User Runtime Directory /run/user/0...
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped User Runtime Directory /run/user/0.
[  OK  ] Removed slice User Slice of UID 0.
         Stopping Permit User Sessions...
         Stopping D-Bus System Message Bus...
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Network.
         Stopping Raise network interfaces...
         Stopping ifup for eth0...
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Load/Save Random Seed...
         Stopping Network Time Synchronization...
[  OK  ] Stopped target Swap.
[  OK  ] Stopped target Local 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 ifup for eth0.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped target Network (Pre).
         Stopping netfilter persistent configuration...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped netfilter persistent configuration.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped target Local File Systems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
         Starting Halt...
[  337.027893] systemd-shutdow: 37 output lines suppressed due to ratelimiting
[  337.128922] systemd-shutdown[1]: Syncing filesystems and block devices.
[  337.146117] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  337.165144] systemd-journald[158]: Received SIGTERM from PID 1 (systemd-shutdow).
[  337.184913] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  337.204067] systemd-shutdown[1]: Unmounting file systems.
[  337.216600] [575]: Remounting '/' read-only in with options 'data=ordered'.
[  337.234082] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[  337.247019] systemd-shutdown[1]: All filesystems unmounted.
[  337.252667] systemd-shutdown[1]: Deactivating swaps.
[  337.258279] systemd-shutdown[1]: All swaps deactivated.
[  337.263569] systemd-shutdown[1]: Detaching loop devices.
[  337.269725] systemd-shutdown[1]: All loop devices detached.
[  337.275359] systemd-shutdown[1]: Detaching DM devices.
[  337.303051] ci_hdrc ci_hdrc.1: remove, state 1
[  337.307663] usb usb1: USB disconnect, device number 1
[  337.312745] usb 1-1: USB disconnect, device number 2
[  337.322230] ci_hdrc ci_hdrc.1: USB bus 1 deregistered
[  337.332454] reboot: System halted
[警告]

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

[ティップ]

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

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

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

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