Hi,
I am facing a kernel panic error when booting iMX25 PDK with SD Card. Need help to resolve this error. Screen shot is attached
Thanks,
Arumugam R
I have exactly the same problem, very frustrating. I need to establish a working toolchain, or abandon this and find something that works.
I installed the Linux VM on a Windows system. BTE: The system REALLY should ship with an errata sheet -- just getting thru the apt updates was annoying. But set that aside.
I ran the config, set in a few options, did a build, and made an SD card. Kernel panic.
Examine the config about 12 times, same thing.
Okay, maybe I did something horribly wrong. Build a pristine VM, run configure and accept the defaults. Build a new image, copy to SD card.
Same crap. Boot file is attached.
Any ideas where to go from here ? Or should I give up ?
I looked at your log, and it does seem to be a different issue as the one reported in this thread.
Your log does not show your complete kernel command line, but you are passing "gpmi" and trying to boot from SD card.
This is not correct as per the mx28evk Linux BSP User Guide document. You should pass "ssp1" instead.
Other than that, you are using a 2.6.31 kernel on mx28evk and I would strongly recommend to upgrade this kernel and the options are:
- 2.6.35 kernel from FSL + LTIB root file system
- 3.8 kernel from kernel.org + Yocto root file system
Both options work well.
By the way, Yocto generates an image that you can simply do a 'dd' into your SD card and you have a bootable system.
Hi,
Please find below full log. Please let me know if you find anything wrong...
U-Boot 2009.08 (Jan 10 2013 - 17:01:27)
CPU: Freescale i.MX25 at 398 MHz
mx25 cpu clock: 398MHz
ipg clock : 66498560Hz
Board: i.MX25 MAX PDK (3DS)
I2C: ready
DRAM: 64 MB
NAND: Unrecognized NAND Flash device.
256 MiB
MMC: FSL_ESDHC: 0
In: serial
Out: serial
Err: serial
Net: smc911x-0 [PRIME], FEC0
Hit any key to stop autoboot: 3 2 1 0
MMC read: dev # 0, block # 2048, count 4096 ... 4096 blocks read: OK
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-2.6.31-207-g7286c01
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2026988 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................
................................................................................
.. done, booting the kernel.
Linux version 2.6.31-207-g7286c01 (arumugam@arumugam-laptop) (gcc version 4.1.2)
#2 PREEMPT Mon Feb 11 16:18:16 IST 2013
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX25 3-Stack Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 ip=none rootfsty
pe=ext2 init=/etc/inittab
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60156KB available (3768K code, 454K data, 420K init, 0K highmem)
NR_IRQS:272
MXC IRQ initialized
Clock input source is 24000000
Console: colour dummy device 80x30
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
AIPS1 VA base: 0xfc000000
CPU is i.MX25 Revision 1.0
MXC GPIO hardware
Using SDMA I.API
MXC DMA API initialized
bio: create slab <bio-0> at 0
SCSI subsystem initialized
CSPI: mxc_spi-0 probed
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
MXC I2C driver
regulator: REG1_BKLT: 4500 <--> 5500 mV
regulator: REG2_CPU: 2640 <--> 3877 mV
regulator: REG3_CORE: 1160 <--> 1703 mV
regulator: REG4_DDR: 1440 <--> 2115 mV
regulator: REG5_PERS: 2640 <--> 3877 mV
mc34704 0-0054: Loaded
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
Bus freq driver module loaded
Registering the CPLD Driver
3-Stack Debug board detected, rev = 0x3000300
usb: Host 2 host (serial) registered
usb: DR OTG registered
usb: DR host (utmi) registered
usb: DR gadget (utmi) registered
i.MXC CPU frequency driver
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 117
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
MXC Backlight Device mxc_lcdc_bl.0 Initialized.
Console: switching to colour frame buffer device 80x30
mxc_sdc_fb mxc_sdc_fb.0: fb0: DISP0 BG fb device registered successfully.
mxc_sdc_fb mxc_sdc_fb.0: fb1: DISP0 FG fb device registered successfully.
Serial: MXC Internal UART driver
mxcintuart.0: ttymxc0 at MMIO 0x43f90000 (irq = 45) is a Freescale i.MX
console [ttymxc0] enabled
mxcintuart.1: ttymxc1 at MMIO 0x43f94000 (irq = 32) is a Freescale i.MX
brd: module loaded
loop: module loaded
Freescale FlexCAN Driver
MXC MTD nand Driver 2.5
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit
)
Unrecognized NAND Flash device.
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
MXC keypad loaded
input: mxckpd as /class/input/input0
IMXDI Realtime Clock Driver (RTC)
imxdi_rtc imxdi_rtc.0: rtc core: registered imxdi_rtc as rtc0
Linux video capture interface: v2.00
PMIC Character device: successfully loaded
i.MX ADC at 0x50030000 irq 46
mxsdhci: MXC Secure Digital Host Controller Interface driver
mxsdhci: MXC SDHCI Controller Driver.
mmc0: SDHCI detect irq 161 irq 9 INTERNAL DMA
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.20.
regulator: Unable to get requested regulator: VDDD
sgtl5000-i2c 0-000a: SGTL5000 revision 17
No device for DAI imx-ssi-1-0
No device for DAI imx-ssi-1-1
No device for DAI imx-ssi-2-0
No device for DAI imx-ssi-2-1
DMA Sound Buffers Allocated:UseIram=1 buf->addr=78001000 buf->area=c4880000 size
=65536
DMA Sound Buffers Allocated:UseIram=1 buf->addr=83a90000 buf->area=fdf2d000 size
=65536
asoc: SGTL5000 <-> imx-ssi-1-0 mapping ok
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU04G 3.69 GiB
mmcblk0: p1
ALSA device list:
#0: imx-3stack (SGTL5000)
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
smsc911x: Driver version 2008-10-21.
smsc911x-mdio: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
net eth0: MAC Address: 00:04:9f:01:d6:c3
Static Power Management for Freescale i.MX25
regulator_init_complete: incomplete constraints, leaving REG5_PERS on
regulator_init_complete: incomplete constraints, leaving REG1_BKLT on
input: imx_adc_ts as /class/input/input1
i.MX ADC input touchscreen loaded.
imxdi_rtc imxdi_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:1.
Freeing init memory: 420K
Failed to execute /etc/inittab. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Thanks,
Arumugam R
It's preferred to use ext3 instead of ext2.
Try the command line below as per mx25 Linux BSP User guide document:
noinitrd console=ttymxc0 root=/dev/mmcblk0p1 rootfstype=ext3 rw ip=dhcp