logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.
peter
peter
Offline
0
Following fmartens post May 2014, I can get Kernel 3.15 (and 3.18) to boot and mount a rootfs but the init doesn't seem to work. I tried Busybox and Buildroot rootfs' but get similar results. As suggested by FAQ Busybox "Busybox init isn't working" I have simplified init to simply print "Hello World" - see link below.

http://www.busybox.net/FAQ.html#init

(As a note, the link to fmartens rootfs in his post is no longer available)

Below is the Kernel 3.15.3 which doesn't work followed by the Kernel 2.6.37 which does - both using the same rootfs. The rootfs has /bin/peter2init (2 entries) where peter2init is the FAQ Busybox program. Other than version numbers, the only difference is the use of device tree blob in 3.15.3.

Kernel 3.15.3 boot commands were entered manually as follows:
load mmc 0:1 0x82000000 /boot/zImage
load mmc 0:1 0x81600000 /boot/omap3-igep0020.dtb
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug
bootz 0x82000000 - 0x81600000



Thanks in advance for your help!!!!! It is really appreciated!!




***********************************************************
LINUX 3.15.3 DOESN'T WORK

U-Boot# load mmc 0:1 0x82000000 /boot/zImage
reading /boot/zImage
4335496 bytes read in 278 ms (14.9 MiB/s)
U-Boot# load mmc 0:1 0x81600000 /boot/omap3-igep0020.dtb
reading /boot/omap3-igep0020.dtb
63992 bytes read in 12 ms (5.1 MiB/s)
U-Boot# setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug
U-Boot# bootz 0x82000000 - 0x81600000
Kernel image @ 0x82000000 [ 0x000000 - 0x422788 ]
## Flattened Device Tree blob at 81600000
Booting using the fdt blob at 0x81600000
Loading Device Tree to 8ffed000, end 8ffff9f7 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.15.3 (peter@blastoff2) (gcc version 4.9.1 (crosstool-NG 1.20.0) ) #1 SMP Fri Jan 30 14:33:14 MST 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: IGEPv2 (TI OMAP AM/DM37x)
[ 0.000000] cma: CMA: reserved 16 MiB at 9e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 130816
[ 0.000000] free_area_init_node: node 0, pgdat c08aad40, node_mem_map dfaf2000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130816 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] PERCPU: Embedded 9 pages/cpu @dfaa2000 s14080 r8192 d14592 u36864
[ 0.000000] pcpu-alloc: s14080 r8192 d14592 u36864 alloc=9*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129792
[ 0.000000] Kernel command line: console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 487552K/523264K available (5641K kernel code, 665K rwdata, 2160K rodata, 393K init, 5523K bss, 35712K 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 : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc07a698c (7803 kB)
[ 0.000000] .init : 0xc07a7000 - 0xc0809700 ( 394 kB)
[ 0.000000] .data : 0xc080a000 - 0xc08b0540 ( 666 kB)
[ 0.000000] .bss : 0xc08b0540 - 0xc0e15208 (5524 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65536000000000ns
[ 0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.001129] Console: colour dummy device 80x30
[ 0.004608] console [tty0] enabled
[ 0.004638] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.004699] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.004730] ... MAX_LOCK_DEPTH: 48
[ 0.004760] ... MAX_LOCKDEP_KEYS: 8191
[ 0.004791] ... CLASSHASH_SIZE: 4096
[ 0.004791] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.004821] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.004852] ... CHAINHASH_SIZE: 16384
[ 0.004882] memory used by lock dependency info: 3695 kB
[ 0.004913] per task-struct memory footprint: 1152 bytes
[ 0.005004] Calibrating delay loop... 594.73 BogoMIPS (lpj=2973696)
[ 0.097595] pid_max: default: 32768 minimum: 301
[ 0.098175] Security Framework initialized
[ 0.098388] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098449] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.101867] CPU: Testing write buffer coherency: ok
[ 0.103485] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.103607] Setting up static identity map for 0x8055ca38 - 0x8055caa8
[ 0.108123] Brought up 1 CPUs
[ 0.108154] SMP: Total of 1 processors activated.
[ 0.108184] CPU: All CPU(s) started in SVC mode.
[ 0.112091] devtmpfs: initialized
[ 0.122589] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.204986] omap_hwmod: mcbsp2_sidetone using broken dt data from mcbsp
[ 0.207458] omap_hwmod: mcbsp3_sidetone using broken dt data from mcbsp
[ 0.300903] omap_hwmod: mcbsp2: cannot be enabled for reset (3)
[ 0.320312] pinctrl core: initialized pinctrl subsystem
[ 0.324066] regulator-dummy: no parameters
[ 0.422058] NET: Registered protocol family 16
[ 0.430969] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.445953] Reprogramming SDRC clock to 400000000 Hz
[ 0.458587] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.459930] OMAP GPIO hardware version 2.5
[ 0.461791] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.464477] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.467285] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.469909] gpiochip_add: registered GPIOs 128 to 159 on device: gpio
[ 0.472503] gpiochip_add: registered GPIOs 160 to 191 on device: gpio
[ 0.486450] platform 49022000.mcbsp: alias fck already exists
[ 0.499389] omap-gpmc 6e000000.gpmc: GPMC revision 5.0
[ 0.500946] gpmc_probe_nand_child: ti,elm-id property not found
[ 0.501159] gpmc_cs_program_settings: invalid width 0!
[ 0.512603] No ATAGs?[ 0.512664] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.516601] OMAP DMA hardware revision 5.0
[ 0.555267] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[ 0.555419] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[ 0.609741] omap-dma-engine 48056000.dma-controller: OMAP DMA engine driver
[ 0.611053] of_get_named_gpiod_flags: can't parse gpios property of node '/regulator-vdd33[0]'
[ 0.611968] vdd33: no parameters
[ 0.612701] reg-fixed-voltage lbee1usjyc_vmmc.5: could not find pctldev for node /ocp/pinmux@48002030/pinmux_lbee1usjyc_pins, deferring probe
[ 0.612792] platform lbee1usjyc_vmmc.5: Driver reg-fixed-voltage requests probe deferral
[ 0.613037] of_get_named_gpiod_flags: can't parse gpios property of node '/regulator-vddvario[0]'
[ 0.613647] vddvario: no parameters
[ 0.614166] of_get_named_gpiod_flags: can't parse gpios property of node '/regulator-vdd33a[0]'
[ 0.614807] vdd33a: no parameters
[ 0.615356] of_get_named_gpiod_flags exited with status -517
[ 0.615447] platform hsusb1_power_reg.9: Driver reg-fixed-voltage requests probe deferral
[ 0.621582] SCSI subsystem initialized
[ 0.622802] usbcore: registered new interface driver usbfs
[ 0.623107] usbcore: registered new interface driver hub
[ 0.624145] usbcore: registered new device driver usb
[ 0.624847] of_get_named_gpiod_flags exited with status 0
[ 0.625122] platform hsusb1_phy.10: Driver usb_phy_gen_xceiv requests probe deferral
[ 0.626190] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/pinmux@48002030/pinmux_i2c1_pins, deferring probe
[ 0.626281] platform 48070000.i2c: Driver omap_i2c requests probe deferral
[ 0.626403] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/pinmux@48002030/pinmux_i2c2_pins, deferring probe
[ 0.626617] platform 48072000.i2c: Driver omap_i2c requests probe deferral
[ 0.626739] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/pinmux@48002030/pinmux_i2c3_pins, deferring probe
[ 0.626831] platform 48060000.i2c: Driver omap_i2c requests probe deferral
[ 0.634552] Switched to clocksource 32k_counter
[ 0.879058] NET: Registered protocol family 2
[ 0.881408] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.881713] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[ 0.883880] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.884124] TCP: reno registered
[ 0.884185] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.884490] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.886047] NET: Registered protocol family 1
[ 0.888549] RPC: Registered named UNIX socket transport module.
[ 0.888610] RPC: Registered udp transport module.
[ 0.888641] RPC: Registered tcp transport module.
[ 0.888671] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.893798] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[ 0.901550] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 1.116943] VFS: Disk quotas dquot_6.5.2
[ 1.117187] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.119873] NFS: Registering the id_resolver key type
[ 1.120452] Key type id_resolver registered
[ 1.120513] Key type id_legacy registered
[ 1.120697] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 1.121337] msgmni has been set to 984
[ 1.129211] io scheduler noop registered
[ 1.129272] io scheduler deadline registered
[ 1.129394] io scheduler cfq registered (default)
[ 1.134246] pinctrl-single 48002030.pinmux: 284 pins at pa fa002030 size 568
[ 1.135070] pinctrl-single 48002a00.pinmux: 46 pins at pa fa002a00 size 92
[ 1.136383] pinctrl-single 480025a0.pinmux: 46 pins at pa fa0025a0 size 92
[ 1.139862] pbias_mmc_omap2430: 1800 <--> 3000 mV at 3000 mV
[ 1.141693] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.151885] omap_uart 4806a000.serial: no wakeirq for uart0
[ 1.151977] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@4806a000[0]'
[ 1.154479] 4806a000.serial: ttyO0 at MMIO 0x4806a000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.156982] omap_uart 4806c000.serial: no wakeirq for uart0
[ 1.157073] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@4806c000[0]'
[ 1.158264] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[ 1.160675] omap_uart 49020000.serial: no wakeirq for uart0
[ 1.160766] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@49020000[0]'
[ 1.161895] 49020000.serial: ttyO2 at MMIO 0x49020000 (irq = 90, base_baud = 3000000) is a OMAP UART2
[ 2.139160] console [ttyO2] enabled
[ 2.158447] omap_uart 49042000.serial: no wakeirq for uart0
[ 2.164489] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@49042000[0]'
[ 2.175231] 49042000.serial: ttyO3 at MMIO 0x49042000 (irq = 96, base_baud = 3000000) is a OMAP UART3
[ 2.232696] brd: module loaded
[ 2.259155] loop: module loaded
[ 2.266937] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 2.443817] libphy: smsc911x-mdio: probed
[ 2.523559] smsc911x 2c000000.ethernet eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=2c000000.etherne:01, irq=-1)
[ 2.536132] smsc911x 2c000000.ethernet eth0: MAC Address: fa:f5:d1:02:7d:db
[ 2.545288] usbcore: registered new interface driver asix
[ 2.551208] usbcore: registered new interface driver ax88179_178a
[ 2.557952] usbcore: registered new interface driver cdc_ether
[ 2.564453] usbcore: registered new interface driver smsc95xx
[ 2.570739] usbcore: registered new interface driver net1080
[ 2.576965] usbcore: registered new interface driver cdc_subset
[ 2.583465] usbcore: registered new interface driver zaurus
[ 2.589630] usbcore: registered new interface driver cdc_ncm
[ 2.597381] usbcore: registered new interface driver cdc_wdm
[ 2.603759] usbcore: registered new interface driver usb-storage
[ 2.610382] usbcore: registered new interface driver usbtest
[ 2.618286] mousedev: PS/2 mouse device common for all mice
[ 2.628204] i2c /dev entries driver
[ 2.632019] Driver for 1-wire Dallas network protocol.
[ 2.641662] omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 2.651580] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[ 2.660919] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[ 2.671386] omap_hsmmc 4809c000.mmc: unable to get vmmc regulator -517
[ 2.678985] platform 4809c000.mmc: Driver omap_hsmmc requests probe deferral
[ 2.686828] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@480b4000[0]'
[ 2.696136] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@480b4000[0]'
[ 2.706146] omap_hsmmc 480b4000.mmc: unable to get vmmc regulator -517
[ 2.713348] platform 480b4000.mmc: Driver omap_hsmmc requests probe deferral
[ 2.722015] usbcore: registered new interface driver usbhid
[ 2.727996] usbhid: USB HID core driver
[ 2.733917] oprofile: using arm/armv7
[ 2.738494] TCP: cubic registered
[ 2.742034] Initializing XFRM netlink socket
[ 2.746795] NET: Registered protocol family 17
[ 2.751617] NET: Registered protocol family 15
[ 2.756805] Key type dns_resolver registered
[ 2.763610] ThumbEE CPU extension supported.
[ 2.768188] Registering SWP/SWPB emulation handler
[ 2.777587] pbias_mmc_omap2430: disabling
[ 2.783813] of_get_named_gpiod_flags exited with status 0
[ 2.790771] regulator-lbee1usjyc: 3300 mV
[ 2.795501] regulator-lbee1usjyc: supplied by vdd33
[ 2.801849] of_get_named_gpiod_flags exited with status -517
[ 2.808044] platform hsusb1_power_reg.9: Driver reg-fixed-voltage requests probe deferral
[ 2.817443] of_get_named_gpiod_flags exited with status 0
[ 2.823486] platform hsusb1_phy.10: Driver usb_phy_gen_xceiv requests probe deferral
[ 2.871948] twl 0-0048: PIH (irq 23) chaining IRQs 338..346
[ 2.878784] twl 0-0048: power (irq 343) chaining IRQs 346..353
[ 2.890899] twl_rtc rtc.14: Power up reset detected.
[ 2.897705] twl_rtc rtc.14: Enabling TWL-RTC
[ 2.908752] twl_rtc rtc.14: rtc core: registered rtc.14 as rtc0
[ 2.923583] VAUX1: at 3000 mV
[ 2.930908] VAUX2_4030: at 1800 mV
[ 2.938751] VAUX3: at 2800 mV
[ 2.945709] VAUX4: at 2800 mV
[ 2.953186] VDD1: 600 <--> 1450 mV at 1200 mV
[ 2.961883] VDAC: 1800 mV
[ 2.971008] VIO: at 1800 mV
[ 2.979064] VINTANA1: 1500 mV
[ 2.987091] VINTANA2: at 2750 mV
[ 2.995452] VINTDIG: 1500 mV
[ 3.001647] VMMC1: 1850 <--> 3150 mV at 3150 mV
[ 3.010894] VMMC2: 1850 <--> 3150 mV at 2600 mV
[ 3.018859] VUSB1V5: 1500 mV
[ 3.024658] VUSB1V8: 1800 mV
[ 3.029998] VUSB3V1: 3100 mV
[ 3.037872] VPLL1: at 1800 mV
[ 3.045837] vdds_dsi: 1800 mV
[ 3.053131] VSIM: 1800 <--> 3000 mV at 1800 mV
[ 3.061096] twl4030_gpio twl4030-gpio: gpio (irq 338) chaining IRQs 354..371
[ 3.069976] gpiochip_find_base: found new base at 492
[ 3.076629] gpiochip_add: registered GPIOs 492 to 511 on device: twl4030
[ 3.090911] input: twl4030_pwrbutton as /devices/68000000.ocp/48070000.i2c/i2c-0/0-0048/pwrbutton.38/input/input0
[ 3.106109] twl4030_keypad keypad.39: OF: linux,keymap property not defined in /ocp/i2c@48070000/twl@48/keypad
[ 3.116973] twl4030_keypad keypad.39: Failed to build keymap
[ 3.123138] twl4030_keypad: probe of keypad.39 failed with error -2
[ 3.130004] omap_i2c 48070000.i2c: bus 0 rev4.4 at 2600 kHz
[ 3.141082] omap_i2c 48072000.i2c: bus 1 rev4.4 at 400 kHz
[ 3.152648] omap_i2c 48060000.i2c: bus 2 rev4.4 at 100 kHz
[ 3.159515] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[ 3.168853] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[ 3.224212] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@480b4000[0]'
[ 3.233551] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@480b4000[0]'
[ 3.293823] of_get_named_gpiod_flags exited with status 0
[ 3.302490] hsusb1_vbus: 3300 mV
[ 3.307067] of_get_named_gpiod_flags exited with status 0
[ 3.318511] twl_rtc rtc.14: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 3.402496] Waiting 5 sec before mounting root device...
[ 3.421417] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 3.432769] mmc0: new high speed SDHC card at address 0007
[ 3.442504] mmcblk0: mmc0:0007 SD16G 14.4 GiB
[ 3.455047] mmcblk0: p1 p2
[ 3.509277] mmc1: new SDIO card at address 0001
[ 8.427032] kjournald starting. Commit interval 5 seconds
[ 8.637390] EXT3-fs (mmcblk0p2): using internal journal
[ 8.643005] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 8.650482] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 8.659729] devtmpfs: error mounting -2
[ 8.664855] Freeing unused kernel memory: 392K (c07a7000 - c0809000)

IT HANGS HERE - SHOULD PRINT HELLO WORLD THEN HANG (SLEEP)






***********************************************************
LINUX 2.6.37 WORKS
-------------------

U-Boot # setenv bootargs console=ttyO2,115200 root=/dev/nfs ip=192.168.0.100:192.168.0.1::255.255.255.0::eth0: smsc911x.mac=0xb2,0xb0,0x14,0xb5,0xcd,0xde nfsroot=192.168.0.1:/home/peter/Documents/felabs/sysdev/buildsdl/pmtrootSOS init=/bin/peter2init
U-Boot # nboot 0x80000000 0 0x2e0000

Loading from nand0, offset 0x2e0000
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3238540 Bytes = 3.1 MiB
Load Address: 80008000
Entry Point: 80008000
U-Boot # bootm 0x80000000
## Booting kernel from Legacy Image at 80000000 ...
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3238540 Bytes = 3.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 2.6.37 (peter@Avignon) (gcc version 4.4.3 (crosstool-NG 1.18.0) ) #2 Tue Jan 28 14:32:54 MST 2014
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: IGEP0020 board
[ 0.000000] Reserving 4194304 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129024
[ 0.000000] Kernel command line: console=ttyO2,115200 root=/dev/nfs ip=192.168.0.100:192.168.0.1::255.255.255.0::eth0: smsc911x.mac=0xb2,0xb0,0x14,0xb5,0xcd,0xde nfsroot=192.168.0.1:/home/peter/Documents/felabs/sysdev/buildsdl/pmtrootSOS init=/bin/peter2init
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 508MB = 508MB total
[ 0.000000] Memory: 508980k/508980k available, 15308k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc003f000 ( 220 kB)
[ 0.000000] .text : 0xc003f000 - 0xc05f5348 (5849 kB)
[ 0.000000] .data : 0xc05f6000 - 0xc0642440 ( 306 kB)
[ 0.000000] NR_IRQS:409
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] Reprogramming SDRC clock to 400000000 Hz
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] GPMC revision 5.0
[ 0.000000] Trying to install interrupt handler for IRQ402
[ 0.000000] Trying to install interrupt handler for IRQ403
[ 0.000000] Trying to install interrupt handler for IRQ404
[ 0.000000] Trying to install interrupt handler for IRQ405
[ 0.000000] Trying to install interrupt handler for IRQ406
[ 0.000000] Trying to install interrupt handler for IRQ407
[ 0.000000] Trying to install interrupt handler for IRQ408
[ 0.000000] Trying to install type control for IRQ409
[ 0.000000] Trying to set irq flags for IRQ409
[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
[ 0.000000] pid_max: default: 32768 minimum: 301
[ 0.000000] Security Framework initialized
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] regulator: core version 0.5
[ 0.000000] regulator: dummy:
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.000000] IGEP: Hardware Rev. C
[ 0.000000] IGEP: initializing NAND memory device
[ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.000000] OMAP DMA hardware revision 5.0
[ 0.021179] bio: create slab at 0
[ 0.022338] regulator: VDD 3V3: 3300 mV normal
[ 0.023864] SCSI subsystem initialized
[ 0.026702] usbcore: registered new interface driver usbfs
[ 0.027038] usbcore: registered new interface driver hub
[ 0.027252] usbcore: registered new device driver usb
[ 0.028411] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.035064] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.035095] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.035644] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.039459] regulator: VUSB1V5: 1500 mV normal standby
[ 0.040130] regulator: VUSB1V8: 1800 mV normal standby
[ 0.040740] regulator: VUSB3V1: 3100 mV normal standby
[ 0.042297] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.045013] regulator: VIO: 1800 <--> 1850 mV at 1800 mV normal standby
[ 0.045745] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[ 0.046386] regulator: VDAC: 1800 mV normal standby
[ 0.047332] regulator: VPLL2: 1800 mV normal standby
[ 0.047576] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[ 0.048187] omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
[ 0.049804] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.051055] cfg80211: Calling CRDA to update world regulatory domain
[ 0.052001] Switching to clocksource 32k_counter
[ 0.072753] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
[ 0.072875] musb-hdrc musb-hdrc.0: dma type: dma-inventra
[ 0.073211] musb-hdrc musb-hdrc.0: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
[ 0.073699] NET: Registered protocol family 2
[ 0.073883] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.074279] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.074645] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.074859] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.074859] TCP reno registered
[ 0.074890] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.074890] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.075073] NET: Registered protocol family 1
[ 0.075378] RPC: Registered udp transport module.
[ 0.075408] RPC: Registered tcp transport module.
[ 0.075408] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.077423] omap-iommu omap-iommu.0: isp registered
[ 0.079223] VFS: Disk quotas dquot_6.5.2
[ 0.079284] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.080322] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.080841] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.081787] msgmni has been set to 994
[ 0.083007] io scheduler noop registered (default)
[ 0.083007] io scheduler deadline registered
[ 0.083129] io scheduler cfq registered
[ 0.146148] OMAP DSS rev 2.0
[ 0.169525] OMAP RFBI rev 1.0
[ 0.169586] OMAP DISPC rev 3.0
[ 0.169616] OMAP VENC rev 2
[ 0.169830] omapdss supply vdds_sdi not found, using dummy regulator
[ 0.169921] OMAP DSI rev 1.0
[ 0.498992] [drm] Initialized drm 1.1.0 20060810
[ 0.499084] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 0.499481] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 0.499847] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.167785] console [ttyO2] enabled
[ 1.171813] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[ 1.190490] brd: module loaded
[ 1.199035] loop: module loaded
[ 1.207305] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.214141] omap2-nand driver initializing
[ 1.218811] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron )
[ 1.225799] Creating 3 MTD partitions on "omap2-nand.0":
[ 1.231384] 0x000000000000-0x000000080000 : "X-Loader"
[ 1.238616] 0x000000080000-0x000000c80000 : "Boot"
[ 1.250030] 0x000000c80000-0x000020000000 : "File System"
[ 1.463409] OneNAND driver initializing
[ 1.468994] smsc911x: Driver version 2008-10-21.
[ 1.475402] smsc911x-mdio: probed
[ 1.478942] eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=0:01, irq=-1)
[ 1.487274] net eth0: MAC Address: b2:b0:14:b5:cd:de
[ 1.492889] usbcore: registered new interface driver asix
[ 1.498718] usbcore: registered new interface driver cdc_ether
[ 1.505004] usbcore: registered new interface driver net1080
[ 1.511108] usbcore: registered new interface driver cdc_subset
[ 1.517486] usbcore: registered new interface driver zaurus
[ 1.523529] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.536529] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 2.542541] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[ 2.550537] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 2.567871] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 2.573974] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.581115] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.588684] usb usb1: Product: OMAP-EHCI Host Controller
[ 2.594268] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
[ 2.599945] usb usb1: SerialNumber: ehci-omap.0
[ 2.605590] hub 1-0:1.0: USB hub found
[ 2.609588] hub 1-0:1.0: 3 ports detected
[ 2.638336] Initializing USB Mass Storage driver...
[ 2.643707] usbcore: registered new interface driver usb-storage
[ 2.650024] USB Mass Storage support registered.
[ 2.655090] usbcore: registered new interface driver libusual
[ 2.661285] usbcore: registered new interface driver usbtest
[ 2.667297] g_ether gadget: using random self ethernet address
[ 2.673461] g_ether gadget: using random host ethernet address
[ 2.680175] usb0: MAC 32:8b:2d:9b:fd:1e
[ 2.684173] usb0: HOST MAC 72:8d:a0:6b:d1:42
[ 2.688751] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 2.695709] g_ether gadget: g_ether ready
[ 2.699920] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 2.705535] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 2.713409] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.720550] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.728118] usb usb2: Product: MUSB HDRC host driver
[ 2.733337] usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
[ 2.738983] usb usb2: SerialNumber: musb-hdrc.0
[ 2.744628] hub 2-0:1.0: USB hub found
[ 2.748626] hub 2-0:1.0: 1 port detected
[ 2.753936] mice: PS/2 mouse device common for all mice
[ 2.760375] input: TWL4030 Keypad as /devices/platform/omap/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/input0
[ 2.774108] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[ 2.786193] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 2.793121] twl_rtc twl_rtc: Power up reset detected.
[ 2.799255] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 2.805145] i2c /dev entries driver
[ 2.810150] Linux media interface: v0.10
[ 2.814453] Linux video capture interface: v2.00
[ 2.819671] usbcore: registered new interface driver uvcvideo
[ 2.825714] USB Video Class driver (v1.0.0)
[ 2.830566] cpuidle: using governor ladder
[ 2.834899] cpuidle: using governor menu
[ 2.840728] mmci-omap-hs.0 supply vmmc_aux not found, using dummy regulator
[ 2.849212] mmci-omap-hs.1 supply vmmc_aux not found, using dummy regulator
[ 2.860351] omap_sham_mod_init: loading omap-sham driver
[ 2.865966] omap_sham_mod_init: Unsupported cpu
[ 2.870697] omap_aes_mod_init: loading omap-aes driver
[ 2.876098] omap_aes_mod_init: Unsupported cpu
[ 2.881713] usbcore: registered new interface driver usbhid
[ 2.887573] usbhid: USB HID core driver
[ 2.894165] IGEP SoC init
[ 2.988708] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 2.999694] ALSA device list:
[ 3.002777] #0: igep
[ 3.005493] TCP cubic registered
[ 3.008880] Initializing XFRM netlink socket
[ 3.013397] NET: Registered protocol family 17
[ 3.018066] NET: Registered protocol family 15
[ 3.022796] L2TP core driver, V2.0
[ 3.026367] lib80211: common routines for IEEE802.11 drivers
[ 3.032318] Registering the dns_resolver key type
[ 3.037322] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 3.045806] ThumbEE CPU extension supported.
[ 3.053680] Power Management for TI OMAP3.
[ 3.058715] mmc1: new SDIO card at address 0001
[ 3.065124] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
[ 3.073303] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[ 3.081542] SmartReflex Class3 initialized
[ 3.088439] clock: disabling unused clocks to save power
[ 3.107666] Console: switching to colour frame buffer device 80x30
[ 3.123291] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 3.134063] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 3.142608] omap_vout omap_vout: Buffer Size = 3686400
[ 3.148864] omap_vout omap_vout: : registered and initialized video device 0
[ 3.156250] omap_vout omap_vout: Buffer Size = 3686400
[ 3.162475] omap_vout omap_vout: : registered and initialized video device 1
[ 3.677703] net eth0: SMSC911x/921x identified at 0xe0880000, IRQ: 336
[ 4.685211] IP-Config: Complete:
[ 4.688385] device=eth0, addr=192.168.0.100, mask=255.255.255.0, gw=255.255.255.255,
[ 4.696838] host=192.168.0.100, domain=, nis-domain=(none),
[ 4.703094] bootserver=192.168.0.1, rootserver=192.168.0.1, rootpath=
[ 6.722747] VFS: Mounted root (nfs filesystem) on device 0:14.
[ 6.728912] Freeing init memory: 220K
Hello world!


IT HANGS HERE - (SLEEP) AS EXPECTED.

Accepted Answer

peter
peter
Offline
Wednesday, February 25 2015, 10:43 AM - #permalink
0
I found my problem - totally my fault!! Everything now works.
The problem was my bootargs... setting console=tty0 seems to send all user space console messages to /dev/null on SDcard but somehow works fine on NFS filesystems.

old bootargs: don't work on SD card
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug

new bootargs: work fine
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug

Thanks Discussing back and forth gets the mind working.....

Peter
The reply is currently minimized Show
Responses (6)
  • Accepted Answer

    Thursday, February 12 2015, 11:19 AM - #permalink
    0
    Hi peter,

    I have an image compiled using Sourcery CodeBench Lite 2014.05-28 with: u-boot 2014.10, kernel 3.18.7 and Poky 1.6.2 (core-image-minimal) and I don't have troubles with init process.

    Could you give us more information regarding HW and SW used?

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    peter
    peter
    Offline
    Friday, February 13 2015, 12:02 AM - #permalink
    0
    Hi Pau,

    I am using igepv2 Revision C - I think (I can no longer read the white strip but I purchased the board from Free Electrons for a course I took Oct 7-11 2013). I am not using Yocto but am building from scratch on Ubuntu host machine as follows:

    crosstool-ng-1.20
    u-boot-2014.10 created with "make igep0020_nand_config"
    kernel linux-3.15.3 created with:


    first append the following to linux-3.15.3/arch/arm/configs/omap2plus_defconfig
    see fmartens post isee support "Updated: Uboot 2014.4 + Kernel 3.15.rc3 + Debian 7.4 (armel)
    post


    # added by Peter Thompson from IGEP Support fmartens post
    CONFIG_DMA_SHARED_BUFFER=y
    CONFIG_MTD_NAND_BCH=y
    CONFIG_MTD_NAND_ECC_BCH=y
    CONFIG_MTD_NAND_OMAP_BCH=y
    CONFIG_I2C_ALGOBIT=m
    CONFIG_MFD_OMAP_USB_HOST=y
    CONFIG_DRM=m
    CONFIG_DRM_KMS_HELPER=m
    CONFIG_DRM_KMS_FB_HELPER=y
    CONFIG_DRM_GEM_CMA_HELPER=y
    CONFIG_DRM_KMS_CMA_HELPER=y
    CONFIG_DRM_I2C_NXP_TDA998X=m
    CONFIG_DRM_OMAP=m
    CONFIG_DRM_OMAP_NUM_CRTCS=1
    CONFIG_DRM_TILCDC=m
    CONFIG_HDMI=y
    CONFIG_FB_SYS_FILLRECT=y
    CONFIG_FB_SYS_COPYAREA=y
    CONFIG_FB_SYS_IMAGEBLIT=y
    CONFIG_FB_SYS_FOPS=m
    CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
    CONFIG_USB_OTG=y
    CONFIG_USB_EHCI_HCD=m
    CONFIG_USB_EHCI_TT_NEWSCHED=y
    CONFIG_USB_EHCI_HCD_OMAP=m
    CONFIG_USB_MUSB_HDRC=m
    CONFIG_USB_MUSB_DUAL_ROLE=y
    CONFIG_USB_MUSB_OMAP2PLUS=m
    CONFIG_USB_MUSB_DSPS=m
    CONFIG_USB_MUSB_AM335X_CHILD=m
    CONFIG_MUSB_PIO_ONLY=y
    CONFIG_AM335X_CONTROL_USB=m
    CONFIG_AM335X_PHY_USB=m
    CONFIG_TWL4030_USB=m
    CONFIG_BCH=y

    then
    make omap2plus_defconfig

    My rootfs file is /bin/ and /bin/peter2init where



    #include

    int main(int argc, char *argv)
    {
    printf("Hello world!\n");
    sleep(999999999);
    }

    peter2init is statically compiled and stripped and loaded on the SD Card ext3 partition.

    Testing is done with the following commands:
    Kernel 3.15.3 boot commands were entered manually as follows:
    load mmc 0:1 0x82000000 /boot/zImage
    load mmc 0:1 0x81600000 /boot/omap3-igep0020.dtb
    setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug
    bootz 0x82000000 - 0x81600000


    Thanks for your help on this Pau...


    Peter
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 13 2015, 02:35 PM - #permalink
    0
    Hi,

    I suspect that your problem is a kernel misconfiguration. Could you prove vanilla kernel 3.18.7 with the attached .config? without using omap2plus_defconfig with fmartens patch

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    peter
    peter
    Offline
    Sunday, February 15 2015, 07:08 PM - #permalink
    0
    Hi Pau

    I tried the .config you sent without success. Linux boots fine and the igepv2 green led lights up but "hello world" does not appear.

    Here is what I did...
    I copied your .config to linux-3.18.7 directory
    cd linux-3.18.7
    make zImage modules dtbs
    cp arch/arm/boot/zImage /media/boot/boot/ (my sd card)
    cp arch/arm/boot/omap3-igep0020.dtb /media/boot/boot/

    /bin/peter2init is on 2nd ext3 partition of my sd card

    For testing
    load mmc 0:1 0x82000000 /boot/zImage
    load mmc 0:1 0x81600000 /boot/omap3-igep0020.dtb
    setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootwait init=/bin/peter2init rootdelay=5 debug
    bootz 0x82000000 - 0x81600000

    The results are attached. I am really stuck!



    NOTE
    I tried compiling just uImage
    make LOADADDR=0x80008000 uImage
    and compiling just zImage
    make zImage
    without omap3-igep0020.dtb

    but in these cases the boot process hangs at Starting Linux ....


    Thanks for your continued help...


    Peter
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 17 2015, 03:10 PM - #permalink
    0
    Hi Peter,

    I didn't find out your issue yet. Meanwhile, I posted my firmware binaries, extract each .tar.gz file to boot and rootfs partition

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 25 2015, 11:40 AM - #permalink
    0
    Hi peter,

    It sounds good :)
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat