Xunwei iTOP-4412 Elite Edition restores factory settings (2)

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.

In Virtual Machine VMware Workstation Option "Virtual Machine M ", enter "Virtual Machine Settings", as shown in the figure below, according to USB connection
Select the version, if it is USB3.1 , use USB3.1, if it is If 3.0, choose 3.0. .

9、烧書文集“u-boot-iTOP-4412.bin”to < /span>卡、Specific operation below. TF

Be especially careful when executing the following command! Be sure to distinguish clearly which drive letter is the drive letter of TF card. If you are not sure, please unplug it first TF card, after seeing clearly which drive letter is the hard drive letter of Ubuntu system, then insert TF card (All this is to avoid formatting other partitions by mistake), identify which drive letter is the newly added drive letter, and the newly added drive letter is TF The drive letter of the card.
In Ubuntu command line, execute the command " ./mkuboot /dev/sd*< /span> TF Chuck name, do not use it is the one found earlier “sd*” ”(
Number, for example, it is recognized as “/dev/sdb1” , then as shown in the figure below, use the command "sudo ./mkuboot /dev/sdb", be careful not to include the number following the drive letter here.

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.

10. Check whether the programmable TF card is successfully produced. The simpler method is to use a card reader to connect the TF card to the Win system. If it is on TF card has been successfully produced. or above, then this 2G card has been reducedTF Found that the storage space of Win

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

1. For detailed commands and specific operations, please refer to "2.2.  Programming via TF card < a i=3>”
Xunwei iTOP-4412 Elite Edition Factory Reset (1)_WL_arm's Blog-CSDN Blog https://blog.csdn.net/Eva20192020/article/details/133168702?spm=1001.2014.3001.5502
Insert the prepared TF programming card into the development board, and set the development board to TF card Boot mode and start the development board.
Perform the format partition command and erase command on EMMC, and finally use the command “sdfuse flashall” , you can update uboot, kernel and file system to E MMC of the development board, it can also be done here Select update only uboot .
The specific operations are as follows:
First partition and format EMMC
In HyperTerminal, execute the following commands one by one. Note: Enter the command line by line, and press Enter after entering each line to run.
Partition: fdisk –c 0 (0 is MMC, which is onboard Flash, 1 is TF card);
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
                                                              reset
You can also choose to flash. The above flash command "sdfuse flashall" can be replaced by one or more of the following commands:
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)

For example, burning the kernel is as shown in the figure below:

2. After the image burning is completed, set the development board to EMMC startup mode, and the development board can start normally. If you only chose to flash uboot in the previous step, then you can use fastboot To further burn the kernel or file system image, please refer to the following content for the burning method .

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.

Guess you like

Origin blog.csdn.net/Eva20192020/article/details/133211963