5. Installation Linux System to Development Board
Course Requirements:
1. Understand the composition and startup process of Linux embedded systems.
2. Automatically burn the Linux system to NAND flash via SD card.
3. Experience the LINUX+QT system.
Laboratory Equipment:
Software:
1.ok6410 disc A, B.
Hardware:
1. One PC machine.
2. SD card reader each one
3. OK6410 Development Board set.
4. A USB-to-serial line.
Background knowledge:
1. Qtopia Introduction:
Qtopia is a comprehensive application platform developed by Trolltech for consumer electronics devices with embedded Linux operating systems, Qtopia includes a complete application layer, flexible user interface, Windows operating system, Application Launcher, and development framework. Because Qtopia and its development environment QT in the same product performance, in 2008, Trolltech company was the famous communications company Nokia acquisition.
2. Linux+qtopia System:
A complete Linux+qtopia embedded system (from software perspective) consists of 4 parts, the boot loader (bootloader), the Linux kernel, the file system, and the application (for example, Qtopia).
(1) bootloader. In simple terms, a small program that runs before the operating system kernel runs. With this applet, we can initialize the hardware device and establish a memory space map to bring the system's hardware and software environment to a suitable state in order to prepare the correct environment for the final call to the operating system kernel. The common bootloader have Denx u-boot, Samsung's Supervivi and so on.
(2) Linux kernel. Custom kernel and kernel startup parameters specific to the embedded board.
(3) file system. Mainly refers to the root file system, which may be stored in Nand, memory, network and other devices.
(4) User application program. In Linux systems, graphical desktop systems (such as Qtopia) are present as user applications. These user applications are also based on the file system, stored in the file system.
In this section of the experiment, the automatic installation of the Linux+qtopia system is done by booting from the SD card and automatically burning the image of the bootloader, Linux kernel, and file system that exists in the SD card to NAND flash. Eventually, however, the system runs and loads them from storage media one by one into memory.
Experimental steps:
1. Format Nandflash; Since the OK6410 factory is installed by default WinCE system, and the WinCE system will nandflash the first four blocks marked as bad block, so in the WinCE burning Linux system, you need to first WinCE marked "false bad Block "erase.
Erase method: Connect the Development Board and the computer, open the Serial display tool, start the Development Board from the Nandflash, the Development Board power up quickly after pressing the space bar, make the development Board stop in WinCE eboot command line, 3-17, then enter A, format nandflash, display "all Block (1024x768) Erase "explains the erase success.
Figure 3-17
Start Eboot
2. Make the SD card boot disk by referring to the method in experiment 3.2. OK6410A Disc/linux-3.0.1/demo/will
The U-boot_ram256.bin, Zimage, and ok6410a disks in the directory/linux-3.0.1/filesystem/the rootfs.yaffs2-nand2g copy in the directory to the SD card.
Figure 3-18 Copy the image to SD in the card
3. go to the SD Card directory, modify the image file name, rename the u-boot_ram256.bin to u-boot.bin ,
will be rootfs.yaffs2-nand2g Rename to ROOTFS.YAFFS2
4. Use this SD card to burn the Linux image to NAND flash in the Development Board . Make a good SD card plug
into the Development Board SD card slot, connect the Development Board power, select SD card mode and use the serial line
the Development Board serial port and PC host serial port connected, open the serial tool SecureCRT .
5. Toggle the power switch, and power on the Development Board. The output can be securecrt via the serial port tool 3-18
Development Board Information and Linux The system writes information.
After the successful burning, the Development Board buzzer will be 10 times, while the LED lights running water display.
Figure 3-19
Development Board and Linux installation information
In the system write process, the serial port printing in the case of "XXX not found", please carefully check the SD card image name is modified according to the requirements.
6. Auto-burn finish, power off the Development Board. Set the dial switch as shown in NAND flash boot 3-20. and restart the Development Board. The development Board from NAND Flash normally starts the Linux+qtopia system, as shown in 3-21, at which point the Linux shell command can be used in HyperTerminal. You can also use the LCD screen to operate the Qtopia desktop system.
Figure 3-20
Nandflash mode start
Figure 3-21
Successful startup of the Linux system for automatic burning
7. For the first time access to the LINUX+QT system, the Development Board needs to be calibrated, language, time zone and timing settings.
Once these settings are complete, you can enter the Qtopia desktop system, shown in 3-22, and you can
Use your finger touch screen to operate.
Figure 3-22
Linux+qtopia interface
Summarize:
Through this experiment, we should master the method of automatic installation and operation of LINUX+QT system using SD card, and experience the Qtopia graphical interface and its application program on the Development Board. Here is a summary of the system automatic installation steps as follows:
1. To make an SD card boot disk, you need to go through the following 3 small steps:
(1) First ensure that the SD card is a file system in FAT32 format, otherwise it needs to be formatted.
(2) through the "Scan" button of the Sd-writer.exe tool, scan and select the SD card to burn.
(3) Use the Sd-writer.exe tool to write the Mmc_ram256.bin to the SD card.
(4) Copy the image file to be burned to the SD card.
2. Insert the SD card into the SD card slot of the Development Board and enable the Board to boot from the SD card.
3. From the SD card after the start of the automatic burning system, you can use LED lights to determine the state of burning, when all the LED lights keep racing, it indicates that the system has been burned to write.
4. The Development Board restarts from NAND Flash and enters the LINUX+QT system that is burned and written.
5. Install the Linux system to the Development Board