第5章 起動と終了

5.1. 起動

Armadillo-Box WS1のブートモードを保守モードに設定してください。ブートモードの設定方法は、「ジャンパピンの設定について」を参照してください。

Armadillo-Box WS1に電源を接続すると、シリアル通信ソフトウェアには次のように表示されます。

Hermit-At v3.6.0 (armadillo-box-ws1) compiled at 20:51:51, Jul 24 2015
hermit> 

図5.1 電源投入直後のログ


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

hermit> boot
Uncompressing  kernel...........................................................
................................................................................
.............................................................................don
e.
Uncompressing ramdisk...........................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.................................................................done.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.14.36-at4 (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atma
rk1) ) #4 PREEMPT Tue Oct 13 16:04:45 JST 2015
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Armadillo-440
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttymxc1,115200 root=/dev/ram0
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
allocated 262144 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 111084K/131072K available (4791K kernel code, 277K rwdata, 1596K rodata,
 230K init, 294K bss, 19988K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0645040   (6389 kB)
      .init : 0xc0646000 - 0xc067fa5c   ( 231 kB)
      .data : 0xc0680000 - 0xc06c56e4   ( 278 kB)
       .bss : 0xc06c56e4 - 0xc070f26c   ( 295 kB)
Preemptible hierarchical RCU implementation.
NR_IRQS:16 nr_irqs:16 16
MXC IRQ initialized
Switching to timer-based delay loop
sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64585974768ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 133.0
0 BogoMIPS (lpj=665000)
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)
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x80489e78 - 0x80489ed0
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
imx25-pinctrl imx25-pinctrl.0: initialized IMX pinctrl driver
bio: create slab <bio-0> at 0
eSDHC1 Vcc: at 3300 mV
USB VBUS: at 5000 mV
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l
inux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 11336K (c1000000 - c1b12000)
futex hash table entries: 256 (order: -1, 3072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.639:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 239
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-sdma imx25-sdma: loaded firmware 1.0
imx-sdma imx25-sdma: initialized
imx21-uart.1: ttymxc1 at MMIO 0x43f94000 (irq = 48, base_baud = 7500000) is a IM
X
console [ttymxc1] enabled
imx21-uart.2: ttymxc2 at MMIO 0x5000c000 (irq = 34, base_baud = 7500000) is a IM
X
brd: module loaded
loop: module loaded
physmap platform flash device: 02000000 at a0000000
physmap-flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000
89 Chip ID 0x00891c
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 4 MTD partitions on "physmap-flash":
0x000000000000-0x000000020000 : "nor.bootloader"
0x000000020000-0x000000420000 : "nor.kernel"
0x000000420000-0x000001f00000 : "nor.userland"
0x000001f00000-0x000002000000 : "nor.config"
libphy: fec_enet_mii_bus: probed
PPP generic driver version 2.4.2
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver sierra_net
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 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 sierra
usbserial: USB Serial support registered for Sierra USB modem
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.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: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
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
rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
i2c /dev entries driver
imx2-wdt imx2-wdt.0: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: SDHCI controller on sdhci-esdhc-imx25.0 [sdhci-esdhc-imx25.0] using DMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
usbcore: registered new interface driver snd-usb-caiaq
oprofile: no performance counters
oprofile: using timer interrupt.
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1912 buckets, 7648 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
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
registered taskstats version 1
eSDHC1 Vcc: incomplete constraints, leaving on
regulator-dummy: incomplete constraints, leaving on
input: gpio-keys as /devices/platform/gpio-keys/input/input0
rtc-s35390a 1-0030: setting system clock to 2000-01-01 01:07:59 UTC (946688879)
ALSA device list:
  No soundcards found.
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 11337KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 228K (c0646000 - c067f000)
Mounting proc: done
Starting fsck for root filesystem.
fsck 1.25 (20-Sep-2001)
/dev/ram0: clean, 954/1152 files, 10345/11337 blocks
Checking root filesystem: done
Remounting root rw: done
Mounting sysfs: done
Mounting tmpfs on /dev: done
Mounting tmpfs on /run: done
Cleaning up system: done
Running local start scripts.
Starting the hotplug events dispatcher udevd:done
Synthesizing the initial hotplug events:done
Loading /etc/config: done
Changing file permissions: done
Mounting devpts: done
Starting syslogd: done
Starting klogd: done
Starting basic firewall: done
Setting hostname: done
Configuring network interfaces: fec imx25-fec.0 eth0: Freescale FEC PHY driver [
SMSC LAN8710/LAN8720] (mii_bus:phy_addr=imx25-fec-1:00, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.20.2) started
Sending discover...
libphy: imx25-fec-1:00 - Link is Up - 100/Full
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
Sending select for 172.16.2.27...
Lease of 172.16.2.27 obtained, lease time 86400
done
Starting avahi.daemon: random: avahi-daemon urandom read with 34 bits of entropy
 available
done
Running local start script (/etc/config/rc.local).

atmark-dist v1.45.0 (AtmarkTechno/Armadillo-Box-WS1)
Linux 3.14.36-at4 [armv5tejl arch]

abws1-0 login:  

図5.2 起動ログ


[警告]

Armadillo-Box WS1にRTCが搭載されていない場合、起動ログに以下のようなエラーが出ます。

rtc-s35390a 1-0030: error resetting chip
rtc-s35390a: probe of 1-0030 failed with error -5

カーネルコンフィギュレーションで、S-35390Aのドライバを無効化する事で、このエラーを抑制する事ができます。詳細については「RTC」を参照してください

[ティップ]

Armadillo-Box WS1の起動状態をユーザーLEDから確認することができます。

起動状態ユーザーLED(赤色)ユーザーLED(緑色)
ブートローダーが保守モード消灯点灯
Linuxの起動中点灯点灯
Linuxが起動完了消灯点灯
[注記]

Armadillo-Box WS1の起動後に表示される次のメッセージは、エラーメッセージではありません。

random: nonblocking pool is initialized

このメッセージは、/dev/urandomが内部的に使用するプール領域の初期化完了を示します。

5.2. ログイン

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

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

ユーザ名パスワード権限
rootrootrootユーザ
guest(なし)一般ユーザ

5.3. 終了方法

安全に終了させる場合は、次のようにコマンドを実行し、「System halted.」と表示されたのを確認してから電源を切断します。

[armadillo ~]# halt
[armadillo ~]#
System is going down for system reboot now.

Starting local stop scripts.
Syncing all filesystems: done
Unmounting all filesystems: umount: udev busy - remounted read-only
umount: devtmpfs busy - remounted read-only
done
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processesimx2-wdt imx2-wdt.0: Device shutdown: Expect reboot!
reboot: System halted

図5.3 終了方法


microSDカードなどのストレージをマウントしていない場合は、電源を切断し終了させることもできます。

[警告]

「System halted.」と表示されてから約128秒後、Armadillo-Box WS1は自動的に再起動します。詳しくは、「ウォッチドッグタイマー」を参照してください。

[警告]

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