public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] size of mips U-boot image
       [not found] <E1CBqxq-0002xy-46@sc8-sf-list1.sourceforge.net>
@ 2004-09-29 18:50 ` C Michael Sundius
  2004-09-29 19:42   ` Wolfgang Denk
  2004-10-08 18:26 ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools C Michael Sundius
  1 sibling, 1 reply; 8+ messages in thread
From: C Michael Sundius @ 2004-09-29 18:50 UTC (permalink / raw)
  To: u-boot

Could anyone give me an approximate size of the U-boot 
image for a mips system when configured with a reasonable configuration:
i.e. with jffs2 support and support for bootp/tftp?

I realize the size can vary depending upon what stuff you pack in there, 
but I'm just looking for a general size.. since if its in the ball park I can 
do the tailoring to make it fit in our FLASH... If not, I'll have to do more 
thinking :]

thanks

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] size of mips U-boot image
  2004-09-29 18:50 ` [U-Boot-Users] size of mips U-boot image C Michael Sundius
@ 2004-09-29 19:42   ` Wolfgang Denk
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-09-29 19:42 UTC (permalink / raw)
  To: u-boot

In message <200409291150.16422.msundius@sundius.com> you wrote:
> Could anyone give me an approximate size of the U-boot 
> image for a mips system when configured with a reasonable configuration:
> i.e. with jffs2 support and support for bootp/tftp?

purple:
   text    data     bss     dec     hex filename
 154984    6016   16828  177828   2b6a4 u-boot

incaip:
   text    data     bss     dec     hex filename
 161288    6312   18256  185856   2d600 u-boot

[both with full networking, but without JFFS2 support]

> I realize the size can vary depending upon what stuff you pack in there, 
> but I'm just looking for a general size.. since if its in the ball park I can 
> do the tailoring to make it fit in our FLASH... If not, I'll have to do more 
> thinking :]

So far, all images I've seen fit easily in 256 kB. You will  have  to
omit a lot of "nice to have" stuff to squeeze U-Boot into 128 kB.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
In C we had to code our own bugs, in C++ we can inherit them.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
       [not found] <E1CBqxq-0002xy-46@sc8-sf-list1.sourceforge.net>
  2004-09-29 18:50 ` [U-Boot-Users] size of mips U-boot image C Michael Sundius
@ 2004-10-08 18:26 ` C Michael Sundius
  2004-10-08 18:54   ` Charles Eidsness
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: C Michael Sundius @ 2004-10-08 18:26 UTC (permalink / raw)
  To: u-boot

Hi,

I am trying to port u-boot to a system w/ a mips 4kc little endian processor.

in looking at other cpu/boards to use as a starting point/template, I chose 
the tb0229 board as it looked to also be a 4kc little endian cpu.

when I build, I get the an undefined reference to _GLOBAL_OFFSET_TABLE_.

I did some fiddling aroud, and comparing to linker command files for other 
boards and I found that the line:

	OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips",\ 
				"elf32-tradlittlemips")

if changed to:

	OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")

will allow me to compile and link fine...

my question is then:

1) what does this really do?
2) if I'm using a little endian cpu, do I really need it set to 
elf32-tradlittlemips?
3) if so how do I solve my problem?
4) if not why?

one more note the compiler/toolchain that I'm using is from montavista, the -v 
option displays the following:

======================================
 mips_fp_le-gcc -v
Reading specs from /opt/hardhat/devkit/mips/fp_le/lib/gcc-lib/
mipsel-hardhat-linux/3.2.1/specs
Configured with: ../configure --host=i686-pc-linux-gnu 
--target=mipsel-hardhat-linux --prefix=/opt/hardhat/devkit/mips/fp_le 
--exec-prefix=/opt/hardhat/devkit/mips/fp_le --bindir=/opt/hardhat/devkit/
mips/fp_le/bin --sbindir=/opt/hardhat/devkit/mips/fp_le/sbin --sysconfdir=/
opt/hardhat/devkit/mips/fp_le/etc --datadir=/opt/hardhat/devkit/mips/fp_le/
share --includedir=/opt/hardhat/devkit/mips/fp_le/include --libdir=/opt/
hardhat/devkit/mips/fp_le/lib --libexecdir=/opt/hardhat/devkit/mips/fp_le/
libexec --localstatedir=/opt/hardhat/devkit/mips/fp_le/var --sharedstatedir=/
opt/hardhat/devkit/mips/fp_le/share --mandir=/opt/hardhat/devkit/mips/fp_le/
man --infodir=/opt/hardhat/devkit/mips/fp_le/info 
--program-transform-name=s,^,mips_fp_le-, --enable-cross 
--with-gxx-include-dir=${prefix}/mipsel-hardhat-linux/include/g++-v3 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --disable-multilib
Thread model: posix
gcc version 3.2.1 20020930 (MontaVista)
=======================================

thanks for any help you can offer...(sorry this is maybe more of a tool 
related question, but monta vista has not been much help as of yet).

Mike
~       

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
  2004-10-08 18:26 ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools C Michael Sundius
@ 2004-10-08 18:54   ` Charles Eidsness
  2004-10-08 20:28   ` Wolfgang Denk
  2004-10-09  1:07   ` Masami Komiya
  2 siblings, 0 replies; 8+ messages in thread
From: Charles Eidsness @ 2004-10-08 18:54 UTC (permalink / raw)
  To: u-boot

Hi Mike,

If you change the file format to tradlittlemips then you'll also need to 
compile using the little endian flag (-EL) instead of the default big 
endian flag (-EB) flag. If you haven't already you'll probably have to 
do something like this:

--- cpu/mips/config.mk	2003-06-27 17:32:33.000000000 -0400
+++ cpu/mips/config.mk	2004-10-04 16:09:31.612045528 -0400
@@ -21,4 +21,4 @@
  # MA 02111-1307 USA
  #

-PLATFORM_CPPFLAGS += -mcpu=4kc -EB -mabicalls
+PLATFORM_CPPFLAGS += -mcpu=4kc -EL -mabicalls

Hope that helps,
Charles

C Michael Sundius wrote:
> Hi,
> 
> I am trying to port u-boot to a system w/ a mips 4kc little endian processor.
> 
> in looking at other cpu/boards to use as a starting point/template, I chose 
> the tb0229 board as it looked to also be a 4kc little endian cpu.
> 
> when I build, I get the an undefined reference to _GLOBAL_OFFSET_TABLE_.
> 
> I did some fiddling aroud, and comparing to linker command files for other 
> boards and I found that the line:
> 
> 	OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips",\ 
> 				"elf32-tradlittlemips")
> 
> if changed to:
> 
> 	OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")
> 
> will allow me to compile and link fine...
> 
> my question is then:
> 
> 1) what does this really do?
> 2) if I'm using a little endian cpu, do I really need it set to 
> elf32-tradlittlemips?
> 3) if so how do I solve my problem?
> 4) if not why?
> 
> one more note the compiler/toolchain that I'm using is from montavista, the -v 
> option displays the following:
> 
> ======================================
>  mips_fp_le-gcc -v
> Reading specs from /opt/hardhat/devkit/mips/fp_le/lib/gcc-lib/
> mipsel-hardhat-linux/3.2.1/specs
> Configured with: ../configure --host=i686-pc-linux-gnu 
> --target=mipsel-hardhat-linux --prefix=/opt/hardhat/devkit/mips/fp_le 
> --exec-prefix=/opt/hardhat/devkit/mips/fp_le --bindir=/opt/hardhat/devkit/
> mips/fp_le/bin --sbindir=/opt/hardhat/devkit/mips/fp_le/sbin --sysconfdir=/
> opt/hardhat/devkit/mips/fp_le/etc --datadir=/opt/hardhat/devkit/mips/fp_le/
> share --includedir=/opt/hardhat/devkit/mips/fp_le/include --libdir=/opt/
> hardhat/devkit/mips/fp_le/lib --libexecdir=/opt/hardhat/devkit/mips/fp_le/
> libexec --localstatedir=/opt/hardhat/devkit/mips/fp_le/var --sharedstatedir=/
> opt/hardhat/devkit/mips/fp_le/share --mandir=/opt/hardhat/devkit/mips/fp_le/
> man --infodir=/opt/hardhat/devkit/mips/fp_le/info 
> --program-transform-name=s,^,mips_fp_le-, --enable-cross 
> --with-gxx-include-dir=${prefix}/mipsel-hardhat-linux/include/g++-v3 
> --enable-shared --enable-languages=c,c++ --enable-threads=posix 
> --enable-__cxa_atexit --disable-multilib
> Thread model: posix
> gcc version 3.2.1 20020930 (MontaVista)
> =======================================
> 
> thanks for any help you can offer...(sorry this is maybe more of a tool 
> related question, but monta vista has not been much help as of yet).
> 
> Mike
> ~       
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
  2004-10-08 18:26 ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools C Michael Sundius
  2004-10-08 18:54   ` Charles Eidsness
@ 2004-10-08 20:28   ` Wolfgang Denk
  2004-10-09  1:07   ` Masami Komiya
  2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-10-08 20:28 UTC (permalink / raw)
  To: u-boot

In message <200410081126.38970.msundius@sundius.com> you wrote:
> 
> 	OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips",\ 
> 				"elf32-tradlittlemips")
> if changed to:
> 	OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")
> will allow me to compile and link fine...
> 
> my question is then:
> 
> 1) what does this really do?

Maybe it changes the output format from little endian to big endian?

> 2) if I'm using a little endian cpu, do I really need it set to 
> elf32-tradlittlemips?

Depending on your toolchain, yes.

> 3) if so how do I solve my problem?

Use different tools?

> 4) if not why?

Why what?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
It is dangerous to be right on a subject  on  which  the  established
authorities are wrong.                                    -- Voltaire

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
  2004-10-08 18:26 ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools C Michael Sundius
  2004-10-08 18:54   ` Charles Eidsness
  2004-10-08 20:28   ` Wolfgang Denk
@ 2004-10-09  1:07   ` Masami Komiya
  2004-10-11 22:53     ` Wolfgang Denk
  2 siblings, 1 reply; 8+ messages in thread
From: Masami Komiya @ 2004-10-09  1:07 UTC (permalink / raw)
  To: u-boot

The attached file is a patch to comiple and link for tb0229
using MIPS technologies SDE.

ftp://ftp.mips.com/pub/tools/software/sde-for-linux/

Masami Komiya


C Michael Sundius wrote:
> Hi,
> 
> I am trying to port u-boot to a system w/ a mips 4kc little endian processor.
> 
> in looking at other cpu/boards to use as a starting point/template, I chose 
> the tb0229 board as it looked to also be a 4kc little endian cpu.
> 
> when I build, I get the an undefined reference to _GLOBAL_OFFSET_TABLE_.
> 
> I did some fiddling aroud, and comparing to linker command files for other 
> boards and I found that the line:
> 
> 	OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips",\ 
> 				"elf32-tradlittlemips")
> 
> if changed to:
> 
> 	OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")
> 
> will allow me to compile and link fine...
> 
> my question is then:
> 
> 1) what does this really do?
> 2) if I'm using a little endian cpu, do I really need it set to 
> elf32-tradlittlemips?
> 3) if so how do I solve my problem?
> 4) if not why?
> 
> one more note the compiler/toolchain that I'm using is from montavista, the -v 
> option displays the following:
> 
> ======================================
>  mips_fp_le-gcc -v
> Reading specs from /opt/hardhat/devkit/mips/fp_le/lib/gcc-lib/
> mipsel-hardhat-linux/3.2.1/specs
> Configured with: ../configure --host=i686-pc-linux-gnu 
> --target=mipsel-hardhat-linux --prefix=/opt/hardhat/devkit/mips/fp_le 
> --exec-prefix=/opt/hardhat/devkit/mips/fp_le --bindir=/opt/hardhat/devkit/
> mips/fp_le/bin --sbindir=/opt/hardhat/devkit/mips/fp_le/sbin --sysconfdir=/
> opt/hardhat/devkit/mips/fp_le/etc --datadir=/opt/hardhat/devkit/mips/fp_le/
> share --includedir=/opt/hardhat/devkit/mips/fp_le/include --libdir=/opt/
> hardhat/devkit/mips/fp_le/lib --libexecdir=/opt/hardhat/devkit/mips/fp_le/
> libexec --localstatedir=/opt/hardhat/devkit/mips/fp_le/var --sharedstatedir=/
> opt/hardhat/devkit/mips/fp_le/share --mandir=/opt/hardhat/devkit/mips/fp_le/
> man --infodir=/opt/hardhat/devkit/mips/fp_le/info 
> --program-transform-name=s,^,mips_fp_le-, --enable-cross 
> --with-gxx-include-dir=${prefix}/mipsel-hardhat-linux/include/g++-v3 
> --enable-shared --enable-languages=c,c++ --enable-threads=posix 
> --enable-__cxa_atexit --disable-multilib
> Thread model: posix
> gcc version 3.2.1 20020930 (MontaVista)
> =======================================
> 
> thanks for any help you can offer...(sorry this is maybe more of a tool 
> related question, but monta vista has not been much help as of yet).
> 
> Mike
> ~       
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-mipsel-mk.gz
Type: application/x-gzip
Size: 447 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20041009/8079478c/attachment.bin 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
  2004-10-09  1:07   ` Masami Komiya
@ 2004-10-11 22:53     ` Wolfgang Denk
  2004-10-12  0:06       ` Masami Komiya
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2004-10-11 22:53 UTC (permalink / raw)
  To: u-boot

In message <416739C2.1050006@sonare.it> you wrote:
>
> The attached file is a patch to comiple and link for tb0229
> using MIPS technologies SDE.

I'm sorry, but I have to reject this patch as it breaks  support  for
all  other  existing  MIPS  boards. Please resubmit a new patch which
modifies  compile  and  linker  options  in  a  board  (or  at  least
configuration) dependent way.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
In C we had to code our own bugs, in C++ we can inherit them.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
  2004-10-11 22:53     ` Wolfgang Denk
@ 2004-10-12  0:06       ` Masami Komiya
  0 siblings, 0 replies; 8+ messages in thread
From: Masami Komiya @ 2004-10-12  0:06 UTC (permalink / raw)
  To: u-boot

I understand your meanings.
There is no need to add to CVS.
This is a only reference to compile U-BOOT for tb0229
and other MIPS little endian board.

Masami Komiya



Wolfgang Denk wrote:
> In message <416739C2.1050006@sonare.it> you wrote:
> 
>>The attached file is a patch to comiple and link for tb0229
>>using MIPS technologies SDE.
> 
> 
> I'm sorry, but I have to reject this patch as it breaks  support  for
> all  other  existing  MIPS  boards. Please resubmit a new patch which
> modifies  compile  and  linker  options  in  a  board  (or  at  least
> configuration) dependent way.
> 
> Best regards,
> 
> Wolfgang Denk
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-10-12  0:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1CBqxq-0002xy-46@sc8-sf-list1.sourceforge.net>
2004-09-29 18:50 ` [U-Boot-Users] size of mips U-boot image C Michael Sundius
2004-09-29 19:42   ` Wolfgang Denk
2004-10-08 18:26 ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools C Michael Sundius
2004-10-08 18:54   ` Charles Eidsness
2004-10-08 20:28   ` Wolfgang Denk
2004-10-09  1:07   ` Masami Komiya
2004-10-11 22:53     ` Wolfgang Denk
2004-10-12  0:06       ` Masami Komiya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox