problem in booting linux from u-boot in ML405

Leonid Leonid at a-k-a.net
Sun Feb 11 17:15:55 EST 2007


Where you got u-boot for ml405 from? Is it in main 1.1.6 tree?

________________________________________
From: linuxppc-embedded-bounces+leonid=a-k-a.net at ozlabs.org [mailto:linuxppc-embedded-bounces+leonid=a-k-a.net at ozlabs.org] On Behalf Of Kiran Poola
Sent: Friday, January 05, 2007 12:46 AM
To: linuxppc-embedded at ozlabs.org
Cc: Anurag Tripathi
Subject: problem in booting linux from u-boot in ML405


Hi all, 

I am using montavista linux professional edition 4.0.1. 

Initially I tried booting the linux elf image by downloading it into RAM using the USB JTAG. 
Linux is comingup properly and I am able to see the login prompt. 

Now I am trying to boot linux from the u-boot.  I will download the u-boot image into the RAM and run it. 
From u-boot prompt I  downloaded the kernel image and run it. Boot messages are given below. I enabled debug messages in u-boot. 
After analysing the kernel booting by setting hardware breakpoints in xmd we came to know that it is hanging in the funciton mmu_mapin_ram() 
function. Help me in chasing this... Thanks in advance 


U-Boot 1.1.6 (Jan  3 2007 - 11:38:51) 


### No HW ID - assuming ML405 
DRAM:  64 MB 
Top of RAM usable for U-Boot at: 04000000 
Reserving 191k for U-Boot at: 03fd0000 
Reserving 384k for malloc() at: 03f70000 
Reserving 120 Bytes for Board Info at: 03f6ff88 
Reserving 48 Bytes for Global Data at: 03f6ff58 
Stack Pointer at: 03f6ff38 
New Stack Pointer is: 03f6ff38 
Now running in RAM - U-Boot at: 03fd0000 
FLASH: flash detect cfi 
fwc addr 28000000 cmd 0 00000000 32bit x 8 bit 
fwc addr 28000154 cmd 98 98989898 32bit x 8 bit 
is= cmd 51(Q) addr 28000040 is= 00510051 51515151 
fwc addr 28000000 cmd 0 00000000 32bit x 16 bit 
fwc addr 28000154 cmd 98 00980098 32bit x 16 bit 
is= cmd 51(Q) addr 28000040 is= 00510051 00510051 
is= cmd 52(R) addr 28000044 is= 00520052 00520052 
is= cmd 59(Y) addr 28000048 is= 00590059 00590059 
ushort addr is at 280000a0 info->portwi8dth = 4 
addr[0 = 0x0 
addr[1] = 0x2 
addr[2] = 0x0 
addr[3] = 0x2 
addr[4] = 0x0 
addr[5] = 0x0 
addr[6] = 0x0 
addr[7] = 0x0 
retval = 0x2 
device interface is 2 
found port 4 chip 2 port 32 bits chip 16 bits 
ushort addr is at 2800004c info->portwidth = 4 
addr[0] = 0x0 
addr[1] = 0x1 
addr[2] = 0x0 
addr[3] = 0x1 
addr[4] = 0x0 
addr[5] = 0x0 
addr[6] = 0x0 
addr[7] = 0x0 
retval = 0x1 
28000040 : 00 51 00 51 00 52 00 52 00 59 00 59 00 01 00 01  .Q.sQ.R.R.Y.Y.... 
8000050 : 00 00 00 00 00 31 00 31 00 00 00 00 00 00 00 00  .....1.1........ 
28000060 : 00 00 00 00 00 00 00 00 00 00 00 00 00 27 00 27  .............'.' 
28000070 : 00 36 00 36 00 00 00 00 00 00 00 00 00 07 00 07  .6.6............ 
28000080 : 00 07 00 07 00 0a 00 0a 00 00 00 00 00 04 00 04  ................ 
28000090 : 00 04 00 04 00 04 00 04 00 00 00 00 00 16 00 16  ................ 
280000a0 : 00 02 00 02 00 00 00 00 00 05 00 05 00 00 00 00  ................ 
280000b0 : 00 01 00 01 00 1f 00 1f 00 00 00 00 00 00 00 00  ................ 
280000c0 : 00 02 00 02 00 50 00 50 00 52 00 52 00 49 00 49  .....P.P.R.R.I.I 
280000d0 : 00 31 00 31 00 31 00 31 00 c6 00 c6 00 00 00 00  .1.1.1.1........ 
280000e0 : 00 00 00 00 00 00 00 00 00 01 00 01 00 01 00 01  ................ 
280000f0 : 00 00 00 00 00 33 00 33 00 00 00 00 00 01 00 01  .....3.3........ 
28000100 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 
28000110 : 00 03 00 03 00 00 00 00 00 2c 00 2c 00 ff 00 ff  .........,.,.... 
28000120 : 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff  ................ 
28000130 : 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff  ................ 
ushort addr is at 28000054 info->portwidth = 4 
addr[0] = 0x0 
addr[1] = 0x31 
addr[2] = 0x0 
addr[3] = 0x31 
addr[4] = 0x0 
addr[5] = 0x0 
addr[6] = 0x0 
addr[7] = 0x0 
retval = 0x31 
manufacturer is  1 
size_ratio rt 32 bits chip 16 bits 
found 1 erase regions 
long addr is at 280000b4 info->portwidth = 4 
addr[0] = 0x0 
addr[1] = 0x1f 
addr[2] = 0x0 
addr[3] = 0x1f 
addr[4] = 0x0 
addr[5] = 0x0 
addr[6] = 0x0 
addr[7] = 0x0 
addr[8] = 0x0 
addr[9] = 0x0 
addr[a] = 0x0 
addr[b] = 0x0 
addr[c] = 0x0 
addr[d] = 0x2 
addr[e] = 0x0 
addr[f] = 0x2 
erase_region_count = 32 erase_region_size = 131072 
ushort addr is at 280000a8 info->portwidth = 4 
addr[0] = 0x0 
addr[1] = 0x5 
addr[2] = 0x0 
addr[3] = 0x5 
addr[4] = 0x0 
addr[5] = 0x0 
addr[6] = 0x0 
addr[7] = 0x0 
retval = 0x5 
fwc addr 28000000 cmd ff 00ff00ff  32bit x 16 bit 
flash_protect ON: from 0x28040000 to 0x2807FFFF 
fwc addr 28040000 cmd 50 00500050 32bit x 16 bit 
fwc addr 28040000 cmd 60 00600060 32bit x 16 bit 
fwc addr 28040000 cmd 1 00010001 32bit x 16 bit 
flash_is_busy: 0 
is= cmd 80(€) addr 28040000 is= 00800080 00800080 
fwc addr 28040000 cmd ff 00ff00ff 32bit x 16 bit 
protect on 1 
 8 MB 
In:    serial 
Out:   serial 
Err:   serial 
U-Boot relocated to 03fd0000 
Net:   emac#0 
=> tftpboot 
Trying emac#0 
Using emac#0 device 
TFTP from server 169.254.52.2; our IP address is 169.254.52.1 
Filename 'ub.uImage'. 
Load address: 0x400000 
Loading: *################################################################# 
         ################################################################# 
         ################################################################# 
         ################################################################# 
         ################################################################# 
         ################################################################# 
         ################################################################# 
         ################################################################# 
         ############################################################## 
done 
Bytes transferred = 2976584 (2d6b48 hex) 
=> bootm 
## Booting image at 00400000 ... 
   Image Name:   Flex Linux 2.6 
   Image Type:   PowerPC Linux Multi-File Image (gzip compressed) 
   Data Size:    2976520 Bytes =  2.8 MB 
   Load Address: 00000000 
   Entry Point:n  00000000 
   ntents: 
   Image 0:   608099 Bytes = 593.8 kB 
   Image 1:  2368408 Bytes =  2.3 MB 
   Verifying Checksum ... OK 
   Uncompressing Multi-File Image ... OK 
## Current stack ends at 0x03F6FA20 => set upper limit to 0x00800000 
## cmdline at 0x007FFF00 ... 0x007FFF2C 
bd address  = 0x03F6FF88 
memstart    = 0x00000000 
memsKize     = 0x040lashstart  = 0x28000000 
flashsize   = 0x00800000 
flashoffset = 0x00000000 
sramstart   = 0x00000000 
sramsize    = 0x00000000 
bootflags   = 0xA0001003 
procfreq    =    300 MHz 
plb_busfreq =    100 MHz 
pci_busfreq =      0 MHz 
ethaddr     = 9E:84:54:BB:FD:55 
IP addr     = 169.254.52.1 
baudrate    = 115200 bps 
## initrd at 0x004947B0 ... 0x006D6B47 (len=2368408=0x242398) 
   Loading Ramdisk to 03d2c000, end 03f6e398 ... OK 
## Transferring control to Linux (at address 00000000) ... 
kbd : 007ffe80 initrd_start : 03d2c000 initrd_end : 03f6e398 cmd_start : 007fff00 cmd_end : 007fff2c gd->bd : 03f6ff88 


Thanks and Regards,
Kiran Poola.



***********************  Aricent-Unclassified   *********************** 
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of 
the individual to whom it is addressed. It may contain privileged or confidential information and should not be 
circulated or used for any purpose other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for 
loss or damage arising from the use of the information transmitted by this email including damage from virus."



More information about the Linuxppc-embedded mailing list