<br><font size=2 face="sans-serif"><br>
</font><font size=2 color=#008000 face="Verdana"> </font>
<br><font size=2 color=#008000 face="Verdana"> </font><font size=3 color=#008000 face="Verdana"><b>
Thanks for the reply scott, :)</b></font>
<br>
<br><font size=3 color=#008000 face="Verdana"><b>i forgot to mention ,
yes i am using device tree aware u-boot but the problem is when i tried
to build the u-boot source ( first i did ""make ep8248_config""
and then ""make"") it was giving undefined reference
related to </b></font><font size=3 color=#008000><tt><b>ft_board_setup()
function so </b></tt></font><font size=4 color=#008000><tt><b><i>i altered
the U-boot-1.3.2 source code... i added the below code to the following
file board/ep8248/ep8248.c</i></b></tt></font>
<br>
<br><font size=3 color=#008000><tt><b>#if defined(CONFIG_OF_LIBFDT) &&
defined(CONFIG_OF_BOARD_SETUP)</b></tt></font>
<br><font size=3 color=#008000><tt><b>void ft_board_setup(void *blob, bd_t
*bd)</b></tt></font>
<br><font size=3 color=#008000><tt><b>{</b></tt></font>
<br><font size=3 color=#008000><tt><b> ft_cpu_setup(blob,
bd);</b></tt></font>
<br><font size=3 color=#008000><tt><b>}</b></tt></font>
<br><font size=3 color=#008000><tt><b>#endif /* defined(CONFIG_OF_LIBFDT)
&& defined(CONFIG_OF_BOARD_SETUP) */</b></tt></font>
<br>
<br>
<br><font size=4 color=#008000><tt><b><i>and also added the below lines
to the file include/configs/ep8248.h by looking into the corresponding
.dts file in the kernel source....</i></b></tt></font>
<br>
<br>
<br><font size=3 color=#008000><tt><b>/* pass open firmware flat tree */</b></tt></font>
<br><font size=3 color=#008000><tt><b>#define CONFIG_OF_LIBFDT
1</b></tt></font>
<br><font size=3 color=#008000><tt><b>#define CONFIG_OF_BOARD_SETUP
1</b></tt></font>
<br>
<br><font size=3 color=#008000><tt><b>#define OF_CPU "PowerPC,8248@0"</b></tt></font>
<br><font size=3 color=#008000><tt><b>#define OF_SOC "soc@f0000000"</b></tt></font>
<br><font size=3 color=#008000><tt><b>#define OF_TBCLK
(bd->bi_busfreq / 4)</b></tt></font>
<br><font size=3 color=#008000><tt><b>#define OF_STDOUT_PATH "/soc@f0000000/serial@11a80"</b></tt></font>
<br>
<br><font size=3 color=#008000 face="Verdana"><b>Now afte doing the above
2 alterations i was able to build the u-boot-1.3.2 source for ep8248e....</b></font>
<br>
<br><font size=3 color=#008000 face="Verdana"><b>then i created the uImage
with the latest kernel source linux-2.6.25-rc8 and put that uImage to the
target...also i created the ep8248e.dtb from the dtc (DEVICE TREE COMPILER)
and put that to the target and passed this as an argument to the bootm
</b></font>
<br><font size=3 color=#008000 face="Verdana"><b>I also cross checked in
the U-boot environment for the fdt command ... it was present</b></font>
<br><font size=3 color=#008000 face="Verdana"><b>this is what i have done
till now </b></font>
<br><font size=3 color=#008000 face="Verdana"><b>Finally when it hanged
I started debugging using BDI2000...so it was stuck as i said in my previous
post</b></font>
<br><font size=3 color=#008000 face="Verdana"><b>and how to use cuImage.pq2
? also i dint get what is dtbImage.ep8248e ? is that same to ep8248e.dtb
??</b></font>
<br><font size=3 color=#008000 face="Verdana"><b>Can you Please tell me
how can i proceed further to get the Kernel up on the ep8248e target ??
</b></font>
<br>
<br><font size=3 color=#008000 face="Verdana"><b>Regards,</b></font>
<br><font size=3 color=#008000 face="Verdana"><b>Naren</b></font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Scott Wood <scottwood@freescale.com></b>
</font>
<p><font size=1 face="sans-serif">04/23/2008 09:57 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">gforgcc <narendra.ka@lntemsys.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">u-boot-users@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [U-Boot-Users] Kernel hanging
after lmb_end_of_DRAM() function.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Tue, Apr 22, 2008 at 09:12:11PM -0700, gforgcc
wrote:<br>
> i am trying to bring up the latest kernel on EP8248 target,<br>
> i am using U-boot-1.3.2 and linux-2.6.25-rc8, i started debugging
using<br>
> BDI2000 which helped me to know atleast what is going wrong, i have
added<br>
> some printk's in the kernel source but still i am not able to find
where and<br>
> what exactly is going wrong, The first statement it is printing in
the log<br>
> buffer is <br>
> ""Using Embedded Planet EP8248E machine description""
and thats it the next<br>
> message is <br>
> Unable to handle kernel paging request for data at address 0xbfff0000<br>
> Faulting instruction address:0xc0012070 (This nearest address to this<br>
> address in System.map file is cacheable_memzero)<br>
> and tracing like this i came to know that in the file<br>
> arch/powerpc/mm/ppc_mmu_32.c , here in the function __init MMU_init_hw()
and<br>
> in the line n_hpteg = total_memory / (PAGE_SIZE * 8); probably it
is getting<br>
> problem because when i tried to print the variable total_memory it
is<br>
> printing zero !!! :( :( so probably i am thinking it is not
able to find<br>
> some memory for Hash table :(<br>
<br>
Are you using a device-tree-aware u-boot with uImage, or are you using<br>
cuImage.pq2? Do not use dtbImage.ep8248e; that's for PlanetCore.<br>
<br>
ep8248e in mainline u-boot doesn't appear to be device-tree aware.<br>
<br>
If you're using cuImage.pq2, do you get any output from the bootwrapper?
<br>
Make sure you add /chosen/linux,stdout-path. There may be other device<br>
tree changes you need to make it work with u-boot as well.<br>
<br>
-Scott<br>
</tt></font>
<br>