4. Installing the System Boot Program

Source: Internet
Author: User

4. Installing the System Boot Program

Course Requirements:

1. Install bootloader to SD card.

Laboratory Equipment:

Software:

1.ok6410 Disc A, b

Hardware:

1. One PC, the system is Windows 7 64-bit

2. OK6410 Development Board Set

3.4G or 8GSD card one sheet

Background knowledge:

1. Bootloader Introduction:

In an embedded operating system, Bootloader is run before the operating system kernel runs. You can initialize a hardware device, establish a memory space map, and bring the system's hardware and software environment to a suitable state to prepare the correct environment for the final call to the operating system kernel. In an embedded system, there is usually no firmware program like BIOS (note: Some embedded CPUs also embed a short startup program), so the entire system's load start-up task is entirely done by BootLoader. In an embedded system, when the system is power-up or reset, it is usually executed from the address 0x00000000, and at this address is usually the system's Bootloader program. OK6410 use of the burning method for the SD card automatic burning, so, first of all should make OK6410 can be used to SD card to start the SD card.

2. SD Card BIOS

S3c6410 can be started from Nandflash, Onenand, SD card. In the absence of a dedicated burn tool, only the SD card boot can be considered. SD card boot, is actually the first to perform a program in the on-chip Irom, which

Cheng is called BL0. The BL0 program reads the code from the SD card specific location, writes to a 8K in-chip memory called stepping stone and runs it, a program called BL1. In addition to being responsible for some simple initialization work, the main task of the BL1 program is to copy the BL2 (usually placed in other locations on the SD card) into memory to complete the rest of the initialization (and then directly boot the operating system or enter the Bios configuration menu).

Experimental steps:

1. To facilitate the use of image files, you can copy the Development Board OK6410 CD, A, B to the computer in advance.

2. Format the SD card in FAT32 format. Connect the SD card to the SD reader and plug the SD reader into the USB port of the PC.

Figure 3-7

SD Card and Card reader

When the PC is able to recognize the SD card normally, turn on "My Computer", right click on "Removable Disk",

In the pop-up menu, choose Format. Format the SD card in FAT32 format.

Figure 3-8

Formatted SD card for FAT32

Figure 3-9

SD Card Format Successful

3. In the CD-ROM OK6410 cd a/linux-3.0.1/linux Burn write tool catalog, through the Sd-writer.exe

Write the OK6410 cd a/linux-3.0.1/linux Burn Write tool/mmc_ram256.bin to the SD card. Run software software interface 3-10 as Administrator;

Tips:

Mmc_ram256.bin is a BIOS image for SD card boot, so mmc_ram256.bin is actually a boot program.

Figure 3-10

Run as Administrator Sd-writer.exe

4. When starting the Sd-writer.exe software, 3-11, select "6410" in the "Board Model" board type, and the "SACN" software will find the SD card letter that can be used, select "Auto" in "SD Type", use "Format" Formatted SD card, after the successful format will show the figure 3-12 prompt; "OS type" in select the type of burning system, select "Linux| | Android "in; Select boot selects the specified file in the boot image as the OK6410 Disc a/linux-3.0.1/linux Burn Write tool/mmc_ram256.bin, and then uses "program" to burn the image file to the Development Board, as shown in 3-13.

Figure 3-11 Set Sd-flasher.exe

Figure 3-12

Format successful

Figure 3-13

SD Card Burn Write success

Attention:

1. Because the SD card slot of some notebooks can not use Sd-flasher to write, so it is recommended to use "card reader +SD" to write the method of burning.

2. In the "7" If you encounter SD card burning is not successful, you can download the SD card format Tool SDFormatter.exe SD card format.

5. After burning the Bios, the SD card is prepared

The following is through the SD card to start running the Bios program, the production of SD card inserted into the SD card slot of the development Board, connect the Development Board power supply, and the use of serial cable to the Development Board serial port and the PC host serial port connected; Follow the table to toggle the dial switch, set the SD card to boot,

3-15, as shown in

1 indicates the dial code needs to be adjusted to on;0 Indicates that the dial code needs to be adjusted to OFF.

Figure 3-14

Inserting the SD card into the Development Board slot

Figure 3-15

SD Card Boot

6. Connect the Development Board power supply,

Toggle the power switch, and power on the Development Board. At this point, the Development Board will boot from the SD card and run the Bios program that exists on the SD card and press the SPACEBAR quickly. Through the terminal tool SERIALCRT, we can see the Bios program print out the following serial information. Because we just burned the mmc_ram256.bin on the SD card, we didn't put the auto-burning image on the SD, so the system won't be installed automatically.

Figure 3-16

Booting terminal information from SD card

Summarize:

Through this experiment should grasp the SD card Bios program Burn Write method, make an SD card boot disk is the base of the system installation experiment behind.

4. Installing the System Boot Program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.