起動と終了

5.1. 起動

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

[注記]

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

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

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

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

CPU:   Freescale i.MX6ULL rev1.0 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.0 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 221 ms (31.2 MiB/s)
28291 bytes read in 54 ms (510.7 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 9ef02e82 ... 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-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: 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.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000056] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001807] Console: colour dummy device 80x30
[    0.002437] console [tty0] enabled
[    0.002503] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002566] pid_max: default: 32768 minimum: 301
[    0.002984] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003038] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.004250] CPU: Testing write buffer coherency: ok
[    0.005367] Setting up static identity map for 0x80100000 - 0x80100060
[    0.007386] devtmpfs: initialized
[    0.017496] random: get_random_u32 called from bucket_table_alloc+0x84/0x1a4 with crng_init=0
[    0.018013] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.018452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018528] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.019860] pinctrl core: initialized pinctrl subsystem
[    0.021168] NET: Registered protocol family 16
[    0.023063] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.031882] vdd3p0: supplied by regulator-dummy
[    0.032694] cpu: supplied by regulator-dummy
[    0.033497] vddsoc: supplied by regulator-dummy
[    0.047953] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.048571] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[    0.078051] SCSI subsystem initialized
[    0.078408] usbcore: registered new interface driver usbfs
[    0.078509] usbcore: registered new interface driver hub
[    0.078648] usbcore: registered new device driver usb
[    0.080119] i2c-gpio i2c-gpio: using pins 117 (SDA) and 120 (SCL)
[    0.081279] Advanced Linux Sound Architecture Driver Initialized.
[    0.082463] Bluetooth: Core ver 2.22
[    0.082570] NET: Registered protocol family 31
[    0.082604] Bluetooth: HCI device and connection manager initialized
[    0.082654] Bluetooth: HCI socket layer initialized
[    0.082707] Bluetooth: L2CAP socket layer initialized
[    0.082749] Bluetooth: SCO socket layer initialized
[    0.083825] clocksource: Switched to clocksource mxc_timer1
[    0.099721] NET: Registered protocol family 2
[    0.100912] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.101056] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.101186] TCP: Hash tables configured (established 4096 bind 4096)
[    0.101383] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.101453] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.101800] NET: Registered protocol family 1
[    0.102517] RPC: Registered named UNIX socket transport module.
[    0.102576] RPC: Registered udp transport module.
[    0.102608] RPC: Registered tcp transport module.
[    0.102639] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.432365] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.448767] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.450762] NFS: Registering the id_resolver key type
[    0.450863] Key type id_resolver registered
[    0.450896] Key type id_legacy registered
[    0.451360] fuse init (API version 7.26)
[    0.459470] NET: Registered protocol family 38
[    0.460068] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.460134] io scheduler noop registered
[    0.460166] io scheduler deadline registered
[    0.460612] io scheduler cfq registered (default)
[    0.465735] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[    0.470815] mxsfb 21c8000.lcdif: failed to find mxc display driver
[    0.504524] Console: switching to colour frame buffer device 100x30
[    0.526786] mxsfb 21c8000.lcdif: initialized
[    0.542215] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[    0.549131] Console IMX rounded baud rate from 114943 to 114900
[    0.560708] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    1.101655] console [ttymxc0] enabled
[    1.113781] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 52, base_baud = 5000000) is a IMX
[    1.130784] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 53, base_baud = 5000000) is a IMX
[    1.148770] libphy: Fixed MDIO Bus: probed
[    1.160401] tun: Universal TUN/TAP device driver, 1.6
[    1.173036] CAN device driver interface
[    1.185743] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    1.203211] libphy: fec_enet_mii_bus: probed
[    1.250758] usbcore: registered new interface driver awl13
[    1.263758] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.278993] usbcore: registered new interface driver pegasus
[    1.292575] usbcore: registered new interface driver rtl8150
[    1.306021] usbcore: registered new interface driver r8152
[    1.318990] usbcore: registered new interface driver lan78xx
[    1.331837] usbcore: registered new interface driver asix
[    1.344296] usbcore: registered new interface driver ax88179_178a
[    1.357450] usbcore: registered new interface driver cdc_ether
[    1.370291] usbcore: registered new interface driver net1080
[    1.382696] usbcore: registered new interface driver cdc_subset
[    1.395080] usbcore: registered new interface driver zaurus
[    1.406848] usbcore: registered new interface driver cdc_ncm
[    1.418388] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.430854] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.442122] usbcore: registered new interface driver cdc_acm
[    1.453405] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.467356] usbcore: registered new interface driver usb-storage
[    1.479249] usbcore: registered new interface driver usbserial
[    1.490923] usbcore: registered new interface driver usbserial_generic
[    1.502962] usbserial: USB Serial support registered for generic
[    1.514512] usbcore: registered new interface driver cp210x
[    1.525617] usbserial: USB Serial support registered for cp210x
[    1.536960] usbcore: registered new interface driver ftdi_sio
[    1.547934] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.560655] usbcore: registered new interface driver mxuport
[    1.571611] usbserial: USB Serial support registered for MOXA UPort
[    1.583138] usbcore: registered new interface driver pl2303
[    1.594131] usbserial: USB Serial support registered for pl2303
[    1.611657] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    1.622488] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    1.663869] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    1.676926] hub 1-0:1.0: USB hub found
[    1.687044] hub 1-0:1.0: 1 port detected
[    1.702490] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.713978] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    1.753868] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.767605] hub 2-0:1.0: USB hub found
[    1.778185] hub 2-0:1.0: 1 port detected
[    1.790614] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.808233] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[    1.821514] i2c /dev entries driver
[    1.832029] IR NEC protocol handler initialized
[    1.843326] IR RC5(x/sz) protocol handler initialized
[    1.855246] IR RC6 protocol handler initialized
[    1.866500] IR JVC protocol handler initialized
[    1.877536] IR Sony protocol handler initialized
[    1.888591] IR SANYO protocol handler initialized
[    1.899688] IR Sharp protocol handler initialized
[    1.910499] IR MCE Keyboard/mouse protocol handler initialized
[    1.922430] IR XMP protocol handler initialized
[    1.935581] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.948038] usbcore: registered new interface driver btusb
[    1.959967] sdhci: Secure Digital Host Controller Interface driver
[    1.972320] sdhci: Copyright(c) Pierre Ossman
[    1.982750] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.053866] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    2.134228] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    2.158994] mmc0: new DDR MMC card at address 0001
[    2.171579] random: fast init done
[    2.181783] usbcore: registered new interface driver usbhid
[    2.193688] usbhid: USB HID core driver
[    2.204278] mmcblk0: mmc0:0001 Q2J55L 3.53 GiB
[    2.215818] mmcblk0boot0: mmc0:0001 Q2J55L partition 1 2.00 MiB
[    2.228506] mmcblk0boot1: mmc0:0001 Q2J55L partition 2 2.00 MiB
[    2.247426] Netfilter messages via NETLINK v0.30.
[    2.258396] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    2.270763] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[    2.283364] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
[    2.297399] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.310567] NET: Registered protocol family 10
[    2.323096] mmcblk0gp0: mmc0:0001 Q2J55L partition 4 8.00 MiB
[    2.337020] mmcblk0gp1: mmc0:0001 Q2J55L partition 5 8.00 MiB
[    2.350834] mmcblk0gp2: mmc0:0001 Q2J55L partition 6 8.00 MiB
[    2.363255] mmcblk0gp3: mmc0:0001 Q2J55L partition 7 8.00 MiB
[    2.375484] mmcblk0rpmb: mmc0:0001 Q2J55L partition 3 4.00 MiB, chardev (248:0)
[    2.396243] Segment Routing with IPv6
[    2.406183] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.419399] NET: Registered protocol family 17
[    2.430011] can: controller area network core (rev 20170425 abi 9)
[    2.442732] NET: Registered protocol family 29
[    2.453210] can: raw protocol (rev 20170425)
[    2.463601] can: broadcast manager protocol (rev 20170425 t)
[    2.475372] can: netlink gateway (rev 20170425) max_hops=1
[    2.487599]  mmcblk0: p1 p2 p3
[    2.505822] Bluetooth: RFCOMM TTY layer initialized
[    2.517009] Bluetooth: RFCOMM socket layer initialized
[    2.528229] Bluetooth: RFCOMM ver 1.11
[    2.537853] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.549269] Bluetooth: BNEP filters: protocol multicast
[    2.560492] Bluetooth: BNEP socket layer initialized
[    2.571319] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.583068] Bluetooth: HIDP socket layer initialized
[    2.593848] Key type dns_resolver registered
[    2.604485] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 900000000, volt: 1275000, enabled: 1. New: freq: 900000000, volt: 1275000, enabled: 1
[    2.630637] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 792000000, volt: 1225000, enabled: 1. New: freq: 792000000, volt: 1225000, enabled: 1
[    2.658171] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 528000000, volt: 1175000, enabled: 1. New: freq: 528000000, volt: 1175000, enabled: 1
[    2.687109] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 396000000, volt: 1025000, enabled: 1. New: freq: 396000000, volt: 1025000, enabled: 1
[    2.716619] cpu cpu0: _opp_add: duplicate OPPs detected. Existing: freq: 198000000, volt: 950000, enabled: 1. New: freq: 198000000, volt: 950000, enabled: 1
[    2.747592] ThumbEE CPU extension supported.
[    2.769280] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[    2.784733] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    2.807066] 5V: disabling
[    2.816072] ALSA device list:
[    2.825271]   No soundcards found.
[    2.837077] Warning: unable to open an initial console.
[    2.854239] Freeing unused kernel memory: 3072K
[    3.015058] systemd-udevd[82]: starting version 215
[    3.036343] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.209186] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.711040] systemd[1]: System time before build time, advancing clock.
[    4.745309] 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.788976] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 10 (buster)!

[    4.844915] systemd[1]: Set hostname to <armadillo>.
[    6.355889] random: systemd: uninitialized urandom read (16 bytes read)
[    6.382736] random: systemd: uninitialized urandom read (16 bytes read)
[    6.400640] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    6.444166] random: systemd: uninitialized urandom read (16 bytes read)
[    6.457725] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    6.504745] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    6.555855] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File System Automount Point.
[    6.605302] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.649961] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    6.695077] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on Journal Socket.
         Starting Load Kernel Modules...
         Starting udev Coldplug all Devices...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Swap.
         Starting Journal Service...
[  OK  ] Created slice system-getty.slice.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[    7.825345] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Journal Service.
         Starting Load/Save Random Seed...
         Starting Create System Users...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Load/Save Random Seed.
[    8.520835] systemd-journald[155]: Received request to flush runtime journal from PID 1
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create System Users.
         Starting Create Static Device Nodes in /dev...
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started Helper to synchronize boot up for ifupdown.
[  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...
         Starting Create Volatile Files and Directories...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started netfilter persistent configuration.
[  OK  ] Reached target Network (Pre).
         Starting Raise network interfaces...
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Found device /dev/ttymxc0.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Found device /dev/mmcblk0gp0.
         Mounting /opt/license...
[  OK  ] Started ifup for eth0.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Created slice system-systemd\x2dbacklight.slice.
         Starting Load/Save Screen Backlight Brightness of backlight:backlight-display...
[  OK  ] Started Load/Save Screen Backlight Brightness of backlight:backlight-display.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Daily rotation of log files.
[   13.984143] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[  OK  ] Started Daily apt download activities.
[   14.033988] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Permit User Sessions...
         Starting System Logging Service...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Regular background program processing daemon.
         Starting LSB: exim Mail Transport Agent...
[  OK  ] Started D-Bus System Message Bus.
         Starting Login Service...
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  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 Getty on tty1.
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Login Service.
[   16.164522] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   16.180425] 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-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 System Logging Service...
         Stopping Regular background program processing daemon...
         Stopping LSB: exim Mail Transport Agent...
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily man-db regeneration.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped Daily rotation of log files.
         Unmounting /opt/license...
[  OK  ] Stopped target Multi-User System.
         Stopping Serial Getty on ttymxc0...
         Stopping Getty on tty1...
[  OK  ] Stopped Session c1 of user root.
         Stopping Login Service...
         Stopping User Manager for UID 0...
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Unmounted /opt/license.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Login Service.
         Stopping User Runtime Directory /run/user/0...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped User Runtime Directory /run/user/0.
         Stopping D-Bus System Message Bus...
[  OK  ] Removed slice User Slice of UID 0.
         Stopping Permit User Sessions...
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target System Time Synchronized.
[  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 Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Paths.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
         Stopping Network Time Synchronization...
         Stopping Load/Save Random Seed...
[  OK  ] Stopped target Local Encrypted Volumes.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Console Directory Watch.
         Stopping Load/Save Screen Backlight Brightness of backlight:backlight-display...
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped target Swap.
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight-display.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Removed slice system-systemd\x2dbacklight.slice.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped ifup for eth0.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped target Network (Pre).
         Stopping netfilter persistent configuration...
[  OK  ] Stopped netfilter persistent configuration.
[  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  ] Stopped Load Kernel Modules.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
         Starting Halt...
[   88.770482] systemd-shutdow: 31 output lines suppressed due to ratelimiting
[   88.868632] systemd-shutdown[1]: Syncing filesystems and block devices.
[   88.897752] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   88.916695] systemd-journald[155]: Received SIGTERM from PID 1 (systemd-shutdow).
[   88.936891] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   88.956008] systemd-shutdown[1]: Unmounting file systems.
[   88.968638] [714]: Remounting '/' read-only in with options 'data=ordered'.
[   89.000818] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[   89.017201] systemd-shutdown[1]: All filesystems unmounted.
[   89.023127] systemd-shutdown[1]: Deactivating swaps.
[   89.028965] systemd-shutdown[1]: All swaps deactivated.
[   89.034576] systemd-shutdown[1]: Detaching loop devices.
[   89.040909] systemd-shutdown[1]: All loop devices detached.
[   89.046880] systemd-shutdown[1]: Detaching DM devices.
[   89.092398] ci_hdrc ci_hdrc.1: remove, state 4
[   89.097181] usb usb2: USB disconnect, device number 1
[   89.103640] ci_hdrc ci_hdrc.1: USB bus 2 deregistered
[   89.112342] ci_hdrc ci_hdrc.0: remove, state 4
[   89.117104] usb usb1: USB disconnect, device number 1
[   89.123509] ci_hdrc ci_hdrc.0: USB bus 1 deregistered
[   89.129176] 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ピンの制御について」を参照してください。