linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Linux doesn not boot from u-boot on ML403
@ 2007-08-27 13:35 Mirek23
  2007-08-27 14:24 ` Grant Likely
  0 siblings, 1 reply; 22+ messages in thread
From: Mirek23 @ 2007-08-27 13:35 UTC (permalink / raw)
  To: linuxppc-embedded


Hi All,

     I run Linux 2.6.21 (by Grant) on my Avnet Virtex-4 evaluation board
(ML403 like). When I load zIinux.elf
via jtag to the board it runs properly:

loaded at:     00400000 004F9138                                                                                                  
board data at: 004F7120 004F7138                                                                                                  
relocated to:  004040B4 004040CC                                                                                                  
zimage at:     00404E59 004F6EE6                                                                                                  
avail ram:     004FA000 01FFFFFF                                                                                                                                                                                                                                     
Linux/PPC load: console=ttyUL0,9600 root=/dev/nfs rw
nfsroot=129.117.144.113:/opt/eldk41/ppc_4xx,tcp 
ip=::::virtex4-mirek:eth0:dhcp panic=1
Uncompressing Linux...done.                                                                                                       
Now booting the kernel                                                                                                             
[0.000000] Linux version 2.6.21-rc6 (root@pc5215) (gcc version 4.0.2) #11
Tue Aug 7 13:46:19 EST 2007                 
[0.000000] Xilinx ML403 Reference System (Virtex-4 FX)                                                                         
.
.
.
.
It goes to the successful end.

I have build u-boot 1.2.0 with uart lite and temac support.

When I am trying to run uImage (build out of zImage) it does not run.

The steps I do are as following:

1. I build uImage withing the kernel tree (make uImage)
2. I load via jtag the u-boot 1.2.0

XMD% dow u-boot.elf
        section, .text: 0x00800000-0x0081513c
        section, .resetvec: 0x0081513c-0x00815140
        section, .rodata: 0x00815140-0x00817ce0
        section, .reloc: 0x00817d00-0x00818674
        section, .data: 0x00818674-0x00818b08
        section, .data.rel: 0x00818b08-0x00818b34
        section, .data.rel.local: 0x00818b34-0x00818f6c
        section, .u_boot_cmd: 0x00818f6c-0x008191dc
        section, .bss: 0x00819200-0x0081dd04

3. I transfer uImage to the RAM memory of my Avnet board:
TFTP from server 129.129.144.113; our IP address is 129.129.144.157                                                               
Filename 'uImage'.                                                                                                                 
Load address: 0x1000000                                                                                                           
Loading: #################################################################                                                                 
#################################################################                                                                 
################################################################                                                         
done                                                                                                                              
Bytes transferred = 991438 (f20ce hex)                                                                                            

4. I am trying to start the kernel

=> bootm 0x1000000
                                                                                                                                                                                                                                          
## Booting image at 01000000 ...                                                                                                     
Image Name:   Linux-2.6.21-rc6                                                                                                    
Image Type:   PowerPC Linux Kernel Image (gzip compressed)                                                                        
Data Size:    991375 Bytes = 968.1 kB                                                                                             
Load Address: 00000000                                                                                                            
Entry Point:  00000000                                                                                                            
Verifying Checksum ... OK                                                                                                         
Uncompressing Kernel Image ... OK                                                                                              


After all system hangs

I have tried to change the Load Address and Entry Point to 0x400000 (mkimage
-a 0x400000 -e 0x400000)
but the system hangs like in the first case.

my bootargs are:
console=ttyUL0,9600 root=/dev/nfs rw
nfsroot=129.117.144.113:/opt/eldk41/ppc_4xx,tcp 
ip=::::virtex4-mirek:eth0:dhcp panic=1

Those bootargs where tested with zImage.elf and seem to be fine.

Does somebody has some suggestion?

Thank you in advance for any hint on that.

Mirek

-- 
View this message in context: http://www.nabble.com/Linux-doesn-not-boot-from-u-boot-on-ML403-tf4335322.html#a12347049
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Linux doesn not boot from u-boot on ML403
@ 2007-09-23 13:27 Miroslaw Dach
  2007-09-23 15:32 ` Grant Likely
  0 siblings, 1 reply; 22+ messages in thread
From: Miroslaw Dach @ 2007-09-23 13:27 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded

Hi Grant,

Thank you very much for your advices which were very valuable for me.

Recently I have followed your advice to move from kernel 2.6.21 to the
higher one in order to have the possibility to boot the kernel from
u-boot. I have copied across from you git tree the latest version of linux
kernel 2.6.23 rc-2.

It compiles successfully with some warnings like below:
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x223c): Section mismatch: reference to .init.text:early_init (between 'start_here' and 'initial_mmu')
WARNING: vmlinux.o(.text+0x2254): Section mismatch: reference to .init.text:machine_init (between 'start_here' and 'initial_mmu')
WARNING: vmlinux.o(.text+0x2258): Section mismatch: reference to .init.text:MMU_init (between 'start_here' and 'initial_mmu')
WARNING: vmlinux.o(.text+0x22b2): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'initial_mmu')
WARNING: vmlinux.o(.text+0x22b6): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'initial_mmu')
   LD      vmlinux


My observation is that the linux 2.6.23 rc-2 is not that stable as 2.6.21.
In most cases It boots successfully (ie. zImage.elf) but occasionally it
fails during booting. It has never occurred with 2.6.21 which I also
copied from your side.

For both kernels I use the same xparamerets_ml403.h file and very similar
.config file

Do you have some idea if it is known problem with booting in 2.6.23 rc-2?  
It of course could be something wrong with my ml403 board but I just
wanted to get your opinion about the stability issue. Maybe it is better
to use 2.6.22?

Second question:

In addition I wanted to ask you about u-boot tree which you have mentioned
in the post on u-boot mailing list. This post was about uart lite for
ml403 in u-boot.

I was not able to find the project which you have mentioned there:
git://git.secretlab.ca/git/u-boot.git

This what interests me in particular concerning u-boot is the uart lite
and temac interfaces from ml403.

Thank you very much in advance for any hint

Best Regards

Mirek

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

end of thread, other threads:[~2007-09-25  8:25 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 13:35 Linux doesn not boot from u-boot on ML403 Mirek23
2007-08-27 14:24 ` Grant Likely
2007-08-27 14:36   ` Miroslaw Dach
2007-08-27 14:53     ` Grant Likely
2007-08-28 11:18       ` Miroslaw Dach
2007-08-28 13:02         ` Grant Likely
2007-08-28 13:37           ` Miroslaw Dach
2007-08-28 13:50             ` Grant Likely
2007-08-28 15:00               ` Miroslaw Dach
2007-08-28 15:10                 ` Grant Likely
2007-08-28 15:22                   ` Miroslaw Dach
2007-08-28 15:28                     ` Grant Likely
2007-08-29  8:41                       ` Miroslaw Dach
2007-08-29 15:17                         ` Grant Likely
2007-08-29 15:31                           ` Miroslaw Dach
2007-08-30  7:50                           ` Miroslaw Dach
2007-08-30 13:21                             ` Grant Likely
2007-08-29 15:32                       ` Miroslaw Dach
  -- strict thread matches above, loose matches on Subject: below --
2007-09-23 13:27 Miroslaw Dach
2007-09-23 15:32 ` Grant Likely
2007-09-23 19:44   ` Josh Boyer
2007-09-25  8:25   ` Mirek23

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