linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Load Kernel 2.6 using U-boot on ML403
@ 2008-01-27  7:10 Yedu Jathavedan
  2008-01-27 21:13 ` Grant Likely
  2008-01-28 15:47 ` Robert Woodworth
  0 siblings, 2 replies; 5+ messages in thread
From: Yedu Jathavedan @ 2008-01-27  7:10 UTC (permalink / raw)
  To: linuxppc-embedded


[-- Attachment #1.1: Plaintext Version of Message --]
[-- Type: text/plain, Size: 6997 bytes --]



   Hi,
/I have downloaded the 2.6 kernel from  
/http://git.secretlab.ca/git/linux-2.6-virtex.git , installed &  
compiled it. I used "make ARCH=ppc CROSS_COMPILE=ppc_4xx-  
ml403_defconfig" to build the .config file. (As explained in  
http://wiki.secretlab.ca/index.php/Linux_on_Xilinx_Virtex)PROBLEM -

   1)Downloaded(sourceforge.net) & compiled the U-boot 1.1.6 files to  
get u-boot, u-boot.srec & u-boot.bin (I didn't find ml403 board config  
for the uboot. So used ml300_config).

   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?

   $ xmd -tcl genace.tcl -jprog -board ml403 -hw download.bit -elf  
u-boot -ace uboot.ace
Xilinx EDK 9.1 Build EDK_J.19
Executing xmd script : $HOME/EDK/data/xmd/genace.tcl

#######################################################################
XMD GenACE utility. Generate SystemACE File from bit/elf/data Files
#######################################################################
Target Type not defined for Processor 1, Using default Target Type ppc_hw
GenACE Options:
        Board      : ml403
        Jtag Devs  : xcf32p xc4vfx12 xc95144xl
        FPGA pos   : 2
        JPROG      : true
        HW File    : download.bit
        ACE File   : uboot.ace
        nCPUs      : 1

        Processor ppc_hw_1 Information
                Debug opt : -debugdevice devicenr 2 cpunr 1
                ELF files : u-boot
                Start PC Address : 0xfff80000

############################################################
Converting Bitstream 'download.bit' to SVF file 'download.svf'
Executing 'impact -batch bit2svf.scr'
Copying download.svf File to  uboot.svf File
############################################################
Converting ELF file 'u-boot' to SVF file 'u-boot.svf'
Error: E02 Failed to download ELF file

ERROR(1053): UNABLE to Read Elf File. The Elf File Maybe Corrupted
        : u-boot
#$
-------------------------
PROBLEM -
2) Since generating ace files failed, I tried to search the net for an  
u-boot ace file that could run on ML403 & found it at   
http://88.191.24.164/docenligne/projets/samba/2006/linux-embarque-sur-ml-403/u-boot-ml403.ace/view

   I copied this ace file (u-boot-ml403.ace) along with the kernel 2.6  
image (uImage) onto my CF card & booted the board. After loading the  
kernel, it fails to read the correct root device. I tried changing the  
"bootargs" env variable root = /dev/xsysace/disc0/part2 rw to root =  
/dev/xsysace2 rw & root = /dev/xsda2 rw.

   But, it failed in both cases. (There was a previous post on  
Problem2 a year ago & he solved it by giving root =/dev/xsysace2)

   Environment size: 246/1020 bytes
#u-boot> setenv bootargs console=ttyS0,9600 root=/dev/xsysace2 rw    
#u-boot> fatload ace 0 0x400000 uImage
reading uImage

952237 bytes read
#u-boot>  bootm 0x400000
## Booting image at 00400000 ...
   Image Name:   Linux-2.6.24-rc3
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    952173 Bytes = 929.9 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
[    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
[    0.000000] Xilinx ML403 Reference System (Virtex-4 FX)
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA             0 ->    16384
[    0.000000]   Normal      16384 ->    16384
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0:        0 ->    16384
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.   
Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,9600 ip=off  
root=/dev/xsysace  root=/dev/xsysace2 rw
[    0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped to 0xFDFFEFC0
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000179] Console: colour dummy device 80x25
[    0.000669] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.001431] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.015197] Memory: 62860k available (1452k kernel code, 496k data,  
96k init, 0k highmem)
[    0.204614] Mount-cache hash table entries: 512
[    0.209345] net_namespace: 64 bytes
[    0.213840] NET: Registered protocol family 16
[    0.252576] NET: Registered protocol family 2
[    0.288713] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.291229] TCP established hash table entries: 2048 (order: 2,  
16384 bytes)
[    0.291535] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.291709] TCP: Hash tables configured (established 2048 bind 2048)
[    0.291737] TCP reno registered
[    0.301433] sysctl table check failed: /kernel/l2cr .1.31 Missing strategy
[    0.301509] Call Trace:
[    0.301528] [c3c17e80] [c00084f4] show_stack+0x4c/0x174 (unreliable)
[    0.301611] [c3c17eb0] [c00305e0] set_fail+0x50/0x68
[    0.301678] [c3c17ed0] [c0030c68] sysctl_check_table+0x670/0x6bc
[    0.301726] [c3c17f10] [c0030c7c] sysctl_check_table+0x684/0x6bc
[    0.301771] [c3c17f50] [c001df28] register_sysctl_table+0x5c/0xac
[    0.301832] [c3c17f70] [c01dca84] register_ppc_htab_sysctl+0x18/0x2c
[    0.301897] [c3c17f80] [c01d6848] kernel_init+0xc8/0x284
[    0.301938] [c3c17ff0] [c0004af8] kernel_thread+0x44/0x60
[    0.307739] io scheduler noop registered
[    0.307792] io scheduler anticipatory registered (default)
[    0.307817] io scheduler deadline registered
[    0.307967] io scheduler cfq registered
[    0.364669] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports,  
IRQ sharing disabled
[    0.370815] serial8250.0: ttyS0 at MMIO 0xa0001003 (irq = 9) is a 16450
[    0.370893] console [ttyS0] enabled
[    3.286815] RAMDISK driver initialized: 16 RAM disks of 65536K size  
1024 blocksize
[    3.376997] tun: Universal TUN/TAP device driver, 1.6
[    3.437161] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    3.512736] mice: PS/2 mouse device common for all mice
[    3.574814] TCP cubic registered
[    3.613145] NET: Registered protocol family 1
[    3.665227] NET: Registered protocol family 17
[    3.720647] VFS: Cannot open root device "xsysace2" or unknown-block(0,0)
[    3.801333] Please append a correct "root=" boot option; here are  
the available partitions:
[    3.901354] Kernel panic - not syncing: VFS: Unable to mount root  
fs on unknown-block(0,0)
[    4.000286] Rebooting in 180 seconds..
-------------------------
Can anyone help me with either one (or both) of the above problems?  I  
have pretty much run out of ideas. :(

   Thanks & Regards,
Yedu



[-- Attachment #1.2: HTML Version of Message --]
[-- Type: text/html, Size: 8005 bytes --]

[-- Attachment #2.1: Type: multipart/alternative, Size: 0 bytes --]

[-- Attachment #2.2: Plaintext Version of Message --]
[-- Type: text/plain, Size: 429 bytes --]



Hi,

/ GOAL - To use the USB Host on ML403 in a PowerPC processor reference  
system to store some data on a Thumb Drive./

   /BACKGROUND - I downloaded the 2.6 kernel from  
/http://git.secretlab.ca/git/linux-2.6-virtex.git , installed &  
compiled it to get uImage & zImage.elf files. I used "make  
ml403_defconfig" to build the .config file. (As explained in  
http://wiki.secretlab.ca/index.php/Linux_on_Xilinx_Virtex)



[-- Attachment #2.3: HTML Version of Message --]
[-- Type: text/html, Size: 693 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Load Kernel 2.6 using U-boot on ML403
  2008-01-27  7:10 Load Kernel 2.6 using U-boot on ML403 Yedu Jathavedan
@ 2008-01-27 21:13 ` Grant Likely
  2008-01-28  4:25   ` Yedu Jathavedan
  2008-01-28 15:47 ` Robert Woodworth
  1 sibling, 1 reply; 5+ messages in thread
From: Grant Likely @ 2008-01-27 21:13 UTC (permalink / raw)
  To: Yedu Jathavedan; +Cc: linuxppc-embedded

On 1/27/08, Yedu Jathavedan <yeduj@ece.pdx.edu> wrote:
>
> 1)Downloaded(sourceforge.net) & compiled the U-boot 1.1.6 files to get
> u-boot, u-boot.srec & u-boot.bin (I didn't find ml403 board config for the
> uboot. So used ml300_config).

U-boot 1.1.6 is ancient.  The u-boot project has moved off of
sourceforge to denx.de

> 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?

I don't know; but personally I don't weld u-boot into an ace file. I
use a 1st stage bootloader to load the u-boot image off the cf card
(but unfortunately I'm not able to post that loader at this time).
Try again with a recent u-boot version.

> 2) Since generating ace files failed, I tried to search the net for an
> u-boot ace file that could run on ML403 & found it at
> http://88.191.24.164/docenligne/projets/samba/2006/linux-embarque-sur-ml-403/u-boot-ml403.ace/view
>
> I copied this ace file (u-boot-ml403.ace) along with the kernel 2.6 image
> (uImage) onto my CF card & booted the board. After loading the kernel, it
> fails to read the correct root device. I tried changing the "bootargs" env
> variable root = /dev/xsysace/disc0/part2 rw to root = /dev/xsysace2 rw &
> root = /dev/xsda2 rw.
>
> But, it failed in both cases. (There was a previous post on Problem2 a year
> ago & he solved it by giving root =/dev/xsysace2)

Looking at your bootlog, it doesn't look like you've got the systemace
driver built into the kernel.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Load Kernel 2.6 using U-boot on ML403
  2008-01-27 21:13 ` Grant Likely
@ 2008-01-28  4:25   ` Yedu Jathavedan
  2008-01-28 15:51     ` Robert Woodworth
  0 siblings, 1 reply; 5+ messages in thread
From: Yedu Jathavedan @ 2008-01-28  4:25 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded


>
> Looking at your bootlog, it doesn't look like you've got the systemace
> driver built into the kernel.
>
>
Grant,

Yes, the systemace was not built into the kernel. It is successfully  
booting the kernel now.
Trying to bring up the Ethernet interface. Any pointers?

Thank you,
Yedu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Load Kernel 2.6 using U-boot on ML403
  2008-01-27  7:10 Load Kernel 2.6 using U-boot on ML403 Yedu Jathavedan
  2008-01-27 21:13 ` Grant Likely
@ 2008-01-28 15:47 ` Robert Woodworth
  1 sibling, 0 replies; 5+ messages in thread
From: Robert Woodworth @ 2008-01-28 15:47 UTC (permalink / raw)
  To: Yedu Jathavedan; +Cc: linuxppc-embedded

Do you really need u-boot??

I'm using an ML403 without u-boot.  I've generated my .ace file with the
zImage.elf directly and it works fine.



If there is a choice of u-boot or not, why choose u-boot?


RJW.




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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Load Kernel 2.6 using U-boot on ML403
  2008-01-28  4:25   ` Yedu Jathavedan
@ 2008-01-28 15:51     ` Robert Woodworth
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Woodworth @ 2008-01-28 15:51 UTC (permalink / raw)
  To: Yedu Jathavedan; +Cc: linuxppc-embedded

If you're starting a new design, I *highly* recommend using EDK9.2 with
MPMC3 and LL_TEMAC.

Using the Wizard in EDK9.2 and using the kernel from git.xilinx.com
everything will work fine out-of-the-box.  Including the ethernet.

I've had troubles with the older (EDK9.1) TEMAC and GigE switches not
syncing correctly.   The LL_TEMAC in EDK9.2 solved this issue.



RJW.



On Sun, 2008-01-27 at 20:25 -0800, Yedu Jathavedan wrote:
> >
> > Looking at your bootlog, it doesn't look like you've got the systemace
> > driver built into the kernel.
> >
> >
> Grant,
> 
> Yes, the systemace was not built into the kernel. It is successfully  
> booting the kernel now.
> Trying to bring up the Ethernet interface. Any pointers?
> 
> Thank you,
> Yedu
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-28 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27  7:10 Load Kernel 2.6 using U-boot on ML403 Yedu Jathavedan
2008-01-27 21:13 ` Grant Likely
2008-01-28  4:25   ` Yedu Jathavedan
2008-01-28 15:51     ` Robert Woodworth
2008-01-28 15:47 ` Robert Woodworth

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).