第3章 起動と終了

3.1. 起動

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

Hermit-At v1.1.9 (Armadillo-500) compiled at 12:00:00, Jul 27 2007
Uncompressing  kernel......................................................
...............................................................done.
Uncompressing ramdisk......................................................
...........................................................................
...........................................................................
.....................................................done.
Linux version 2.6.18-12-at0 (atmark@atde) (gcc version 4.1.2 20061115 
(prerelease) (Debian 4.1.1-21)) #1 PREEMPT Thu Jul 26 00:01:12 JST 2007
CPU: Some Random V6 Processor [4107b364] revision 4 (ARMv6TEJ), cr=00c5387f
Machine: Armadillo-500
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIPT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.  Total pages: 16384
Kernel command line: console=ttymxc0
MXC IRQ initialized
PID hash table entries: 512 (order: 9, 2048 bytes)
Actual CLOCK_TICK_RATE is 60000000 Hz
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 52748KB available (3078K code, 718K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like 
an initrd
Freeing initrd memory: 8192K
NET: Registered protocol family 16
MXC GPIO hardware
system_rev is: 0x11
Clock input source is 26000000
L2 cache: WB
Using SDMA I.API
MXC DMA API initialized
usb: Host 2 registered
usb: OTG HS Host registered
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
MXC MMC/SD driver
mxcmci-0 found
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
Low-Level PM Driver module loaded
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x30
fb0: MXC frame buffer at 640x480x16 (CRT-VGA)
gpio: Armadillo-5x0 GPIO Sample driver [Rev.1.00]
MXC WatchDog Driver 2.0
MXC Watchdog Timer: initial timeout 60 sec
Serial: MXC Internal UART driver
mxcintuart.0: ttymxc0 at MMIO 0x43f90000 (irq = 45) is a Freescale MXC
mxcintuart.1: ttymxc1 at MMIO 0x43f94000 (irq = 32) is a Freescale MXC
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
eth0: LAN9118 (rev 1) at 0xc4850000 IRQ 64
eth0: Ethernet addr: 00:11:0c:0a:00:01
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
armadillo5x0-nor: Found 1 x16 devices at 0x0 in 16-bit bank
 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
cfi_cmdset_0001: Erase suspend on write enabled
armadillo5x0-nor: use default partitions(4)
Creating 4 MTD partitions on "armadillo5x0-nor":
0x00000000-0x00020000 : "nor.bootloader"
0x00020000-0x00220000 : "nor.kernel"
0x00220000-0x00fe0000 : "nor.userland"
0x00fe0000-0x01000000 : "nor.config"
MXC MTD nand Driver 2.0
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 
8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00020000 : "nand.ipl"
0x00020000-0x00420000 : "nand.kernel"
0x00420000-0x01a20000 : "nand.userland"
0x01a20000-0x10000000 : "nand.free"
armadillo5x0_pcmcia: PCMCIA driver [Rev.1 (2007/--/--)], (C) 2007 Atmark Techno, 
Inc.
usbmon: debugfs is not available
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 36, io base 0x43f88400
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found 
hub 1-0:1.0: 1 port detectedt
fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
fsl-ehci fsl-ehci.1: irq 37, io base 0x43f88000
fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
pegasus: v0.6.13 (2005/11/13), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new driver pegasus
mice: PS/2 mouse device common for all mice
tactsw: Armadillo-5x0 Tact-SW driver [Rev.1.00]
input: Tact-SW Port1 as /class/input/input0
input: Tact-SW Port2 as /class/input/input1
rtc-s353xxa: S-353XXA Real Time Clock class driver [Rev.1 (2007/--/--)], (C) 
2007 Atmark Techno, Inc.
i2c /dev entries driver
i2c_armadillo5x0: Armadillo-5x0 I2C driver [Rev.1 (2007/--/--)], (C) 2007 Atmark 
Techno, Inc.
rtc-s353xxa 0-0030: rtc intf: sysfs
rtc-s353xxa 0-0030: rtc intf: proc
rtc-s353xxa 0-0030: rtc intf: dev (253:0)
rtc-s353xxa 0-0030: rtc core: registered S-353XXA as rtc0
tlv320aic: TI TLV320AIC Audio codec driver [Rev.1 (2007/--/--)], (C) 2007 Atmark 
Techno, Inc.
IPU Post-filter loading
SSI module loaded successfully
led: Armadillo-5x0 LED driver, (C) 2007 Atmark Techno, Inc.
Registered led device: led1
Registered led device: led2
Registered led device: led3
Registered led device: led4
Registered led device: led5
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 
2006 UTC).
mxc_alsa_i2s: MXC ALSA iis audio driver [Rev.1 (2007/--/--)], (C) 2007 Atmark 
Techno, Inc.
usbcore: registered new driver snd-usb-audio
ALSA device list:
  #0: mxc i2s audio
IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
Power Management for Freescale MX31
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 2
rtc-s353xxa 0-0030: setting the system clock to 2007-07-26 14:01:52 (1185458512)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8192KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 120K
init started:  BusyBox v1.00 (2007.07.25-15:02+0000) multi-call binary
Starting fsck for root filesystem.
fsck 1.25 (20-Sep-2001)
ext2fs_check_if_mount: No such file or directory while determining whether 
/dev/ram0 is mounted.
/dev/ram0: clean, 719/1024 files, 6572/8192 blocks
Checking root filesystem:					done
Remounting root rw:						done
Mounting proc:						done
Mounting usbfs:						done
Mounting sysfs:						done
Cleaning up system:						done
Running local start scripts.
Starting udevd:						done
Changing file permissions:					done
Configure /home/ftp:						done
Starting syslogd:						done
Starting klogd:						done
Loading /etc/config:						done
Starting basic firewall:					done
Setting hostname:						done
Configuring network interfaces: info, udhcpc (v0.9.9-pre) started
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
debug, Sending select for 172.16.1.93...
info, Lease of 172.16.1.100 obtained, lease time 86400
								done
Starting inetd:						done
Stating sshd:							done
Starting thttpd:						done
Mounting ramfs /home/ftp/pub:				done

atmark-dist v1.10.0 (AtmarkTechno/Armadillo-500)
Linux 2.6.18-12-at0 [armv6l arch]

armadillo500 login:

図 3.1. 起動ログ


3.2. ログイン

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

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

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

3.3. 終了方法

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

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

Starting local stop scripts.
Exiting Syslogd!
Syncing all filesystems:                        done
Unmounting all filesystems:                     done
The system is going down NOW !!
Sending SIGTERM to all processes.
The system is halted. Press Reset or turn off power
MXC Watchdog shutdown
System halted.

図 3.2. 終了方法


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

[警告]

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