To support this feature, two tools Sd_fdisk and U-boot-head-tool are required.
The Sd_fdisk function is to partition the TF card, U-boot-head-tool is to modify the compilation generated u-boot to fit the s5p4418 hardware boot requirements.
The download address for the two tools is http://download.csdn.net/detail/u010406724/8362055,
Also requires a script to use the two tools sd_fusing.sh, the specific code is as follows:
# # Copyright (C) Samsung Electronics Co., Ltd. # http://www.samsung.com/ is; Can redistribute it and/or modify # it under the terms of the GNU general public License version 2 as # published by T
He free software Foundation. # #################################### reader_type1= "/DEV/SDJ" #如果是使用的新卡 (or the card that did not burn the s5p4418 program), you need to put disk_tf_ The Enable is set to 1 (the default) and is set to 0 after execution, unless the replacement card is set to 1 again, or 0 to avoid the data disk_tf_enable=0 if [-z] then echo "Usage:./sd_
fusing.sh <sd Reader ' s device file> "Exit 0 fi if [$disk _tf_enable = 1] Then if [$ = $reader _type1] Then Partition1= "$" ' 1 ' partition2= "$" ' 2 ' partition3= "$" ' 3 ' partition4= "$" ' 4 ' fi if [-B $] then echo "$ r
Eader is identified. "
else echo "is not identified."
Exit 0 fi #################################### # make partition echo "make SD card Partition" echo "./sd_fdisk" ./sd_fdisk $ dd iflag=dsync oflag=dsync If=sd_mbr.dat of=$1 RM sd_mbr.dat #################################### # format umount $partition 1 2>/dev/null umount $partition 2 2> ; /dev/null umount $partition 3 2>/dev/null umount $partition 4 2>/dev/null echo "mkfs.vfat-f $partition 1" su
Do mkfs.vfat-f $partition 1 #echo "Mkfs.ext2 $partition 2" #mkfs. Ext2 $partition 2 #echo "Mkfs.ext2 $partition 3" #mkfs. ext2 $partition 3 #echo "Mkfs.ext2 $partition 4" #mkfs. Ext2 $partition 4 #mount $partition 1 fi ################ #################### #<bl1 fusing> bl1_position=1 uboot_position=64 echo "2ndboot fusing" dd Iflag=dsync oflag=dsy NC if=2ndboot.bin of=$1 seek= $bl 1_position./u-boot-head-tool #对u-boot for header processing #################################### #& Lt;u-boot fusing> echo "U-boot fusing" dd iflag=dsync oflag=dsync if=u-boot-tmp.bin of=$1 seek= $uboot _position RM U-bo Ot-tmp.bin #################################### #<message display> echo "U-boot image is fused successfully."
In addition, of course, U-boot.bin and 2ndboot Two files are required, and these two files will also be available in the official system files.
Before executing the script, you need to make sure that the file looks like this:
Also pay attention to a variable in the script
Disk_tf_enable=0
It is only set to 1 when using a new card or a card that does not burn 4418 programs, and the other is set to 0, lest the format of the TF card be bad.