Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Fastboot is a protocol that can be used to re-flash partitions (xboot.img, u-boot.img, uImage and rootfs.img) on SP7350. “Minimal ADB and Fastboot” is a small application for Windows Computer that allows you to do the fastboot. So far only eMMC device supports fastboot on SP7350.

Fastboot over USB

eMMC boot

After booting from eMMC device to U-Boot, you can apply the following commands on SP7350 and connect it to Winodws Computer through an USB 2.0 cable (micro USB) or an USB 3.0 one (type C) to let SP7350 serve as an USB download gadget.

If USB 2.0 and USB 3.0 gadget drivers are enabled at the same time, the parameter of “0” of the command is for USB 2.0 download gadget and the parameter of “1” is for USB 3.0 download gadget.

=> fastboot usb 0
=> fastboot usb 1

If USB 2.0 gadget driver is enabled and USB 3.0 is disabled, the parameter of “0” of the command is for USB 2.0 download gadget

=> fastboot usb 0

If USB 3.0 gadget driver is enabled and USB 2.0 is disabled, the parameter of “0” of the command is for USB 3.0 download gadget

=> fastboot usb 0

Update USB download gadget driver in the Windows Computer

After applying the command in U-Boot and connecting SP7350 to the Windows Computer, you will note that in Device manager the USB appears as : Other devices->USB download gadget in Windows Computer. Right click it, and choose “Update drivers->browse my computer for driver software ->let me pick from a list of available drivers on my computer”.

Choose “Android Device”.

Choose Android ADB Interface and press “Yes” to install this driver.

After the update, you will see Android Device->Android ADB Interface in Device manager.

  1. “Minimal ADB and Fastboot” installation in Windows Computer

Install the application of “Minimal ADB and Fastboot“ in Windows Computer. The application is installed at “c:\Program Files (x86)\Minimal ADB Fastboot” and the image files (xboot.img, u-boot.img, uImage and rootfs.img) should be put in this folder to re-flash partitions by applying commands in Command Prompt.

C:\Program Files (x86)\Minimal ADB and Fastboot>

  1. Flash

a. x-boot

The image file of xboot (xboot.img) is stored at eMMC boot partition 1 and its default target name is “mmc0boot0” as shown in > Device Drivers > Fastboot support of U-Boot menuconfig.

After applying the command of “fastboot usb 0” (over USB 2.0 or USB 3.0) or “fastboot usb 1“ (over USB 3.0) in U-Boot of SP7350 and connecting it to the Windows Computer, you can apply the command in Command Prompt of the Windows Computer to update the image of xboot as shown below.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash mmc0boot0 xboot.img
target reported max download size of 117440512 bytes
sending 'mmc0boot0' (131KB)...
OKAY [  0.023s]
writing 'mmc0boot0'...
OKAY [  0.006s]
finished. total time: 0.032s

C:\Program Files (x86)\Minimal ADB and Fastboot>

b. u-boot, kernel and rootfs

Applying the command of “mmc part” in U-Boot will get the partition names of User Data Area Partition (GUID) in eMMC.

=> mmc part

Partition Map for MMC device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000022      0x00000821      "uboot1"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   292c805a-cb56-41bf-97f2-773a25608b40
  2     0x00000822      0x00001021      "uboot2"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   635a1f52-8abf-4f93-8d70-17fd82e1c570
  3     0x00001022      0x00001821      "fip"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   b4608adb-3ac4-4964-9de5-5bcd8db8e38d
  4     0x00001822      0x00001c21      "env"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   dbaab200-cfe5-45e8-99d0-e9d920a5a29d
  5     0x00001c22      0x00002021      "env_redund"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   10b84778-f209-4a67-9008-4ffefee0fdf4
  6     0x00002022      0x00002221      "dtb"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   127f33a4-ba05-4ab1-9c9e-ead8003b12ec
  7     0x00002222      0x00012221      "kernel"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   ee2d19c3-3c49-4732-b432-04b9351f17d7
  8     0x00012222      0x00e8ffde      "rootfs"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   6e8b3aaf-e5bc-4134-93b3-8e66c5e77dad
=>

The image file of u-boot (u-boot.img) is stored in the partition of uboot2, kernel (uImage) in kernel and rootfs (rootfs.img) in rootfs. You can apply the command in Command Prompt of the Windows Computer to update the image of u-boot as shown below. The update of kernel or rootfs is similar to it of u-boot.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash uboot2 u-boot.img
target reported max download size of 117440512 bytes
sending 'mmc0boot0' (837KB)...
OKAY [  0.033s]
writing 'mmc0boot0'...
OKAY [  0.031s]
finished. total time: 0.064s

C:\Program Files (x86)\Minimal ADB and Fastboot>

Fastboot over UDP

  1. Enable

Select “Enable fastboot protocol over UDP” in > Device Drivers > Fastboot support of U-Boot menuconfig as shown below.

  1. “Minimal ADB and Fastboot” installation in Windows Computer

Reference it in “Fastboot over USB”.

  1. Network configurations

After booting from eMMC device to U-Boot, you can connect SP7350 to Winodws Computer via network. Configure the NIC (eth0) of SP7350 and the one of Windows Computer. The NIC configuration of SP7350 is shown below.

=> setenv ipaddr 192.168.0.50
=> setenv netmask 255.255.255.0
=> setenv ethact eth0

  1. Flash

First, apply the command in U-Boot shown below of SP7350.

=> fastboot udp

Then applying the command in Command Prompt of the Windows Computer shown below will update the image of x-boot. The update of u-boot, kernel or rootfs is similar to it.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -s udp:192.168.0.50 flash mmc0boot0 xboot.img
target reported max download size of 117440512 bytes
sending 'mmc0boot0' (131KB)...
OKAY [  0.534s]
writing 'mmc0boot0'...
OKAY [  0.008s]
finished. total time: 0.547s

C:\Program Files (x86)\Minimal ADB and Fastboot>

  • No labels