Hello Everyone,
I am brand new to Flukso and am interested in playing with the device. I am trying to compile the source and coming up with a problem that I am hoping to get help on.
- make[3]: Leaving directory `/home/ubuntu/workspace/flukso2/bin/flm02.1.4/package/linux-atm'
- make[2]: Leaving directory `/home/ubuntu/workspace/flukso2/bin/flm02.1.4'
- make[1]: *** [/home/ubuntu/workspace/flukso2/bin/flm02.1.4/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.package_compile] Error 2
- make[1]: Leaving directory `/home/ubuntu/workspace/flukso2/bin/flm02.1.4'
- make: *** [world] Error 2
It seems this is a known issue - but I can't find a solution.
If I change the target to broadcom (really anything other than Atheros) the compile works. Otherwise I get the error above.
I have tried compiling the system on several different Ubuntu systems from 8.04 to 11.10 and get the same error.
So my questions for anyone who may be able to help are;
1. What development environment/operating system are most people using for development and compiling?
2. Does anyone know how to fix this problem (above)?
3. Any there any special "tricks" that are useful to know?
Thanks in advance
Geoff
Hi Geoff,
I am compiling the target under Ubuntu 10.04. The whole x-compilation toolchain is downloaded from source and compiled for your machine when running make for the first time. Could you try compling with:
This will output a lot more traces and might help to pinpoint the problem. There should be an error reported near the end of the trace.
One more remark: Are you sure that you've got the avr-gcc package installed on your machine? Preferably 4.3.4 or higher.
Cheers,
Bart.
Hi Bart,
Thanks
I have not explicitly installed AVR so that could be the issue. I will start with a brand new Ubuntu 10.04 LTS image and see where I end up.
regards
Geoff
Just an update for anyone who comes across this later. I was able to completely download, compile and flash the device using the following steps.
I used a completely new install of Ubuntu 10.04 32bit Desktop on a laptop computer.
Compile takes about 1 hour
make sure the device is plugged in directly with a cross over cable and OFF. Not through a switch or router. When you see "Device detection in progress..", turn the device ON (plug power in) and it should be discovered in a few seconds and flashed in a couple of minutes.
Is there a WIKI this can go into anywhere?
Nice work! And thanks for listing all the deb package dependencies. Flukso doesn't have a wiki right now. But feel free to post this step-by-step guide to the flukso-dev [1] mailing list.
The first compilation does indeed take a long time since it needs to download and compile the entire x-compilation toolchain. If you now run a
the compilation should only take a couple of minutes. If you want to (re-)compile a single package xyz then
can be used.
[1]: http://lists.flukso.net/mailman/listinfo/flukso-dev
Had to change line 7, "cd ~/workspace/flukso2/openwrt" to:
cd ~/workspace/flukso2/flm02/openwrt
The build is "flm02.1.7" - I'm now running the initial make.
Following the above, I got the following error on Ubuntu 12.04 (64bit):
This actually just says that the line "local variant" in the file "bin/flm02.1.7/build_dir/target-mips_uClibc-0.9.30.1/luci-0.9+svn/build/mkversion.sh" is not ok. I believe local variables are default in Bourne Shell, so you can probably just remove that line and re-execute the last mkversion.sh command:
Then I reran:
make
, now it compiles. (See also https://forum.openwrt.org/viewtopic.php?id=26169 for a related thread)Hi,
I'm new in GNU/linux so probably the problem I'm having should have an easy solution but I can't solve it.
I have follow the steps @GEOFFTECH shows in the upper post in Ubuntu 10.04 x32bits and I get the next message when compiling:
Please, could you help me?
Also, will be better to use a newest version of Ubuntu?
Thank you.
I can't seem to find the error in your trace. You're probably running make with the '-j' switch. Can you do a
and post the last trace lines in a comment?
Sure, there are the results with: make clean; make
Also doing it with: make V=99; Here the results:
Thank you.
That trace makes a lot more sense. The rfm12 git submodule was not initialized. Run these commands in the root dir of the flm02 repository:
Then re-run the make command in your build dir. It should now compile properly. I will add the submodule init commands to the install file.
Hi Brad,
Finally got it! As I said I'm new on GNU/Linux, so it has been really difficult to make
I've had a lot of problems with ssh certification to conect with github.com.... but finally I achieved to update the module. After that I compile the firmware again and it works perfect this time!
Now I'm going to continue playing with the device. :)
Thank you!