Closed Darlard closed 10 years ago
Hi,
There has been no change to carambola2 repository for more than a month. I did quick test build and everything seems normal (i2c-tools package is 16kB size). Problem must be in build system that generates too big image. Maybe executables are not being stripped before packing them to .ipk files.
Hi,
we saw the repo didn't change and this is why we don't understand what's wrong.
To make cross check and further investigate, we downloaded the carambola2 repo on three fresh installed Xubuntu machines and followed the "Getting Started" wiki:
./scripts/feeds update -a
./scripts/feeds install -a
We think that it might something related to the feeds part where src are downloaded from network.
It's very weird because if we look at the single packages, the .ipk size seems to change depending on what is checked in menuconfig.
For instance I have gdb_7.5-1_ar71xx.ipk that goes from 1.3MB to 9.3MB.
This happens with different packages.
In the machine i use, which i made month ago, everything goes fine.
Any suggestion? Thanks
You can check dl/ folder to see if different tool/package verions are being downloaded. See if toolchain (staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/) differs between working and non-working systems in any way.
Does it work correctly if you check out and build in fresh folder on your machine with working older build?
I checked the dl/folder and some packages has different size, like: Working system 39472825 linux-firmware-2014-06-04-7f388b4885cf64d6b7833612052d20d4197af96f.tar.bz2 Non-working 39497241 linux-firmware-2014-06-04-7f388b4885cf64d6b7833612052d20d4197af96f.tar.bz2
toolchain dir also has differences like: Working system 31864 ldd Not working 31920 ldd
We tried to compile with stripping option enabled and we saw the ipk dropped in size. On working system this option wasn't selected. This is the result of "file" command on gdb exe compiled with working system and not working with striped option: gdb: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), not stripped gdb: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked (uses shared libs), stripped
I think i foud what caused the problem: first time i built the kernel i used the default .config file which has no Debug info selected. Then i started to develope and i checked the Debug under Build Options in menuconfig. But i never did make clean. When we cloned the repo again we used the last .config file so every package got compiled with debug info. That's what was causing the image and ipk size problem.
Glad you solved the problem. Closing issue.
Hello one month ago i downloaded 2.6 sources, put my stuff and compiled. The result is a squash-sysupgrade.bin which size is around 7meg. Yesterday a coworker downloaded 2.6 sources, did feeds update and install, aligned the menuconfig with mine and recompiled. The result is that the image is so big that make will skip its creation. Some of the compiled packages are also bigger. For example: my version: i2c-tools_2013-12-15-1_ar71xx.ipk SIZE = 16180 his version: i2c-tools_2013-12-15-1_ar71xx.ipk SIZE = 254685
Does someone know why is this happening?
Thanks