[U-Boot-Users] Linux does not start on custom board

a066 at poczta.onet.pl a066 at poczta.onet.pl
Thu Aug 19 08:01:19 CEST 2004


An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040819/ca2aef17/attachment.htm 
-------------- next part --------------
 

I ported u-boot to custom board and it works fine :)
but kernel hangs during initialization :(

 

It hangs in the function free_area_init_core() in the
following code:
  for (i = 0; i < size; i++) {
    struct page *page = mem_map + offset + 1;
    ....
  }
function is called from:
 start_kernel() - setup_arch() - paging_init() - free_area_init()

 

I made sure that:
a) IMMR_ADDR (Linux) = CFG_IMMR (u-boot) = 0x02000000
b) struct bd_info are the same in Linux an u-boot
c) CONFIGURE_CLOCKS_IN_MHZ is not defined - I have kernel 2.4.24

 

Do you have any idea what I can do? What is the problem?

 

I use ELDK 3.0. Kernel is from this distribution as well.
Configuration of my board for Linux is based on TQM8260
but my console is on SCC1.
Log of the session is as follows

-----------------------------------------------------------------

U-Boot 1.0.2 (Jul 27 2004 - 10:46:08)

MPC8260 Reset Status: External Soft, External Hard

MPC8260 Clock Configuration
 - Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq  12-38 , Core Freq 100-300
 - dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5
 - vco_out  396000000, scc_clk   99000000, brg_clk   99000000
 - cpu_clk  264000000, cpm_clk  198000000, bus_clk   33000000

CPU:   MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz
Board: RLG005a
DRAM:  (60x:8COL)  4 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   FCC2 ETHERNET
Hit any key to stop autoboot:  0

=> bdinfo
memstart    = 0x00000000
memsize     = 0x00400000
flashstart  = 0xFE000000
flashsize   = 0x01000000
flashoffset = 0x00026000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0x02000000
bootflags   = 0x00000001
vco         =    396 MHz
sccfreq     =     99 MHz
brgfreq     =     99 MHz
intfreq     =    264 MHz
cpmfreq     =    198 MHz
busfreq     =     33 MHz
ethaddr     = 03:07:19:72:0A:0F
IP addr     = 192.168.1.175
baudrate    =  38400 bps

=>  tftp 200000 uImage
Using FCC2 ETHERNET device
TFTP from server 192.168.1.10; our IP address is 192.168.1.175
Filename 'uImage'.
Load address: 0x200000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
         ###########################################################
done
Bytes transferred = 633138 (9a932 hex)

=> imi 200000
## Checking Image at 00200000 ...
   Image Name:   Linux-2.4.24-pre2
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    633074 Bytes = 618.2 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

=> bootm 200000
## Booting image at 00200000 ...
   Image Name:   Linux-2.4.24-pre2
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    633074 Bytes = 618.2 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Current stack ends at 0x003B4BA0 AF: => set upper limit to 0x003B43A0
   cmdline at 0x003B42A0 ... 0x003B42F1
   no initrd image
   no initrd
   Transferring control to Linux (at address 00000000) ...


... it hungs here ... but after reset ...


U-Boot 1.0.2 (Jul 27 2004 - 10:46:08)

MPC8260 Reset Status: External Soft, External Hard

MPC8260 Clock Configuration
 - Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq  12-38 , Core Freq 100-300
 - dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5
 - vco_out  396000000, scc_clk   99000000, brg_clk   99000000
 - cpu_clk  264000000, cpm_clk  198000000, bus_clk   33000000

CPU:   MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz
Board: RLG005a
DRAM:  (60x:8COL)  4 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   FCC2 ETHERNET
Hit any key to stop autoboot:  0

=> md 158c74 60
00158c74: 3c363e4d 656d6f72 79204241 54206d61    <6>Memory BAT ma
00158c84: 7070696e 673a2042 4154323d 344d622c    pping: BAT2=4Mb,
00158c94: 20424154 333d304d 622c2072 65736964     BAT3=0Mb, resid
00158ca4: 75616c3a 20304d62 0a3c343e 4c696e75    ual: 0Mb.<4>Linu
00158cb4: 78207665 7273696f 6e20322e 342e3234    x version 2.4.24
00158cc4: 2d707265 32202861 72747572 406c696e    -pre2 (artur at lin
00158cd4: 75782920 28676363 20766572 73696f6e    ux) (gcc version
00158ce4: 20332e32 2e322032 30303330 32313720     3.2.2 20030217
00158cf4: 2859656c 6c6f7720 446f6720 4c696e75    (Yellow Dog Linu
00158d04: 7820332e 3020332e 322e322d 32615f31    x 3.0 3.2.2-2a_1
00158d14: 29292023 39204d6f 6e204175 67203136    )) #9 Mon Aug 16
00158d24: 2031393a 30373a32 36204345 53542032     19:07:26 CEST 2
00158d34: 3030340a 3c343e4f 6e206e6f 64652030    004.<4>On node 0
00158d44: 20746f74 616c7061 6765733a 20313032     totalpages: 102
00158d54: 340a3c34 3e7a6f6e 65283029 3a203130    4.<4>zone(0): 10
00158d64: 32342070 61676573 2e0a3c34 3e626566    24 pages..<4>bef
00158d74: 6f726520 666f722c 2073697a 653d3130    ore for, size=10
00158d84: 32340a00 00000000 00000000 00000000    24..............
00158d94: 00000000 00000000 00000000 00000000    ................
00158da4: 00000000 00000000 00000000 00000000    ................
00158db4: 00000000 00000000 00000000 00000000    ................
00158dc4: 00000000 00000000 00000000 00000000    ................
00158dd4: 00000000 00000000 00000000 00000000    ................
00158de4: 00000000 00000000 00000000 00000000    ................
=>

 

Thanks in advance for any suggestions.
Artur

 


More information about the U-Boot mailing list