Armadilloフォーラム

Armadillo-IoT G2 でSDブートが途中で止まる

sasa0107

2016年7月7日 10時47分

笹倉と申します。
お世話になります。

Armadillo-IoT G2 でSDブート中に止まってしまいます。
下記にブート中のメッセージを記載致します。

hermit> boot
mmcsd: SD card at address 0x0000aaaa
mmcsd: SS08G 7761920KiB
gendisk: /dev/mmcblk1p1: start=0x0000000a, size=0x00ecdf38
gendisk: linux.bin.gz is found. (3544431 Bytes)
Copying kernel..done.
Uncompressing kernel...................................................................................................................................................................................................................................done.
Doing console=ttymxc1,115200
Doing root=/dev/mmcblk1p1
Doing noinitrd
Doing rootwait
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.14.36-at3 (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atmark1) ) #6 PREEMPT Thu Dec 17 14:29:30 JST 2015
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Armadillo-410
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/mmcblk1p1 noinitrd rootwait
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: 114800K/131072K available (5068K kernel code, 285K rwdata, 1660K rodata, 239K init, 295K bss, 16272K 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 - 0xc069a4fc (6730 kB)
.init : 0xc069b000 - 0xc06d6d24 ( 240 kB)
.data : 0xc06d8000 - 0xc071f6ac ( 286 kB)
.bss : 0xc071f6ac - 0xc076938c ( 296 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.00 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 0x804cc698 - 0x804cc6f0
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 at 0
adc081c Vref: at 3300 mV
eSDHC1 Vcc: at 3300 mV
eSDHC2 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
pca953x 3-0071: interrupt support not compiled in
i2c-gpio i2c-gpio.3: using pins 17 (SDA) and 18 (SCL)
i2c-gpio i2c-gpio.4: using pins 66 (SDA) and 65 (SCL)
i2c i2c-0: IMX I2C adapter registered
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
PTP clock support registered
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
No add-on expansion board detected at CON1.
Toa Musen Denki Wi-SUN board detected at CON2(Rev 1, SerialNumber=16010004).
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 (no cpio magic); looks like an initrd
Freeing initrd memory: 7260K (c1000000 - c1717000)
futex hash table entries: 256 (order: -1, 3072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.709:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 238
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 IMX
console [ttymxc1] enabled
imx21-uart.0: ttymxc0 at MMIO 0x43f90000 (irq = 61, base_baud = 7500000) is a IMX
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 0x000089 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 3-0030: rtc core: registered rtc-s35390a as rtc0
i2c /dev entries driver
lm75 3-0048: hwmon0: sensor 'lm75b'
imx2-wdt imx2-wdt.0: timeout 60 sec (nowayout=0)
usbcore: registered new interface driver btusb
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
mmc1: no vqmmc regulator found
mmc1: SDHCI controller on sdhci-esdhc-imx25.1 [sdhci-esdhc-imx25.1] 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 (1907 buckets, 7628 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
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
registered taskstats version 1
regulator-dummy: incomplete constraints, leaving on
input: gpio-keys as /devices/platform/gpio-keys/input/input0
input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input1
rtc-s35390a 3-0030: setting system clock to 2000-01-01 00:09:00 UTC (946685340)
ALSA device list:
No soundcards found.
Waiting for root device /dev/mmcblk1p1...
mmc1: new high speed SDHC card at address aaaa
mmcblk0: mmc1:aaaa SS08G 7.40 GiB
mmcblk0: p1
random: nonblocking pool is initialized

このラインで止まってしまいます。

SDの中ですが
[root@armadillo-iotg (ttymxc1) ~]# ls -l /mnt
total 284
-rw-r--r-- 1 root root 3244 Dec 17 2015 COPYRIGHT
-rw-r--r-- 1 root root 178403 Dec 17 2015 THIRDPARTYLICENSEREADME.txt
drwxr-xr-x 2 root root 4096 Jan 1 2000 bin/
-rw-r--r-- 1 root root 8526 Dec 17 2015 bom
drwxr-xr-x 2 root root 4096 Jan 1 09:04 boot/
drwxr-xr-x 4 root root 4096 Jan 1 2000 dev/
drwxr-xr-x 16 root root 4096 Jan 1 2000 etc/
drwxr-xr-x 5 root root 4096 Jan 1 2000 home/
drwxr-xr-x 11 root root 4096 Jan 1 2000 lib/
lrwxrwxrwx 1 root root 11 Jan 1 2000 linuxrc -> bin/busybox*
drwx------ 2 root root 16384 Dec 17 2015 lost+found/
drwxr-xr-x 2 root root 4096 Dec 17 2015 media/
drwxr-xr-x 2 root root 4096 Dec 17 2015 mnt/
drwxr-xr-x 4 root root 4096 Jan 1 2000 opt/
drwxr-xr-x 2 root root 4096 Dec 17 2015 proc/
-rw-r--r-- 1 root root 570 Dec 17 2015 release
drwxr-xr-x 2 root root 4096 Dec 17 2015 root/
drwxr-xr-x 2 root root 4096 Dec 17 2015 run/
drwxr-xr-x 2 root root 4096 Jan 1 2000 sbin/
drwxr-xr-x 2 root root 4096 Dec 17 2015 sys/
drwxr-xr-x 2 root root 4096 Dec 17 2015 tmp/
drwxr-xr-x 6 root root 4096 Jan 1 2000 usr/
drwxr-xr-x 9 root root 4096 Jan 1 2000 var/

となっています。
SDブート用のSDカードは
http://manual.atmark-techno.com/armadillo-4x0/armadillo-400_series_soft…
を参考に作成致しました。
カーネルイメージの配置は、自社でmakeした”linux.bin.gz”を/mnt/boot/にコピーしました。
Atmark-Dist イメージから構築は、自社でmakeした”romfs.img.gz”を解凍し、
mount -o loop tmp/romfs.img romfs/
(cd romfs/; tar cf - *) | (cd /mnt; tar xf -)
で展開致しました。
この自社でmakeした”linux.bin.gz”と”romfs.img.gz”は、netflashcを使用して、
Armadillo-IoTのフラッシュメモリを書き換え、フラッシュメモリからの起動の際は、
問題なくブートしております。

以上、SDブート時にブートが止まる原因が何かお分かりでしたら、ご教授下さい。
お願い致します。

コメント

花田です。

> Doing root=/dev/mmcblk1p1
:
> Waiting for root device /dev/mmcblk1p1...
> mmc1: new high speed SDHC card at address aaaa

と、rootシステムディスクにmmcblk1を指定しているのに

> mmcblk0: mmc1:aaaa SS08G 7.40 GiB
> mmcblk0: p1

実際にSDが差さっているのはmmcblk0、この点だけだと思います。

root=/dev/mmcblk0p1

に変更して、試してみてください。

花田 様

笹倉です。

お世話になります。

無事ブートできました。

有難うございました。

> 花田です。
>
> > Doing root=/dev/mmcblk1p1
> :
> > Waiting for root device /dev/mmcblk1p1...
> > mmc1: new high speed SDHC card at address aaaa
>
> と、rootシステムディスクにmmcblk1を指定しているのに
>
> > mmcblk0: mmc1:aaaa SS08G 7.40 GiB
> > mmcblk0: p1
>
> 実際にSDが差さっているのはmmcblk0、この点だけだと思います。
>
> root=/dev/mmcblk0p1
>
> に変更して、試してみてください。
>