Beagleboad-xm boot fails

Hello,

I’m trying to boot beagleboard with following uEnv.txt and without initrd.

bootfile=3.2.1-x2.uImage
address_uimage=0x80300000

console=ttyO2,115200n8

defaultdisplay=dvi
dvimode=1280x720MR-16@60

mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait
optargs=console=tty0
init=/init

mmc_load_uimage=fatload mmc 0:1 ${address_uimage} ${bootfile}

mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} buddy2=${buddy2} camera=${camera} vram=${vram} omapfb.mode=${defaultdisplay}:${dvimode} omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype} init=${init}

loaduimage=run mmc_load_uimage; run mmcargs; bootm ${address_uimage}

I want to run “init” from /dev/mmcblkp02(ext4) partition, and expected to be mounted as ‘/’.
But somehow it says could not execute “/init”.
Support for initrd/initramfs is Disabled in kernel build config.
I get following log.
Is initrd/initramfs mandatory?
Is there anything wrong with uEnv.txt?

U-Boot SPL 2011.12-dirty (Dec 30 2011 - 01:04:34)
Texas Instruments Revision detection unimplemented
OMAP SD/MMC: 0
timed out in wait_for_bb: I2C_STAT=1000
reading u-boot.img
reading u-boot.img

U-Boot 2011.12-dirty (Dec 30 2011 - 01:04:34)

OMAP3630/3730-GP ES1.0, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In: serial
Out: serial
Err: serial
Beagle xM Rev A
No EEPROM on expansion board
No EEPROM on expansion board
Die ID #0b7600001bf00000015739ea0701e021
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
The user button is currently NOT pressed.
SD/MMC found on device 0
reading uEnv.txt

611 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc …
reading 3.2.1-x2.uImage

3103320 bytes read

Booting kernel from Legacy Image at 80300000 …

Image Name: Linux-3.2.1-x2
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3103256 Bytes = 3 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] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.1-x2 (aditya@ubuntu) (gcc version 4.3.3 (Sourc2
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Beagle expansionboard: none
[ 0.000000] Beagle second expansionboard: none
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.0 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0d57000 s10784 r8192 d13792 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa0
[ 0.000000] Kernel command line: console=ttyO2,115200n8 console=tty0 mpuratet
[ 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] allocated 2097152 bytes of page_cgroup
[ 0.000000] please try ‘cgroup_disable=memory’ option if you don’t want memos
[ 0.000000] Memory: 494MB = 494MB total
[ 0.000000] Memory: 489720k/489720k available, 34568k 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 - 0xf8000000 ( 376 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 - 0xc07d3658 (7982 kB)
[ 0.000000] .init : 0xc07d4000 - 0xc0824a20 ( 323 kB)
[ 0.000000] .data : 0xc0826000 - 0xc088eb30 ( 419 kB)
[ 0.000000] .bss : 0xc088eb54 - 0xc09526f4 ( 783 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:410 nr_irqs:410 410
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 1s
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000762] Calibrating delay loop… 493.67 BogoMIPS (lpj=1929216)
[ 0.038848] pid_max: default: 32768 minimum: 301
[ 0.039184] Security Framework initialized
[ 0.039306] AppArmor: AppArmor initialized
[ 0.039642] Mount-cache hash table entries: 512
[ 0.040832] Initializing cgroup subsys cpuacct
[ 0.040954] Initializing cgroup subsys memory
[ 0.041046] Initializing cgroup subsys devices
[ 0.041076] Initializing cgroup subsys freezer
[ 0.041107] Initializing cgroup subsys blkio
[ 0.041168] Initializing cgroup subsys perf_event
[ 0.041351] CPU: Testing write buffer coherency: ok
[ 0.041778] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.042968] Brought up 1 CPUs
[ 0.043029] SMP: Total of 1 processors activated (493.67 BogoMIPS).
[ 0.044677] devtmpfs: initialized
[ 0.051727] print_constraints: dummy:
[ 0.052398] NET: Registered protocol family 16
[ 0.052734] GPMC revision 5.0
[ 0.055267] OMAP GPIO hardware version 2.5
[ 0.057830] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.059326] OMAP3 Beagle Rev: xM Ax/Bx
[ 0.065795] Reprogramming SDRC clock to 400000000 Hz
[ 0.065856] dpll3_m2_clk rate change failed: -22
[ 0.069152] Found NAND on CS0
[ 0.069183] Registering NAND on CS0
[ 0.069824] Unable to get DVI reset GPIO
[ 0.070068] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.071075] Could not look up mcpdm hw_mod
[ 0.077117] omap-mcbsp.2: alias fck already exists
[ 0.077484] omap-mcbsp.3: alias fck already exists
[ 0.079681] OMAP DMA hardware revision 5.0
[ 0.089660] bio: create slab at 0
[ 0.092102] SCSI subsystem initialized
[ 0.094329] usbcore: registered new interface driver usbfs
[ 0.094604] usbcore: registered new interface driver hub
[ 0.095031] usbcore: registered new device driver usb
[ 0.096496] omap_i2c omap_i2c.1: bus 1 rev1.4.0 at 2600 kHz
[ 0.100341] twl4030: PIH (irq 7) chaining IRQs 368…375
[ 0.100524] twl4030: power (irq 373) chaining IRQs 376…383
[ 0.101562] twl4030: gpio (irq 368) chaining IRQs 384…401
[ 0.102142] _omap_mux_init_gpio: Could not set gpio192
[ 0.106719] print_constraints: VUSB1V5: 1500 mV normal standby
[ 0.107513] print_constraints: VUSB1V8: 1800 mV normal standby
[ 0.108276] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.111419] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.112792] print_constraints: VMMC1: 1850 <–> 3150 mV at 3150 mV normal sty
[ 0.113647] print_constraints: VDAC: 1800 mV normal standby
[ 0.114440] print_constraints: VDVI: 1800 mV normal standby
[ 0.115356] print_constraints: VSIM: 1800 <–> 3000 mV at 1800 mV normal stay
[ 0.115936] omap_i2c omap_i2c.2: bus 2 rev1.4.0 at 400 kHz
[ 0.116821] omap_i2c omap_i2c.3: bus 3 rev1.4.0 at 100 kHz
[ 0.118713] NetLabel: Initializing
[ 0.118774] NetLabel: domain hash size = 128
[ 0.118804] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.118896] NetLabel: unlabeled traffic allowed by default
[ 0.118988] Switching to clocksource 32k_counter
[ 0.142700] AppArmor: AppArmor Filesystem Enabled
[ 0.171234] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.176605] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using D2
[ 0.177185] NET: Registered protocol family 2
[ 0.177734] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.179290] TCP established hash table entries: 16384 (order: 5, 131072 byte)
[ 0.179779] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.180236] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.180297] TCP reno registered
[ 0.180328] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.180389] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.181030] NET: Registered protocol family 1
[ 0.182067] RPC: Registered named UNIX socket transport module.
[ 0.182128] RPC: Registered udp transport module.
[ 0.182159] RPC: Registered tcp transport module.
[ 0.182189] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.182495] omap_dsp_init: 600000 bytes @ 9ee00000
[ 0.185058] audit: initializing netlink socket (disabled)
[ 0.185180] type=2000 audit(0.203:1): initialized
[ 0.435424] VFS: Disk quotas dquot_6.5.2
[ 0.436126] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.442199] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 0.442352] fuse init (API version 7.17)
[ 0.445220] Btrfs loaded
[ 0.445343] msgmni has been set to 956
[ 0.448638] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[ 0.448730] io scheduler noop registered
[ 0.448760] io scheduler deadline registered
[ 0.448883] io scheduler cfq registered (default)
[ 0.450256] OMAP DSS rev 2.0
[ 0.455291] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.457763] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 0.458374] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 0.459014] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.216522] console [ttyO2] enabled
[ 1.221008] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[ 1.245147] brd: module loaded
[ 1.256744] loop: module loaded
[ 1.261718] twl4030_madc twl4030_madc: clk disabled, enabling
[ 1.270507] omap2-nand driver initializing
[ 1.275268] No NAND device found
[ 1.279022] No NAND device found
[ 1.282867] OneNAND driver initializing
[ 1.288238] usbcore: registered new interface driver cdc_ether
[ 1.294647] usbcore: registered new interface driver rndis_host
[ 1.301025] cdc_ncm: 04-Aug-2011
[ 1.304565] usbcore: registered new interface driver cdc_ncm
[ 1.311401] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.318603] _regulator_get: ehci-omap.0 supply hsusb0 not found, using dummyr
[ 1.327178] _regulator_get: ehci-omap.0 supply hsusb1 not found, using dummyr
[ 3.345733] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 3.352447] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numb1
[ 3.360504] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 3.377044] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 3.383270] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.390502] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber1
[ 3.398193] usb usb1: Product: OMAP-EHCI Host Controller
[ 3.403808] usb usb1: Manufacturer: Linux 3.2.1-x2 ehci_hcd
[ 3.409729] usb usb1: SerialNumber: ehci-omap.0
[ 3.415649] hub 1-0:1.0: USB hub found
[ 3.419769] hub 1-0:1.0: 3 ports detected
[ 3.455352] Initializing USB Mass Storage driver…
[ 3.460723] usbcore: registered new interface driver usb-storage
[ 3.467163] USB Mass Storage support registered.
[ 3.472290] usbcore: registered new interface driver libusual
[ 3.478729] udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
[ 3.485900] gadget: using random self ethernet address
[ 3.491577] gadget: using random host ethernet address
[ 3.498718] usb0: MAC 8a:19:00:bd:cd:91
[ 3.502868] usb0: HOST MAC 82:5a:d1:49:78:45
[ 3.507476] gadget: Ethernet Gadget, version: Memorial Day 2008
[ 3.513885] gadget: g_ether ready
[ 3.517517] musb-hdrc musb-hdrc: MUSB HDRC host driver
[ 3.523559] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number2
[ 3.531494] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.538757] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber1
[ 3.546417] usb usb2: Product: MUSB HDRC host driver
[ 3.551696] usb usb2: Manufacturer: Linux 3.2.1-x2 musb-hcd
[ 3.557617] usb usb2: SerialNumber: musb-hdrc
[ 3.563293] hub 2-0:1.0: USB hub found
[ 3.567413] hub 2-0:1.0: 1 port detected
[ 3.573394] mousedev: PS/2 mouse device common for all mice
[ 3.581146] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i20
[ 3.593872] i2c /dev entries driver
[ 3.598937] Linux media interface: v0.10
[ 3.603332] lirc_dev: IR Remote Control driver registered, major 249
[ 3.610229] Driver for 1-wire Dallas network protocol.
[ 3.616882] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 3.623931] twl4030_wdt twl4030_wdt: Failed to register misc device
[ 3.630676] twl4030_wdt: probe of twl4030_wdt failed with error -16
[ 3.638000] cpuidle: using governor ladder
[ 3.642364] cpuidle: using governor menu
[ 3.646636] sdhci: Secure Digital Host Controller Interface driver
[ 3.653167] sdhci: Copyright© Pierre Ossman
[ 3.806823] usb 1-2: new high-speed USB device number 2 using ehci-omap
[ 3.879302] omap_hsmmc: probe of omap_hsmmc.1 failed with error -16
[ 3.887847] oprofile: hardware counters not available
[ 3.893280] oprofile: using timer interrupt.
[ 3.899261] TCP cubic registered
[ 3.903869] NET: Registered protocol family 10
[ 3.912597] NET: Registered protocol family 17
[ 3.917724] Registering the dns_resolver key type
[ 3.922729] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
[ 3.930877] ThumbEE CPU extension supported.
[ 3.935455] Registering SWP/SWPB emulation handler
[ 3.945465] omap3_idle_init: core off state C7 disabled due to i583
[ 3.952728] sr_init: No PMIC hook to init smartreflex
[ 3.958374] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver inid
[ 3.966857] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver inid
[ 3.975250] SmartReflex Class3 initialized
[ 3.985778] clock: disabling unused clocks to save power
[ 3.995330] registered taskstats version 1
[ 3.999908] omapfb omapfb: no driver for display: lcd
[ 4.005340] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 4.011627] usb 1-2: New USB device found, idVendor=0424, idProduct=9514
[ 4.018737] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.036376] Console: switching to colour frame buffer device 160x45
[ 4.055267] hub 1-2:1.0: USB hub found
[ 4.059692] hub 1-2:1.0: 5 ports detected
[ 4.064178] regulator_init_complete: VDAC: incomplete constraints, leaving on
[ 4.073150] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 4.081573] Waiting for root device /dev/mmcblk0p2…
[ 4.369598] usb 1-2.1: new high-speed USB device number 3 using ehci-omap
[ 4.420989] mmc0: host does not support reading read-only switch. assuming w.
[ 4.429840] mmc0: new SDHC card at address b368
[ 4.435516] mmcblk0: mmc0:b368 SDC 3.84 GiB
[ 4.443572] mmcblk0: p1 p2
[ 4.495483] usb 1-2.1: New USB device found, idVendor=0424, idProduct=ec00
[ 4.505889] usb 1-2.1: New USB device strings: Mfr=0, Product=0, SerialNumbe0
[ 4.653259] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. )
[ 4.665039] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 4.694122] devtmpfs: mounted
[ 4.701019] Freeing init memory: 320K
[ 4.721862] Failed to execute /init. Attempting defaults…

[ 4.731018] [run_init_process] : /sbin/init
[ 4.746917] [run_init_process] : /etc/init
[ 4.756622] [run_init_process] : /bin/init
[ 4.764221] [run_init_process] : /bin/sh
[ 4.775573] Kernel panic - not syncing: No init found. Try passing init= op.
[ 4.791900] [] (unwind_backtrace+0x0/0xec) from [] (pani)
[ 4.803741] [] (panic+0x54/0x190) from [] (init_post+0xa)
[ 4.815093] [] (init_post+0xa0/0xc4) from [] (kernel_ini)

Hello,

I'm trying to boot beagleboard with following uEnv.txt and without initrd.

bootfile=3.2.1-x2.uImage
address_uimage=0x80300000

console=ttyO2,115200n8

defaultdisplay=dvi
dvimode=1280x720MR-16@60

mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait
optargs=console=tty0
init=/init

mmc_load_uimage=fatload mmc 0:1 ${address_uimage} ${bootfile}

mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} buddy2=${buddy2} camera=${camera} vram=${vram}
omapfb.mode=${defaultdisplay}:${dvimode} omapdss.def_disp=${defaultdisplay}
root=${mmcroot} rootfstype=${mmcrootfstype} init=${init}

loaduimage=run mmc_load_uimage; run mmcargs; bootm ${address_uimage}

I want to run "init" from /dev/mmcblkp02(ext4) partition, and expected to
be mounted as '/'.
But somehow it says could not execute "/init".
Support for initrd/initramfs is Disabled in kernel build config.
I get following log.
Is initrd/initramfs mandatory?
Is there anything wrong with uEnv.txt?

Is there anything specific in "/init"?

It should boot fine without an initrd/initramfs and the "init=${init}"
removed from your uEnv.txt

Regards,

if you're using a stock root filesystem, there *is* no /init program
or script. or did you manually add one?

rday

Hi Robert,

Thanks for reply.

init is my own small shell.
I tried even with init as link to bash.

It had same issue. So I thought it’d be some issue with mounting mmcblkp02 to ‘/’.

Any idea?

Thanks,
Aditya

is it explicitly marked executable?

rday

hi rday,

-rwxrwxrwx 1 aditya aditya 5786 2012-02-01 09:39 init