<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<META name="GENERATOR" content="onet.poczta">
<STYLE TYPE="text/css"><!--P {margin:0px}--></STYLE>
</HEAD><BODY>
<P> </P>
<P>I ported u-boot to custom board and it works fine :)<BR>but kernel hangs during initialization :(</P>
<P> </P>
<P>It hangs in the function free_area_init_core() in the <BR>following code:<BR> for (i = 0; i < size; i++) {<BR> struct page *page = mem_map + offset + 1;<BR> ....<BR> }<BR>function is called from:<BR> start_kernel() - setup_arch() - paging_init() - free_area_init()</P>
<P> </P>
<P>I made sure that:<BR>a) IMMR_ADDR (Linux) = CFG_IMMR (u-boot) = 0x02000000<BR>b) struct bd_info are the same in Linux an u-boot<BR>c) CONFIGURE_CLOCKS_IN_MHZ is not defined - I have kernel 2.4.24</P>
<P> </P>
<P>Do you have any idea what I can do? What is the problem?</P>
<P> </P>
<P>I use ELDK 3.0. Kernel is from this distribution as well.<BR>Configuration of my board for Linux is based on TQM8260<BR>but my console is on SCC1.<BR>Log of the session is as follows</P>
<P>-----------------------------------------------------------------</P>
<P>U-Boot 1.0.2 (Jul 27 2004 - 10:46:08)</P>
<P>MPC8260 Reset Status: External Soft, External Hard</P>
<P>MPC8260 Clock Configuration<BR> - Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq 12-38 , Core Freq 100-300<BR> - dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5<BR> - vco_out 396000000, scc_clk 99000000, brg_clk 99000000<BR> - cpu_clk 264000000, cpm_clk 198000000, bus_clk 33000000</P>
<P>CPU: MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz<BR>Board: RLG005a<BR>DRAM: (60x:8COL) 4 MB<BR>FLASH: 16 MB<BR>In: serial<BR>Out: serial<BR>Err: serial<BR>Net: FCC2 ETHERNET<BR>Hit any key to stop autoboot: 0</P>
<P>=> bdinfo<BR>memstart = 0x00000000<BR>memsize = 0x00400000<BR>flashstart = 0xFE000000<BR>flashsize = 0x01000000<BR>flashoffset = 0x00026000<BR>sramstart = 0x00000000<BR>sramsize = 0x00000000<BR>immr_base = 0x02000000<BR>bootflags = 0x00000001<BR>vco = 396 MHz<BR>sccfreq = 99 MHz<BR>brgfreq = 99 MHz<BR>intfreq = 264 MHz<BR>cpmfreq = 198 MHz<BR>busfreq = 33 MHz<BR>ethaddr = 03:07:19:72:0A:0F<BR>IP addr = 192.168.1.175<BR>baudrate = 38400 bps</P>
<P>=> tftp 200000 uImage<BR>Using FCC2 ETHERNET device<BR>TFTP from server 192.168.1.10; our IP address is 192.168.1.175<BR>Filename 'uImage'.<BR>Load address: 0x200000<BR>Loading: send option "timeout 5"<BR>Got OACK: timeout 5<BR>#################################################################<BR> ###########################################################<BR>done<BR>Bytes transferred = 633138 (9a932 hex)</P>
<P>=> imi 200000<BR>## Checking Image at 00200000 ...<BR> Image Name: Linux-2.4.24-pre2<BR> Image Type: PowerPC Linux Kernel Image (gzip compressed)<BR> Data Size: 633074 Bytes = 618.2 kB<BR> Load Address: 00000000<BR> Entry Point: 00000000<BR> Verifying Checksum ... OK</P>
<P>=> bootm 200000<BR>## Booting image at 00200000 ...<BR> Image Name: Linux-2.4.24-pre2<BR> Image Type: PowerPC Linux Kernel Image (gzip compressed)<BR> Data Size: 633074 Bytes = 618.2 kB<BR> Load Address: 00000000<BR> Entry Point: 00000000<BR> Verifying Checksum ... OK<BR> Uncompressing Kernel Image ... OK<BR> Current stack ends at 0x003B4BA0 AF: => set upper limit to 0x003B43A0<BR> cmdline at 0x003B42A0 ... 0x003B42F1<BR> no initrd image<BR> no initrd<BR> Transferring control to Linux (at address 00000000) ...</P>
<P><BR>... it hungs here ... but after reset ...</P>
<P><BR>U-Boot 1.0.2 (Jul 27 2004 - 10:46:08)</P>
<P>MPC8260 Reset Status: External Soft, External Hard</P>
<P>MPC8260 Clock Configuration<BR> - Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq 12-38 , Core Freq 100-300<BR> - dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5<BR> - vco_out 396000000, scc_clk 99000000, brg_clk 99000000<BR> - cpu_clk 264000000, cpm_clk 198000000, bus_clk 33000000</P>
<P>CPU: MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz<BR>Board: RLG005a<BR>DRAM: (60x:8COL) 4 MB<BR>FLASH: 16 MB<BR>In: serial<BR>Out: serial<BR>Err: serial<BR>Net: FCC2 ETHERNET<BR>Hit any key to stop autoboot: 0</P>
<P>=> md 158c74 60<BR>00158c74: 3c363e4d 656d6f72 79204241 54206d61 <6>Memory BAT ma<BR>00158c84: 7070696e 673a2042 4154323d 344d622c pping: BAT2=4Mb,<BR>00158c94: 20424154 333d304d 622c2072 65736964 BAT3=0Mb, resid<BR>00158ca4: 75616c3a 20304d62 0a3c343e 4c696e75 ual: 0Mb.<4>Linu<BR>00158cb4: 78207665 7273696f 6e20322e 342e3234 x version 2.4.24<BR>00158cc4: 2d707265 32202861 72747572 406c696e -pre2 (<A href="mailto:artur@lin">artur@lin</A><BR>00158cd4: 75782920 28676363 20766572 73696f6e ux) (gcc version<BR>00158ce4: 20332e32 2e322032 30303330 32313720 3.2.2 20030217<BR>00158cf4: 2859656c 6c6f7720 446f6720 4c696e75 (Yellow Dog Linu<BR>00158d04: 7820332e 3020332e 322e322d 32615f31 x 3.0 3.2.2-2a_1<BR>00158d14: 29292023 39204d6f 6e204175 67203136 )) #9 Mon Aug 16<BR>00158d24: 2031393a 30373a32 36204345 53542032 19:07:26 CEST 2<BR>00158d34: 3030340a 3c343e4f 6e206e6f 64652030 004.<4>On node 0<BR>00158d44: 20746f74 616c7061 6765733a 20313032 totalpages: 102<BR>00158d54: 340a3c34 3e7a6f6e 65283029 3a203130 4.<4>zone(0): 10<BR>00158d64: 32342070 61676573 2e0a3c34 3e626566 24 pages..<4>bef<BR>00158d74: 6f726520 666f722c 2073697a 653d3130 ore for, size=10<BR>00158d84: 32340a00 00000000 00000000 00000000 24..............<BR>00158d94: 00000000 00000000 00000000 00000000 ................<BR>00158da4: 00000000 00000000 00000000 00000000 ................<BR>00158db4: 00000000 00000000 00000000 00000000 ................<BR>00158dc4: 00000000 00000000 00000000 00000000 ................<BR>00158dd4: 00000000 00000000 00000000 00000000 ................<BR>00158de4: 00000000 00000000 00000000 00000000 ................<BR>=></P>
<P> </P>
<P>Thanks in advance for any suggestions.<BR>Artur</P>
<P> </P></BODY></HTML>