booting 2.6 kernel on ML403

Pradeep Sampath pradeepsampath at yahoo.com
Tue Oct 3 16:42:27 EST 2006


Hello Ameet/Ming!
   
  I am running linux kernel 2.6 on a ML403. Your posts on the list was extremely helpful and saved a lot of time. But i have ran into a number of issues and need your help. I have described both the scenarios.
   
  Problem 1:
  I followed the steps described in http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/
  After the kernel boots towards the end i get a failure - unknown-block(0,0)

  [    3.012128] VFS: Cannot open root device "sda2" or unknown-block(0,0)
[    3.088465] Please append a correct "root=" boot option
[    3.150933] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[    3.249891]  <0>Rebooting in 180 seconds..
   
  On the linux partition of my CF card i created the following block device files
  # mknod -m 660 console c 5 1
# mknod -m 660 sda b 254 0
# mknod -m 660 sda1 b 254 1
# mknod -m 660 sda2 b 254 2
# mknod -m 660 sda3 b 254 3
  mkdir tts
# mknod -m 660 0 b 4 64


  But the result was same as above. 
  What should be my default bootloader kernel arguments?
  console=ttyS0,9600 root=/dev/sda2
  or 
  console=ttyS0,9600 root=/dev/xsa2
  or
  console=ttyS0,9600 root=/dev/xsysace/disc0/part2 rw
   
  I am confused. How do we determine the device name of the CF card?
   
  I have 2 partitions on my CF card - Partition1 is DOS FAT16 partition, Partition2 is Linux with ext3 filesystem.

  
 
  Here is the full log of the serial terminal:
Linux/PPC load: console=ttyS0,9600 root=/dev/sda2
Uncompressing Linux...done.
Now booting the kernel
[    0.000000] Linux version 2.6.17.1 (psampath at psampath-test) (gcc version 3.4.
1) #3 Mon Oct 2 14:43:23 PDT 2006
[    0.000000] Xilinx ML403 Reference System (Virtex-4 FX)
[    0.000000] Built 1 zonelists
[    0.000000] Kernel command line: console=ttyS0,9600 root=/dev/sda2
[    0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped to 0xFDFFEFC0
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000166] Console: colour dummy device 80x25
[    0.000650] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.001465] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.014853] Memory: 62524k available (1736k kernel code, 552k data, 84k init,
 0k highmem)
[    0.104274] Security Framework v1.0.0 initialized
[    0.104471] Mount-cache hash table entries: 512
[    0.110096] NET: Registered protocol family 16
[    0.118276] NET: Registered protocol family 2
[    0.152515] IP route cache hash table entries: 512 (order: -1, 2048 bytes)
[    0.153502] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.153689] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.153787] TCP: Hash tables configured (established 2048 bind 1024)
[    0.153814] TCP reno registered
[    0.161503] VFS: Disk quotas dquot_6.5.1
[    0.161747] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.162380] Initializing Cryptographic API
[    0.162433] io scheduler noop registered
[    0.162534] io scheduler anticipatory registered (default)
[    0.162630] io scheduler deadline registered
[    0.162764] io scheduler cfq registered
[    0.773694] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
enabled
[    0.782331] serial8250.0: ttyS0 at MMIO 0xa0001003 (irq = 9) is a 16450
[    2.663867] RAMDISK driver initialized: 16 RAM disks of 300000K size 1024 blo
cksize
[    2.758159] i8042.c: No controller found.
[    2.806550] mice: PS/2 mouse device common for all mice
[    2.869032] TCP bic registered
[    2.904787] NET: Registered protocol family 8
[    2.956790] NET: Registered protocol family 20
[    3.012128] VFS: Cannot open root device "sda2" or unknown-block(0,0)
[    3.088465] Please append a correct "root=" boot option
[    3.150933] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[    3.249891]  <0>Rebooting in 180 seconds..
   
  Problem 2:
  - Untar the kernel 2.6.17.1
  - Applied the 5 TEMAC patches
  - Applied Ameet's Sysace patch 
  - copied the xparameters_ml403.h to the arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h generated by EDK
   
  - After including the network driver and sysace driver in "make menuconfig" and generating the zImage and booting the board the kernel hangs.
   
  loaded at:     00400000 0051613C
board data at: 00514124 0051413C
relocated to:  004050E8 00405100
zimage at:     00405881 005137E8
avail ram:     00517000 10000000
  Linux/PPC load: console=ttyS0,9600 root=/dev/sda2
Uncompressing Linux...done.
Now booting the kernel

  I suspect the xparameter addresses are incorrect. Which parameter should i modify in the xparameters_ml403.h?
   
  Kindly send a reply at your earliest. 
  Thanks!
  Pradeep

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20061002/e9532a51/attachment.htm 


More information about the Linuxppc-embedded mailing list