The first app on arm Linux boa porting

Source: Internet
Author: User

1. First, Linux can run on the Development Board.

Including network Drive also has, after ifconfig, can see in RCS inside set of IP, also can ping through Windows host, of course, also want window to turn off the firewall.

2. A tftp on the windows, and later found that this is not possible, because each package to be repeated packaging, a bit tired, or with a virtual machine to open NFS more reliable, but my virtual machine is not reliable, always do not walk the wired network card, the initiative to go wireless.

3. Busybo's TFTP command is a bit of a dick, in the format:

Tftp-g-L localfilename-r remotefilename x.x.x.x

4. Then download boa, modify the boa.c file

Comment out the following code:

if (passwdbuf = = NULL) {die ("Getpwuid");   } if (Initgroups (passwdbuf->pw_name, passwdbuf->pw_gid) = =-1) {Die ("initgroups"); }//comment out, use # if 0 #endif

5. Locate the boa.conf configuration file in the example folder and modify it slightly

A. Comment out the servername field to avoid an error servername get.

B. Change the User/usergroup to 0

C. Locate the root directory of the document, such as/var/www, log directory, and write down

6. Set up the/var/log/boa directory on the Development Board to put the error log, and then build/var/www to store the Web site root directory

7. Go back to Ubuntu and make a change to the BOA compilation environment and let him cross-compile

Src/makefile
CC = ARM-LINUX-GCC
CPP = ARM-LINUX-GCC-E

First use. Configure, then make

After the completion of the identification, the SRC folder is packaged directly

Tar cvf Src.tar src/

Do not compress, compress the words, the BusyBox on the Development Board cannot open, or I did not find the method to put. In short, direct packaging.

8. Finally use TFTP to put this tar under the/var/boa/, and then copy the boa.conf file to/var/boa/below, and then directly run Src/boa can go to the error log where there is no problem. The log is no problem:

[01/jan/1970:01:29:20 +0000] caught SIGTERM, starting shutdown
[01/jan/1970:01:29:20 +0000] exiting Boa normally (uptime seconds)
[01/jan/1970:00:02:03 +0000] boa:server version Boa/0.94.14rc21
[01/jan/1970:00:02:03 +0000] Boa:server built Jan 9 at 18:01:02.
[01/jan/1970:00:02:03 +0000] boa:starting server pid=780, Port 80

Like that.

No problem, try to build a index.html file under the WWW root directory, Windows can access, indicating that Boa successfully ported.

PS, add a mime.types file, directly from Ubuntu above the file TFTP to the Development Board on the line. Under etc.

Reference Documentation:

http://blog.csdn.net/xdw1985829/article/details/6672742

The first app on arm Linux boa porting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.