第5章 起動と終了

5.1. 起動

Armadillo-IoT G3Lに電源を接続するときUSBシリアル変換アダプタのスライドスイッチによって起動モードが変わります。 詳しくは「スライドスイッチの設定について」を参照してください。 本節では、保守モードに設定しているときの例を示します。 オートブートモードを選択した場合は、途中でコマンドを入力することなく起動が完了します。 USBシリアル変換アダプタを接続せずにArmadillo-IoT G3Lに電源を接続した場合、オートブートモードで起動します。

U-Boot SPL 2016.07-at17 (Jul 25 2018 - 19:00:03)
Trying to boot from SPI


U-Boot 2016.07-at17 (Jul 25 2018 - 19:00:03 +0900)

CPU:   Freescale i.MX7D rev1.2 at 996MHz
CPU:   Extended Commercial temperature grade (-20C to 105C) at 33C
Reset cause: POR
       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
Boot Source: QSPI Flash
Board Type: Armadillo-IoT G3L(0a200000)
Revision: 0002
S/N: 4169
DRAM: 00001d05
XTAL: 00
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from SPI Flash... SF: Detected N25Q64 with page size 256 Bytes, erase size 64 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

Failed (-5)
Loading Environment from SPI Flash... SF: Detected N25Q64 with page size 256 Bytes, erase size 64 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

Failed (-5)
In:    serial
Out:   serial
Err:   serial
Found PFUZE300! deviceid 0x30, revid 0x11
Net:   FEC0
=>

図5.1 電源投入直後のログ


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

=> boot
switch to partitions #0, OK
mmc1(part 0) is current device
switch to partitions #0, OK
mmc1(part 0) is current device
reading boot.scr
** Unable to read file boot.scr **
reading boot.scr
** Unable to read file boot.scr **
reading uImage
11432840 bytes read in 278 ms (39.2 MiB/s)
Booting from mmc ...
reading armadillo_iotg_g3l.dtb
51332 bytes read in 18 ms (2.7 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.9.112-at2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    11432776 Bytes = 10.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 84800000
   Booting using the fdt blob at 0x84800000
   Loading Kernel Image ... OK
   Using Device Tree in place at 84800000, end 8480f883

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.112-at2 (atmark@atde7) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #2 SMP PREEMPT Mon Jul 30 17:05:57 JST 2018
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Atmark-Techno Armadillo-X1L Board
Reserved memory: created CMA memory pool at 0x8c000000, size 320 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @8bb1c000 s26444 r8192 d22708 u57344
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttymxc4,115200 root=/dev/mmcblk2p2 rootwait rw
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 169532K/524288K available (11264K kernel code, 638K rwdata, 4972K rodata, 3072K init, 491K bss, 27076K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xa0800000 - 0xff800000   (1520 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80c00000   (12256 kB)
      .init : 0x81200000 - 0x81500000   (3072 kB)
      .data : 0x81500000 - 0x8159fb00   ( 639 kB)
       .bss : 0x815a1000 - 0x8161bed4   ( 492 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
	Build-time adjustment of leaf fanout to 32.
	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
arm_arch_timer: Architected cp15 timer(s) running at 8.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
Switching to timer-based delay loop, resolution 125ns
Ignoring duplicate/late registration of read_current_timer delay
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100058
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (32.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
DDR type is DDR3!
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
MU is ready for cross core communication!
GPIO line 13 (MCU_INTB) hogged as input
GPIO line 43 (SVEN) hogged as output/high
GPIO line 68 (RX_GATE) hogged as output/low
mxs-dma 33000000.dma-apbh: initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
30800000.aips-bus:usbphynop1 supply vcc not found, using dummy regulator
30800000.aips-bus:usbphynop2 supply vcc not found, using dummy regulator
gpio_bmic 3-0014: version: 2.0
bmic_regulator 3-0016: version: 1.0
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA, using PIO instead.
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
MIPI CSI2 driver module loaded
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
random: fast init done
armadillo_x1l_extboard extboard: Atmark Techno ExtBoard01 board detected  (Rev 0, SerialNumber=0).
clocksource: Switched to clocksource arch_sys_counter
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Bus freq driver module loaded
workingset: timestamp_bits=30 max_order=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.26)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-sdma 30bd0000.sdma: loaded firmware 4.2
pfuze100-regulator 3-0009: Full layer: 1, Metal layer: 1
pfuze100-regulator 3-0009: FAB: 0, FIN: 0
pfuze100-regulator 3-0009: pfuze3000 found.
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 43, base_baud = 5000000) is a IMX
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 45, base_baud = 5000000) is a IMX
console [ttymxc4] enabled
30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 283, base_baud = 500000) is a IMX
30a90000.serial: ttymxc6 at MMIO 0x30a90000 (irq = 285, base_baud = 500000) is a IMX
30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 286, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
(stk) :sysfs entries created
(hci_tty): inside hci_tty_init
(hci_tty): allocated 247, 0
fsl-quadspi 30bb0000.qspi: n25q064 (8192 Kbytes)
3 ofpart partitions found on MTD device 30bb0000.qspi
Creating 3 MTD partitions on "30bb0000.qspi":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000140000 : "license"
0x000000140000-0x000000800000 : "reserved"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
30bf0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30bf0000.ethernet eth0: registered PHC device 0
PPP generic driver version 2.4.2
usbcore: registered new interface driver kaweth
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver r8152
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver cdc_eem
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver sierra_net
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver sierra
usbserial: USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver usb_serial_simple
usbserial: USB Serial support registered for carelink
usbserial: USB Serial support registered for zio
usbserial: USB Serial support registered for funsoft
usbserial: USB Serial support registered for flashloader
usbserial: USB Serial support registered for google
usbserial: USB Serial support registered for libtransistor
usbserial: USB Serial support registered for vivopay
usbserial: USB Serial support registered for moto_modem
usbserial: USB Serial support registered for motorola_tetra
usbserial: USB Serial support registered for novatel_gps
usbserial: USB Serial support registered for hp4x
usbserial: USB Serial support registered for suunto
usbserial: USB Serial support registered for siemens_mpi
usbcore: registered new interface driver usb_ehset_test
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
using random self ethernet address
using random host ethernet address
usb0: HOST MAC 1e:11:ef:4f:64:08
usb0: MAC 2a:bd:37:04:ed:30
g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
g_cdc gadget: g_cdc ready
mousedev: PS/2 mouse device common for all mice
input: 30370000.snvs:snvs-powerkey as /devices/soc0/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
bmic_rtc 3-0011: version: 1.1
bmic_rtc 3-0011: rtc core: registered bmic_rtc as rtc1
snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs- as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
bmic_thermal 3-0013: version: 1.0
imx2-wdt 30280000.wdog: timeout 10 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol LL registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
(stc):  chnl_id list empty :4 (stk) : st_kim_start
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 30b40000.usdhc: Got CD GPIO
sdhci-esdhc-imx 30b40000.usdhc: Got WP GPIO
(stk) :ldisc_install = 1mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
sdhci-esdhc-imx 30b60000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b60000.usdhc: allocated mmc-pwrseq
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
mmc2: new DDR MMC card at address 0001
mmcblk2: mmc2:0001 Q2J55L 3.56 GiB 
mmcblk2boot0: mmc2:0001 Q2J55L partition 1 2.00 MiB
mmcblk2boot1: mmc2:0001 Q2J55L partition 2 2.00 MiB
mmcblk2rpmb: mmc2:0001 Q2J55L partition 3 4.00 MiB
 mmcblk2: p1 p2 p3
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using DMA
caam 30900000.caam: ERA source: CCBVID.
sdhci-esdhc-imx 30b50000.usdhc: card claims to support voltages below defined range
caam 30900000.caam: Entropy delay = 3200
caam 30900000.caam: Instantiated RNG4 SH0
mmc1: new high speed SDIO card at address 0001
caam 30900000.caam: Instantiated RNG4 SH1
caam 30900000.caam: device ID = 0x0a16030000000000 (Era 8)
caam 30900000.caam: job rings = 3, qi = 0
wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2
wl18xx_driver wl18xx.0.auto: Falling back to user helper
caam algorithms registered in /proc/crypto
caam_jr 30901000.jr0: registering rng-caam
caam 30900000.caam: caam pkc algorithms registered in /proc/crypto
snvs-secvio 30370000.caam-snvs: can't get snvs clock
snvs-secvio 30370000.caam-snvs: violation handlers armed - non-secure state
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver r8712u
bmic_adc 3-0012: version: 1.0
coresight-etm3x 3007c000.etm: ETM 3.5 initialized
coresight-etm3x 3007d000.etm: ETM 3.5 initialized
usbcore: registered new interface driver snd-usb-audio
NET: Registered protocol family 26
Netfilter messages via NETLINK v0.30.
nfnl_acct: registering with nfnetlink.
nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
ctnetlink v0.93: registering with nfnetlink.
nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
xt_time: kernel timezone is -0000
ipip: IPv4 and MPLS over IPv4 tunneling driver
gre: GRE over IPv4 demultiplexor driver
ip_gre: GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
arp_tables: arp_tables: (C) 2002 David S. Miller
Initializing XFRM netlink socket
NET: Registered protocol family 10
mip6: Mobile IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
ip6_gre: GRE over IPv6 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
ThumbEE CPU extension supported.
imx_thermal 30000000.aips-bus:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
dhd_module_init in
input: gpio-keys as /devices/soc0/gpio-keys/input/input1
input: gpio-wakeup as /devices/platform/gpio-wakeup/input/input2
snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
VDD_SD1: disabling
VLDO2: disabling
ALSA device list:
  No soundcards found.
Warning: unable to open an initial console.
Freeing unused kernel memory: 3072K
systemd-udevd[212]: starting version 215
random: systemd-udevd: uninitialized urandom read (16 bytes read)
wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -11
wlcore: WARNING falling back to default config
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded
EXT4-fs (mmcblk2p2): recovery complete
EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
systemd[1]: System time before build time, advancing clock.
random: systemd: uninitialized urandom read (16 bytes read)
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)
systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

systemd[1]: Set hostname to <armadillo>.
random: systemd: uninitialized urandom read (16 bytes read)
random: systemd-cryptse: uninitialized urandom read (16 bytes read)
random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] (stk) : timed out waiting for ldisc to be un-installedSet up automount Arbitrary Executab…rmats File System Automount Point.
systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
(stk) :ldisc_install = 1         Mounting Debug File System...
         Starting Remount Root and Kernel File Systems...
         Starting Load Kernel Modules...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Journal Service...
[  OK  ] Listening on udev Control Socket.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Journal Service.
[  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...
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
         Mounting FUSE Control File System...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Configuration File System.
[  OK  ] Started udev Kernel Device Manager.
(stk) :ldisc installation timeout
(stk) :ldisc_install = 0[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
systemd-journald[284]: 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 Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
(stk) : timed out waiting for ldisc to be un-installed[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
(stk) :ldisc_install = 1
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
         Starting User Mode Init manager daemons...
[  OK  ] Started D-Bus System Message Bus.
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
         Starting Network Manager...
         Starting Login Service...
         Starting System Logging Service...
         Starting Modem Manager...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Started Regular background program processing daemon.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[  OK  ] Started Login Service.
[  OK  ] Started System Logging Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Authorization Manager...
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
[  OK  ] Started Authorization Manager.
[  OK  ] Found device /dev/ttymxc4.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager.
[  OK  ] Found device /dev/license.
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
[  OK  ] Started LSB: set CPUFreq kernel parameters.
         Starting Network Manager Script Dispatcher Service...
         Mounting /opt/license...
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Lighttpd Daemon...
         Starting Connection Recover...
         Starting Network Manager Wait Online...
[  OK  ] Mounted /opt/license.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Network Manager Script Dispatcher Service.
(stk) : timed out waiting for ldisc to be un-installed[  OK  ] Started User Mode Init manager daemons.
(stk) :ldisc_install = 1
(stc): st_tty_open (stk) :line discipline installed
(stk) :ti-connectivity/TIInit_11.8.32.bts(stk) :change remote baud rate command in firmware
(stk) :skipping the wait event of change remote baud[  OK  ] Started Connection Recover.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Bluetooth service...
         Starting Hostname Service...
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Bluetooth service.
[  OK  ] Reached target Bluetooth.
[  OK  ] Started Lighttpd Daemon.
[  OK  ] Started Hostname Service.
(stc): add_channel_to_table: id 4
(stc): add_channel_to_table: id 2
(stc): add_channel_to_table: id 3
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
SMSC LAN8710/LAN8720 30bf0000.ethernet-1:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=30bf0000.ethernet-1:00, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
         Starting WPA supplicant...
[  OK  ] Started WPA supplicant.
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting LSB: exim Mail Transport Agent...
         Starting /etc/rc.local Compatibility...
rc.local[1458]: /etc/rc.local: 16: /etc/rc.local: cannot create /sys/devices/soc/30800000.aips-bus/30a50000.i2c/i2c-3/3-0008/USB3503_RESET/value: Directory nonexistent
usb 2-1: new high-speed USB device number 2 using ci_hdrc
rc.local[1458]: /etc/rc.local: 18: /etc/rc.local: cannot create /sys/devices/soc/30800000.aips-bus/30a50000.i2c/i2c-3/3-0008/USB3503_RESET/value: Directory nonexistent
[  OK  ] Started /etc/rc.local Compatibility.
         Starting input event poweroff daemon...
         Starting change status LED...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttymxc4.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started input event poweroff daemon.
[  OK  ] Started change status LED.
cdc_ether 2-1:1.0 usb1: register 'cdc_ether' at usb-ci_hdrc.1-1, CDC Ethernet Device, 02:80:70:12:23:00
cdc_acm 2-1:1.2: ttyACM0: USB ACM device
IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
cdc_ether 2-1:1.0 usb1: kevent 12 may have been dropped
cdc_ether 2-1:1.0 usb1: kevent 11 may have been dropped
cdc_ether 2-1:1.0 usb1: kevent 12 may have been dropped
[  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 ttymxc4

armadillo login: 

図5.2 起動ログ


5.2. ログイン

5.2.1. 新しいパスワードの準備

初めてログインしたときは、パスワードの変更を促されます。事前に新しいパスワードを用意してください。

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

表5.1 パスワードに設定可能な値

項目範囲
大文字のアルファベットA~Z
小文字のアルファベットa~z
数字0~9
その他(記号・句読点など)!"#$%&‘()*+,–./:;<=>?@[\]^_`{|}~

表5.1「パスワードに設定可能な値」の中から、4つの項目を全て含めた場合は、6文字以上でなければパスワードの安全性が低いためエラーとなります。 項目が3つの場合は7文字以上。項目が2つの場合は8文字以上。項目が1つの場合は9文字以上のパスワードを設定して下さい。 また、"ABCDEDCBA"など左右対称のパスワードはエラーとなるため使用しないで下さい。

[ティップ]

パスワードを自動生成するpwgenコマンドがあります。作業用 PCにpwgenをインストールして、9桁のパスワードを生成する例を次に示します。

[PC ~]$ sudo apt-get install pwgen
[PC ~]$ pwgen -y 9 1
********* # 9桁の値が生成されます。

5.2.2. 初回ログインと新しいパスワードの設定

初めてログインしたときは、パスワードを変更するようにメッセージが表示されます。以下の手順に従って、パスワードを変更してください。

  1. rootでログイン

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

    You are required to change your password immediately (root enforced)
    Changing password for root.
    (current) UNIX password: root # 初期パスワード"root"を入力
    Enter new UNIX password: # 新しいパスワードを入力
    Retype new UNIX password: # 新しいパスワードを再入力
  2. atmarkでログイン

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

    You are required to change your password immediately (root enforced)
    Changing password for atmark.
    (current) UNIX password: atmark # 初期パスワード"atmark"を入力
    Enter new UNIX password: # 新しいパスワードを入力
    Retype new UNIX password: # 新しいパスワードを再入力

Armadillo-IoT G3Lはネットワークに接続されることを前提としている機器です。 セキュリティ強度の高いパスワードに変更され、その後も適切にパスワードを運用されることを強くお勧めします。

5.3. 時刻の設定

Linuxの時刻には、Linuxカーネルが管理するシステムクロックと、RTCが管理するハードウェアクロックの2種類があります。システムクロックが正しく設定されていない場合、SSL通信が行えないなどの問題が発生します。

システムクロックは、dateコマンドを用いて設定します。dateコマンドの引数には、設定する時刻を[MMDDhhmmYYYY.ss]というフォーマットで指定します。時刻フォーマットの各フィールドの意味を次に示します。

表5.2 時刻フォーマットのフィールド

フィールド意味
MM
DD日(月内通算)
hh
mm
YYYY年(省略可)
ss秒(省略可)

2015年6月2日12時34分56秒に設定する例を次に示します。

[armadillo ~]# date 1
Sat Jan  1 09:00:00 JST 2000
[armadillo ~]# date 060212342015.56 2
Tue Jun  2 12:34:56 JST 2015
[armadillo ~]# date 3
Tue Jun  2 12:34:57 JST 2015

1

現在のシステムクロックを表示します。

2

システムクロックを設定します。

3

システムクロックが正しく設定されていることを確認します。

図5.3 システムクロックを設定


[ティップ]

Armadillo-IoTが接続しているネットワーク内にタイムサーバーがある場合は、NTP(Network Time Protocol)クライアントを利用してシステムクロックを設定することができます。

[armadillo ~]# ntpdate [NTP SERVER]
2 Jun 12:34:56 ntpdate[742]: adjust time server x.x.x.x offset 0.004883
 sec
[armadillo ~]# date
Tue Jun  2 12:34:57 JST 2015

5.4. debianのユーザーを管理する

  1. ユーザーを作成

    例としてguestというユーザーを作成します。

    [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を入力
  2. パスワードの変更

    例としてguestユーザーのパスワードを変更します。

    [armadillo ~]# passwd guest
    Enter new UNIX password: # 新しいパスワードを入力
    Retype new UNIX password: # 再入力
  3. sudoを許可する

    例としてguestユーザーにsudoを許可します。viの使い方については、「viエディタの使用方法」を参照にしてください。

    [armadillo ~]# visudo
    ...
    # User privilege specification
    root    ALL=(ALL:ALL) ALL
    guest   ALL=(ALL:ALL) ALL # この行を追加します
    ...
  4. ユーザーを削除

    例としてguestユーザーを削除します。

    [armadillo ~]# userdel guest
    [ティップ]

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

    [armadillo ~]# userdel -r guest

5.5. 終了方法

安全に終了させる場合は、次のようにコマンドを実行し、「Power down」と表示され、ユーザーLED3、ユーザーLED4、ユーザーLED5全てが消灯したことを確認してから電源を切断します。ユーザーLEDの位置については、図7.44「ユーザーLEDの位置」を参照してください

また、SW2を10秒間長押しすることで、終了することも可能です。

[armadillo ~]# poweroff
         Stopping Authorization Manager...
[  OK  ] Stopped target Timers.
         Stopping(stc): remove_channel_from_table: id 3
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
         Stopping Hostname Service...
         Stopping Load/Save RF Kill Switch Status...
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping LSB: exim Mail Transport Agent...
         Stopping System Logging Service...
         Stopping Modem Manager...
         Stopping Connection Recover...
         Stopping Regular background program processing daemon...
         Stopping Lighttpd Daemon...
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
         Stopping Serial Getty on ttymxc4...
         Stopping User Mode Init manager daemons...
         Stopping input event poweroff daemon...
         Stopping LSB: set CPUFreq kernel parameters...
         Stopping Network Manager Script Dispatcher Service...
         Stopping Avahi mDNS/DNS-SD Stack...
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Modem Manager.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped Authorization Manager.
[  OK  ] Stopped Bluetooth service.
[  OK  ] Stopped Hostname Service.
[  OK  ] Stopped Lighttpd Daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttymxc4.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Network Manager Script Dispatcher Service.
[  OK  ] Stopped Load/Save RF Kill Switch Status.
[  OK  ] Unmounted /opt/license.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Stopped Connection Recover.
[  OK  ] Stopped User Mode Init manager daemons.
[  OK  ] Stopped input event poweroff daemon.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Removed slice User Slice of root.
         Stopping Login Service...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Permit User Sessions...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped LSB: set CPUFreq kernel parameters.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped Network Manager Wait Online.
[  OK  ] Stopped target Network.
         Stopping Network Manager...
         Stopping WPA supplicant...
wlcore: down
[  OK  ] Stopped target System Time Synchronized.
wlcore: down
         Stopping LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Stopped Network Manager.
[  OK  ] Stopped LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Stopped WPA supplicant.
         Stopping D-Bus System Message Bus...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Stopped target Paths.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
         Stopping Network Time Synchronization...
[  OK  ] Stopped target Swap.
[  OK  ] Stopped Load Kernel Modules.
         Stopping Load/Save Random Seed...
         Stopping Update UTMP about System Boot/Shutdown...
[  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 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.
systemd-shutdow: 18 output lines suppressed due to ratelimiting
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[284]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Unmounting file systems.
systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
EXT4-fs (mmcblk2p2): re-mounted. Opts: data=ordered
systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
EXT4-fs (mmcblk2p2): re-mounted. Opts: data=ordered
systemd-shutdown[1]: All filesystems unmounted.
systemd-shutdown[1]: Deactivating swaps.
systemd-shutdown[1]: All swaps deactivated.
systemd-shutdown[1]: Detaching loop devices.
systemd-shutdown[1]: All loop devices detached.
imx2-wdt 30280000.wdog: Device shutdown: Expect reboot!
ci_hdrc ci_hdrc.1: remove, state 1
usb usb2: USB disconnect, device number 1
usb 2-1: USB disconnect, device number 2
cdc_ether 2-1:1.0 usb1: unregister 'cdc_ether' usb-ci_hdrc.1-1, CDC Ethernet Device
ci_hdrc ci_hdrc.1: USB bus 2 deregistered
ci_hdrc ci_hdrc.0: remove, state 4
usb usb1: USB disconnect, device number 1
ci_hdrc ci_hdrc.0: USB bus 1 deregistered

systemd-shutdown[1]: Powering off.
imx2-wdt 30280000.wdog: Device shutdown: Expect reboot!
reboot: Power down

図5.4 終了方法


[警告]

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