第4章 起動と終了

4.1. 起動

Armadilloの電源を投入してください。次のように起動ログがシリアル通信ソフトウェアに表示されます。

Hermit-At v3.10.0 (armadillo4x0) compiled at 10:17:05, Nov 06 2017
Uncompressing  kernel...........................................................
................................................................................
...............................................................done.
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-at10 (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atm
ark1) ) #1 PREEMPT Mon Nov 6 22:28:09 JST 2017
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: 103644K/131072K available (4614K kernel code, 227K rwdata, 1416K rodata,
 175K init, 150K bss, 27428K 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 - 0xc05ebebc   (6032 kB)
      .init : 0xc05ec000 - 0xc0617d9c   ( 176 kB)
      .data : 0xc0618000 - 0xc0650e60   ( 228 kB)
       .bss : 0xc0650e6c - 0xc0676948   ( 151 kB)
Preemptible hierarchical RCU implementation.
        Dump stacks of tasks blocking RCU-preempt GP.
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 0x80488528 - 0x80488580
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
fixed-5.0V: 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
i2c i2c-2: 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@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: 19388K (c1000000 - c22ef000)
futex hash table entries: 256 (order: -1, 3072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.759:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 240
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-fb imx21-fb.0: i.MX Framebuffer driver
Console: switching to colour frame buffer device 60x34
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
imx21-uart.4: ttymxc4 at MMIO 0x5002c000 (irq = 56, 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 0x00227e
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
number of CFI chips: 1
Creating 4 MTD partitions on "physmap-flash":
0x000000000000-0x000000040000 : "nor.bootloader"
0x000000040000-0x000000440000 : "nor.kernel"
0x000000440000-0x000001f00000 : "nor.userland"
0x000001f00000-0x000002000000 : "nor.config"
libphy: fec_enet_mii_bus: probed
fec imx25-fec.0 eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:p
hy_addr=imx25-fec-1:00, irq=-1)
PPP generic driver version 2.4.2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
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
rtc-s35390a 2-0030: error resetting chip
rtc-s35390a: probe of 2-0030 failed with error -5
i2c /dev entries driver
uvcvideo: Unable to create debugfs directory
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
imx2-wdt imx2-wdt.0: timeout 10 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
i.MX ADC at 0x50030000 irq 62
usbcore: registered new interface driver snd-usb-audio
usbcore: registered new interface driver snd-usb-caiaq
wm8978 2-001a: Failed to issue reset: -5
wm8978: probe of 2-001a failed with error -5
armadillo4x0_wm8978 armadillo4x0_wm8978.0: ASoC: CODEC wm8978.2-001a not registe
red
armadillo4x0_wm8978 armadillo4x0_wm8978.0: snd_soc_register_card failed (-517)
platform armadillo4x0_wm8978.0: Driver armadillo4x0_wm8978 requests probe deferr
al
oprofile: no performance counters
oprofile: using timer interrupt.
nf_conntrack version 0.5.0 (1922 buckets, 7688 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP: cubic registered
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
armadillo4x0_wm8978 armadillo4x0_wm8978.0: ASoC: CODEC wm8978.2-001a not registe
red
armadillo4x0_wm8978 armadillo4x0_wm8978.0: snd_soc_register_card failed (-517)
platform armadillo4x0_wm8978.0: Driver armadillo4x0_wm8978 requests probe deferr
al
input: gpio-keys as /devices/platform/gpio-keys/input/input0
armadillo4x0_wm8978 armadillo4x0_wm8978.0: ASoC: CODEC wm8978.2-001a not registe
red
input: imx_adc_ts as /devices/virtual/input/input1
armadillo4x0_wm8978 armadillo4x0_wm8978.0: snd_soc_register_card failed (-517)
i.MX ADC input touchscreen loaded.
platform armadillo4x0_wm8978.0: Driver armadillo4x0_wm8978 requests probe deferr
al
armadillo4x0_wm8978 armadillo4x0_wm8978.0: ASoC: CODEC wm8978.2-001a not registe
red
armadillo4x0_wm8978 armadillo4x0_wm8978.0: snd_soc_register_card failed (-517)
platform armadillo4x0_wm8978.0: Driver armadillo4x0_wm8978 requests probe deferr
al
rtc-s35390a 1-0030: setting system clock to 2000-01-01 00:01:47 UTC (946684907)
ALSA device list:
  No soundcards found.
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 19390KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 172K (c05ec000 - c0617000)
Mounting proc: done
Starting fsck for root filesystem.
fsck 1.25 (20-Sep-2001)
/dev/ram0: clean, 1203/1464 files, 17608/19390 blocks
Checking root filesystem: done
Remounting root rw: done
Mounting sysfs: done
Mounting tmpfs on /run: done
Cleaning up system: done
Running local start scripts.
Checking config region: done
Loading /etc/config: done
Starting udevd:udevd[1205]: starting version 175
done
Synthesizing the initial hotplug events:done
Changing file permissions: done
Configure /home/ftp: done
Mounting devpts: done
Starting syslogd: done
Starting klogd: done
Starting basic firewall: done
Setting hostname: done
Configuring network interfaces: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not rea
dy
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.1.131...
Lease of 172.16.1.131 obtained, lease time 86400
done
Starting inetd: done
Setting at-cgi: done
Starting lighttpd: done
Creating avahi.services: done
Starting avahi.daemon: random: avahi-daemon urandom read with 38 bits of entropy
 available
done
Mounting ramfs /home/ftp/pub: done
Running local start script (/etc/config/rc.local).

atmark-dist v1.54.0 (AtmarkTechno/Armadillo-420)
Linux 3.14.36-at10 [armv5tejl arch]

armadillo420-0 login: 

図4.1 起動ログ


[ティップ]

図4.1「起動ログ」で"Armadillo-420"と表示されていますが、これはバグではありません。Armadillo-440ベーシックモデル開発セットでは、Armadillo-440にArmadillo-420の標準イメージを書き込んでいます。

Armadillo-440はArmadillo-420の機能を内包しており、Armadillo-420向けのユーザーランドイメージはArmadillo-440でも使用することができます。

4.2. ログイン

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

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

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

4.3. 終了方法

安全に終了させる場合は、次のようにコマンドを実行し、「The system is 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 processes
Requesting system halt
imx2-wdt imx2-wdt.0: Device shutdown: Expect reboot!
reboot: System halted

図4.2 終了方法


[警告]

「System halted.」と表示されてから約128秒後、Armadilloは自動的に再起動します。

リムーバブルディスクを使用していない場合は、電源を切断し終了させることもできます。

[警告]

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