How to create an Exynos 4412 u-boot disk using the TF/SD card in Ubuntu

Source: Internet
Author: User

How to create an Exynos 4412 u-boot disk using the TF/SD card in Ubuntu
/*************************************** **************************************** ** @ Author Maoxiao Hu * @ version V1.0.1 * @ date Feb-2015 ************************** **************************************** * *********** <COPYRIGHT 2015 ISE of shandong university> ******************* **************************************** * *******************/if your system is Mac OS X, please go here to learn how to use the TF/SD card in Mac to make Exynos 4412 u-boot Disk. U-Boot source code hardware: Tencent iTop 4412 Elite edition & TF card software: the system comes with a terminal first, we should be clear that TF/SD card can be regarded as a completely blank "White Paper ", the difference between partition and partition formats is that some data is written to some specific locations in this "White Paper" to indicate the partition and partition formats. Next, we should also know that in TF/SD startup mode, when exynos 4412 is powered on, the internal iROM will start from the 1st blocks (512nd bytes) of TF/SD) read 8 KB of data to the internal iRAM, and then start running from the internal iRAM 0 address. After the principles are clarified, you must first format TF/SD low-level-all blocks to 0x00. 1. Connect the TF/sd card, open the terminal and run the ls/dev/sd * command to view all the disks connected to the computer. Q: Why not use the df command here? The reason is that assume that your TF/SD card has only one partition but this partition is damaged, or there are multiple partitions but not one identifiable partition, at this time, the df command cannot view the tf/sd card. Therefore, listing all devices starting with sd under dev is the ultimate solution. (1) assume that your tf/SD card has only one partition, no matter whether the partition is damaged or not, the phenomenon should be like this: before inserting tf/SD card: After inserting tf/SD card: obviously, the extra/dev/sdb is the object for subsequent operations in this article. (2) assume that your tf/SD card already has multiple partitions, no matter whether these partitions are damaged or not, the phenomenon should be like this: before inserting tf/SD card: After inserting tf/SD card: there are five more devices, but we still use/dev/sdb as the object for subsequent operations in this article. Note: Here I am/dev/sdb, but it may be/dev/sdc or other symbols. You must perform the following operations based on the device name that appears, otherwise, the system partition may be damaged. It is very important. Remember !!! 2. Enable the tf card to view data in hexadecimal mode (skip this step). Run the hexdump command in linux to view data in tf/SD card. The command is as follows:

Sudo hexdump-n 1048576/dev/sdb

-N 1048576 indicates that the first 1 M = 1024*1024 = 1048576 bytes of data are printed.

 

The execution result (partial) is as follows:

 

 

* Indicates that the content is 0x00, which is omitted to save space.

3. Clear the first 1 mb data of the TF card

Because the size of 4412 uboot is several hundred kB, the space of 1 MB before the uboot is cleared is sufficient. Note that the space here is not formatted, but filled with 0x00.

We use the zero device under the system/dev to clear the first 1 MB of tf/SD card.

The execution result is as follows:

Here, count = 2000 indicates that 2000 blocks are cleared. One block is 512B, And the other 2000 blocks are exactly 1 MB.

 

Check tf/SD card data again with hexdump and find:

The first 1 MB space is cleared by 0x00.

4. Run the uboot Startup File

Here, the file we are about to burn is the u-boot-iTOP-4412.bin file.

Terminal:

If represents the input file address, take your u-boot-iTOP-4412.bin the actual address of this file, of represents the output address, take your tf/SD card the actual device number.

At this point, you can insert the tf/SD card into the Development Board and start it. To prove that the tf/SD card is correct, we will perform subsequent operations.

5. confirm that the writing is correct (skip this step)

We need to determine from the tf/SD card first block starting, indeed correctly burned the u-boot-iTOP-4412.bin file, below we compare, the command used is also hexdump.

Here, we print only the first 5 kb of data for display convenience, and find that the binfile is correctly copied to the 512 bytes of the SD card:

6. Connect the TF card to the Development Board, and select TF to start the switch. Power on:

Done.

This article permanently updates the link address:

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.