Build Toolchain

I'll try, I suppose I have to create an account and discover how to make a pull request as suggested.

During the building process I've got another error on a malformed Makefile of dhcpcd-3.0.17 (auto-downloaded during the building).

1 - do you suggest should I send the diff or pull request to the dhcpcd developers, the linino devs or both of them?
2 - the modified Makefile worked fine for my build but it's not nice to see what I've done to it...

And I've got this other problem:

  • while making trunk/bin/ar71xx/packages/dialog_1.1-20120706-1_ar71xx.ipk I get this error
Package dialog is missing dependencies for the following libraries:
libncursesw.so.5

dialog has been compiled and installed so I suppose no liking is further needed, where in the the process is it stopping?

Sorry but I just don't know the best practice to use.

Thanks in advance

Sad but true, there is no best practice but "retry or deselect". OpenWRT (at least the version DogHunter forked to make linino) constantly updates the feeds to the latest and greatest, taking with it all the bugs: what fails today, may compile tomorrow and vice versa
So retry (tomorrow, next week...) or deselect the broken package (and all the packages that depends on it)

Actually I didn't thought it was going to pull and compile all that stuff, I was just trying to have a dev env.

Is deleting the lines related to the undesired SWs in trunk/feeds/*.index, the way to go?
Just rebuilding the same set that sit on the factory stock Yun would fit my bill perfectly, are the configuration files available?
Can I also comment out unwanted feeds in trunk/feeds.conf.default or something bad is going to happen?
Any other suggestion for better tailoring the build process?

Given the fact that the Yun is not a desktop (nor it should be) and it's not going to be refreshed as soon any new package is released (excluding really scaring security fixes of course), could not it be convenient to have a repository with the packages that compile for sure used for the official build?

You don't need to disable feeds and, yes, the configuration is available in file .config
Just run make menuconfig and disable unwanted packages
There already is a repository of precompiled packages: http://download.linino.org/dogstick/all-in-one/latest/packages/
To install one, have the yun linux prompt at hand (ssh or yunserialterminal) and type

opkg update
opkg install PACKAGE_NAME

Thanks a lot for the info, I haven't realized that the .config file has been smartly "recycled": not just for building kernels anymore but also for building the full/partial distribution.

Yun is a very intriguing solution and full of surprises!

Cheers

P.S.
How do I know which firmware release has been burned on it?

Hi,

I would like to know what is the .bin file used on the current Arduino Yun in this list : http://download.linino.org/dogstick/all-in-one/latest/ ?

I would also like to know if any of you tried to flash linino on other hardware like the WR703N. I know this device have a lot less RAM and ROM but maybe a stripped version could work.

Thanks for your infos

mathieu660:
I would like to know what is the .bin file used on the current Arduino Yun in this list : http://download.linino.org/dogstick/all-in-one/latest/ ?

None of them. We are going to publish a page on the arduino website with links to older and newer images.

Hi,

I'm trying to make a .bin file to test on my Yun and I'm having some difficulties. It's seems the u-boot can't be found in the URL provided bellow and actually this is true because I looked over and I need to change the name of the u-boot. How could I modify this so I can continue to compile ?

--2013-10-13 17:38:41--  http://downloads.openwrt.org/sources/u-boot-2013.01.01.tar.bz2
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-13 17:38:41 ERROR 404: Not Found.

Download failed.

Hi Federico & All,

I have followed all the instructions to rebuild the Linino image and gave a final make V=s

It took 7 hours to complete the make and looks to me lots of packages got built. I am interested mainly in C++ toolchain:
1.) Please can anybody point me after the make where I should look for C++ toolchain and how to install this.
2) Many of you have successfully compiled this, can you show throw some light on toolchain and where the packages/executable are created under linino and what command I need to run to install them.

Thanks for your detailed help. This may be obvious question, sorry I am new to Linux world.

Sincerest Regards

BRE

Everything is in the same relative position from trunk as from the OpenWrt-SDK directory as in this post-
http://forum.arduino.cc/index.php?topic=205091.msg1518936#msg1518936

someone has built the toolchain in OS X 10.9 with Homebrew?
Please share the how to

Regards

Hi there,

I have followed the instructions here on how to build linino.

I am using Debian Squeeze (6.0). After 4 hours I get this error:

../libfreefare/freefare.h:52:31: error: unknown type name 'nfc_device_t'

Anybody know how to solve this ? Is it a problem to disable some packages from compiling ? (like oss as mentioned previously in this thread)

Thanks!

bilica:
Hi there,

I have followed the instructions here on how to build linino.

I am using Debian Squeeze (6.0). After 4 hours I get this error:

../libfreefare/freefare.h:52:31: error: unknown type name 'nfc_device_t'

Anybody know how to solve this ? Is it a problem to disable some packages from compiling ? (like oss as mentioned previously in this thread)

Thanks!

At:

Utilities->libfreefare-examples

Libraries->libfreefare

turn both off.

libfreefare is lib for mifare access at nfc, as long you are not planing to use NFC reader to access mifare card. You should be fine.

Thanks, it worked.

However, I am getting stuck at:

mips-openwrt-linux-uclibc-gcc -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -I. -I. -I/home/marcio/linino/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/marcio/linino/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/marcio/linino/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/marcio/linino/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -DSSHDIR="/etc/ssh" -D_PATH_SSH_PROGRAM="/usr/bin/ssh" -D_PATH_SSH_ASKPASS_DEFAULT="/usr/lib/ssh-askpass" -D_PATH_SFTP_SERVER="/usr/lib/sftp-server" -D_PATH_SSH_KEY_SIGN="/usr/lib/ssh-keysign" -D_PATH_SSH_PKCS11_HELPER="/usr/lib/ssh-pkcs11-helper" -D_PATH_SSH_PIDDIR="/var/run" -D_PATH_PRIVSEP_CHROOT_DIR="/var/empty" -DHAVE_CONFIG_H -c mac.c
mac.c:73:33: error: 'EVP_ripemd160' undeclared here (not in a function)
make[4]: *** [mac.o] Error 1

Any ideas ? I could try to disable openssl but I don't think it is a good idea.

Thanks!

sonnyyu:

bilica:
Hi there,

I have followed the instructions here on how to build linino.

I am using Debian Squeeze (6.0). After 4 hours I get this error:

../libfreefare/freefare.h:52:31: error: unknown type name 'nfc_device_t'

Anybody know how to solve this ? Is it a problem to disable some packages from compiling ? (like oss as mentioned previously in this thread)

Thanks!

At:

Utilities->libfreefare-examples

Libraries->libfreefare

turn both off.

libfreefare is lib for mifare access at nfc, as long you are not planing to use NFC reader to access mifare card. You should be fine.

first turn off
Network->SSH

after you complete compile then turn it back on

copy "110-no_ripemd_fix.patch" into package/feeds/packages/openssh/

then compile openssh alone

make package/feeds/packages/openssh/compile V=s

"110-no_ripemd_fix.patch" is from openwrt main stream.

Hi,friends:
I am a new player of arduino yun.when building the toolchain,i have followed the instructions here on how to build linino.but the last step ,typing make.,However, I am getting stuck at:

i686-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I/home/openwrt/linino/trunk/staging_dir/host/include -g -O2 -MT elf.o -MD -MP -MF .deps/elf.Tpo -c -o elf.o elf.cpp
elf.cpp:599:1: fatal error: error writing to /tmp/ccpafRnX.s: No space left on device
}
^
compilation terminated.
make[7]: *** [elf.o] Error 1
make[7]: Leaving directory /home/openwrt/linino/trunk/build_dir/host/mklibs-0.1.35/src/mklibs-readelf' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory /home/openwrt/linino/trunk/build_dir/host/mklibs-0.1.35/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory /home/openwrt/linino/trunk/build_dir/host/mklibs-0.1.35' make[4]: *** [all] Error 2 make[4]: Leaving directory /home/openwrt/linino/trunk/build_dir/host/mklibs-0.1.35'
make[3]: *** [/home/openwrt/linino/trunk/build_dir/host/mklibs-0.1.35/.built] Error 2
make[3]: Leaving directory /home/openwrt/linino/trunk/tools/mklibs' make[2]: *** [tools/mklibs/compile] Error 2 make[2]: Leaving directory /home/openwrt/linino/trunk'
make[1]: *** [/home/openwrt/linino/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/home/openwrt/linino/trunk'
make: *** [world] ?? 2

Any ideas?i had thought it a whole day,only to find no answer.

Thanks a lot!

A friend from china.

error writing to /tmp/ccpafRnX.s: No space left on device

Looks like your hard disk is full