第5章 起動と終了

5.1. 起動

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

U-Boot 2016.07-at4 (Nov 17 2016 - 15:52:10 +0900)

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

In:    serial
Out:   serial
Err:   serial
Found PFUZE300! deviceid 0x30, revid 0x11
Net:   FEC0
=>

図5.1 電源投入直後のログ


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

図5.2 起動ログ


=> 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
9835800 bytes read in 243 ms (38.6 MiB/s)
Booting from mmc ...
reading armadillo_iotg_g3l.dtb
54774 bytes read in 18 ms (2.9 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.14.79-at6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    9835736 Bytes = 9.4 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 848105f5

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 3.14.79-at6 (atmark@atde6) (gcc version 4.9.2 ( 4.9.2-10) ) #1627 SMP PREEMPT Thu Nov 17 20:02:16 JST 2016
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Atmark-Techno Armadillo-X1L Board
cma: CMA: reserved 64 MiB at 9c000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @9bbb4000 s8256 r8192 d16320 u32768
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: 433860K/524288K available (8742K kernel code, 511K rwdata, 7784K rodata, 2548K init, 441K bss, 90428K reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x8102bd7c   (16528 kB)
      .init : 0x8102c000 - 0x812a9040   (2549 kB)
      .data : 0x812aa000 - 0x81329dc0   ( 512 kB)
       .bss : 0x81329dcc - 0x8139822c   ( 442 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Switching to timer-based delay loop
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
Architected cp15 timer(s) running at 8.00MHz (phys).
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2147483648000ns
Ignoring duplicate/late registration of read_current_timer delay
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
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
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x808515f0 - 0x80851648
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (12.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
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
Use WDOG1 as reset source
GPIO line 13 (MCU_INTB) hogged as input
GPIO line 1 (LTE_GPIO12_3) hogged as output/high
GPIO line 43 (SVEN) hogged as output/high
GPIO line 36 (AOM_PWREN) hogged as output/high
GPIO line 85 (WLAN_PWR_EN) hogged as output/high
GPIO line 70 (LTE_POWER_EN) hogged as input
GPIO line 98 (BP35A1_NMIX) hogged as output/high
GPIO line 109 (LTE_VUSB) hogged as output/high
GPIO line 113 (LTE_SYS_REST_N) hogged as input
syscon 30340000.iomuxc-gpr: regmap [mem 0x30340000-0x3034ffff] registered
syscon 30350000.ocotp-ctrl: regmap [mem 0x30350000-0x3035ffff] registered
syscon 30360000.anatop: regmap [mem 0x30360000-0x3036ffff] registered
vdd1p0d: 800 <--> 1200 mV at 1000 mV 
vdd1p2: 1100 <--> 1300 mV 
syscon 30390000.src: regmap [mem 0x30390000-0x3039ffff] registered
DDR type is DDR3!
prom_parse: Bad cell count for /regulators0/regulator@0
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!
bio: create slab <bio-0> at 0
mxs-dma 33000000.dma-apbh: initialized
USB_OTG1_VBUS: 5000 mV 
VDD_SD1: 3300 mV 
WLAN_EN: 1800 mV 
vgaarb: loaded
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
30800000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
30800000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
gpio_bmic 3-0014: version: 2.0
bmic_regulator 3-0016: version: 1.0
BMIC_VREF: 1710 <--> 3600 mV at 3297 mV 
i2c i2c-3: IMX I2C adapter registered
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
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.18
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
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource arch_sys_counter
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)
TCP: reno registered
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.
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
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.22)
msgmni has been set to 975
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-sdma 30bd0000.sdma: no event needs to be remapped
imx-sdma 30bd0000.sdma: loaded firmware 4.1
imx-sdma 30bd0000.sdma: initialized
pfuze100-regulator 3-0009: Full layer: 1, Metal layer: 1
pfuze100-regulator 3-0009: FAB: 0, FIN: 0
pfuze100-regulator 3-0009: pfuze3000 found.
SW1A: 700 <--> 1475 mV at 1100 mV 
SW1B: 700 <--> 1475 mV at 1000 mV 
SW2: 1500 <--> 1850 mV at 1800 mV 
SW3: 900 <--> 1650 mV at 1350 mV 
SWBST: 5000 <--> 5150 mV at 5000 mV 
VSNVS: 1000 <--> 3000 mV at 3000 mV 
VREFDDR: 750 mV 
VLDO1: 1800 <--> 3300 mV at 1800 mV 
VLDO2: 800 <--> 1550 mV at 1500 mV 
VCCSD: 2850 <--> 3300 mV at 3300 mV 
V33: 2850 <--> 3300 mV at 3300 mV 
VLDO3: 1800 <--> 3300 mV at 3300 mV 
VLDO4: 1800 <--> 3300 mV at 3300 mV 
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 59, base_baud = 5000000) is a IMX
30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 60, base_baud = 1500000) is a IMX
30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 61, base_baud = 5000000) is a IMX
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 62, base_baud = 1500000) is a IMX
console [ttymxc4] enabled
30a90000.serial: ttymxc6 at MMIO 0x30a90000 (irq = 158, base_baud = 1500000) is a IMX
serial: Freescale lpuart driver
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
(stk) :sysfs entries created
(stk) : debugfs entries created 
(hci_tty): inside hci_tty_init
(hci_tty): allocated 248, 0
fsl-quadspi 30bb0000.qspi: Unsupported cmd 0x65
fsl-quadspi 30bb0000.qspi: Unsupported cmd 0x61
fsl-quadspi 30bb0000.qspi: Unsupported cmd 0x65
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"
fsl-quadspi 30bb0000.qspi: QuadSPI SPI NOR flash driver
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 cdc_ether
usbcore: registered new interface driver cdc_eem
usbcore: registered new interface driver sierra_net
usbcore: registered new interface driver cdc_ncm
usbcore: registered new interface driver qmi_wwan
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 cdc_wdm
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 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 vivopay
usbserial: USB Serial support registered for moto_modem
usbserial: USB Serial support registered for hp4x
usbserial: USB Serial support registered for suunto
usbserial: USB Serial support registered for siemens_mpi
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.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
mousedev: PS/2 mouse device common for all mice
input: 30370000.snvs-pwrkey as /devices/soc/30000000.aips-bus/30370000.snvs-pwrkey/input/input0
snvs_pwrkey 30370000.snvs-pwrkey: i.MX snvs powerkey probed
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume method
bmic_rtc 3-0011: version: 1.1
bmic_rtc 3-0011: rtc core: registered bmic_rtc as rtc0
snvs_rtc 30370034.snvs-rtc-lp: rtc core: registered 30370034.snvs-rtc-l as rtc1
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
i2c-core: driver [mag3110] using legacy suspend method
i2c-core: driver [mag3110] using legacy resume method
bmic_thermal 3-0013: version: 1.0
imx2-wdt 30280000.wdog: timeout 10 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Bluetooth: HCIATH3K protocol initialized
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
(stc):  chnl_id list empty :4 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 #128.
sdhci-esdhc-imx 30b40000.usdhc: Got WP GPIO #129.

(stk) : st_kim_startmmc0: no vqmmc regulator found
mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
mmc1: no vqmmc regulator found
(stk) :ldisc_install = 1
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using DMA
sdhci-esdhc-imx 30b60000.usdhc: allocated mmc-pwrseq
sdhci-esdhc-imx 30b60000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b50000.usdhc: card claims to support voltages below defined range
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new high speed SDIO card at address 0001
wl18xx_driver wl18xx.0.auto: Direct firmware load failed with error -2
wl18xx_driver wl18xx.0.auto: Falling back to user helper
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
caam 30900000.caam: Instantiated RNG4 SH0
caam 30900000.caam: Instantiated RNG4 SH1
caam 30900000.caam: device ID = 0x0a160300 (Era 8)
mmc2: BKOPS_EN bit is not set
caam 30900000.caam: job rings = 3, qi = 0
mmc2: new high speed 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
 mmcblk2boot1: unknown partition table
 mmcblk2boot0: unknown partition table
caam algorithms registered in /proc/crypto
hmac-sha1-caam alg registration failed
sha1-caam alg registration failed
hmac-sha224-caam alg registration failed
sha224-caam alg registration failed
hmac-sha256-caam alg registration failed
sha256-caam alg registration failed
hmac-md5-caam alg registration failed
md5-caam alg registration failed
xcbc-aes-caam alg registration failed
xcbc-aes-caam alg registration failed
caam_jr 30901000.jr0: registering rng-caam
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-tmc 30086000.etr: TMC initialized
coresight-tmc 30084000.etf: TMC initialized
coresight-tpiu 30087000.tpiu: TPIU initialized
coresight-funnel 30083000.funnel: FUNNEL initialized
coresight-funnel 30041000.funnel: FUNNEL initialized
coresight-replicator replicator: REPLICATOR initialized
coresight-etm3x 3007c000.etm: ETM initialized
coresight-etm3x 3007d000.etm: ETM initialized
usbcore: registered new interface driver snd-usb-audio
NET: Registered protocol family 26
nf_conntrack version 0.5.0 (7803 buckets, 31212 max)
ipip: IPv4 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
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
mip6: Mobile IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6 over IPv4 tunneling driver
ip6_gre: GRE over IPv6 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 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
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
ThumbEE CPU extension supported.
VDD_SD1: disabling
regulator-dummy: disabling
imx mcc test is registered.
using random self ethernet address
using random host ethernet address
usb0: HOST MAC 46:e1:a2:ca:c1:d2
usb0: MAC 66:97:ef:7a:41:1e
g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
g_cdc gadget: g_cdc ready
input: gpio-keys as /devices/gpio-keys/input/input1
bmic_rtc 3-0011: setting system clock to 2016-11-23 07:17:12 UTC (1479885432)
ALSA device list:
  No soundcards found.
Warning: unable to open an initial console.
Freeing unused kernel memory: 2548K (8102c000 - 812a9000)
systemd-udevd[155]: starting version 215
random: systemd-udevd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
(stk) :ldisc installation timeout
(stk) :ldisc_install = 0wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded
EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
random: systemd: uninitialized urandom read (16 bytes read, 75 bits of entropy available)
systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

systemd[1]: Set hostname to <armadillo>.
random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 78 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 84 bits of entropy available)
systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Expecting device dev-ttymxc4.device...
         Expecting device dev-ttymxc4.device...
systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
systemd[1]: Reached target Remote File Systems (Pre).
systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
systemd[1]: Starting Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
systemd[1]: Reached target Encrypted Volumes.
systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Starting Paths.
[  OK  ] Reached target Paths.
systemd[1]: Reached target Paths.
systemd[1]: Starting Swap.
[  OK  ] Reached target Swap.
systemd[1]: Reached target Swap.
systemd[1]: Starting Root Slice.
[  OK  ] Created slice Root Slice.
systemd[1]: Created slice Root Slice.
systemd[1]: Starting User and Session Slice.
[  OK  ] Created slice User and Session Slice.
systemd[1]: Created slice User and Session Slice.
systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
(stk) : timed out waiting for ldisc to be un-installed
systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
systemd[1]: Starting Delayed Shutdown Socket.
[  OK  ] Listening on Delayed Shutdown Socket.
systemd[1]: Listening on Delayed Shutdown Socket.
systemd[1]: Starting Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
systemd[1]: Listening on Journal Socket (/dev/log).
systemd[1]: Starting udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
systemd[1]: Listening on udev Kernel Socket.
systemd[1]: Starting udev Control Socket.
[  OK  ] Listening on udev Control Socket.
(stk) :ldisc_install = 1
systemd[1]: Listening on udev Control Socket.
systemd[1]: Starting Journal Socket.
[  OK  ] Listening on Journal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting System Slice.
[  OK  ] Created slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Starting system-getty.slice.
[  OK  ] Created slice system-getty.slice.
systemd[1]: Created slice system-getty.slice.
systemd[1]: Starting system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
systemd[1]: Created slice system-serial\x2dgetty.slice.
systemd[1]: Starting Increase datagram queue length...
         Starting Increase datagram queue length...
systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
systemd[1]: Mounted POSIX Message Queue File System.
systemd[1]: Started Set Up Additional Binary Formats.
systemd[1]: Started Create list of required static device nodes for the current kernel.
systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
systemd[1]: Mounted Huge Pages File System.
systemd[1]: Starting LSB: Start User Mode Init manager daemons...
         Starting LSB: Start User Mode Init manager daemons...
systemd[1]: Starting Slices.
[  OK  ] Reached target Slices.
systemd[1]: Reached target Slices.
systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
systemd[1]: Expecting device dev-mtdblock1.device...
         Expecting device dev-mtdblock1.device...
[  OK  ] Mounted Debug File System.
systemd[1]: Mounted Debug File System.
[  OK  ] Started Increase datagram queue length.
systemd[1]: Started Increase datagram queue length.
[  OK  ] Started Create Static Device Nodes in /dev.
systemd[1]: Started Create Static Device Nodes in /dev.
[  OK  ] Started Load Kernel Modules.
systemd[1]: Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
systemd[1]: Started Remount Root and Kernel File Systems.
[  OK  ] Started udev Coldplug all Devices.
systemd[1]: Started udev Coldplug all Devices.
[  OK  ] Started LSB: Start User Mode Init manager daemons.
systemd[1]: Started LSB: Start User Mode Init manager daemons.
(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 baudsystemd[1]: Started Various fixups to make systemd work better on Debian.
systemd[1]: Starting Load/Save Random Seed...

         Starting Load/Save Random Seed...
systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
systemd[1]: Starting udev Kernel Device Manager...
         Starting udev Kernel Device Manager...
systemd[1]: Starting Local File Systems (Pre).
[  OK  ] Reached target Local File Systems (Pre).
systemd-udevd[257]: starting version 215
systemd[1]: Reached target Local File Systems (Pre).
systemd[1]: Starting Local File Systems.
[  OK  ] Reached target Local File Systems.
systemd[1]: Reached target Local File Systems.
systemd[1]: Starting Create Volatile Files and Directories...
         Starting Create Volatile Files and Directories...
systemd[1]: Starting Remote File Systems.
[  OK  ] Reached target Remote File Systems.
systemd[1]: Reached target Remote File Systems.
systemd[1]: Starting Syslog Socket.
[  OK  ] Listening on Syslog Socket.
systemd[1]: Listening on Syslog Socket.
systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Started Journal Service.
systemd[1]: Started Journal Service.
         Starting Trigger Flushing of Journal to Persistent Storage...
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Volatile Files and Directories.
random: nonblocking pool is initialized
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
(stc): add_channel_to_table: id 4
(stc): add_channel_to_table: id 2
(stc): add_channel_to_table: id 3
[  OK  ] Found device /dev/ttymxc4.
systemd-journald[266]: Received request to flush runtime journal from PID 1
[  OK  ] Found device /dev/mtdblock1.
         Starting Trigger Flushing of Journal to Persistent Storage...
[  OK  ] Created slice system-systemd\x2drfkill.slice.
         Starting Load/Save RF Kill Switch Status of rfkill0...
         Starting Load/Save RF Kill Switch Status of rfkill1...
         Mounting /opt/license...
         Starting Update UTMP about System Boot/Shutdown...
         Starting LSB: Raise network interfaces....
         Starting Copy rules generated while the root was ro...
[  OK  ] Mounted /opt/license.
[  OK  ] Started Load/Save RF Kill Switch Status of rfkill0.
[  OK  ] Started Load/Save RF Kill Switch Status of rfkill1.
[  OK  ] Started Copy rules generated while the root was ro.
systemd-journald[266]: Received request to flush runtime journal from PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Bluetooth service...
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting Modem Manager...
         Starting Network Manager...
         Starting Connection Recover...
         Starting Lighttpd Daemon...
         Starting Restore /etc/resolv.conf if the system cras...s shut down....
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: exim Mail Transport Agent...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Bluetooth service.
[  OK  ] Reached target Bluetooth.
         Starting System Logging Service...
         Starting Permit User Sessions...
[  OK  ] Started Connection Recover.
[  OK  ] Started Restore /etc/resolv.conf if the system crash...was shut down..
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started System Logging Service.
[  OK  ] Started Login Service.
         Starting Hostname Service...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Hostname Service.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager.
[  OK  ] Started Lighttpd Daemon.
fec 30bf0000.ethernet eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=30bf0000.etherne:00, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
usb 2-1: new high-speed USB device number 2 using ci_hdrc
IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[  OK  ] Started LSB: exim Mail Transport Agent.
wlcore: PHY firmware version: Rev 8.2.0.0.195
wlcore: firmware booted (Rev 8.8.0.0.13)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
cdc_ether 2-1:1.0 usb1: register 'cdc_ether' at usb-ci_hdrc.1-1, CDC Ethernet Device, 02:80:79:98:77:20
cdc_acm 2-1:1.2: This device cannot do calls on its own. It is not a modem.
         Starting WPA supplicant...
cdc_acm 2-1:1.2: ttyACM0: USB ACM device
[  OK  ] Started WPA supplicant.
[  OK  ] Started /etc/rc.local Compatibility.
         Starting change status LED...
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttymxc4...
[  OK  ] Started Serial Getty on ttymxc4.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started change status LED.
[  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 8 armadillo ttymxc4

armadillo login: 

図5.3 起動ログ


5.2. ログイン

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

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

ユーザ名パスワード権限
rootrootrootユーザ
atmarkatmark一般ユーザ

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

  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 ~]$ 
[警告]

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.4 システムクロックを設定


[ティップ]

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
         Starting Synchronise Hardware Clock to System Clock...
[  OK  ] Stopped target Bluetooth.
         Stopping User Manager for UID 0...
         Stopping WPA supplicant...
         Stopping Hostname Service...
         Stopping Authenticate and Authorize Users to Run Privileged Tasks...
         Stopping Bluetooth service...
(stc): remove_channel_from_table: id 3
(stc): remove_channel_from_table: id 2
(stc): remove_channel_from_table: id 4
(stc):  all chnl_ids unregistered [
  OK  (stk) :ldisc_install = 0] Stopped target Graphical Interfa(stc): st_tty_close ce.
[  OK  ] Stopped target Multi-User System.
         Stopping Connection Recover...
         Stopping Modem Manager...
         Stopping Network Manager...
         Stopping Lighttpd Daemon...
         Stopping Regular background program processing daemon...

IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
         Stopping input event poweroff daemon...
wlcore: down
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
         Stopping Serial Getty on ttymxc4...
         Stopping LSB: exim Mail Transport Agent...
         Stopping LSB: set CPUFreq kernel parameters...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping D-Bus System Message Bus...
         Stopping System Logging Service...
[  OK  ] Stopped Bluetooth service.
[  OK  ] Stopped Modem Manager.
[  OK  ] Stopped Network Manager.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Hostname Service.
[  OK  ] Stopped Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Stopped Lighttpd Daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttymxc4.
[  OK  ] Stopped WPA supplicant.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Connection Recover.
[  OK  ] Stopped input event poweroff daemon.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped LSB: set CPUFreq kernel parameters.
         Stopping LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Stopped target Network is Online.
         Stopping Login Service...
[  OK  ] Removed slice user-0.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Removed slice system-getty.slice.
         Stopping /etc/rc.local Compatibility...
[  OK  ] Stopped /etc/rc.local Compatibility.
         Stopping Permit User Sessions...
[  OK  ] Stopped Login Service.
[  OK  ] Stopped LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Remote File Systems (Pre).
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
         Stopping Load/Save RF Kill Switch Status of rfkill0...
         Stopping Load/Save RF Kill Switch Status of rfkill1...
[  OK  ] Stopped target Encrypted Volumes.
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Apply Kernel Variables...
[  OK  ] Stopped Apply Kernel Variables.
         Stopping Load Kernel Modules...
[  OK  ] Stopped Load Kernel Modules.
         Stopping LSB: Raise network interfaces....
         Stopping LSB: Start User Mode Init manager daemons...
[  OK  ] Stopped target Swap.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped Load/Save RF Kill Switch Status of rfkill0.
[  OK  ] Stopped Load/Save RF Kill Switch Status of rfkill1.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped LSB: Raise network interfaces..
[  OK  ] Stopped LSB: Start User Mode Init manager daemons.
         Stopping Load/Save Random Seed...
         Stopping Create Volatile Files and Directories...
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /run/user/0...
[  OK  ] Removed slice system-systemd\x2drfkill.slice.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Unmounted /run/user/0.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
         Stopping Create Static Device Nodes in /dev...
[  OK  ] Stopped Create Static Device Nodes in /dev.
         Stopping Remount Root and Kernel File Systems...
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Started Synchronise Hardware Clock to System Clock.
[  OK  ] Reached target Shutdown.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[270]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Unmounting file systems.
systemd-shutdown[1]: Unmounting /sys/kernel/config.
systemd-shutdown[1]: Unmounting /sys/fs/fuse/connections.
systemd-shutdown[1]: Unmounting /sys/kernel/debug.
EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
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.
systemd-shutdown[1]: Detaching DM devices.
systemd-shutdown[1]: All DM devices detached.
systemd-shutdown[1]: Powering off.
imx2-wdt 30280000.wdog: Device shutdown: Expect reboot!
reboot: Power down

図5.5 終了方法


[警告]

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