This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

After upgrading the Processor from "OMAP3530DCUS" to "OMAP3530ECUS" getting "kernel panic error"

Other Parts Discussed in Thread: ADS7846

Dear all,

I have upgraded the processor from OMAP3530DCUS to OMAP3530ECUS for certain reason. After change of processor i am facing the "kernel panic error" while loading the kernel. I have used same binaries of old processor.

The error log is as follows;

Uncompressing Linux....................................................................................................................................................................................................................... done, booting the kernel.
[ 0.000000] Linux version 2.6.29-omap1 (root@rahman-OptiPlex-330) (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) #110 PREEMPT Wed Apr 11 10:49:25 IST 2012
[ 0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c5387f
[ 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 Unknown revision
[ 0.000000]
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
[ 0.000000] Reserving 14680064 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
[ 0.000000] Clocking rate (Crystal/DPLL/ARM core): 26.0/332/500 MHz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP34xx GPIO hardware version 2.5
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 108272KB available (6296K code, 637K data, 208K init)
[ 0.000000] Calibrating delay loop... 485.26 BogoMIPS (lpj=1896448)
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] Calling driver_init
[ 0.000000] net_namespace: 1036 bytes
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] MUX: setup J25_34XX_GPIO170 (0xd80021c6): 0x001c -> 0x0104
[ 0.000000] MUX: setup AG4_3530_GPIO134 (0xd8002160): 0x011c -> 0x0104
[ 0.000000] MUX: setup K26_34XX_GPIO161 (0xd8002196): 0x0004 -> 0x0104
[ 0.000000] GPIO-156 autorequested
[ 0.000000] GPIO-159 autorequested
[ 0.000000] GPIO-140 autorequested
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] fpga_gpmc_get_base: gpmc_cs_address 0xc9000000
[ 19.913482] OMAP DMA hardware revision 4.0
[ 19.960845] bio: create slab <bio-0> at 0
[ 20.022338] OMAP DSS rev 2.0
[ 20.022460] OMAP DISPC rev 3.0
[ 20.022491] OMAP VENC rev 2
[ 20.022644] OMAP DSI rev 1.0
[ 20.037536] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
[ 20.041625] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 20.041656] twl4030: power (irq 373) chaining IRQs 376..383
[ 20.042236] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 20.042846] MUX: setup AH8_34XX_GPIO29 (0xd80025fa): 0x010b -> 0x0104
[ 20.045623] regulator: VMMC1: 1850 <--> 3150 mV normal standby
[ 20.046600] regulator: VDAC: 1800 mV normal standby
[ 20.047546] regulator: VUSB1V5: 1500 <--> 0 mV normal standby
[ 20.048492] regulator: VUSB1V8: 1800 <--> 0 mV normal standby
[ 20.049468] regulator: VUSB3V1: 3100 <--> 0 mV normal standby
[ 20.050384] regulator: VPLL2: 1800 mV normal standby
[ 20.051361] regulator: VMMC2: 3150 mV normal standby
[ 20.052368] regulator: VSIM: 1800 <--> 3000 mV normal standby
[ 20.060455] i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
[ 20.075653] i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
[ 20.078247] SCSI subsystem initialized
[ 20.084564] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 20.086151] usbcore: registered new interface driver usbfs
[ 20.086791] usbcore: registered new interface driver hub
[ 20.087249] usbcore: registered new device driver usb
[ 20.090759] Bluetooth: Core ver 2.14
[ 20.091339] NET: Registered protocol family 31
[ 20.091369] Bluetooth: HCI device and connection manager initialized
[ 20.091369] Bluetooth: HCI socket layer initialized
[ 20.091400] NET: Registered protocol family 8
[ 20.091400] NET: Registered protocol family 20
[ 20.092498] cfg80211: Using static regulatory domain info
[ 20.092529] cfg80211: Regulatory domain: US
[ 20.092529] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 20.092559] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[ 20.092590] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 20.092590] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 20.092620] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 20.092651] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 20.092651] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[ 20.092681] cfg80211: Calling CRDA for country: US
[ 20.096557] musb_hdrc: version 6.0, musb-dma, host, debug=0
[ 20.097290] musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92
[ 20.097320] musb_hdrc musb_hdrc: MUSB HDRC host driver
[ 20.097869] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
[ 20.098937] usb usb1: configuration #1 chosen from 1 choice
[ 20.099395] hub 1-0:1.0: USB hub found
[ 20.099487] hub 1-0:1.0: 1 port detected
[ 20.102355] NET: Registered protocol family 2
[ 20.102630] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 20.103332] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 20.103485] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 20.103576] TCP: Hash tables configured (established 4096 bind 4096)
[ 20.103607] TCP reno registered
[ 20.103881] NET: Registered protocol family 1
[ 20.109313] VFS: Disk quotas dquot_6.5.2
[ 20.109436] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 20.110076] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 20.110900] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 20.111877] msgmni has been set to 211
[ 20.117187] alg: No test for stdrng (krng)
[ 20.117309] io scheduler noop registered
[ 20.117340] io scheduler anticipatory registered
[ 20.117340] io scheduler deadline registered
[ 20.117584] io scheduler cfq registered (default)
[ 20.144744] NOD = gpio_test & Major No = 252
[ 20.146575] NOD = led-dip-test & Major No = 251
[ 20.147247] NOD = timer_pwm_test & Major No = 250
[ 20.147918] NOD = mcbsp_test & Major No = 249
[ 20.148559] NOD = sdma_test & Major No = 248
[ 20.149841] NOD = leddip_test & Major No = 246
[ 20.149871] fpga_gpmc_get_base: gpmc_cs_address 0xc9000000
[ 20.150512] NOD = 7seg_led_test & Major No = 245
[ 20.542327] NOD = ddr_test & Major No = 244
[ 25.397003] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 25.419342] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[ 25.439880] serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[ 25.460357] serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[ 25.460388] console [ttyS2] enabled
[ 26.105194] brd: module loaded
[ 26.115264] loop: module loaded
[ 26.119995] smsc911x: Driver version 2008-10-21.
[ 26.124847] smsc911x: Driver version 2008-10-21.
[ 26.131500] smsc911x-mdio: probed
[ 26.134887] eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=ffffffff:01, irq=-1)
[ 26.143585] net eth0: MAC Address: 3e:17:be:7b:f0:9a
[ 26.148773] smsc911x: Driver version Success
[ 26.154052] enc28j60 spi4.0: enc28j60 Ethernet driver 1.01 loaded
[ 26.162841] enc28j60 spi4.0: enc28j60 chip not found
[ 26.167877] enc28j60: probe of spi4.0 failed with error -5
[ 26.174102] usbcore: registered new interface driver catc
[ 26.179626] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 26.185943] usbcore: registered new interface driver kaweth
[ 26.191558] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[ 26.199462] usbcore: registered new interface driver pegasus
[ 26.205261] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[ 26.212493] usbcore: registered new interface driver rtl8150
[ 26.218536] usbcore: registered new interface driver asix
[ 26.224334] usbcore: registered new interface driver cdc_ether
[ 26.230499] usbcore: registered new interface driver dm9601
[ 26.236480] usbcore: registered new interface driver smsc95xx
[ 26.242645] usbcore: registered new interface driver gl620a
[ 26.248596] usbcore: registered new interface driver net1080
[ 26.254608] usbcore: registered new interface driver plusb
[ 26.260528] usbcore: registered new interface driver rndis_host
[ 26.266845] usbcore: registered new interface driver cdc_subset
[ 26.273162] usbcore: registered new interface driver zaurus
[ 26.279144] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 26.286987] Broadcom 43xx driver loaded [ Features: L, Firmware-ID: FW13 ]
[ 26.294433] usbcore: registered new interface driver zd1211rw
[ 26.300537] usbcore: registered new interface driver rtl8187
[ 26.306640] usbcore: registered new interface driver rndis_wlan
[ 26.312957] usbcore: registered new interface driver zd1201
[ 26.319030] usbcore: registered new interface driver usb8xxx
[ 26.325134] usbcore: registered new interface driver rt2500usb
[ 26.331359] usbcore: registered new interface driver rt73usb
[ 26.337432] usbcore: registered new interface driver p54usb
[ 26.343109] i2c /dev entries driver
[ 26.348602] KERR:AT24C04 EEPROM: Added i2c driver
[ 26.353454] at24_eeprom: 238
[ 26.356658] KERR:AT24C04A I2C EEPROM Character Driver Registered Succussesfully
[ 26.364471] KERR:I2C Slave address = 50
[ 26.369232] Driver 'sd' needs updating - please use bus_type methods
[ 26.375976] Driver 'sr' needs updating - please use bus_type methods
[ 26.383636] omap2-nand driver initializing
[ 26.388122] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit)
[ 26.397308] cmdlinepart partition parsing not available
[ 26.402557] Creating 5 MTD partitions on "omap2-nand":
[ 26.407775] 0x000000000000-0x000000080000 : "X-Loader"
[ 26.415191] 0x000000080000-0x000000260000 : "U-Boot"
[ 26.422454] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 26.429290] 0x000000280000-0x000000680000 : "Kernel"
[ 26.437377] 0x000000680000-0x000008000000 : "File System"
[ 26.497039] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 26.503967] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 26.510253] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
[ 26.518096] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 26.535919] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 26.542602] usb usb2: configuration #1 chosen from 1 choice
[ 26.548797] hub 2-0:1.0: USB hub found
[ 26.552703] hub 2-0:1.0: 3 ports detected
[ 26.558868] Initializing USB Mass Storage driver...
[ 26.564300] usbcore: registered new interface driver usb-storage
[ 26.570404] USB Mass Storage support registered.
[ 26.575927] mice: PS/2 mouse device common for all mice
[ 26.581878] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 26.590698] ads7846 spi1.0: touchscreen, irq 191
[ 26.596160] input: ADS784x Touchscreen as /devices/platform/omap2_mcspi.1/spi1.0/input/input1
[ 26.607543] input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-adapter/i2c-1/1-0049/twl4030_pwrbutton/input/input2
[ 26.621856] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 26.628234] Bluetooth: HCI UART driver ver 2.2
[ 26.632751] Bluetooth: HCI H4 protocol initialized
[ 26.637664] Bluetooth: HCI BCSP protocol initialized
[ 26.642669] Bluetooth: HCILL protocol initialized
[ 26.647430] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
[ 26.654113] usbcore: registered new interface driver bcm203x
[ 26.659851] Bluetooth: Digianswer Bluetooth USB driver ver 0.10
[ 26.666198] usbcore: registered new interface driver bpa10x
[ 26.671936] Bluetooth: BlueFRITZ! USB driver ver 1.2
[ 26.677307] usbcore: registered new interface driver bfusb
[ 26.682830] Bluetooth: Generic Bluetooth USB driver ver 0.4
[ 26.688842] usbcore: registered new interface driver btusb
[ 26.694458] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 26.701080] mmci-omap-hs mmci-omap-hs.0: Failed to get debounce clock
[ 26.817352] mmci-omap-hs mmci-omap-hs.1: Failed to get debounce clock
[ 26.823944] regulator: Unable to get requested regulator: vmmc_aux
[ 26.833190] Registered led device: beagleboard::usr0
[ 26.838562] Registered led device: beagleboard::usr1
[ 26.851226] usbcore: registered new interface driver usbhid
[ 26.856903] usbhid: v2.6:USB HID core driver
[ 26.862548] Advanced Linux Sound Architecture Driver Version 1.0.18a.
[ 26.870147] usbcore: registered new interface driver snd-usb-audio
[ 26.876831] No device for DAI twl4030
[ 26.880706] No device for DAI omap-mcbsp-dai-0
[ 26.885192] No device for DAI omap-mcbsp-dai-1
[ 26.889801] No device for DAI omap-mcbsp-dai-2
[ 26.894287] No device for DAI omap-mcbsp-dai-3
[ 26.898803] No device for DAI omap-mcbsp-dai-4
[ 26.903320] OMAP3 Beagle SoC init
[ 26.907135] TWL4030 Audio Codec init
[ 26.912414] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 26.928863] ALSA device list:
[ 26.931854] #0: omap3beagle (twl4030)
[ 26.944061] oprofile: using arm/armv7
[ 26.948028] IPv4 over IPv4 tunneling driver
[ 26.953308] GRE over IPv4 tunneling driver
[ 26.958404] TCP cubic registered
[ 26.962188] NET: Registered protocol family 10
[ 26.968444] Mobile IPv6
[ 26.970916] IPv6 over IPv4 tunneling driver
[ 26.980957] NET: Registered protocol family 17
[ 26.985534] NET: Registered protocol family 15
[ 26.990325] Bridge firewalling registered
[ 26.994415] Bluetooth: L2CAP ver 2.11
[ 26.998168] Bluetooth: L2CAP socket layer initialized
[ 27.003265] Bluetooth: SCO (Voice Link) ver 0.6
[ 27.007843] Bluetooth: SCO socket layer initialized
[ 27.013000] Bluetooth: RFCOMM socket layer initialized
[ 27.018218] Bluetooth: RFCOMM TTY layer initialized
[ 27.023193] Bluetooth: RFCOMM ver 1.10
[ 27.026977] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 27.032379] Bluetooth: BNEP filters: protocol multicast
[ 27.037689] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 27.044769] RPC: Registered udp transport module.
[ 27.049530] RPC: Registered tcp transport module.
[ 27.054565] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[ 27.061462] All bugs added by David S. Miller <davem@redhat.com>
[ 27.069030] CCID: Activated CCID 2 (TCP-like)
[ 27.073608] CCID: Activated CCID 3 (TCP-Friendly Rate Control)
[ 27.080780] SCTP: Hash tables configured (established 4096 bind 8192)
[ 27.087646] lib80211: common routines for IEEE802.11 drivers
[ 27.093475] TIPC: Activated (version 1.6.4 compiled Apr 11 2012 10:48:53)
[ 27.100952] NET: Registered protocol family 30
[ 27.105438] TIPC: Started in single node mode
[ 27.109863] ThumbEE CPU extension supported.
[ 27.114196] Power Management for TI OMAP3.
[ 27.118865] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[ 27.128845] registered taskstats version 1
[ 27.140472] Console: switching to colour frame buffer device 40x30
[ 27.150268] clock: clksel_round_rate_div: dpll4_m4_ck target_rate 48000000
[ 27.157196] clock: new_div = 9, new_rate = 48000000
[ 27.192413] omapdss: DSS Requested 6300 kHz, got 6300 kHz,19,37,29,4,14,3
[ 27.201751] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 27.208526] Waiting for root device /dev/mmcblk0p2...
[ 27.247009] mmc0: new SD card at address aaaa
[ 27.252197] mmcblk0: mmc0:aaaa SU02G 1.84 GiB (ro)
[ 27.257385] mmcblk0: p1 p2
[ 27.317657] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
[ 27.324737] Please append a correct "root=" boot option; here are the available partitions:
[ 27.333251] 1f00 512 mtdblock0 (driver?)
[ 27.338287] 1f01 1920 mtdblock1 (driver?)
[ 27.343322] 1f02 128 mtdblock2 (driver?)
[ 27.348388] 1f03 4096 mtdblock3 (driver?)
[ 27.353393] 1f04 124416 mtdblock4 (driver?)
[ 27.358428] b300 1931264 mmcblk0 driver: mmcblk
[ 27.363708] b301 72261 mmcblk0p1
[ 27.368041] b302 1855507 mmcblk0p2
[ 27.372406] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

For your kind information;

Kernel Version:2.6.29

Cross compiler: /ulk/toolchain/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi

Please help me to come out from this issue.

Thanks and regards,

Sujay

  • Hi Sujay,

    It seems that this is not a problem related to the processor. The linux kernel can be read from partition 1 but file system cannot be write to partition 2. Everything looks to be okay except for the "(ro)" part of the line:

    mmcblk0: mmc0:aaaa SU02G 1.84 GiB (ro)

    I think that means the driver thinks the card is read-only. The root file system needs to writeable. Check the lock switch on the card or filesystem permitions.

    BR

    Tsvetolin Shulev

  • Dear Shulev,

    Thank you for reply !

    You are exactly correct. The problem has been solved now. Actually kernel will check the mmc-wp pin to confirm card is read only or got write permission. I have avoided that by customizing the code as explained below,

    $vim linux-omap-2.6.29/drivers/mmc/host/omap_hsmmc.c

    ----------------------from----------------------
    static int omap_hsmmc_get_ro(struct mmc_host *mmc)
    {
    struct omap_hsmmc_host *host = mmc_priv(mmc);
    if (!mmc_slot(host).get_ro)
    return -ENOSYS;

    return mmc_slot(host).get_ro(host->dev, 0);
    }

    -----------------------to-----------------------

    static int omap_hsmmc_get_ro(struct mmc_host *mmc)
    {
    return 0;
    }

    Thanks and regards,

    Sujay