Last summary we have burned finish u-boot, I burned U-boot is the board manufacturer custom, this section will use this u-boot burn write the whole system. Of course, when porting a system, it also involves customizing a u-boot.
Burn and write the whole system. We have a tool called DNW, DNW is a USB tool that sends files via USB to bootloader with USB download capability. Also said that I use the manufacturer custom U-boot already has the USB download function. I need to install some libraries first:
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
Then, using the DNW tool provided, execute the following command:
sudo cp dnw/usr/bin/&& chmod +RX/USR/BIN/DNW
First, enter the "Kermit" command on the terminal, turn on the power of the board, and the system enters the u-boot. Before the end of the countdown, press the space bar, U-boot will enter the command mode, or debug mode, which is one of the U-boot two functions. The serial port has already output some hardware information and the factory custom menu, the menu is as follows:
[n] Download u& from ram[f] Format the Nand flash[s] Set the boot parameters[b] boot th e System[r] Reboot u- from menuenter your selection:
First, write a kernel, enter "K" above, and enter it under the image file you want to burn: sudo dnw uimage. By default, the 0x30000000 address is passed to the memory via USB, but you can also add the memory address directly behind the command. After waiting for the delivery to complete, erase the kernel partition and write the kernel in the u-boot command mode to Nandflash:
NAND Erase kernel
NAND WRITE.JFFS2 30000000 Kernel
is to write the kernel in memory into the Nandflash kernel partition.
Below we should burn write file system, also enter the menu, enter "y", burn write the file system of YA YAFFS2 format: sudo dnw fs_qtopia.yaffs2. The root partition is then erased in u-boot Command mode, and the file system in memory is written to Nandflash:
NAND Erase Root
NAND write.yaffs 30000000 260000 2F76B40
It is also said that the file system in yaffs format from the memory 0x30000000 address to the location of Nandflash 0x260000, the size is 0X2F76B40.
The whole system on the completion of burning, in fact, there are other ways to write, if U-boot can support the network download, we can also use TFTP and NFS download, interested can understand, there may be mentioned later.
In the next section, the cross-compilation tool will be introduced.
Embedded Linux Tour--burning and writing the whole system of environment construction