Building Firmware

4 replies [Last post]
Ayr, United Kingdom
Joined: 25 Sep 2011

First of all a free admission that I don't have a clue what I'm doing with this, but as a few
people have decided to build firmware to run on the Raspi I thought I might have a go and see
what happened.

I created a VM running Ubuntu 10.04 and had a go at installing the necessary bits to make it
suitable for compiling the firmware.

I made some progress but the "make -f Makefile.bone" always ends with the following error:

make -C src/posix -f rex_posix.mak

make[2]: Entering directory `/home/allan/livebox-hah-read-only/userapps/opensource/lrexlib-2.4.0/src/posix'

ld -o -shared lposix.o ../common.o

lposix.o: In function `generate_error':

lposix.c:(.text+0x1e5f): undefined reference to `__stack_chk_fail_local'

ld: hidden symbol `__stack_chk_fail_local' isn't defined

ld: final link failed: Nonrepresentable section on output

make[2]: *** [] Error 1
make[2]: Leaving directory `/home/allan/livebox-hah-read-only/userapps/opensource/lrexlib-2.4.0/src/posix'

make[1]: *** [build_posix] Error 2

make[1]: Leaving directory `/home/allan/livebox-hah-read-only/userapps/opensource/lrexlib-2.4.0'
make: *** [lrexlib] Error 2

which i, obviously don't really understand.

I've tried several different approaches using different OS's but to no avail.

I wondered if it was because I needed the "Invertel Source and Precompiles Toolchain"
so I decided to have a go at installing that as well.

I've downloaded the 3 or 4 times
but while it says that 333MB has been downloaded, it never seems to complete correctly and I always get a 240-270 MB corrupt archive.

So 2 questions
1) Do I need this to make it work?
2) Has anyone else had trouble with the archive being corrupt?

United Kingdom
Joined: 11 Jun 2010

Allan, are you trying to get the HAH Software running on the Pi?  I'm guessing this is the case.  From what I've gathered, and I could very well be wrong, rather than compile a full firmware image only the necessery programs have been compiled, if this is the case then you won't need the toolchains.  I think this is the approach Avio has taken, whereas Brett and Mark are using the Beagleboard at the moment.

I could be VERY wrong, and like you, I'm very eager to see it running on a Pi.

If you're compiling on the Pi I think you'll just need to install any prerequesites, but I'm really out of my comfort zone on this, I could give it a go and see where I get to, perhaps we can put something together?



Ayr, United Kingdom
Joined: 25 Sep 2011
You're right Karl, the basic

You're right Karl, the basic idea was to try and get something running on the Pi. I thought that if I followed the Wiki as best I could and managed to make some progress that I might be able to transfer the skills/results to the Pi.

Perhaps you are right thought, maybe the best thing to do is just do the compiling on the Pi itself. (I say that as though I know what I'm doing, which of course I don't)

I'll maybe have a go tomorrow at installing compilers etc. on the Pi and let you know how I get on.


United Kingdom
Joined: 11 Jun 2010
It's been a while since I've

It's been a while since I've done anything with my HAH, although it's still here and working, a testimony to Brett and Derek's hard work.  All this "Up and Coming Changes" has really sparked my interest again :)  

I'm just downloading the latest Debian image for the Pi, so I'll get that installed and see how far I can get as well.

United Kingdom
Joined: 31 Mar 2011
Hi guys. I currently have the

Hi guys. I currently have the HAH up and running on the pi perfectly. Even got the hardware board connected to the gpio ports so everything now as it was on the HAH for me.

i don't use SMS or Googlecal so I haven't compiled these yet.

as you say I have done this by compiling the individual components seperatly and installed lua, penlight, flex etc separately also. It has been time consuming but I've learned loads.

Brett has modded the overall makefile to run on the bone but I had no luck with this yet. I am going to try a clean make as he suggested later tonight to see if it's possible to do the whole job in one go this would then be easily manageable.


So far so good, just a matter of time now to make it simpler. :)

for interest I complied on the Pi


Hardware Info