
In message 20040819060123Z130980-6725+1004377@kps1.test.onet.pl you wrote:
------------=_1092895279-1784-39 Content-Type: text/html; charset="iso-8859-2" Content-Disposition: inline Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
NEVER POST HTML to this list!!!
<P>I ported u-boot to custom board and it works fine :)<BR>but kernel hangs during initialization :(</P>
It seems to work fine, but it is not usable for Linux.
<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>
This cannot work. Your kernel will crash as soon as a user space application starts to run. See http://www.denx.de/twiki/bin/view/PPCEmbedded/Kernel#Section_10.2. and http://lists.linuxppc.org/listarcs/linuxppc-embedded/200005/msg00157.html
Best regards,
Wolfgang Denk