Binaries too big ...

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Binaries too big ...

Beitrag von JOCKYW2001 »

Hi,

With Red Hat 9.0 I succesfully built a working YADD from HEAD. Now I would like to build an image, but the resulting binaries (after strip !!) are all significantly bigger than in latest AlexW. The total image size is 9.7MB and for example neutrino is 1.5MB (whereas AlexW's neutrino is ~980KB).
can anyone give me a tip how to build smaller binaries?

Thx,
JockyW
bozzio
Beiträge: 1
Registriert: Dienstag 22. Juli 2003, 11:28

Beitrag von bozzio »

Hallo,

leider habe ich keine Lösung anzubieten, habe aber genau das gleiche Problem. :(
Benutze auch RedHat9.0
Wäre dankbar für jeden Hinweis wie man das Image auf eine normale Grösse bekommt.

Gruß, Bozzio
kerlimann
Semiprofi
Semiprofi
Beiträge: 1208
Registriert: Donnerstag 26. Dezember 2002, 07:26

Re: Binaries too big ...

Beitrag von kerlimann »

JOCKYW2001 hat geschrieben:Hi,

With Red Hat 9.0 I succesfully built a working YADD from HEAD. Now I would like to build an image, but the resulting binaries (after strip !!) are all significantly bigger than in latest AlexW. The total image size is 9.7MB and for example neutrino is 1.5MB (whereas AlexW's neutrino is ~980KB).
can anyone give me a tip how to build smaller binaries?

Thx,
JockyW
i em not sure, but perhaps it has to do with your version of "mklibs"? go to the debian webpage, and try a different version. (just a guess)

btw: are you the jockyw who did the yamakawa bios patch for miniDVD?
midreyer
Einsteiger
Einsteiger
Beiträge: 117
Registriert: Freitag 6. Dezember 2002, 16:41

Beitrag von midreyer »

I'm very happy to read this post. I have the same problem with Suse Linux 8.2.
I tried some different mklibs but there is only one which runs without trouble (the newest one).
Because I am a newbie with creating images I haven't posted the problem because I thought I make something wrong.
Homar
Senior Member
Beiträge: 1278
Registriert: Mittwoch 5. September 2001, 00:00

Beitrag von Homar »

Hi folks,

mklibs is primary to reduce the libraries. It es not possible to make the binaries smaller with that.

Try to unset DEBUG to clean binarys from debug-output or change to gcc-2.95.
The latest Version of gcc makes 10 to 15 percent bigger binaries.

Hope to help
Homar
kerlimann
Semiprofi
Semiprofi
Beiträge: 1208
Registriert: Donnerstag 26. Dezember 2002, 07:26

Beitrag von kerlimann »

midreyer hat geschrieben:I'm very happy to read this post. I have the same problem with Suse Linux 8.2.
odd. i em using suse 8.2 as well (incl. all online updates) and do not have this problem.
midreyer
Einsteiger
Einsteiger
Beiträge: 117
Registriert: Freitag 6. Dezember 2002, 16:41

Beitrag von midreyer »

kerlimann hat geschrieben:
midreyer hat geschrieben:I'm very happy to read this post. I have the same problem with Suse Linux 8.2.
odd. i em using suse 8.2 as well (incl. all online updates) and do not have this problem.
Which gcc do you use? In the moment I use gcc.3.2.3(? or so). Later I will try to install gcc-2.9.5.
kerlimann
Semiprofi
Semiprofi
Beiträge: 1208
Registriert: Donnerstag 26. Dezember 2002, 07:26

Beitrag von kerlimann »

midreyer hat geschrieben: Which gcc do you use? In the moment I use gcc.3.2.3(? or so). Later I will try to install gcc-2.9.5.
right now i have windows loaded, so i can et check. however - i didn et update gcc manually. did you? if so, that might be the problem like homar suggested.
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Beitrag von JOCKYW2001 »

Homar hat geschrieben:Try to unset DEBUG to clean binarys from debug-output or change to gcc-2.95. The latest Version of gcc makes 10 to 15 percent bigger binaries.
@Homar: Thanks for the tips. I will build 2night with DEBUG unset. I think this causes indeed the problem. Regarding switching to gcc-2.95 I don't think it will change the size of the PPC binaries too much, since these are built with the tuxbox gcc compiler in the cdk. The cdk on RH9 is built with gcc 3.2.3

Btw: I just finished a build with Knoppix3.2 (Debian): everything is perfect there. But I must admit I configured the flash ruleset before the "make all". Since I used the std ruleset on RH9 it does not prove anything so far

@Kerlimann: yes I'm the jockyw responsible for the DVD firmware hacks. I recently started to focus on the Dbox2 since the C-cube ucode offers the idct and mc basic routines needed to play DivX etc. I hope my contacts in san jose can provide me the required documentation and tools. If so, the dbox2 promises much more fun for the future :lol:

Cheers,
JockyW
Sat_Man
Einsteiger
Einsteiger
Beiträge: 351
Registriert: Donnerstag 24. Oktober 2002, 20:14

Beitrag von Sat_Man »

JOCKYW2001 hat geschrieben:I recently started to focus on the Dbox2 since the C-cube ucode offers the idct and mc basic routines needed to play DivX etc. I hope my contacts in san jose can provide me the required documentation and tools. If so, the dbox2 promises much more fun for the future :lol:

Cheers,
JockyW
That sounds very cool 8)
Mfg Sat_Man
kerlimann
Semiprofi
Semiprofi
Beiträge: 1208
Registriert: Donnerstag 26. Dezember 2002, 07:26

Beitrag von kerlimann »

JOCKYW2001 hat geschrieben: @Kerlimann: yes I'm the jockyw responsible for the DVD firmware hacks. I recently started to focus on the Dbox2 since the C-cube ucode offers the idct and mc basic routines needed to play DivX etc. I hope my contacts in san jose can provide me the required documentation and tools. If so, the dbox2 promises much more fun for the future :lol:
atta boy! :lol:
first you have the guts to use the same dvd player like me, and now the satellite receiver as well :lol: . welcome to the show!

btw: my yammi is still working, even if i don et need miniDVD anymore, though :D
Homar
Senior Member
Beiträge: 1278
Registriert: Mittwoch 5. September 2001, 00:00

Beitrag von Homar »

JOCKYW2001 hat geschrieben:...Regarding switching to gcc-2.95 I don't think it will change the size of the PPC binaries too much, since these are built with the tuxbox gcc compiler in the cdk...
hehe...

We are talking about tuxbox, so you have to understand gcc of tuxbox-cdk, isn et it ?

...btw: that es not right
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Beitrag von JOCKYW2001 »

Homar hat geschrieben:We are talking about tuxbox, so you have to understand gcc of tuxbox-cdk, isn et it ?

...btw: that es not right
Ahh, I see :) I misunderstood you earlier on

JockyW
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Beitrag von JOCKYW2001 »

Homar hat geschrieben:Try to unset DEBUG to clean binarys from debug-output
Under Redhat 9 I did :
make distclean
./autogen.sh
./configure --prefix=/dbox2 --with-cvsdir=$HOME/tuxbox-cvs --enable-maintainer-mode --with-targetruleset=flash
make all
make flash-neutriono-all
make flash-jffs2image

Guess what, everything is cool :) Perfectly sized image and binaries.
The flash targetruleset unsets DEBUG. Thx again Homar!! :D

For those who are interested: I use VMware with RH9 and Knoppix 3.2 as guests. In terms of performance and configuration Knoppix outbeats RH9 by miles! I will stick to Knoppix for the dbox stuff in the future.

So long, JockyW