2418 views|1 replies

164

Posts

0

Resources
The OP
 

Xunwei IMX6ULL development board builds a web server [Copy link]

The information used in this chapter has been put into the development board network disk, the path is "11_Linux system development advanced\80_Chapter_Building Web server usage information".
Build a web server on iTOP-IMX6ULL. Operating environment: Compiler: arm-2014.05 compiler, the file system uses busybox to transplant Qt5.7 file system. The path is: i.MX6ULL Terminator CD data\08_Development board system image\03_File system image\01_Busybox file system.
This chapter uses the iTOP-IMX6ULL development board to build a web server. You need to use boa, which is a small web server with only about 60KB executable code. It can be used on multiple platforms. It is a single-task web server that can only complete user requests in sequence. It is more common in embedded systems. The official website of boa is www.boa.org, where you can download the latest version of boa. Here we use boa-0.94.13.tar.gz.
After downloading and unzipping, as shown in Figure 80.1


Enter the unzipped boa-0.94.13 folder and enter the src directory.

Execute "./configure" to generate Makefile.

Modify Makefile, set the cross-compiler, execute "vi Makefile", and find the CC and CPP variables, as shown in Figure 80.4:

Change to your own cross-compiler,
CC = arm-none-linux-gnueabi-gcc -static
CPP = arm-none-linux-gnueabi-gcc -E -static
As shown in Figure 80.5

After completion, execute make to compile. The following error will appear during the process, as shown in Figure 80.6.

The solution is to use the vi command to open compat.h in the current directory, and then find
the line "#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff", delete the "##" and change it to as shown in Figure 80.7:

Then save and exit compat.h, enter make, and continue to compile boa, as shown in Figure 80.8:

Copy the boa executable file in the src directory to the shared folder.

Copy the mime.types file in the /etc directory of the virtual machine Ubuntu to the shared folder.

There is a default boa.conf file under the boa-0.94.13 directory. Copy it to the shared folder as well.

Create a boa folder in the /etc/directory and copy boa.conf to the etc/boa directory of the board.

Copy mime.types to the etc directory of the development board.

This post is from ARM Technology

Latest reply

Thanks for sharing!   Details Published on 2021-6-7 17:33
 

7422

Posts

2

Resources
2
 

Thanks for sharing!

This post is from ARM Technology
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list