Kernel Panic

Hi, i have rev c4, and an angstrom with kernel 2.6.32 from narcissus,
i get this message
" no file system could mount root,tried: ext3 or ext2 " (depending on
which one i try to write the data into)

its giving me error at memory block (179,1) any kind of help will be
appreciated. tried all the blogs none worked! i am using 8 gigs card.

You should send the whole boot log - I'm sure there are other messages
further up which will help diagnose this problem.

Also, what are your U-Boot bootargs set to?

i am booting from nand. and i am new to all this....i dont know how to
get the boot log. =/

i am booting from nand. and i am new to all this....i dont know how to
get the boot log. =/

Cut & paste from your serial terminal window? Either just paste it
into your email or send it to www.pastebin.com and send the URL.

Everything, including the U-Boot messages would be useful.

http://code.google.com/p/beagleboard/wiki/BootingBeagleBoard
this is the code i used to get the kernel from my mmc. and the boot
args are
'# setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1
rootfstype=ext2 rw rootdelay=1 nohz=off'

I dont use the rd-ext2.bin, cause it was also giving me errors! will
use your link to check what i get. thanks for the help!

and the boot args are
'# setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1
rootfstype=ext2 rw rootdelay=1 nohz=off'

I hope your boot param does not comment out the bootargs with the pound sign.

why dont you give this a try:

setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1
rootfstype=ext2 rw rootwait nohz=off

i would give your method a try. and post a the text on terminal window
as well tomorrow. or as soon as i get back to my work station! thanks
for the help though. one more thing what does rootdelay do? and i am
using ubuntu's serial terminal. and a usb to srial converter. will
that play some role in setting the environment?

i would give your method a try. and post a the text on terminal window
as well tomorrow. or as soon as i get back to my work station! thanks
for the help though. one more thing what does rootdelay do?

rootdelay=1 causes the kernel to wait 1 second before mounting the
root block device. If the device is not ready in this time, mounting
the block device will fail and cause kernel to panic. Adding
"rootwait" and removing "rootdelay=1" causes the kernel to wait
indefinitely for the block device to show up and then mount the block
device.

and i am using ubuntu's serial terminal. and a usb to srial converter. will
that play some role in setting the environment?

No

toan i tried your bootargs configuration. i am still getting same
message =(, i have started to think there is something wrong with the
board.

THIS IS WHAT I GET
####40#W####��##(###��# ��#####i############��#�����#��#�E

Texas Instruments X-Loader 1.4.4ss (Jan 29 2011 - 10:54:03)

Beagle Rev C4

Reading boot sector

Loading u-boot.bin from mmc

U-Boot 2010.03 (Feb 14 2011 - 21:26:52)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max clock-720Mhz

OMAP3 Beagle board + LPDDR/NAND

I2C: ready

DRAM: 256 MB

NAND: 256 MiB

In: serial

Out: serial

Err: serial

Probing for expansion boards, if none are connected you'll see a
harmless I2C error.

timed out in wait_for_pin: I2C_STAT=0

I2C read: I/O error

Unrecognized expansion board: 0

Beagle Rev C4

Die ID #54f6000400000000040373050f019004

OMAP3 beagleboard.org # mmc init

mmc1 is available

OMAP3 beagleboard.org # fatload mmc 0 0x80300000 uImage

reading uImage

3195988 bytes read

OMAP3 beagleboard.org # setenv bootargs console=ttyS2,1152000# #n*# #8
noinitrd root=/dev/mmcblk0p1 rootfstype=ext2 rw rootwait nohz=off

OMAP3 beagleboard.org # bootm 0x80300000

## Booting kernel from Legacy Image at 80300000 ...

   Image Name: Angstrom/2.6.32/beagleboard

   Image Type: ARM Linux Kernel Image (uncompressed)

   Data Size: 3195924 Bytes = 3 MB

   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.32 (koen@dominion) (gcc version 4.3.3
(GCC) ) #3 PREEMPT Mon Jan 24 17:19:47 CET 2011

[ 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 720m )

[ 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=ttyS2,115200n8 noinitrd
root=/dev/mmcblk0p1 rootfstype=ext2 rw rootwait nohz=off

[ 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: 238336KB available (5900K code, 671K data, 204K
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] Calibrating delay loop... 510.47 BogoMIPS (lpj=1994752)

[ 0.000000] Mount-cache hash table entries: 512

[ 0.000000] CPU: Testing write buffer coherency: ok

[ 0.000000] tmpfs: No value for mount option 'mode'

[ 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

[ 265.884735] OMAP DMA hardware revision 4.0

[ 265.893829] bio: create slab <bio-0> at 0

[ 265.895477] SCSI subsystem initialized

[ 265.897247] usbcore: registered new interface driver usbfs

[ 265.897430] usbcore: registered new interface driver hub

[ 265.897674] usbcore: registered new device driver usb

[ 265.898101] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz

[ 265.901306] twl4030: PIH (irq 7) chaining IRQs 368..375

[ 265.901367] twl4030: power (irq 373) chaining IRQs 376..383

[ 265.901733] twl4030: gpio (irq 368) chaining IRQs 384..401

[ 265.903442] regulator: VUSB1V5: 1500 mV normal standby

[ 265.903747] regulator: VUSB1V8: 1800 mV normal standby

[ 265.904052] regulator: VUSB3V1: 3100 mV normal standby

[ 265.905578] twl4030_usb twl4030_usb: Initialized TWL4030 USB module

[ 265.906097] regulator: VMMC1: 1850 <--> 3150 mV normal standby

[ 265.906463] regulator: VDAC: 1800 mV normal standby

[ 265.906768] regulator: VPLL2: 1800 mV normal standby

[ 265.907135] regulator: VSIM: 1800 <--> 3000 mV normal standby

[ 265.907562] regulator: VAUX3: 1800 mV normal standby

[ 265.907989] regulator: VAUX4: 1800 mV normal standby

[ 265.908203] i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz

[ 265.917022] i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz

[ 265.918609] Switching to clocksource 32k_counter

[ 265.930938] musb_hdrc: version 6.0, musb-dma, otg (peripheral
+host), debug=0

[ 265.933715] musb_hdrc: USB OTG mode controller at fa0ab000 using
DMA, IRQ 92

[ 265.933746] musb_hdrc musb_hdrc: MUSB HDRC host driver

[ 265.933898] musb_hdrc musb_hdrc: new USB bus registered, assigned
bus number 1

[ 265.934051] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002

[ 265.934082] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1

[ 265.934082] usb usb1: Product: MUSB HDRC host driver

[ 265.934112] usb usb1: Manufacturer: Linux 2.6.32 musb-hcd

[ 265.934143] usb usb1: SerialNumber: musb_hdrc

[ 265.935028] hub 1-0:1.0: USB hub found

[ 265.935089] hub 1-0:1.0: 1 port detected

[ 265.936401] NET: Registered protocol family 2

[ 265.936676] IP route cache hash table entries: 2048 (order: 1, 8192
bytes)

[ 265.937316] TCP established hash table entries: 8192 (order: 4,
65536 bytes)

[ 265.937591] TCP bind hash table entries: 8192 (order: 3, 32768
bytes)

[ 265.937713] TCP: Hash tables configured (established 8192 bind
8192)

[ 265.937744] TCP reno registered

[ 265.937744] UDP hash table entries: 256 (order: 0, 4096 bytes)

[ 265.937805] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[ 265.938079] NET: Registered protocol family 1

[ 265.938629] RPC: Registered udp transport module.

[ 265.938629] RPC: Registered tcp transport module.

[ 265.938659] RPC: Registered tcp NFSv4.1 backchannel transport
module.

[ 265.939819] omap-iommu omap-iommu.0: isp registered

[ 265.941955] VFS: Disk quotas dquot_6.5.2

[ 265.942077] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)

[ 265.943572] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[ 265.944610] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red
Hat, Inc.

[ 265.945648] msgmni has been set to 466

[ 265.951080] alg: No test for stdrng (krng)

[ 265.951446] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 254)

[ 265.951477] io scheduler noop registered

[ 265.951477] io scheduler deadline registered

[ 265.951660] io scheduler cfq registered (default)

[ 266.012756] OMAP DSS rev 2.0

[ 266.012817] OMAP DISPC rev 3.0

[ 266.012878] OMAP VENC rev 2

[ 266.013183] OMAP DSI rev 1.0

[ 266.353576] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

[ 266.375610] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a
ST16654

[ 266.396697] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a
ST16654

[ 266.417785] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a
ST16654

[ 266.953552] console [ttyS2] enabled

[ 266.966064] brd: module loaded

[ 266.973449] loop: module loaded

[ 266.978179] omap2-nand driver initializing

[ 266.982696] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba
(Micron NAND 256MiB 1,8V 16-bit)

[ 266.991943] cmdlinepart partition parsing not available

[ 266.997283] Creating 5 MTD partitions on "omap2-nand":

[ 267.002441] 0x000000000000-0x000000080000 : "X-Loader"

[ 267.009124] 0x000000080000-0x000000260000 : "U-Boot"

[ 267.015899] 0x000000260000-0x000000280000 : "U-Boot Env"

[ 267.022247] 0x000000280000-0x000000680000 : "Kernel"

[ 267.029907] 0x000000680000-0x000010000000 : "File System"

[ 267.144439] usbcore: registered new interface driver catc

[ 267.149932] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver

[ 267.156036] usbcore: registered new interface driver kaweth

[ 267.161682] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet driver

[ 267.169372] usbcore: registered new interface driver pegasus

[ 267.175048] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet
driver

[ 267.182098] usbcore: registered new interface driver rtl8150

[ 267.187957] usbcore: registered new interface driver asix

[ 267.193542] usbcore: registered new interface driver cdc_ether

[ 267.199493] usbcore: registered new interface driver dm9601

[ 267.205261] usbcore: registered new interface driver smsc95xx

[ 267.211181] usbcore: registered new interface driver gl620a

[ 267.216949] usbcore: registered new interface driver net1080

[ 267.222747] usbcore: registered new interface driver plusb

[ 267.228393] usbcore: registered new interface driver rndis_host

[ 267.234527] usbcore: registered new interface driver cdc_subset

[ 267.240631] usbcore: registered new interface driver zaurus

[ 267.246337] usbcore: registered new interface driver MOSCHIP usb-
ethernet driver

[ 267.254608] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver

[ 267.261535] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller

[ 267.267669] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 2

[ 267.275329] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800

[ 267.293945] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00

[ 267.299865] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0002

[ 267.306762] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1

[ 267.314056] usb usb2: Product: OMAP-EHCI Host Controller

[ 267.319458] usb usb2: Manufacturer: Linux 2.6.32 ehci_hcd

[ 267.324890] usb usb2: SerialNumber: ehci-omap.0

[ 267.330322] hub 2-0:1.0: USB hub found

[ 267.334197] hub 2-0:1.0: 3 ports detected

[ 267.364379] Initializing USB Mass Storage driver...

[ 267.369506] usbcore: registered new interface driver usb-storage

[ 267.375610] USB Mass Storage support registered.

[ 267.380737] mice: PS/2 mouse device common for all mice

[ 267.386444] input: gpio-keys as /devices/platform/gpio-keys/input/
input0

[ 267.394561] input: twl4030_pwrbutton as /devices/platform/i2c_omap.
1/i2c-1/1-0049/twl4030_pwrbutton/input/input1

[ 267.405395] i2c /dev entries driver

[ 267.409729] Linux video capture interface: v2.00

[ 267.414733] omap-iommu omap-iommu.0: isp: version 1.1

[ 267.421539] vpfe_init

[ 267.424530] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec

[ 267.536407] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card
detect

[ 267.543487] Registered led device: beagleboard::usr0

[ 267.548706] Registered led device: beagleboard::usr1

[ 267.554901] Registered led device: beagleboard::pmu_stat

[ 267.562866] usbcore: registered new interface driver usbhid

[ 267.568511] usbhid: USB HID core driver

[ 267.572601] Advanced Linux Sound Architecture Driver Version
1.0.21.

[ 267.579681] usbcore: registered new interface driver snd-usb-audio

[ 267.660827] No device for DAI omap-mcbsp-dai-0

[ 267.665344] No device for DAI omap-mcbsp-dai-1

[ 267.669860] No device for DAI omap-mcbsp-dai-2

[ 267.674346] No device for DAI omap-mcbsp-dai-3

[ 267.678863] No device for DAI omap-mcbsp-dai-4

[ 267.683319] OMAP3 Beagle SoC init

[ 267.688476] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok

[ 267.701965] ALSA device list:

[ 267.704956] #0: omap3beagle (twl4030)

[ 267.709014] oprofile: using arm/armv7

[ 267.712951] TCP cubic registered

[ 267.716278] NET: Registered protocol family 17

[ 267.720794] NET: Registered protocol family 15

[ 267.725402] lib80211: common routines for IEEE802.11 drivers

[ 267.731140] ThumbEE CPU extension supported.

[ 267.735473] Power Management for TI OMAP3.

[ 267.740325] SmartReflex driver initialized

[ 267.755279] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1

[ 267.763946] registered taskstats version 1

[ 267.786956] Console: switching to colour frame buffer device 80x30

[ 267.812835] regulator_init_complete: incomplete constraints,
leaving VAUX3 on

[ 267.820312] regulator_init_complete: incomplete constraints,
leaving VDAC on

[ 267.828033] omap_vout omap_vout: probed for an unknown device

[ 267.834228] Waiting for root device /dev/mmcblk0p1...

[ 267.870941] mmc0: new high speed SDHC card at address 0001

[ 267.877075] mmcblk0: mmc0:0001 00000 7.41 GiB

[ 267.882049] mmcblk0: p1 p2

[ 267.944122] List of all partitions:

[ 267.947662] 1f00 512 mtdblock0 (driver?)

[ 267.952728] 1f01 1920 mtdblock1 (driver?)

[ 267.957763] 1f02 128 mtdblock2 (driver?)

[ 267.962799] 1f03 4096 mtdblock3 (driver?)

[ 267.967864] 1f04 255488 mtdblock4 (driver?)

[ 267.972869] b300 7772160 mmcblk0 driver: mmcblk

[ 267.978179] b301 160618 mmcblk0p1

[ 267.982543] b302 7606777 mmcblk0p2

[ 267.986846] No filesystem could mount root, tried: ext2

[ 267.992248] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(179,1)

[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7),
cr=10c53c7f

as far as i know this board has an ARMv8 processor. can that be an
issue?

i meant ARM Cortex A-8

[ 0.000000] Kernel command line: console=ttyS2,115200n8 noinitrd
root=/dev/mmcblk0p1 rootfstype=ext2 rw rootwait nohz=off

[ 267.834228] Waiting for root device /dev/mmcblk0p1...

[ 267.870941] mmc0: new high speed SDHC card at address 0001

[ 267.877075] mmcblk0: mmc0:0001 00000 7.41 GiB

[ 267.882049] mmcblk0: p1 p2

[ 267.944122] List of all partitions:

[ 267.972869] b300 7772160 mmcblk0 driver: mmcblk

[ 267.978179] b301 160618 mmcblk0p1

[ 267.982543] b302 7606777 mmcblk0p2

[ 267.986846] No filesystem could mount root, tried: ext2

[ 267.992248] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(179,1)

Shot in the dark... change "mmcblk0p1" -> "mmcblk0p2"

on your desktop pc, the output of "sudo fdisk /dev/(whatever_the_
mmc_card_mounts_as) -l" would prove it..

It'll normally something like this...

Disk /dev/sdd: 2038 MB, 2038431744 bytes
255 heads, 63 sectors/track, 247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008e471

   Device Boot Start End Blocks Id System
/dev/sdd1 1 6 48163+ 6 FAT16
/dev/sdd2 7 247 1935832+ 83 Linux

/dev/sdd1 <- fat boot partition
/dev/sdd2 <- "root=/dev/mmcblk0p2"

Regards,

robert nelson, thanks a lot. it worked out with your method! thanks to
other guys as well

well i am getting the console now. but i have to go through the whole
procedure each time. how can i make it boot the kernel from mmc on
its own, and i cant make the s-video to work. thanks in advance!

THIS IS WHAT I GET
####40#W####��##(###��# ��#####i############��#�����#��#�E

Texas Instruments X-Loader 1.4.4ss (Jan 29 2011 - 10:54:03)

Beagle Rev C4

Reading boot sector

Loading u-boot.bin from mmc

U-Boot 2010.03 (Feb 14 2011 - 21:26:52)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max clock-720Mhz

OMAP3 Beagle board + LPDDR/NAND

I2C: ready

DRAM: 256 MB

NAND: 256 MiB

In: serial

Out: serial

Err: serial

Probing for expansion boards, if none are connected you'll see a
harmless I2C error.

timed out in wait_for_pin: I2C_STAT=0

I2C read: I/O error

Unrecognized expansion board: 0

Beagle Rev C4

Die ID #54f6000400000000040373050f019004

OMAP3 beagleboard.org # mmc init

mmc1 is available

OMAP3 beagleboard.org # fatload mmc 0 0x80300000 uImage

reading uImage

3195988 bytes read

OMAP3 beagleboard.org # setenv bootargs console=ttyS2,1152000# #n*# #8
noinitrd root=/dev/mmcblk0p1 rootfstype=ext2 rw rootwait nohz=off

Root has to be root=/dev/mmcblk0p2

You're trying to mount a VFAT partition (/dev/mmcblk0p1) as ext2 which is wrong.