I got my Linux box up and followed your instructions on installing the SDK for OpenWRT and making the helloworld sample program.
First I want to thank you for the great job of documenting this process which no doubt saved me countless hours of work.
I found two issues with the Wiki which I will report. First, the Makefile for the sample program compiled and run under Linux did not work for me. I made a more traditional Makefile that I got to work though. Looks like this.
Code: Select all
# build helloworld executable when user executes "make"
helloworld: helloworld.o
$(CC) $(LDFLAGS) helloworld.o -o helloworld
helloworld.o: helloworld.c
$(CC) $(CFLAGS) -c helloworld.c
# remove object files and executable when user executes "make clean"
clean:
rm *.o helloworld
Finally, my bubble burst when my program did not run and instead returned the following.
Code: Select all
root@OpenWrt:~# helloworld
helloworld: can't resolve symbol '__uClibc_start_main'