<p>
<font size="2">Hi,</font><br /><font size="2"><i>I
have downloaded the 2.6 kernel from </i><a class="fixed"
href="http://git.secretlab.ca/git/linux-2.6-virtex.git"
target="_blank">http://git.secretlab.ca/git/linux-2.6-virtex.git</a> , installed
&amp; compiled it. I used &quot;make
ARCH=ppc CROSS_COMPILE=ppc_4xx- ml403_defconfig&quot; to build the .config file.
(As explained in <a class="fixed"
href="http://wiki.secretlab.ca/index.php/Linux_on_Xilinx_Virtex"
target="_blank">http://wiki.secretlab.ca/index.php/Linux_on_Xilinx_Virtex</a>)</font></p><b>Problem
-</b><br /><p><font size="2">1)Downloaded(sourceforge.net) &amp; compiled the
U-boot 1.1.6 files to get u-boot, u-boot.srec &amp; u-boot.bin (I didn't find
ml403 board config for the uboot. So used ml300_config). </font></p><p><font
size="2">After this, I tried to convert the u-boot (README says that this is an
ELF file) into an ace file. But, it gave me the error saying unable to read elf
file. Is it because ML403 board is not supported or is it possible that the
u-boot image that I created is corrupted?</font></p><p><font size="2"><i>$ xmd
-tcl genace.tcl -jprog -board ml403 -hw download.bit -elf u-boot -ace
uboot.ace<br />Xilinx EDK 9.1 Build EDK_J.19<br />Executing xmd script :
$HOME/EDK/data/xmd/genace.tcl<br /><br
/>#######################################################################<br
/>XMD GenACE utility. Generate SystemACE File from bit/elf/data Files<br
/>#######################################################################<br
/>Target Type not defined for Processor 1, Using default Target Type ppc_hw<br
/>GenACE Options:<br />        Board      : ml403<br />        Jtag Devs  :
xcf32p xc4vfx12 xc95144xl<br />        FPGA pos   : 2<br />        JPROG      :
true<br />        HW File    : download.bit<br />        ACE File   :
uboot.ace<br />        nCPUs      : 1<br /><br />        Processor ppc_hw_1
Information<br />                Debug opt : -debugdevice devicenr 2 cpunr 1<br
/>                ELF files : u-boot<br />                Start PC Address :
0xfff80000<br /><br
/>############################################################<br />Converting
Bitstream 'download.bit' to SVF file 'download.svf'<br />Executing 'impact
-batch bit2svf.scr'<br />Copying download.svf File to  uboot.svf File<br
/>############################################################<br />Converting
ELF file 'u-boot' to SVF file 'u-boot.svf'<br />Error: E02 Failed to download
ELF file<br /><br />ERROR(1053): UNABLE to Read Elf File. The Elf File Maybe
Corrupted<br />        : u-boot<br />#$</i></font></p><hr width="100%" size="2"
/><font size="2"><b>Problem -</b><br />2) Since generating ace files failed, I
tried to search the net for an u-boot ace file that could run on ML403 &amp;
found it at 
http://88.191.24.164/docenligne/projets/samba/2006/linux-embarque-sur-ml-403/u-boot-ml403.ace/view</font><p><font
size="2">I copied this ace file (u-boot-ml403.ace) along with the kernel 2.6
image (uImage) onto my CF card &amp; booted the board. After loading the kernel,
it fails to read the correct root device. I tried changing the
&quot;bootargs&quot; env variable root = /dev/xsysace/disc0/part2 rw to root =
/dev/xsysace2 rw &amp; root = /dev/xsda2 rw.</font></p><p><font size="2">But, it
failed in both cases. (There was a previous post on Problem2 a year ago &amp; he
solved it by giving root =/dev/xsysace2)</font></p><p><font
size="2"><i>Environment size: 246/1020 bytes<br />#u-boot&gt; setenv bootargs
console=ttyS0,9600 root=/dev/xsysace2 rw     <br />#u-boot&gt; fatload ace 0
0x400000 uImage<br />reading uImage<br /><br />952237 bytes read<br
/>#u-boot&gt;  bootm 0x400000<br />## Booting image at 00400000 ...<br />  
Image Name:   Linux-2.6.24-rc3<br />   Image Type:   PowerPC Linux Kernel Image
(gzip compressed)<br />   Data Size:    952173 Bytes = 929.9 kB<br />   Load
Address: 00000000<br />   Entry Point:  00000000<br />   Verifying Checksum ...
OK<br />   Uncompressing Kernel Image ... OK<br />[    0.000000] Linux version
2.6.24-rc3 (icdt@icdt05) (gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)) #1 Fri Jan 25
21:23:54 PST 2008<br />[    0.000000] Xilinx ML403 Reference System (Virtex-4
FX)<br />[    0.000000] Zone PFN ranges:<br />[    0.000000]   DMA             0
-&gt;    16384<br />[    0.000000]   Normal      16384 -&gt;    16384<br />[   
0.000000] Movable zone start PFN for each node<br />[    0.000000]
early_node_map[1] active PFN ranges<br />[    0.000000]     0:        0 -&gt;   
16384<br />[    0.000000] Built 1 zonelists in Zone order, mobility grouping
on.  Total pages: 16256<br />[    0.000000] Kernel command line:
console=ttyS0,9600 ip=off root=/dev/xsysace  root=/dev/xsysace2 rw<br />[   
0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped to 0xFDFFEFC0<br />[    0.000000]
PID hash table entries: 256 (order: 8, 1024 bytes)<br />[    0.000179] Console:
colour dummy device 80x25<br />[    0.000669] Dentry cache hash table entries:
8192 (order: 3, 32768 bytes)<br />[    0.001431] Inode-cache hash table entries:
4096 (order: 2, 16384 bytes)<br />[    0.015197] Memory: 62860k available (1452k
kernel code, 496k data, 96k init, 0k highmem)<br />[    0.204614] Mount-cache
hash table entries: 512<br />[    0.209345] net_namespace: 64 bytes<br />[   
0.213840] NET: Registered protocol family 16<br />[    0.252576] NET: Registered
protocol family 2<br />[    0.288713] IP route cache hash table entries: 1024
(order: 0, 4096 bytes)<br />[    0.291229] TCP established hash table entries:
2048 (order: 2, 16384 bytes)<br />[    0.291535] TCP bind hash table entries:
2048 (order: 1, 8192 bytes)<br />[    0.291709] TCP: Hash tables configured
(established 2048 bind 2048)<br />[    0.291737] TCP reno registered<br />[   
0.301433] sysctl table check failed: /kernel/l2cr .1.31 Missing strategy<br
/>[    0.301509] Call Trace:<br />[    0.301528] [c3c17e80] [c00084f4]
show_stack+0x4c/0x174 (unreliable)<br />[    0.301611] [c3c17eb0] [c00305e0]
set_fail+0x50/0x68<br />[    0.301678] [c3c17ed0] [c0030c68]
sysctl_check_table+0x670/0x6bc<br />[    0.301726] [c3c17f10] [c0030c7c]
sysctl_check_table+0x684/0x6bc<br />[    0.301771] [c3c17f50] [c001df28]
register_sysctl_table+0x5c/0xac<br />[    0.301832] [c3c17f70] [c01dca84]
register_ppc_htab_sysctl+0x18/0x2c<br />[    0.301897] [c3c17f80] [c01d6848]
kernel_init+0xc8/0x284<br />[    0.301938] [c3c17ff0] [c0004af8]
kernel_thread+0x44/0x60<br />[    0.307739] io scheduler noop registered<br
/>[    0.307792] io scheduler anticipatory registered (default)<br />[   
0.307817] io scheduler deadline registered<br />[    0.307967] io scheduler cfq
registered<br />[    0.364669] Serial: 8250/16550 driver $Revision: 1.90 $ 4
ports, IRQ sharing disabled<br />[    0.370815] serial8250.0: ttyS0 at MMIO
0xa0001003 (irq = 9) is a 16450<br />[    0.370893] console [ttyS0] enabled<br
/>[    3.286815] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
blocksize<br />[    3.376997] tun: Universal TUN/TAP device driver, 1.6<br
/>[    3.437161] tun: (C) 1999-2004 Max Krasnyansky &lt;maxk@qualcomm.com&gt;<br
/>[    3.512736] mice: PS/2 mouse device common for all mice<br />[    3.574814]
TCP cubic registered<br />[    3.613145] NET: Registered protocol family 1<br
/>[    3.665227] NET: Registered protocol family 17<br />[    3.720647] VFS:
Cannot open root device &quot;xsysace2&quot; or unknown-block(0,0)<br />[   
3.801333] Please append a correct &quot;root=&quot; boot option; here are the
available partitions:<br />[    3.901354] Kernel panic - not syncing: VFS:
Unable to mount root fs on unknown-block(0,0)<br />[    4.000286] Rebooting in
180 seconds..</i></font></p><hr width="100%" size="2" /><font size="2">Can
anyone help me with either one (or both) of the above problems?  I have pretty
much run out of ideas. :(</font><p><font size="2">Thanks &amp; Regards,<br
/>Yedu</font></p><p />