Note: Continuation of the previous article "Xunwei iTOP-4412 Elite Edition Factory Reset (1)"
Preparation
Virtual machine: VM-Ware 16.2.3;
Operating system: Ubuntu Linux 16.04 (built-up Linux environment, cross-compiler, etc.);
USB to serial port (PL2302 driver) and ADB driver completed;
fastboot programming tool;
iTOP-4412开发板(精英版);
TF卡一张,读卡器一个。
一、硬件相关设置
1、核心板封装方式
iTOP-4412的核心板
Exynos4412 has two packaging methods: SCP (left) and POP (right), as shown in the figure below. The development board used in this article is the configuration of the elite version POP-1G.
2. Power supply
The input voltage range is 3.5v~5.5v, but the optimal input voltage is 4v, which can keep the S5M8767 chip in the best working condition.
3. DIP switch controls startup mode
The development board uses a DIP switch to control the startup mode and graphics card output. According to the position in the picture, the numbers from top to bottom are 4, 3, 2, and 1. When the switch is turned to the left, it is 1 and the right is 0. Among them, 3 and 4 select to use the screen, and 1 and 2 select the startup mode. For the specific setting method, please refer to the following blog post.
Embedded Linux Development Board_Xunwei iTOP-4412 Elite Edition Getting Started (1)_WL_arm's Blog-CSDN Blog https://blog.csdn.net/Eva20192020/article/details/132938725?spm=1001.2014.3001.5502
4. The OTG interface on the PCB is as shown in the figure below. The driver can be automatically installed using the driver wizard. The drivers provided by some system manufacturers may not work well.
5. The HyperTerminal interface is CON3 (UART2), which is the lower of the two serial ports on the right side of the baseboard, and is the serial port next to the network port.
At this point, all hardware settings are complete.
2. Restoring EMMC factory settings process
3. Make TF boot card with PC
Explanation:When the core board’s u-boot partition is burned with the wrong file, As a result, the development board cannot start uboot. This section describes how to make a programmable TF< a i=7>card.
If EMMC can enter u-boot mode, skip it.
1. Prepare a TF card and insert it into the card reader, insert the card reader into the USB interface of the PC, and the device can be seen in the computer disk management;
2. If it is not brand new (partitioned), delete the partition in Disk Manager and reformat it into FAT32 format.
As shown below, the first picture is a brand new TF card in FAT2 format. The second picture is a partitioned TF card.
3. If the TF card with deleted partition exceeds 64G, Windows may not have FAT32 in its formatting options. In this case, you can choose to format only the 32G space to FAT32 format. As shown below.
4. Create a uboot folder in the work folder of the Ubuntu virtual machine, and copy the uboot source code compression package provided by the manufacturer to the uboot folder. The operation process is as shown below.
5. After the copy is completed, command to decompress. The result is as shown below.
6, Copy the file corresponding to the core board "u-boot-iTOP-4412.bin (needs to correspond to the hardware version, pop or scp)" to the previously extracted folder" iTop4412_uboot". Then we enter the folder " iTop4412_uboot" that we extracted earlier, as shown in the figure below.
7. Enter the "df -l" command to check what storage devices the current system has.
8. Put the FAT32 format TF card into the card reader and insert it into the USB port of the PC. Select to connect to the virtual machine according to the connection prompts. Enter the "df -l" command again in the Ubuntu system to see which storage devices have been added, as shown below , usually /dev/sdb*.
If the U port version is too high and not recognized, you can modify the compatible configuration according to the following tips.
9、烧書文集“u-boot-iTOP-4412.bin”to < /span>卡、Specific operation below. TF
Finally, sync needs to be executed to avoid not actually writing to the disk.
sync
The sync command in Linux is used for data synchronization. The sync command is used when shutting down the Linux system.
In the Linux system, the data to be written to the hard disk is sometimes written to the filesystem buffer for the sake of efficiency. This buffer is a memory space. If the data to be written to the hard disk is stored here buffer, and the system suddenly loses power, the data will be lost. The sync command will force the data stored in the buffer to be written to the hard disk.
4. TF card partitioning and formatting
Put the TF card back into the development board, set the DIP switch to the TF card startup mode, turn on the power of the development board, wait for the startup information to appear in the hyper terminal, and press Enter immediately to enter uboot mode; as shown in the figure below:
fdisk -c 1
fatformat mmc 1:1
ext3format mmc 1:2
ext3format mmc 1:3
ext3format mmc 1:4
Instructions:
Partition: fdisk –c 1 (1 is TF);
Format 1 partition: fatformat mmc 1:1 (windows file System partition);
Format partition 2: ext3format mmc 1:2 (linux file system partition);
Format partition 3: ext3format mmc 1:3 ( linux user data partition);
Format 4 partitions: ext3format mmc 1:4 (linux cache partition).
The result is shown in the screenshot below:
5. Make TF programming card with PC
1. Reinsert the TF card into the PC machine , and create a new folder TF on the partition that the card can open "sdupdate" , copy four files including uboot to the "sdupdate" folder, or you can choose to copy only uboot file, as shown in the figure below.
6. Burn the TF card image to EMMC
Format partition 1: fatformat mmc 0:1 (windows file system partition);
Format partition 2: ext3format mmc 0:2 (linux file system partition);
Format partition 3: ext3format mmc 0:3 (linux user data partition);
Format 4 partitions: ext3format mmc 0:4 (linux cache partition);
Finally use TF card to update and burn (all burned): sdfuse flashall
sdfuse flash bootloader u-boot-iTOP-4412.bin
sdfuse flash kernel zImage
sdfuse flash ramdisk ramdisk-uboot.img
sdfuse flash system system.img
Wait for the programming to be completed and enter the command: reset (the development board will be restarted)
7. Burn the image to EMMC using OTG method
Turn on the power of the development board, wait for the startup information to appear in the HyperTerminal, and press Enter immediately to enter uboot mode;
In the HyperTerminal uboot mode, enter: fastboot 0, press Enter, development board Enter the file receiving state;
Check whether the OTG driver is normal in the PC device manager;
Copy the "Mirror_Android4.0.3 file system" file in the PC Copy the four images "ramdisk-uboot.img", "system.img", "u-boot-iTOP-4412.bin" and "zImage" in the folder to "USB_fastboot_tool" in the same root directory as the cmd. terminal , open the cmd terminal in the folder;
Enter the flash u-boot command: fastboot.exe flash bootloader u-boot-iTOP-4412.bin
Enter the command to burn the kernel: fastboot.exe flash kernel zImage
Enter the two commands to burn the root file system: fastboot.exe flash ramdisk ramdisk-uboot.img
Enter and enter the command: fastboot.exe flash system system.img
Restart the development board, set the EMMC startup mode, and enter the Android system.