1. Which is true if i just cross compile on PC or MINI2440? 2.I need to send data on serial port so what should i do after cross compile? 3.If i need to use MINI2440 to be server what 's command that i must use? Thank You.
after cross compile
1. Which is true if i just cross compile on PC or MINI2440? You can cross-compile software on your PC for using on MINI2440. Or you can cross-compile gcc and compile software on mini2440 )) But this is madness) 2.I need to send data on serial port so what should i do after cross compile? 'data' > /dev/ttySAC[port_num] 3.If i need to use MINI2440 to be server what 's command that i must use? What server do you mean? Anyway you should cross-compile server-software first
1. Which is true if i just cross compile on PC or MINI2440? You can cross-compile software on your PC for using on MINI2440. Or you can cross-compile gcc and compile software on mini2440 )) But this is madness) 3.If i need to use MINI2440 to be server what 's command that i must use? What server do you mean? Anyway you should cross-compile server-software first ///////////////////////////////////////////////////////////////// on The questions 1 and 3 PC >>>RJ45>>ROUTER>>>MINI2440>>>serial port MINI2440 must be server and then if i typing on web browser on PC so MINI2440 must send data from serial port. ////////////////////////////////////////////////////////////////// 1.After cross compile on PC,I have linux-examples-led-code so if i want to start using this code and run on MINI2440 what sould i do? 2.There's makefile code should i using it?
zlatan14 , You can use BOA webserver included in linux image, write one CGI application, read input from browser and write it to serial. CGI application is quite simple: http://www.cs.tut.fi/~jkorpela/forms/cgic.html If you dont like Boa server, you can use thttpd.(you need to cross compile it) http://acme.com/software/thttpd/ Regards,
zlatan14: I strongly recommend you take a look at pengutronix / Juergen Beisert's BSP (http://pengutronix.de/oselas/bsp/pengutronix/index_de.html), which includes almost everything you need to get your development started and the documentation is also done very well. If you need to extend it, or something is missing, you can just write another Makefile for ptxdist and provide it to the community. If it's for your own projects, I assume they will be welcomed in the ptxdist-community as well.
Thank you. Now I have problem after I create hello.c so I compile hello.c by this function $gcc hello.c -o hellox86. So now I must get hellox86 and then I just set mini2440 be 192.168.1.230 and I FTP to mini2440.So I use browser to mini2440 as 192.168.1.230/hello.c. 1. How could I compile hello.c to hello.cgi? 2. Where should I start for this?