Building Firmware
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 rex_posix.so.2.4 -shared lposix.o ../common.o
lposix.o: In function `generate_error':
lposix.c:(.text+0x1e5f): undefined reference to `__stack_chk_fail_local'
ld: rex_posix.so.2.4: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make[2]: *** [rex_posix.so] 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 http://www.dbzoo.com/public/OPENSOURCE-5G-2006-07-18.tgz 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?
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.
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.
So far so good, just a matter of time now to make it simpler. :)
for interest I complied on the Pi
Garry
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?
Karl