[U-Boot-Users] .bss segment problem

k b k_bisla at hotmail.com
Thu Jun 22 03:01:43 CEST 2006


thanks for your input.
I'll try to change the buffer.
how do i go about adjusting the memory map ?
-K Bisla


>From: Wolfgang Denk <wd at denx.de>
>To: "k b" <k_bisla at hotmail.com>
>CC: u-boot-users at lists.sourceforge.net
>Subject: Re: [U-Boot-Users] .bss segment problem
>Date: Wed, 21 Jun 2006 22:51:10 +0200
>
>In message <BAY105-F75F7231B24C7923053D5E8E840 at phx.gbl> you wrote:
> >
> > >"scd_modbuf" is HUGE - 28 MB!
> > hmm, yeah i see now the address are wrapping around.
> > scd_modbuf is a file buffer. i shrunk it to 1 MB which had no effect.
>
>Still too big? I strongly recommend to carefully study the linker map
>file.
>
> > 1) I print the address the of pktbuf_i and pktbuf_raw in line B, which 
>are
> > the same
> >     even after relocation. should it be same address ? I would think the
> > addres sould change. is that right ?
>
>I don't care about this as long as there are other, serious  problems
>with your configuration.
>
> > 2) Also another interesting think i did ... with keeping the scd_modbuf 
>to
> > 28 MB,
> > but changing the way the struct is initialized. Diffrent from LINES X.
>
>It makes IMHO no sense to statically allocate 28 MB of  data  in  the
>U-Boot image.
>
> > this change make everythink to work. Any idea ?. Seems like a compiler 
>being
> > finiky.
>
>No, seems like you don't care about the resulting memory map and  the
>consequences thereof.
>
> > what do you think ?
>
>Fix your memory map. Don't statically allocate huge buffers,  and  if
>you don, then at least not without adjusting the memory map.
>
>Best regards,
>
>Wolfgang Denk
>
>--
>Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
>I program, therefore I am.
>
>All the advantages of Linux Managed Hosting--Without the Cost and Risk!
>Fully trained technicians. The highest number of Red Hat certifications in
>the hosting industry. Fanatical Support. Click to learn more
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users






More information about the U-Boot mailing list