<!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>&nbsp;</P>
<P>I ported u-boot to custom board and it works fine :)<BR>but kernel hangs during initialization :(</P>
<P>&nbsp;</P>
<P>It hangs in the function free_area_init_core() in the <BR>following code:<BR>&nbsp; for (i = 0; i &lt; size; i++) {<BR>&nbsp;&nbsp;&nbsp; struct page *page = mem_map + offset + 1;<BR>&nbsp;&nbsp;&nbsp; ....<BR>&nbsp; }<BR>function is called from:<BR>&nbsp;start_kernel() - setup_arch() - paging_init() - free_area_init()</P>
<P>&nbsp;</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>&nbsp;</P>
<P>Do you have any idea what I can do? What is the problem?</P>
<P>&nbsp;</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>&nbsp;- Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq&nbsp; 12-38 , Core Freq 100-300<BR>&nbsp;- dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5<BR>&nbsp;- vco_out&nbsp; 396000000, scc_clk&nbsp;&nbsp; 99000000, brg_clk&nbsp;&nbsp; 99000000<BR>&nbsp;- cpu_clk&nbsp; 264000000, cpm_clk&nbsp; 198000000, bus_clk&nbsp;&nbsp; 33000000</P>
<P>CPU:&nbsp;&nbsp; MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz<BR>Board: RLG005a<BR>DRAM:&nbsp; (60x:8COL)&nbsp; 4 MB<BR>FLASH: 16 MB<BR>In:&nbsp;&nbsp;&nbsp; serial<BR>Out:&nbsp;&nbsp; serial<BR>Err:&nbsp;&nbsp; serial<BR>Net:&nbsp;&nbsp; FCC2 ETHERNET<BR>Hit any key to stop autoboot:&nbsp; 0</P>
<P>=&gt; bdinfo<BR>memstart&nbsp;&nbsp;&nbsp; = 0x00000000<BR>memsize&nbsp;&nbsp;&nbsp;&nbsp; = 0x00400000<BR>flashstart&nbsp; = 0xFE000000<BR>flashsize&nbsp;&nbsp; = 0x01000000<BR>flashoffset = 0x00026000<BR>sramstart&nbsp;&nbsp; = 0x00000000<BR>sramsize&nbsp;&nbsp;&nbsp; = 0x00000000<BR>immr_base&nbsp;&nbsp; = 0x02000000<BR>bootflags&nbsp;&nbsp; = 0x00000001<BR>vco&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; 396 MHz<BR>sccfreq&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; 99 MHz<BR>brgfreq&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; 99 MHz<BR>intfreq&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; 264 MHz<BR>cpmfreq&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; 198 MHz<BR>busfreq&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; 33 MHz<BR>ethaddr&nbsp;&nbsp;&nbsp;&nbsp; = 03:07:19:72:0A:0F<BR>IP addr&nbsp;&nbsp;&nbsp;&nbsp; = 192.168.1.175<BR>baudrate&nbsp;&nbsp;&nbsp; =&nbsp; 38400 bps</P>
<P>=&gt;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ###########################################################<BR>done<BR>Bytes transferred = 633138 (9a932 hex)</P>
<P>=&gt; imi 200000<BR>## Checking Image at 00200000 ...<BR>&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux-2.4.24-pre2<BR>&nbsp;&nbsp; Image Type:&nbsp;&nbsp; PowerPC Linux Kernel Image (gzip compressed)<BR>&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 633074 Bytes = 618.2 kB<BR>&nbsp;&nbsp; Load Address: 00000000<BR>&nbsp;&nbsp; Entry Point:&nbsp; 00000000<BR>&nbsp;&nbsp; Verifying Checksum ... OK</P>
<P>=&gt; bootm 200000<BR>## Booting image at 00200000 ...<BR>&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux-2.4.24-pre2<BR>&nbsp;&nbsp; Image Type:&nbsp;&nbsp; PowerPC Linux Kernel Image (gzip compressed)<BR>&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 633074 Bytes = 618.2 kB<BR>&nbsp;&nbsp; Load Address: 00000000<BR>&nbsp;&nbsp; Entry Point:&nbsp; 00000000<BR>&nbsp;&nbsp; Verifying Checksum ... OK<BR>&nbsp;&nbsp; Uncompressing Kernel Image ... OK<BR>&nbsp;&nbsp; Current stack ends at 0x003B4BA0 AF: =&gt; set upper limit to 0x003B43A0<BR>&nbsp;&nbsp; cmdline at 0x003B42A0 ... 0x003B42F1<BR>&nbsp;&nbsp; no initrd image<BR>&nbsp;&nbsp; no initrd<BR>&nbsp;&nbsp; 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>&nbsp;- Bus-to-Core Mult 8x, VCO Div 2, 60x Bus Freq&nbsp; 12-38 , Core Freq 100-300<BR>&nbsp;- dfbrg 0, corecnf 0x1c, busdf 11, cpmdf 1, plldf 0, pllmf 5<BR>&nbsp;- vco_out&nbsp; 396000000, scc_clk&nbsp;&nbsp; 99000000, brg_clk&nbsp;&nbsp; 99000000<BR>&nbsp;- cpu_clk&nbsp; 264000000, cpm_clk&nbsp; 198000000, bus_clk&nbsp;&nbsp; 33000000</P>
<P>CPU:&nbsp;&nbsp; MPC8260 (HiP4 Rev 14, Mask B.1 4K25A) at 264 MHz<BR>Board: RLG005a<BR>DRAM:&nbsp; (60x:8COL)&nbsp; 4 MB<BR>FLASH: 16 MB<BR>In:&nbsp;&nbsp;&nbsp; serial<BR>Out:&nbsp;&nbsp; serial<BR>Err:&nbsp;&nbsp; serial<BR>Net:&nbsp;&nbsp; FCC2 ETHERNET<BR>Hit any key to stop autoboot:&nbsp; 0</P>
<P>=&gt; md 158c74 60<BR>00158c74: 3c363e4d 656d6f72 79204241 54206d61&nbsp;&nbsp;&nbsp; &lt;6&gt;Memory BAT ma<BR>00158c84: 7070696e 673a2042 4154323d 344d622c&nbsp;&nbsp;&nbsp; pping: BAT2=4Mb,<BR>00158c94: 20424154 333d304d 622c2072 65736964&nbsp;&nbsp;&nbsp;&nbsp; BAT3=0Mb, resid<BR>00158ca4: 75616c3a 20304d62 0a3c343e 4c696e75&nbsp;&nbsp;&nbsp; ual: 0Mb.&lt;4&gt;Linu<BR>00158cb4: 78207665 7273696f 6e20322e 342e3234&nbsp;&nbsp;&nbsp; x version 2.4.24<BR>00158cc4: 2d707265 32202861 72747572 406c696e&nbsp;&nbsp;&nbsp; -pre2 (<A href="mailto:artur@lin">artur@lin</A><BR>00158cd4: 75782920 28676363 20766572 73696f6e&nbsp;&nbsp;&nbsp; ux) (gcc version<BR>00158ce4: 20332e32 2e322032 30303330 32313720&nbsp;&nbsp;&nbsp;&nbsp; 3.2.2 20030217<BR>00158cf4: 2859656c 6c6f7720 446f6720 4c696e75&nbsp;&nbsp;&nbsp; (Yellow Dog Linu<BR>00158d04: 7820332e 3020332e 322e322d 32615f31&nbsp;&nbsp;&nbsp; x 3.0 3.2.2-2a_1<BR>00158d14: 29292023 39204d6f 6e204175 67203136&nbsp;&nbsp;&nbsp; )) #9 Mon Aug 16<BR>00158d24: 2031393a 30373a32 36204345 53542032&nbsp;&nbsp;&nbsp;&nbsp; 19:07:26 CEST 2<BR>00158d34: 3030340a 3c343e4f 6e206e6f 64652030&nbsp;&nbsp;&nbsp; 004.&lt;4&gt;On node 0<BR>00158d44: 20746f74 616c7061 6765733a 20313032&nbsp;&nbsp;&nbsp;&nbsp; totalpages: 102<BR>00158d54: 340a3c34 3e7a6f6e 65283029 3a203130&nbsp;&nbsp;&nbsp; 4.&lt;4&gt;zone(0): 10<BR>00158d64: 32342070 61676573 2e0a3c34 3e626566&nbsp;&nbsp;&nbsp; 24 pages..&lt;4&gt;bef<BR>00158d74: 6f726520 666f722c 2073697a 653d3130&nbsp;&nbsp;&nbsp; ore for, size=10<BR>00158d84: 32340a00 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; 24..............<BR>00158d94: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>00158da4: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>00158db4: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>00158dc4: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>00158dd4: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>00158de4: 00000000 00000000 00000000 00000000&nbsp;&nbsp;&nbsp; ................<BR>=&gt;</P>
<P>&nbsp;</P>
<P>Thanks in advance for any suggestions.<BR>Artur</P>
<P>&nbsp;</P></BODY></HTML>