From: Ameet Patil <ammubhai@gmail.com>
To: Pradeep Sampath <pradeepsampath@yahoo.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: booting 2.6 kernel on ML403
Date: Tue, 03 Oct 2006 09:24:58 +0100 [thread overview]
Message-ID: <45221E5A.6040800@gmail.com> (raw)
In-Reply-To: <20061003064227.58091.qmail@web83213.mail.mud.yahoo.com>
Hi Pradeep,
Pradeep Sampath wrote:
> 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
Note: my driver creates device xsa and not sda. so create xsa, xsa1,
xsa2, etc. in /dev of your CF card instead of sda.
> mkdir tts
> # mknod -m 660 0 b 4 64
please check: this should be a character device. Hence use:
# mknod -m 660 0 c 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
yes! root=/dev/xsa2. This is the right root parameter.
> 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@psampath-test
> <mailto:psampath@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
which patch did you apply? For TEMAC... apply the following patch:
http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17.1-sysace-1.2-after-TEMAC.patch
cheers,
-Ameet
> - 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 prev parent reply other threads:[~2006-10-03 8:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-03 6:42 booting 2.6 kernel on ML403 Pradeep Sampath
2006-10-03 8:24 ` Ameet Patil [this message]
2006-10-03 21:46 ` Pradeep Sampath
2006-10-04 8:00 ` Ameet Patil
2006-10-04 16:47 ` Pradeep Sampath
2006-10-05 8:30 ` Ameet Patil
2006-10-05 15:47 ` Pradeep Sampath
2006-10-06 8:24 ` Ming Liu
2006-10-06 6:37 ` Pradeep Sampath
2006-10-04 8:11 ` Ming Liu
2006-10-04 8:35 ` Ameet Patil
2006-10-04 8:42 ` Ming Liu
2006-10-04 16:35 ` Pradeep Sampath
2006-10-05 8:27 ` Ameet Patil
2006-10-06 8:50 ` David H. Lynch Jr.
-- strict thread matches above, loose matches on Subject: below --
2006-10-04 17:09 John Bonesio
2006-10-04 17:17 John Bonesio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45221E5A.6040800@gmail.com \
--to=ammubhai@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=pradeepsampath@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).