Lucid 10.04 ALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!

I was trying to run the Demo image (Ubuntu Lucid 10.04) from
http://rcn-ee.net/deb/rootfs/ubuntu-10.04-minimal-armel.tar.7z on my
C4 Beagleboard, and I'm not able to get the file system to mount. I
keep getting the next message:

Gave up waiting for root device. Common problems:
- Boot args (cat/proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
  - Missing modules (cat /proc/modules; ls/dev)
ALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!

BusyBox v1.13.3(Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)

Enter 'help' for a list of built-in commands.

(initramfs)

I'm using a 2GB SD card and I'm only running the "./setup_sdcard.sh --
mmc /dev/sdd --uboot beagle" script which is populating both
partitions of my sd. (that is working)

I tried modifying the boot-c4.cmd file for the args by setting a
rootdelay to 1 but still not working.

When I run the ./setup_sdcard.sh it creates a 16FAT (e) instead of a
32FAT (c) one, I also modify that option, and it is still the same.

Could somebody give me a hint on what may I be doing wrong.

thanks

Hello,

I was trying to run the Demo image (Ubuntu Lucid 10.04) from
http://rcn-ee.net/deb/rootfs/ubuntu-10.04-minimal-armel.tar.7z on my
C4 Beagleboard, and I'm not able to get the file system to mount. I
keep getting the next message:

Gave up waiting for root device. Common problems:
- Boot args (cat/proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls/dev)
ALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!

BusyBox v1.13.3(Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)

Enter 'help' for a list of built-in commands.

(initramfs)

I'm using a 2GB SD card and I'm only running the "./setup_sdcard.sh --
mmc /dev/sdd --uboot beagle" script which is populating both
partitions of my sd. (that is working)

I'm very interested to see what the script actually ended up writing
to your sd card..

sudo fdisk -l /dev/sdd

I tried modifying the boot-c4.cmd file for the args by setting a
rootdelay to 1 but still not working.

Try using "rootwait" (although either shouldn't be needed, with an
uInitrd which contains the nessarry modules from the root system..)

When I run the ./setup_sdcard.sh it creates a 16FAT (e) instead of a
32FAT (c) one, I also modify that option, and it is still the same.

Could somebody give me a hint on what may I be doing wrong.

Regards,

Hi, thanks for taking the time to help

I've tried with rootwait also:
setenv bootargs 'console=tty0 console=ttyS2,115200n8 root=/dev/
mmcblk0p2 rootwait ro vram=12M omapfb.mode=dvi:1280x720MR-16@60 fixrtc
mpurate=720'

looks good... (i'm assuming that 4GB card failed too?)

using a serial terminal program that logs (such as cutecom)

can you pastebin your full boot log, so we can see if something odd is
happening..

Regards,

This is my boot log:

OMAP3 beagleboard.org # boot
mmc1 is available
reading uImage

3241772 bytes read
reading uInitrd

2801046 bytes read
## Booting kernel from Legacy Image at 80000000 ...
   Image Name: Linux
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3241708 Bytes = 3.1 MB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name: initramfs
   Image Type: ARM Linux RAMDisk Image (uncompressed)
   Data Size: 2800982 Bytes = 2.7 MB
   Load Address: 00000000
   Entry Point: 00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing
Linux....................................................................................................................................................
[ 0.000000] Linux version 2.6.32.11-l13 (root@beagle-256mb-0) (gcc
version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 PREEMPT Tue Apr 13 04:25:20
UTC 2010
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x100000
[ 0.000000] Reserving 14680064 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: console=tty0
console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5,
131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.000000] Memory: 128MB 128MB = 256MB total
[ 0.000000] Memory: 235776KB available (6040K code, 603K data, 184K
init, 0K highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] GPMC revision 5.0
[ 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] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000000] Calibrating delay loop... 505.22 BogoMIPS (lpj=1974272)
[ 0.000000] Security Framework initialized
[ 0.000000] Smack: Initializing.
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] devtmpfs: initialized
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] Unable to get DVI reset GPIO
[ 676.340179] OMAP DMA hardware revision 4.0
[ 676.348754] bio: create slab <bio-0> at 0
[ 676.350433] SCSI subsystem initialized
[ 676.352142] usbcore: registered new interface driver usbfs
[ 676.352355] usbcore: registered new interface driver hub
[ 676.352600] usbcore: registered new device driver usb
[ 676.353057] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
[ 676.355895] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 676.355987] twl4030: power (irq 373) chaining IRQs 376..383
[ 676.356384] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 676.357910] regulator: VUSB1V5: 1500 mV normal standby
[ 676.358215] regulator: VUSB1V8: 1800 mV normal standby
[ 676.358520] regulator: VUSB3V1: 3100 mV normal standby
[ 676.359893] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 676.360351] regulator: VMMC1: 1850 <--> 3150 mV normal standby
[ 676.360809] regulator: VDAC: 1800 mV normal standby
[ 676.361145] regulator: VPLL2: 1800 mV normal standby
[ 676.361480] regulator: VSIM: 1800 <--> 3000 mV normal standby
[ 676.361724] i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
[ 676.361999] i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz
[ 676.363525] Bluetooth: Core ver 2.15
[ 676.363861] NET: Registered protocol family 31
[ 676.363922] Bluetooth: HCI device and connection manager
initialized
[ 676.363983] Bluetooth: HCI socket layer initialized
[ 676.364013] NET: Registered protocol family 8
[ 676.364044] NET: Registered protocol family 20
[ 676.364166] NetLabel: Initializing
[ 676.364227] NetLabel: domain hash size = 128
[ 676.364257] NetLabel: protocols = UNLABELED CIPSOv4
[ 676.364379] NetLabel: unlabeled traffic allowed by default
[ 676.364776] Switching to clocksource 32k_counter
[ 676.366333] musb_hdrc: version 6.0, musb-dma, otg (peripheral
+host), debug=0
[ 676.368804] musb_hdrc: USB OTG mode controller at fa0ab000 using
DMA, IRQ 92
[ 676.369476] NET: Registered protocol family 2
[ 676.369781] IP route cache hash table entries: 2048 (order: 1, 8192
bytes)
[ 676.370544] TCP established hash table entries: 8192 (order: 4,
65536 bytes)
[ 676.370819] TCP bind hash table entries: 8192 (order: 3, 32768
bytes)
[ 676.371002] TCP: Hash tables configured (established 8192 bind
8192)
[ 676.371032] TCP reno registered
[ 676.371368] NET: Registered protocol family 1
[ 676.371917] RPC: Registered udp transport module.
[ 676.371978] RPC: Registered tcp transport module.
[ 676.372039] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 676.372650] Trying to unpack rootfs image as initramfs...
[ 676.692871] Freeing initrd memory: 2732K
[ 676.695129] VFS: Disk quotas dquot_6.5.2
[ 676.695281] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 676.699554] fuse init (API version 7.13)
[ 676.700866] Btrfs loaded
[ 676.700927] msgmni has been set to 466
[ 676.702911] alg: No test for stdrng (krng)
[ 676.703033] io scheduler noop registered
[ 676.703094] io scheduler anticipatory registered
[ 676.703125] io scheduler deadline registered
[ 676.703399] io scheduler cfq registered (default)
[ 676.763763] OMAP DSS rev 2.0
[ 676.763854] OMAP DISPC rev 3.0
[ 676.763946] OMAP VENC rev 2
[ 676.764251] OMAP DSI rev 1.0
[ 677.104675] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 677.126586] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a
ST16654
[ 677.147552] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a
ST16654
[ 677.168487] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a
ST16654
[ 677.684173] console [ttyS2] enabled
[ 677.695770] brd: module loaded
[ 677.703063] loop: module loaded
[ 677.707550] omap2-nand driver initializing
[ 677.712097] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba
(Micron NAND 256MiB 1,8V 16-bit)
[ 677.729217] cmdlinepart partition parsing not available
[ 677.734619] Creating 5 MTD partitions on "omap2-nand":
[ 677.739837] 0x000000000000-0x000000080000 : "X-Loader"
[ 677.746520] 0x000000080000-0x000000260000 : "U-Boot"
[ 677.753265] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 677.759552] 0x000000280000-0x000000680000 : "Kernel"
[ 677.767150] 0x000000680000-0x000010000000 : "File System"
[ 677.880157] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 677.887145] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 677.893341] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 1
[ 677.901245] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 677.919799] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 677.925720] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 677.932647] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 677.940002] usb usb1: Product: OMAP-EHCI Host Controller
[ 677.945404] usb usb1: Manufacturer: Linux 2.6.32.11-l13 ehci_hcd
[ 677.951507] usb usb1: SerialNumber: ehci-omap.0
[ 677.956695] usb usb1: configuration #1 chosen from 1 choice
[ 677.962646] hub 1-0:1.0: USB hub found
[ 677.966522] hub 1-0:1.0: 3 ports detected
[ 677.971191] Initializing USB Mass Storage driver...
[ 677.976348] usbcore: registered new interface driver usb-storage
[ 677.982482] USB Mass Storage support registered.
[ 677.987243] g_ether gadget: using random self ethernet address
[ 677.993225] g_ether gadget: using random host ethernet address
[ 677.999725] usb0: MAC 62:b2:ae:3c:21:18
[ 678.003601] usb0: HOST MAC ba:25:3b:1a:24:b7
[ 678.008026] g_ether gadget: Ethernet Gadget, version: Memorial Day
2008
[ 678.014770] g_ether gadget: g_ether ready
[ 678.018829] musb_hdrc musb_hdrc: MUSB HDRC host driver
[ 678.024444] musb_hdrc musb_hdrc: new USB bus registered, assigned
bus number 2
[ 678.031951] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0002
[ 678.038848] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 678.046203] usb usb2: Product: MUSB HDRC host driver
[ 678.051239] usb usb2: Manufacturer: Linux 2.6.32.11-l13 musb-hcd
[ 678.057342] usb usb2: SerialNumber: musb_hdrc
[ 678.062316] usb usb2: configuration #1 chosen from 1 choice
[ 678.068237] hub 2-0:1.0: USB hub found
[ 678.072143] hub 2-0:1.0: 1 port detected
[ 678.077117] mice: PS/2 mouse device common for all mice
[ 678.082885] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 678.091094] input: twl4030_pwrbutton as /devices/platform/i2c_omap.
1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[ 678.102050] i2c /dev entries driver
[ 678.106994] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 678.224731] Registered led device: beagleboard::usr0
[ 678.229919] Registered led device: beagleboard::usr1
[ 678.235565] Registered led device: beagleboard::pmu_stat
[ 678.241424] Advanced Linux Sound Architecture Driver Version
1.0.21.
[ 678.248626] usbcore: registered new interface driver snd-usb-audio
[ 678.255035] No device for DAI twl4030
[ 678.258819] No device for DAI twl4030 Voice
[ 678.263061] No device for DAI omap-mcbsp-dai-0
[ 678.267578] No device for DAI omap-mcbsp-dai-1
[ 678.272125] No device for DAI omap-mcbsp-dai-2
[ 678.276611] No device for DAI omap-mcbsp-dai-3
[ 678.281158] No device for DAI omap-mcbsp-dai-4
[ 678.285644] Not OMAP3 EVM!
[ 678.288421] OMAP3 Beagle SoC init
[ 678.291992] TWL4030 Audio Codec init
[ 678.297271] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 678.387969] ALSA device list:
[ 678.391082] #0: omap3beagle (twl4030)
[ 678.395080] oprofile: using arm/armv7
[ 678.399169] TCP cubic registered
[ 678.403106] NET: Registered protocol family 10
[ 678.408569] lo: Disabled Privacy Extensions
[ 678.413299] NET: Registered protocol family 17
[ 678.417816] NET: Registered protocol family 15
[ 678.422576] Bluetooth: L2CAP ver 2.14
[ 678.426300] Bluetooth: L2CAP socket layer initialized
[ 678.431488] Bluetooth: SCO (Voice Link) ver 0.6
[ 678.436096] Bluetooth: SCO socket layer initialized
[ 678.441650] Bluetooth: RFCOMM TTY layer initialized
[ 678.446655] Bluetooth: RFCOMM socket layer initialized
[ 678.451873] Bluetooth: RFCOMM ver 1.11
[ 678.455963] ThumbEE CPU extension supported.
[ 678.460357] Power Management for TI OMAP3.
[ 678.476348] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1
[ 678.485107] registered taskstats version 1
[ 678.507354] Console: switching to colour frame buffer device 80x30
[ 678.533020] regulator_init_complete: incomplete constraints,
leaving VDAC on
[ 678.545104] Freeing init memory: 184K
Loading, please wait...
Begin: Loading essential drivers... ...
Done.
[ 678.732604] udev: starting version 151
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

This is my boot log:

OMAP3 beagleboard.org # boot
mmc1 is available
reading uImage

3241772 bytes read
reading uInitrd

2801046 bytes read
## Booting kernel from Legacy Image at 80000000 ...
Image Name: Linux
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3241708 Bytes = 3.1 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2800982 Bytes = 2.7 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing
Linux....................................................................................................................................................
[ 0.000000] Linux version 2.6.32.11-l13 (root@beagle-256mb-0) (gcc
version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 PREEMPT Tue Apr 13 04:25:20
UTC 2010
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x100000
[ 0.000000] Reserving 14680064 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: console=tty0
console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait

There we go, the above and below is a little weird, as they should
match up... but 'rw' isn't going to work in ubuntu...

bootargs=console=tty0 console=ttyS2,115200n8 root=/dev/mmcblk0p2
rootwait ro vram=12M omapfb.mode=dvi:1280x720MR-16@60 fixrtc
mpurate=720

Regards,

PS, this is one of the reasons why boot script files (boot.scr) work better...

http://elinux.org/BeagleBoardUbuntu#U-Boot_Boot_Scripts

You can reset the U-boot nand environment to factory with:

nand erase 260000 20000
reset

Regards,

I'm still getting the same problem.

****** I erased nand as you told me: ******

****** Any idea of what is happening? ******

No Clue...

Your "sudo fdisk -l" printout looks fine
Your bootargs look good

Do you have any other SD cards that are NOT 4Gb's and preferable a
different brand. (usually 2Gb's are the most compatible)

Otherwise the images hosted on rcn-ee.net all work perfectly fine on
my random collection of sd cards and couple generations of beagles..

Regards,

It may help to do a fsck.ext3 on the partition. That's cured similar
problems for me in the past.
Regards
Sid.

Thanks Robert & Sid but unfortunately it didn't work for me.
I am using two sd cards one 4 GB (Roy Memory) and the other 2 GB (PNY)
and I ran the fsck.ext3 /dev/sdd2 on both and it seem to be ok, no
error messages shown.
But still getting the same problem, I might be able to try the sd card
on an older board B? if I can get it from a friend. I will also try to
get a new sd card from a different brand.
Regards

Are you powering your Beagleboard with external power brick through 5V DC connector?

Seems that the problem was a broken hardware connection in the SD card
slot. Finally after I send the Beagleboard to the Beagle Hospital, I
received it back and got everything working, thanks a lot for all your
support.
I'm powering Beagleboard with external power source.