Hi
I have just built a linux kernel for the first time. A good way to get to know it.
Thanks to the great info at Christan Jann's website. It worked perfectly.
I do not quite understand how the rootfs (in partition 2) and the kernel are matched ?
I flashed in using dd the latest Arch IMG (2GB) and it runs OK. (3.7.2-2)
I built my kernel, and overwrote the default kernel in partition 1 with the made kernel sd_mmc_bootstream.raw. Then it does not get all the way : Is this a mismatch with the rootfs and modules present/not present ?
it stalls at 1.99 seconds in
The smoking gun, as far as I can see it, is the line :
"[ 1.240000] Waiting for root device /dev/mmcblk0p2..."
waiting ? waiting to be readable? waiting to appear ?
any thoughts- with thanks. Am Linux newbie (but not embedded newbie)
All dev is on Debian.
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC
PowerPrep start initialize power...
Battery Voltage = 2.20V
No battery or bad battery detected!!!.Disa
bling battery voltage measurements./r/nLLCMay
3 201310:18:34
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001
LLLLLLLFCLJUncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.7.8-dirty (glenenglish@beast2DEB) (gcc version 4.
7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305] (GNU Tools for
ARM Embedded Processors) ) #1 Fri May 3 08:34:52 EST 2013
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Freescale i.MX23 (Device Tree), model: i.MX23 Olinuxino
Low Cost Board
[ 0.000000] INITRD: 0x40400000+0x00400000 overlaps in-use memory region - dis
abling initrd
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 16256
[ 0.000000] Kernel command line: noinitrd console=ttyAMA0,115200 root=/dev/mm
cblk0p2 rw rootwait ssp1=mmc
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 54172k/54172k available, 11364k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04ca758 (4874 kB)
[ 0.000000] .init : 0xc04cb000 - 0xc04ecbd4 ( 135 kB)
[ 0.000000] .data : 0xc04ee000 - 0xc052a6b8 ( 242 kB)
[ 0.000000] .bss : 0xc052a6dc - 0xc0a796ac (5436 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N
odes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] of_irq_init: children remain, but no parents
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps ever
y 4294967286ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo
Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3695 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.070000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.090000] CPU: Testing write buffer coherency: ok
[ 0.090000] Setting up static identity map for 0x40364a98 - 0x40364ad4
[ 0.110000] devtmpfs: initialized
[ 0.110000] pinctrl core: initialized pinctrl subsystem
[ 0.120000] regulator-dummy: no parameters
[ 0.120000] NET: Registered protocol family 16
[ 0.120000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.170000] Serial: AMBA PL011 UART driver
[ 0.170000] 80070000.serial: ttyAMA0 at MMIO 0x80070000 (irq = 129) is a PL01
1 rev2
[ 0.360000] console [ttyAMA0] enabled
[ 0.390000] bio: create slab <bio-0> at 0
[ 0.410000] mxs-dma 80004000.dma-apbh: initialized
[ 0.420000] mxs-dma 80024000.dma-apbx: initialized
[ 0.430000] usb0_vbus: 5000 mV
[ 0.430000] SCSI subsystem initialized
[ 0.440000] usbcore: registered new interface driver usbfs
[ 0.440000] usbcore: registered new interface driver hub
[ 0.450000] usbcore: registered new device driver usb
[ 0.460000] Advanced Linux Sound Architecture Driver Initialized.
[ 0.470000] Switching to clocksource mxs_timer
[ 0.670000] NET: Registered protocol family 2
[ 0.680000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.690000] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[ 0.700000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.700000] TCP: reno registered
[ 0.710000] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.710000] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.720000] NET: Registered protocol family 1
[ 0.730000] RPC: Registered named UNIX socket transport module.
[ 0.740000] RPC: Registered udp transport module.
[ 0.740000] RPC: Registered tcp transport module.
[ 0.750000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.760000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.850000] NFS: Registering the id_resolver key type
[ 0.850000] Key type id_resolver registered
[ 0.860000] Key type id_legacy registered
[ 0.860000] msgmni has been set to 105
[ 0.870000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2
51)
[ 0.880000] io scheduler noop registered (default)
[ 0.890000] uart-pl011 80070000.serial: no DMA platform data
[ 0.900000] 8006c000.serial: ttyAPP0 at MMIO 0x8006c000 (irq = 126) is a 8006
c000.serial
[ 0.910000] mxs-auart 8006c000.serial: Found APPUART 3.0.0
[ 0.920000] Initializing USB Mass Storage driver...
[ 0.930000] usbcore: registered new interface driver usb-storage
[ 0.930000] USB Mass Storage support registered.
[ 0.940000] usbcore: registered new interface driver usbled
[ 0.940000] imx_usb 80080000.usb: pinctrl get/select failed, err=-19
[ 0.950000] ci_hdrc ci_hdrc.0: doesn't support gadget
[ 0.960000] ci_hdrc ci_hdrc.0: ChipIdea HDRC EHCI
[ 0.970000] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.030000] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.030000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.040000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1
[ 1.050000] usb usb1: Product: ChipIdea HDRC EHCI
[ 1.050000] usb usb1: Manufacturer: Linux 3.7.8-dirty ehci_hcd
[ 1.060000] usb usb1: SerialNumber: ci_hdrc.0
[ 1.070000] hub 1-0:1.0: USB hub found
[ 1.080000] hub 1-0:1.0: 1 port detected
[ 1.090000] mousedev: PS/2 mouse device common for all mice
[ 1.100000] stmp3xxx-rtc 8005c000.rtc: rtc core: registered 8005c000.rtc as r
tc0
[ 1.110000] i2c /dev entries driver
[ 1.110000] Driver for 1-wire Dallas network protocol.
[ 1.120000] leds-gpio leds.5: pins are not configured from the driver
[ 1.130000] usbcore: registered new interface driver usbhid
[ 1.140000] usbhid: USB HID core driver
[ 1.150000] oprofile: no performance counters
[ 1.150000] oprofile: using timer interrupt.
[ 1.160000] NET: Registered protocol family 26
[ 1.160000] TCP: cubic registered
[ 1.170000] NET: Registered protocol family 17
[ 1.170000] Key type dns_resolver registered
[ 1.190000] registered taskstats version 1
[ 1.190000] stmp3xxx-rtc 8005c000.rtc: setting system clock to 1970-01-01 00:
00:06 UTC (6)
[ 1.220000] ALSA device list:
[ 1.230000] No soundcards found.
[ 1.240000] Waiting for root device /dev/mmcblk0p2...
[ 1.400000] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[ 1.550000] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 1.550000] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.570000] hub 1-1:1.0: USB hub found
[ 1.570000] hub 1-1:1.0: 3 ports detected
[ 1.860000] usb 1-1.1: new high-speed USB device number 3 using ci_hdrc
[ 1.990000] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 1.990000] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber
=0