I downloaded the source trunk and installed the toolchain supplied by BitSwitcher. After cd'ing into the directory dev_tree, I entered 'make PROFILE=96348GWV_DT'. The build process got quite a way, but then it kicked out with an error.
Earlier, it didn't even get that far, because it was looking for stuff in Patrick's iperf directory (not mine!). That seemed to be solved by going into my bs_extra/iperf-2.0.2 directory and executing ./configure.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Executing "file iperf" revealed that iperf is in ELF format for Intel 80386, when something for MIPS is expected.
Looking at the Makefile in bs_extra/iperf-2.0.2, I see that it used the host's compiler and not the crosscompiler from the toolchain. So now I need to consult the GNU make manual to figure out the best way to fix the problem.
dgktkr
PS I hope it's OK to post here the actions that lead me to a solution to building good bitswitcher firmware. If someone else like me comes along who is new to Linux and GNU make, it might be of use to them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I downloaded the source trunk and installed the toolchain supplied by BitSwitcher. After cd'ing into the directory dev_tree, I entered 'make PROFILE=96348GWV_DT'. The build process got quite a way, but then it kicked out with an error.
Any hints as to what might be going wrong?
Earlier, it didn't even get that far, because it was looking for stuff in Patrick's iperf directory (not mine!). That seemed to be solved by going into my bs_extra/iperf-2.0.2 directory and executing ./configure.
Google is your friend!
I did a search on "mips-linux-uclibc-strip" + "Unable to recognise the format" and the hit http://www.ip-phone-forum.de/showthread.php?t=167980&page=1 sheds light on the matter.
Executing "file iperf" revealed that iperf is in ELF format for Intel 80386, when something for MIPS is expected.
Looking at the Makefile in bs_extra/iperf-2.0.2, I see that it used the host's compiler and not the crosscompiler from the toolchain. So now I need to consult the GNU make manual to figure out the best way to fix the problem.
dgktkr
PS I hope it's OK to post here the actions that lead me to a solution to building good bitswitcher firmware. If someone else like me comes along who is new to Linux and GNU make, it might be of use to them.
To get make to compile code for the mips cpu, two environment variables can be defined and exported:
More errors occurred after that fix. I'm using Ubuntu 10.10 and got a bunch of lines complaining that rpl_malloc is undefined.
http://groups.google.com/group/ikarus-users/browse_thread/thread/fd1d101eac32633f gives a solution: execute
while in the bs_extra/iperf-2.0.2 directory, then
Now, back in the trunk/dev_tree directory
which finally resulted in a successful build. The sudo was necessary, because make wants a password for a
and I don't know what the superuser password is. The password for my account didn't work.
dgktkr