起動と終了

5.1. 起動

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

[注記]

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

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

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

U-Boot 2018.03-at8 (Feb 14 2020 - 10:21:57 +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 14 2020 - 10:21:57 +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 9 "Stretch") を起動するには、次のように boot コマンドを実行してください。コマンドを実行するとブートローダーが Linux システムを起動させます。シリアル通信ソフトウェアには Linux の起動ログが表示されます。

=> boot
6601520 bytes read in 205 ms (30.7 MiB/s)
27838 bytes read in 53 ms (512.7 KiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.14-at19
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6601456 Bytes = 6.3 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 9ef02cbd ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14-at19 (atmark@atde7) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 Wed Feb 19 11:40:11 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: 490908K/524288K available (6144K kernel code, 259K rwdata, 1288K rodata, 3072K init, 242K bss, 16996K 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 - 0xc0c40d00   ( 260 kB)
[    0.000000]        .bss : 0xc0c45d64 - 0xc0c82734   ( 243 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.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000054] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001816] Console: colour dummy device 80x30
[    0.002456] console [tty0] enabled
[    0.002521] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002582] pid_max: default: 32768 minimum: 301
[    0.002987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003036] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.004234] CPU: Testing write buffer coherency: ok
[    0.005295] Setting up static identity map for 0x80100000 - 0x80100060
[    0.007298] devtmpfs: initialized
[    0.017708] random: get_random_u32 called from bucket_table_alloc+0x84/0x1bc with crng_init=0
[    0.018208] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.018641] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018715] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.020062] pinctrl core: initialized pinctrl subsystem
[    0.021375] NET: Registered protocol family 16
[    0.023244] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.032210] vdd3p0: supplied by regulator-dummy
[    0.033021] cpu: supplied by regulator-dummy
[    0.033796] vddsoc: supplied by regulator-dummy
[    0.048804] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.049515] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[    0.064034] GPIO line 45 (SWITCH_LCD_DATA18) hogged as output/high
[    0.064118] GPIO line 47 (SE_RST_N) hogged as output/high
[    0.069175] GPIO line 104 (ISO3086TDWR_RE) hogged as output/low
[    0.077905] SCSI subsystem initialized
[    0.078264] usbcore: registered new interface driver usbfs
[    0.078373] usbcore: registered new interface driver hub
[    0.078510] usbcore: registered new device driver usb
[    0.080308] i2c i2c-0: IMX I2C adapter registered
[    0.080374] i2c i2c-0: can't use DMA, using PIO instead.
[    0.081590] i2c i2c-1: IMX I2C adapter registered
[    0.081655] i2c i2c-1: can't use DMA, using PIO instead.
[    0.082423] i2c i2c-2: IMX I2C adapter registered
[    0.082487] i2c i2c-2: can't use DMA, using PIO instead.
[    0.083170] Advanced Linux Sound Architecture Driver Initialized.
[    0.085470] clocksource: Switched to clocksource mxc_timer1
[    0.100973] NET: Registered protocol family 2
[    0.102187] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.102339] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.102465] TCP: Hash tables configured (established 4096 bind 4096)
[    0.102661] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.102723] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.103077] NET: Registered protocol family 1
[    0.103769] RPC: Registered named UNIX socket transport module.
[    0.103827] RPC: Registered udp transport module.
[    0.103859] RPC: Registered tcp transport module.
[    0.103888] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.415196] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.431121] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.433052] NFS: Registering the id_resolver key type
[    0.433156] Key type id_resolver registered
[    0.433191] Key type id_legacy registered
[    0.433295] fuse init (API version 7.26)
[    0.441764] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.441836] io scheduler noop registered
[    0.441867] io scheduler deadline registered
[    0.442305] io scheduler cfq registered (default)
[    0.452886] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.454029] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[    0.454732] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.454777] pfuze100-regulator 0-0008: pfuze3000 found.
[    0.467415] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[    0.467500] Console IMX rounded baud rate from 114943 to 114900
[    1.011614] console [ttymxc0] enabled
[    1.017160] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 55, base_baud = 5000000) is a IMX
[    1.027110] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 56, base_baud = 5000000) is a IMX
[    1.038310] libphy: Fixed MDIO Bus: probed
[    1.042790] tun: Universal TUN/TAP device driver, 1.6
[    1.048340] CAN device driver interface
[    1.054177] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    1.064249] libphy: fec_enet_mii_bus: probed
[    1.103797] usbcore: registered new interface driver awl13
[    1.109425] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.116979] usbcore: registered new interface driver pegasus
[    1.122761] usbcore: registered new interface driver rtl8150
[    1.128573] usbcore: registered new interface driver r8152
[    1.134162] usbcore: registered new interface driver lan78xx
[    1.139954] usbcore: registered new interface driver asix
[    1.145483] usbcore: registered new interface driver ax88179_178a
[    1.151684] usbcore: registered new interface driver cdc_ether
[    1.157645] usbcore: registered new interface driver net1080
[    1.163430] usbcore: registered new interface driver cdc_subset
[    1.169486] usbcore: registered new interface driver zaurus
[    1.175173] usbcore: registered new interface driver cdc_ncm
[    1.180912] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.187507] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.193107] usbcore: registered new interface driver cdc_acm
[    1.198861] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.207030] usbcore: registered new interface driver usb-storage
[    1.213235] usbcore: registered new interface driver usbserial
[    1.219237] usbcore: registered new interface driver usbserial_generic
[    1.225904] usbserial: USB Serial support registered for generic
[    1.232007] usbcore: registered new interface driver cp210x
[    1.237704] usbserial: USB Serial support registered for cp210x
[    1.243717] usbcore: registered new interface driver ftdi_sio
[    1.249582] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.257023] usbcore: registered new interface driver mxuport
[    1.262765] usbserial: USB Serial support registered for MOXA UPort
[    1.269160] usbcore: registered new interface driver pl2303
[    1.274814] usbserial: USB Serial support registered for pl2303
[    1.293583] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.298700] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    1.335508] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.342432] hub 1-0:1.0: USB hub found
[    1.346398] hub 1-0:1.0: 1 port detected
[    1.352521] using random self ethernet address
[    1.357114] using random host ethernet address
[    1.362786] usb0: HOST MAC 5a:03:14:fd:6e:79
[    1.367277] usb0: MAC 56:6f:92:11:2e:bd
[    1.371247] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.378835] g_cdc gadget: g_cdc ready
[    1.387553] rtc-nr3225sa 1-0032: Voltage low, temperature compensation stopped.
[    1.394942] rtc-nr3225sa 1-0032: Voltage low, data loss detected.
[    1.402201] rtc-nr3225sa 1-0032: Voltage low, data is invalid.
[    1.408531] rtc-nr3225sa 1-0032: registered as rtc0
[    1.414718] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc1
[    1.421232] i2c /dev entries driver
[    1.425739] IR NEC protocol handler initialized
[    1.430327] IR RC5(x/sz) protocol handler initialized
[    1.435407] IR RC6 protocol handler initialized
[    1.440010] IR JVC protocol handler initialized
[    1.444574] IR Sony protocol handler initialized
[    1.449248] IR SANYO protocol handler initialized
[    1.453981] IR Sharp protocol handler initialized
[    1.458757] IR MCE Keyboard/mouse protocol handler initialized
[    1.464623] IR XMP protocol handler initialized
[    1.470997] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.477533] sdhci: Secure Digital Host Controller Interface driver
[    1.483768] sdhci: Copyright(c) Pierre Ossman
[    1.488214] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.535478] random: fast init done
[    1.555512] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    1.605096] mmc0: new DDR MMC card at address 0001
[    1.610757] mmcblk0: mmc0:0001 S0J35A 3.53 GiB
[    1.615769] mmcblk0boot0: mmc0:0001 S0J35A partition 1 31.5 MiB
[    1.622080] mmcblk0boot1: mmc0:0001 S0J35A partition 2 31.5 MiB
[    1.628333] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    1.637540] usbcore: registered new interface driver usbhid
[    1.643172] usbhid: USB HID core driver
[    1.648435] mmcblk0gp0: mmc0:0001 S0J35A partition 4 8.00 MiB
[    1.654808] mmcblk0gp1: mmc0:0001 S0J35A partition 5 8.00 MiB
[    1.670662] mmcblk0gp2: mmc0:0001 S0J35A partition 6 8.00 MiB
[    1.683476] mmcblk0gp3: mmc0:0001 S0J35A partition 7 8.00 MiB
[    1.689892] mmcblk0rpmb: mmc0:0001 S0J35A partition 3 4.00 MiB, chardev (248:0)
[    1.701847] imx-mqs sound-mqs: fsl-mqs-dai <-> 2028000.sai mapping ok
[    1.709000]  mmcblk0: p1 p2 p3
[    1.717824] imx-mqs sound-mqs: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
[    1.725213] imx-mqs sound-mqs: fsl-mqs-dai <-> 2028000.sai mapping ok
[    1.731917] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    1.747838] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.754642] NET: Registered protocol family 10
[    1.764089] Segment Routing with IPv6
[    1.768048] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.775222] NET: Registered protocol family 17
[    1.779829] can: controller area network core (rev 20170425 abi 9)
[    1.786432] NET: Registered protocol family 29
[    1.790928] can: raw protocol (rev 20170425)
[    1.795230] can: broadcast manager protocol (rev 20170425 t)
[    1.801047] can: netlink gateway (rev 20170425) max_hops=1
[    1.806967] Key type dns_resolver registered
[    1.812134] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 900000000, volt: 1275000, enabled: 1. New: freq: 900000000, volt: 1275000, enabled: 1
[    1.826493] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 792000000, volt: 1225000, enabled: 1. New: freq: 792000000, volt: 1225000, enabled: 1
[    1.840781] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 528000000, volt: 1175000, enabled: 1. New: freq: 528000000, volt: 1175000, enabled: 1
[    1.855050] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 396000000, volt: 1025000, enabled: 1. New: freq: 396000000, volt: 1025000, enabled: 1
[    1.869319] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 198000000, volt: 950000, enabled: 1. New: freq: 198000000, volt: 950000, enabled: 1
[    1.884334] ThumbEE CPU extension supported.
[    2.396913] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[    2.404789] rtc-nr3225sa 1-0032: Voltage low, data is invalid.
[    2.410782] rtc-nr3225sa 1-0032: hctosys: unable to read the hardware clock
[    2.418465] USB_OTG1_VBUS: disabling
[    2.422095] ALSA device list:
[    2.425086]   #0: mqs-audio
[    2.428151] Warning: unable to open an initial console.
[    2.439030] Freeing unused kernel memory: 3072K
[    2.457439] hub 1-1:1.0: USB hub found
[    2.463257] hub 1-1:1.0: 3 ports detected
[    2.587787] systemd-udevd[77]: starting version 215
[    2.595444] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.749332] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.103435] systemd[1]: System time before build time, advancing clock.
[    4.124545] random: systemd: uninitialized urandom read (16 bytes read)
[    4.134560] random: systemd: uninitialized urandom read (16 bytes read)
[    4.149035] 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)
[    4.168001] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    4.209170] systemd[1]: Set hostname to <armadillo>.
[    4.431504] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[    4.812626] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    4.846247] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.877322] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    4.916866] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.956126] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    4.985922] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    5.015909] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[UNSUPP] Starting of Arbitrary Executable Fi…tem Automount Point not supported.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-getty.slice.
         Starting Journal Service...
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Remount Root and Kernel File Systems...
         Starting Create Static Device Nodes in /dev...
         Starting Load Kernel Modules...
[    5.631604] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
         Mounting FUSE Control File System...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting netfilter persistent configuration...
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started netfilter persistent configuration.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Reached target Network (Pre).
         Starting Raise network interfaces...
         Starting Flush Journal to Persistent Storage...
[    6.939306] systemd-journald[144]: 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 Raise network interfaces.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Started udev Coldplug all Devices.
[  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  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Login Service...
         Starting LSB: exim Mail Transport Agent...
         Starting System Logging Service...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Regular background program processing daemon.
         Starting Permit User Sessions...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started System Logging Service.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
[  OK  ] Found device /dev/ttymxc0.
[  OK  ] Found device /dev/mmcblk0gp0.
[  OK  ] Reached target Sound Card.
[  OK  ] Started ifup for eth0.
         Mounting /opt/license...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Mounted /opt/license.
[  OK  ] Started Login Service.
[   11.777015] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[   11.825773] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not 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 9 armadillo ttymxc0

[   16.086034] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   16.093944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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 Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping D-Bus System Message Bus...
         Stopping System Logging Service...
         Stopping LSB: exim Mail Transport Agent...
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped target Login Prompts.
         Stopping Serial Getty on ttymxc0...
         Stopping User Manager for UID 0...
         Stopping Getty on tty1...
         Unmounting /opt/license...
         Stopping Regular background program processing daemon...
[  OK  ] Stopped target Sound Card.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Unmounted /opt/license.
[  OK  ] Removed slice User Slice of root.
         Stopping Login Service...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Permit User Sessions...
[  OK  ] Stopped Login Service.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Network.
         Stopping ifup for eth0...
         Stopping Raise network interfaces...
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target System Initialization.
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Load/Save Random Seed...
         Stopping Network Time Synchronization...
[  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 target Swap.
[  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 ifup for eth0.
[  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.
         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.
[   29.070874] systemd-shutdow: 32 output lines suppressed due to ratelimiting
[   29.118128] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   29.137325] systemd-journald[151]: Received SIGTERM from PID 1 (systemd-shutdow).
[   29.153917] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   29.171503] systemd-shutdown[1]: Unmounting file systems.
[   29.178450] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[   29.199284] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[   29.211365] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[   29.219946] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[   29.226001] systemd-shutdown[1]: All filesystems unmounted.
[   29.231656] systemd-shutdown[1]: Deactivating swaps.
[   29.236939] systemd-shutdown[1]: All swaps deactivated.
[   29.242277] systemd-shutdown[1]: Detaching loop devices.
[   29.250115] systemd-shutdown[1]: All loop devices detached.
[   29.269592] ci_hdrc ci_hdrc.1: remove, state 1
[   29.274188] usb usb1: USB disconnect, device number 1
[   29.279272] usb 1-1: USB disconnect, device number 2
[   29.288775] ci_hdrc ci_hdrc.1: USB bus 1 deregistered
[   29.299013] 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ピンからの電源制御」を参照してください。