1. Linux Resources Linux has become the preferred Operating System for Embedded Systems with its open-source and free features. However, it has a huge advantage in its vast and unlimited resources! Maillist is a variety of Embedded Linux site resources:(1) uClinux: All nommu processors run uClinux UClinux release package download point: Http://www.uclinux.org/ Maillist search engine: Http://mailman.uclinux.org/htdig/ A developer who is engaged in uClinux should pay attention to the following points: Http://www.ucdot.org/ (2) ppclinux: All PowerPC processor platforms run ppclinux Download point of ppclinux release package: Http://penguinppc.org/dev/kernel.shtml Http://www.denx.de/ Maillist search engine: Http://lists.linuxppc.org/select linuxppc-embedded Software Download point: Ftp://ftp.denx.de/pub/LinuxPPC/usr/src/ (3) armlinux Download the armlinux release package: Common download Methods Ftp://ftp.uk.kernel.org/pub/linux/kernel/v2.4/ Another way is to use CVS: Generally, all of them are in sourceforge.net. Http://sourceforge.net/cvs? Group_id = 33360 The CVS command is as follows: (this is what your RedHat Linux PC must be able to connect to the Internet) CVS-D: pserver: anonymous@cvs.sourceforge.net:/cvsroot/armlinux Login CVS-Z3-D: pserver: anonymous@cvs.sourceforge.net:/cvsroot/armlinux Co linux-2.4 ARM development Daquan: http://www.arm.linux.org.uk/developer/ ARM kernel porting and compilation articles: http://www.arm.linux.org.uk/docs/kerncomp.shtml Maillist search engine: Http://www.arm.linux.org.uk/armlinux/mailinglists.php (4) bootloader Resources U-boot: http://www.denx.de/ Other common Dongdong: Maillist for microwin Development Http://www.linuxhacker.org/cgi-bin/search.cgi MiniGUI Development Http://www.minigui.org/cgi-bin/lb5000/leoboard.cgi Rtai real-time patch Http://www.aero.polimi.it /~ Rtai/ Http://www.denx.de/ Gnu cc (GCC) English resources (documentation, very good) Http://gcc.gnu.org/onlinedocs/gcc/ Http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html#Option%20Summary 2. Download the processor pdf manual (right-click and choose "Save as target ()") Mcf5249 processor Manual MCF5272 processor Manual Mpc852t processor Manual: it is the "Ethernet only version" of the mpc866, so it is the manual of the mpc866. Mpc7410 processor Manual Mpc7457 processor Manual Mpc8540 processor Manual Mpc3165/8241 processor Manual MPC860 processor Manual Mpc823e processor Manual Mpc8260 processor Manual WINBOND W90N740 processor Manual S3C2410 processor Manual S3C2440 processor Manual Processor Manual B0 processor Manual At9140800 processor Manual At91rm9200 processor Manual HMS30C7202 processor Manual XScale ixp425 processor Manual 3. Other resources FAQs about hhcf embedded Linux development platform FAQs about huaheng PowerPC Products FAQs about huaheng ARM Series Products 4. RedHat Linux CD image download point Http://www.linuxiso.org/ 5. Common resources Serial Communication: Http://www-900.ibm.com/developerWorks/cn/linux/l-serials/index.shtml#1 At&t Embedded Assembly Http://www.32mcu.com/linux1.htm BDM + GDB debugging Http://www.ucdot.org/article.pl? SID = 03/01/30/0548223 6. Precautions for installing Linux on the host machine and NFS configuration We recommend that you use the RedHat series. Currently, the host machine platform of all huaheng products is based on redhat9.0. Redhat7.2 recommended in some manuals is now recommended to use redhat9.0, of course redhat7.2/7.3 systems are also available, but given that redhat9.0 is available on the market, we recommend that you use redhat9.0 A common problem in host configuration is the NFS configuration. Here is a simple method: First, execute setup on the RedHat Linux PC. After the menu interface is displayed, select system services and press enter to enter the system service option menu. Select [*] NFS, Then exit the setup interface and return to the command prompt. Vim/etc/exports Change the default empty file to the following content: (Note that there is a space in the middle) /??? (RW) Save and exit (: WQ), and then execute the following command: /Etc/rc. d/init. d/nfs restart Shutting down NFS mountd: [OK] Shutting down NFS daemon: [OK] Shutting down NFS quotas: [OK] Shutting down NFS services: [OK] Starting NFS services: [OK] Starting NFS quotas: [OK] Starting NFS daemon: [OK] Starting NFS mountd: [OK] So everything is OK! Note] Because NFS does not start automatically every time, it cannot be set to the Automatic startup mode as the linuxconf command. Run the following command to restart the NFS service: /Etc/rc. d/init. d/nfs restart (It is best to write the above sentence to the/etc/rc. Local file, so that every time the computer restarts, the above command will be executed every time to start the NFS service) After the configuration is complete, you can test whether NFS is configured as follows: Mount yourself on the host machine and check whether the NFS configuration is successful. For example, run the following command in the host machine/directory: Mount-O nolock 192.168.2.32 :/??? /Mnt (sometimes if the root directory does not allow read/write, execute chmod 777/Try) Check whether all files and directories in the/mnt/directory can be listed. If yes, the mount is successful and NFS is configured successfully. But in fact, RedHat Linux If the PC mounts itself successfully, it cannot completely state that NFS can work. Because there is still a firewall problem, we recommend that you install RedHat. No firewall is selected by default in Linux, but if the customer does not select this option, the RedHat will load the firewall rules at startup so that you can mount But other PCs and boards cannot mount this PC. Run setup to close the firewall. Note! The firewall in setup always shows high. This is RedHat is always a small bug, even if you select No by default during installation In Firewall and setup, the firewall settings are still high, so you don't have to worry about this. Once you select no firewall You can. For more information about the firewall, see the PDF in your CD. In addition, we recommend that you are not very familiar with Linux operations. Please read the "linux Run ". Also, RedHat has the following problem: after adding the gateway settings, it is very slow to establish TCP connections on the network, for example, FTP, telnet, and NFS connections. After the connection is established Communication is fast. If you have added a gateway when installing the network, you will see the Mount-O nolock when you mount RedHat PC on the NFS board. PCIP :/ /After MNT, if you do not return a shell prompt for a long time, you will stop there. This means that the connection has been established for a long time. Generally, in this case, we recommend that you Run Route del default Remove the gateway, and then perform NFS mount and other operations. In addition, if you are not using huaheng's Development Board, your busybox may not be supported by NFS mount. In this way, you need to recompile busybox and add NFS mount support, then update ramdisk and re-burn it. Of course, to test NFS, you must connect the board to the RedHat Linux PC over Ethernet. There are two Connection Methods: first, the Board and the PC are connected to the hub or switch using a common network cable; second, use a crossover network cable to directly connect the board and PC! This type of network cable is specially crafted for internal sending and receiving exchanges! The test board and PC network connection method is as follows: after the Board starts Linux normally, Ping PC to see if it can pass, of course, it is also possible to ping the board with PC to see if it can pass. Note: The Board must be started to Linux before it can be pinged. When the Board is in the bootloader stage, it cannot be pinged, even if the Board is initialized Ethernet is not supported. If the network between the Board and the PC is disconnected, the Mount error message is: # Mount-O nolock 192.168.2.211: // mnt Mount: RPC: unable to receive; enrno = No route fo host Mount: sfsmount failed: Bad file descriptor Mount program didn't pass remote address! Mount: mounting 192.168.2.211:/on/mnt failed: invalid argument About TFTP service installation Some customers install RedHat In Linux, sometimes everm --> packages is not selected to select everything, resulting in no installation of the TFTP service (typically, after installation is complete, no /Tftpboot directory, setup --> system services does not have the TFTP Option In this case, it is too troublesome to re-install the service completely. You can install and modify the service separately as follows: <Thank you to the Shenzhen customer Dr. Liao daiguo for providing information> How to install TFTP: Rpm-IVH tftp-server-0.32-4.i386.rpm. The tftp-server-0.32-4.i386.rpm is in the redhat9's 3rd discs. 7. Use and configuration of Web Server Boa (1) For uClinux-Dist, make menuconfig in the Application menu, select BOA under network application, and then execute make compilation in the uClinux-Dist directory. For platforms with MMU, such as armlinux and ppclinux, you can download a boa tar package from the Internet and find a mainstream available version. Do not use the latest version or the oldest version. . Download it to the RedHat host, decompress it to any directory, and modify the compiler in Boa/src/makefile. You only need to add two or three lines, for example: Cc =/linuxppc/Cdk/bin/PowerPC-Linux-gcc-dhhtech_ppc CPP =/linuxppc/Cdk/bin/PowerPC-Linux-G ++ Then execute make in the BOA/src directory to generate the boa executable file and copy it to the bin in the directory where ramdisk loads the mount, after adding the following configuration file and HTML/cgi file together, redo ramdisk. (2) Compile the configuration file boa. conf. The configurations of applications in Linux are provided in the form of configuration files. Generally, they are placed in the/etc/directory of the target board or the/etc/config directory, but the boa configuration file boa. conf is usually stored in the target board/home/httpd/directory. For example, a typical boa. conf file format is as follows: Servername HHCF5272-R1 DocumentRoot/home/httpd/html ScriptAlias/cgi-bin // home/httpd/cgi-bin/ ScriptAlias/index.html/home/httpd/html/index.html Define the HTML page (for example, index.html must be placed in the/home/httpd/html directory, and the CGI executable file must be placed in the/home/httpd/cgi-bin directory) (3) Compile uClinux-Dist, Or redo ramdisk, and then use IE to access the webserver on the board on a Windows PC, For example, enter the Board IP address http: // 192.168.2.111,you can see the web page index.html you use dreamweaver. However, only Static Page support. To support form processing and dynamic pages, you must use C code to compile CGI code, uClinux-Dist/user/cgi-Generic Directory. The sample code is provided, or you can purchase it from huaheng. Note: The CGI executable file must be placed in the/home/httpd/cgi-bin directory of the Board. Read the article: Http://www.51eda.com/Article/embed_system/rtos/200405/806.html About auth options 8. About PPP dialing (1) first, create a serial port connection modem according to the signal definition of Serial Port 2 of the Board. For example, the hhcf5249/5272 series platform must exchange the serial port Line 2 and 3 of the modem, 7, 8 Exchange. After the cables are established, use the tip software to test the MODEM communication: Tip-L/dev/ttys1-s 19200 After connected is displayed, you can enter the AT command to directly talk to the modem. This is used to test the serial port. (2) configure the kernel to support PPP and compile the dial-up application: pppd/chat. For Kernel support, make Menuconfig network device support configured in the kernel ---> Select PPP, slip, cslip, and so on. You can select specific details. You can select all options. The practices of applications are similar to those of boa. (3) Compile the dialing script and related configuration files. Manual dialing on Redhat must be successful (do not use the image Interface) before you can perform a test on the board. In addition, this is only the first step, simple Because many application details are required during the product process, such as disconnection and redial detection, automatic dialing upon startup, automatic disconnection without traffic, and automatic traffic dialing, they are all very troublesome. The details require a large number of stability and reliability tests over a long period of time. Huaheng provides dial-up software (GPRS/ADSL) for stable applications tested in major cities around the world, which can greatly save the time to market for users' products. |