How to create an Exynos 4412 u-boot disk using a TF/SD card on a Mac
/*************************************** **************************************** ** @ Author Maoxiao Hu * @ version V1.0.1 * @ date Dec-2014 ************************** **************************************** * *********** <COPYRIGHT 2014 ISE of shandong university> ******************* **************************************** * *******************/if your system is Ubuntu, please go here to learn how to use the TF/SD card in Ubuntu to create Exynos 4412 u-boot Drive disk. Hardware: Quick iTop 4412 Elite edition & 8 gb tf card software: Hex Fiend & built-in 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 0. 1. Connect to the TF/SD card, open the terminal, and run the diskutil list command to view all the disks connected to the computer: No doubt the current/dev/disk2 is my TF card, the TYPE attribute shows that the TF card is in FAT32 format. 2. Use the hexadecimal editor to open the TF card to view data (skip). Here we use a hexadecimal editing software: Hex Fiend (WinHex can be used in Windows) command + Alt + O open path:/dev/disk2s1 (specify the first partition s1 of disk2). We can see that the TF card has been written with control characters of various FAT disk formats. If you are interested in understanding the meaning of these characters, please download the official Microsoft Spec: Microsoft EFI FAT32 File System Specification. If we write u-boot, the original characters at rows 512 and 992 will be retained, which is obviously not what we want. 3. Clear data on the TF card:
Diskutil zeroDisk disk2
Close Hex Fiend before executing this sentence (If Step 1 is executed); otherwise, a message indicating Resource Busy is displayed. It takes a long time, but it can be executed at 4%. At this time, 8 GB * 0.04 = Mb space is cleared, which is enough for us to use, use Ctrl + c to interrupt the diskutil process. 4. Write the u-boot file to the directory where your u-boot file is stored. Write data using the dd command:
Sudo dd if = u-boot-iTOP-4412.bin of =/dev/disk2 seek = 1
5. Compare the TF card data with the u-boot binfile (which can be skipped) and use Hex Fiend to open the u-boot binfile and TF card respectively. Note that the FAT partition table of the TF card has been damaged, command + Alt + O should be used to open the path/dev/disk2 (specify the disk2 RAW data) and the data at the corresponding location is completely consistent. 6. Connect the TF card to the Development Board, and select TF to start the switch. Power on:
This article permanently updates the link address: