Article Title: Compile RedBoot in Ubuntu8.04. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I have been learning u-boot, and I feel that it is powerful and flexible enough, and there is a lot of information on the Internet, but I still have mastered it and cannot freely use it.
The company's board mainly uses Redboot and Vxworks boot, which is a headache, because there is not much information about the two boot systems on the Internet, and the company's Flash is still SPI interface, the first contact, the most basic burning method has not been completed yet, but the process is still more smooth than imagined. Finally, the compilation is successful, mainly through the guidance of colleagues, and there is already a ready-made redboot on the Internet.
The following are my actual steps:
1. Download redboot-ap61.tar.gz. This package contains not only the source code, but also the MIPS cross compiler.
Linux/redboot-ap61.tar.gz> http://dl.meraki.net/linux/redboot-ap61.tar.gz
2. During compilation in Ubuntu 8.04, the following errors are always prompted:
Tail: cannot open' + 2' for reading
At the beginning, it was hard to solve the problem, but it only improved to redhat compilation. It turned out to be a good solution. However, I found a solution on the Internet by chance:
Set in the command line:
Export _ POSIX2_VERSION = 199209
It can be passed smoothly, as if it was caused by different command versions.
Later I was prompted that there was no TCL, So I installed TCL again temporarily.
Sudo apt-get install tcl
Note that you must set the directory for generating the binfile. Otherwise, it will be placed in/tftpboot by default, but this directory does not exist at all, so an error will be reported and exited, I wrote a simple script for each compilation:
#! /Bin/sh
Make clean
Make AP_TYPE = ap51 TFTPPATH =/home/myhome/redboot-ap61/install FLASH_MB = 2 DRAM_MB = 8
ENET_PHY = icplus ap51
3. However, after compiled files are burned into Flash, they cannot be started properly.
I found the configured redboot that exactly corresponds to my board on the Internet.
Http://rapidshare.com/files/112845340/redboot_cobra.tar.bz2.html
There is no cross compiler in this package, so use the above compiler to set the path:
Export PATH = $ HOME/redhatboot-ap61/gnutool/bin: $ PATH
Use the above compilation script to pass the script in Ubuntu.
4. Burned into Flash and started smoothly.