Hi all,
Pls ignore the above message. I started afresh.
I applied the patch given at
http://caiaq.org/download...9.2-mx3lite.patch.gz against a clean linux-2.6.19.2 tree (unpatched, download from kernel.org).
We followed the steps given in the link
http://www.logicpd.com/su...iewtopic.php?t=1074,
We loaded the bootloader and the zImage
We are getting the following kernel panic.(lengthy one..pls see the end)
losh> load elf /tftp/192.168.0.121:/tftpboot/loader
loading from /tftp/192.168.0.121:/tftpboot/loader:
......
ELF section 0: download address: 0x80208000 load address: 0x800d0000
loaded 1240 @ 0x800d0000 Ram
...done
file loaded
losh> load raw 0x81000000 1514816 /tftp/192.168.0.121:/tftpboot/zImage
loading from /tftp/192.168.0.121:/tftpboot/zImage:
loading raw binary to 0x81000000 (ram) len 00171d40:
............................................................................................................................efile loaded
losh> exec 0x800d03a8 -
Uncompressing Linux.................................................................................................. done, .[ 53.960000] Linux version 2.6.19.2 (imx31@192.168.0.7) (gcc version 4.1.1) #4 PREEMPT Thu Jul 19 12:58:37 IST 2007
[ 52.960000] CPU: Some Random V6 Processor [4107b364] revision 4 (ARMv6TEJ), cr=00c5387f
[ 52.960000] Machine: Freescale i.MX31 litekit
[ 52.960000] Memory policy: ECC disabled, Data cache writeback
[ 52.960000] CPU0: D VIPT write-back cache
[ 52.960000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[ 52.960000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[ 52.960000] Built 1 zonelists. Total pages: 28448
[ 53.960000] Kernel command line: console=ttymxc0 root=/dev/nfs nfsroot=192.168.0.121:/tftpboot/rootfs rw ip=192.168.0.12:n[ 54.960000] MXC IRQ initialized
[ 52.960000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 54.960000] Clock input source is 27000000
[ 54.960000]
[ 52.960000] WARNING: Can't generate CLOCK_TICK_RATE at 16625000 Hz
[ 54.960000] Actual CLOCK_TICK_RATE is 17264423 Hz
[ 52.960000] Console: colour dummy device 80x30
[ 52.960000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 52.960000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 54.970000] Memory: 112MB = 112MB total
[ 53.970000] Memory: 110464KB available (2512K code, 552K data, 104K init)
[ 52.180000] Mount-cache hash table entries: 512
[ 54.180000] CPU: Testing write buffer coherency: ok
[ 54.180000] NET: Registered protocol family 16
[ 54.180000] MXC GPIO hardware
[ 54.180000] system_rev is: 0x11
[ 52.180000] Irq init for eth0
[ 52.180000] L2 cache: WB
[ 52.180000] kobject_add failed for MX31ADS/MX31LITE PC (-13)
[ 54.180000] Using SDMA I.API
[ 54.180000] MXC DMA API initialized
[ 54.180000] usb: isp1504 registered
[ 54.180000] usb: Host 2 registered
[ 54.180000] usb: OTG HS Host registered
[ 54.180000] usb: OTG HS Gadget registered
[ 53.190000] SCSI subsystem initialized
[ 54.190000] MXC I2C driver
[ 54.200000] NET: Registered protocol family 2
[ 52.290000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 52.290000] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 52.290000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 54.290000] TCP: Hash tables configured (established 4096 bind 2048)
[ 54.290000] TCP reno registered
[ 54.290000] Low-Level PM Driver module loaded
[ 52.290000] Freescale i.MX31 Dynamic Power Management.
[ 54.290000] JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
[ 54.290000] io scheduler noop registered
[ 54.290000] io scheduler anticipatory registered
[ 54.290000] io scheduler deadline registered
[ 54.290000] io scheduler cfq registered (default)
[ 54.530000] No external RTC clock
[ 52.530000] Real TIme clock Driver v1.0
[ 52.530000] mxc_rtc: probe of mxc_rtc.0 failed with error -2
[ 54.530000] MXC WatchDog Driver 2.0
[ 54.540000] MXC Watchdog # 0 Timer: initial timeout 60 sec
[ 54.540000] Serial: MXC Internal UART driver
[ 54.540000] mxcintuart.0: ttymxc0 at MMIO 0x43f90000 (irq = 45) is a Freescale MXC
[ 54.830000] mxcintuart.1: ttymxc1 at MMIO 0x43f94000 (irq = 32) is a Freescale MXC
[ 54.840000] mxcintuart.2: ttymxc2 at MMIO 0x5000c000 (irq = 18) is a Freescale MXC
[ 54.850000] mxcintuart.4: ttymxc4 at MMIO 0x43fb4000 (irq = 47) is a Freescale MXC
[ 52.860000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[ 54.870000] loop: loaded (max 8 devices)
[ 54.880000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[ 54.880000] ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
[ 54.890000] MXC: IDE driver, (c) 2004-2006 Freescale Semiconductor
[ 54.900000] mxc_ide_resetproc: resetting ATA controller
[ 54.510000] ide0: Bus empty, interface released.
[ 54.510000] MXC MTD nor Driver 2.0
[ 54.510000] mxc_nor_flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
[ 53.520000] Support for command set 0003 not present
[ 52.530000] gen_probe: No supported Vendor Command Set found
[ 52.540000] mxc_nor_flash: probe of mxc_nor_flash.0 failed with error -5
[ 54.540000] MXC MTD nand Driver 2.0
[ 54.550000] NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
[ 54.560000] Scanning device for bad blocks
[ 52.560000] Bad eraseblock 0 at 0x00000000
[ 53.910000] Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
[ 53.920000] 0x00000000-0x00200000 : "nand.kernel"
[ 53.920000] 0x00200000-0x04000000 : "nand.rootfs"
[ 53.930000] 0x00000000-0x04000000 : "<NULL>"
[ 53.940000] 0x00000000-0x04000000 : "<NULL>"
[ 54.940000] mice: PS/2 mouse device common for all mice
[ 54.950000] i2c /dev entries driver
[ 54.950000] SSI module loaded successfully
[ 52.960000] RNG Driver: Loading
[ 54.960000] SEC: mxc_sec_mod_init() called
[ 54.970000] MXC MMC/SD driver
[ 54.970000] mxcmci-0 found
[ 54.100000] oprofile: using arm/arm11
[ 54.100000] TCP cubic registered
[ 54.110000] NET: Registered protocol family 1
[ 54.110000] NET: Registered protocol family 17
[ 54.120000] ieee80211: 802.11 data/management/control stack, git-1.1.13
[ 54.120000] ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
[ 52.130000] Power Management for Freescale MX31
[ 54.140000] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 2
[ 52.150000] VFS: Cannot open root device "nfs" or unknown-block(0,255)
[ 52.150000] Please append a correct "root=" boot option
[ 48.160000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
[ 52.170000]
The command line we used is "console=ttymxc0 root=/dev/nfs nfsroot=192.168.0.121:/tftpboot/rootfs rw ip=192.168.0.12::192.168.0.1:255.255.255.0 noalign".
And the /etc/export file looks like this:
#
/tftpboot/rootfs 192.168.0.12(rw,sync)
NFS server is running and when i checked with this command:
# /usr/sbin/exportfs
/home/imx31/ltib-imx31ads-20070511/rootfs
192.168.0.12
Could anyone tell us what needs to be done here?
Also since no rootfs directory was generated, i used the one which i got when i built the ADS rel4 BSP code.
Thanks