AVR32 linux toolchain

23 posts / 0 new
Last post
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go ahead and try the build with manual download of the packages.

I will try to help you with it.

Cheers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now I foollowed your suggestions. Each time when it stucked at some downloading then I stoped it and download that package and placed it in dl folder.and then run make again. I did it few times.
But now at the end I got following error message

zutil.lo -lc -L/home/khukhu/buildroot-avr32-v3.0.0/output/staging/lib -L/home/khukhu/buildroot-avr32-v3.0.0/output/staging/usr/lib -L. libz.a
avr32-unknown-linux-uclibc-gcc: libz.a: No such file or directory
make[1]: *** [libz.so.1.2.5] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/khukhu/buildroot-avr32-v3.0.0/output/build/zlib-1.2.5'
make: *** [/home/khukhu/buildroot-avr32-v3.0.0/output/build/zlib-1.2.5/.stamp_built] Error 2

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have the directory /home/khukhu/buildroot-avr32-v3.0.0/output/staging/usr/lib created? If not create it manually (by executing mkdir and then the path).

try executing ./configure and then make again.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes I have this directory.
But libz.so.1.2.5 is not there in lib and maybe the error is due to it.
make[1]: *** [libz.so.1.2.5] Error 1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

libz.a is available in
/home/khukhu/buildroot-avr32-v3.0.0/output/build/zlib-1.2.5
but libz.so.1.2.5 is not available

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

libz.so is a compiled library (dynamically linked). It has to be something generated from buildroot. What I would do is to execute make clean and let it start from the beginning.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I executed make again and now it showed the following error

gzip: /home/khukhu/buildroot-avr32-v3.0.0/dl/fakeroot_1.9.5.tar.gz: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
make: *** [/home/khukhu/buildroot-avr32-v3.0.0/output/build/host-fakeroot-1.9.5/.stamp_extracted] Error 2
khukhu@khursheed-desktop:~/buildroot-avr32-v3.0.0$

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Solved
This time it is successful and showed the following message

Build completed successfully

This time I downloaded /fakeroot_1.9.5.tar.gz and placed it in dl. Then run make. and it is successful
Many many thanks to gallacticasd. I really appreciate his patience and input. He solved my two weeks problem in just about four hours.
gallacticasd please tell me if you have more time (today, tomorrow or at the weekend). I want to upgrade the firmware of my NGW100 with this new image.
Last year I tried to upgrade it but then I faced some problem and then I did not find time for upgrading.
Now I must do it and I have patience for it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very good! and you are welcome!

The next thing, deploying the image. This should be relatively easy, you have already done the complicated part.

In order to deploy to the sd card, take a look at this page of the wiki:

http://www.avrfreaks.net/wiki/index.php/Documentation:AVR32_Linux_Development/Programming_an_SD_card_with_the_AVR32_Linux_file_system

It is quite complete. I followed the process the day before yesterday and the documentation in this case seems to be up to date.

Just drop a line if I can be helpful.

Cheers

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now I tried to compile my C++ and showed me the following error

/home/khukhu/buildroot-avr32-v3.0.0/output/staging/usr/lib/gcc/avr32-unknown-linux-uclibc/4.2.4/../../../../avr32-unknown-linux-uclibc/include/c++/4.2.4/avr32-unknown-linux-uclibc/bits/c++locale.h:111: error: 'vsnprintf' is not a member of 'std'

During compilation of buildroot, I saw vsnprintf at some point. Maybe by default vsnprintf is disabled in compiling buildroot.
So, please share if anyone knows about vsnprintf and whether it is supported in buildroot or not.

Please note that my C++ project is standard JBIG2 library for compression. I have compiled this library and used it from Ubuntu terminal and its working perfectly.So, there is no problem with JBIG2.

Pages