Mettre à jour U Boot for Yakawa authored by Guillaume LA ROQUE's avatar Guillaume LA ROQUE
Flashing U-Boot for Yukawa
==========================
* With a SEI510 flashed with Amlogic U-Boot only (original board state) => [From a SEI510 flashed with Amlogic U-Boot](#from-a-sei510-flashed-with-amlogic-u-boot)
* With a SEI510 flashed with an earlier version of Mainline U-Boot (No support for `fastboot flash bootloader`) => [From a SEI510 flashed with an earlier version of Mainline U-Boot](#from-a-sei510-flashed-with-an-earlier-version-of-mainline-u-boot)
* With a SEI510 flashed with Mainline U-Boot (supporting `fastboot flash bootloader`) => [From a SEI510 flashed with Mainline U-Boot](#from-a-sei510-flashed-with-mainline-u-boot)
From a SEI510 flashed with Amlogic U-Boot
=========================================
Boot using the special dongle into update mode using the Amlogic u-boot to erase the bootloader on the user and each eMMC HW boot partitions :
```
./usb_recovery.sh 1 BOOTLOADER/bootloader.img
update bulkcmd "mmc dev 1"
update bulkcmd "mmc write 0x8000000 1 0x800
update bulkcmd "mmc dev 1 1"
update bulkcmd "mmc write 0x8000000 1 0x800
update bulkcmd "mmc dev 1 2"
update bulkcmd "mmc write 0x8000000 1 0x800
update bulkcmd "reset"
```
then => [When the board rebooted in USB ROM boot mode](#when-the-board-rebooted-in-usb-rom-boot-mode)
From a SEI510 flashed with an earlier version of Mainline U-Boot
================================================================
From running Android:
----------------------------
Erase the start of user partition and the two eMMC boot* HW partitions:
```
adb root
adb shell dd if=/dev/zero of=/dev/block/mmcblk2 bs=512 count=8192
adb shell "echo 0 > /sys/block/mmcblk2boot0/force_ro"
adb shell dd if=/dev/zero of=/dev/block/mmcblk2boot0 bs=512 count=8192
adb shell "echo 0 > /sys/block/mmcblk2boot1`/force_ro"
adb shell dd if=/dev/zero of=/dev/block/mmcblk2boot1 bs=512 count=8192
adb shell sync
adb reboot
```
From U-Boot prompt:
--------------------------
Erase the start of user partition and the two eMMC boot* HW partitions:
```
mmc dev 1
mmc erase 0 0x2000
mmc dev 1 1
mmc erase 0 0x2000
mmc dev 1 2
mmc erase 0 0x2000
reset
```
Or you can use the same process as with the Amlogic U-Boot flashed => [From a SEI510 flashed with Amlogic U-Boot](#from-a-sei510-flashed-with-amlogic-u-boot)
When the board rebooted in USB ROM boot mode:
---------------------------------------------
`lsusb` should show :
```
Bus 001 Device 106: ID 1b8e:c003 Amlogic, Inc.
```
And the serial should show:
```
G12A:BL:0253b8:61aa2d;FEAT:E0F931...
```
Load U-Boot from USB:
```
update write u-boot.bin 0xfffa0000 0x10000
update run 0xfffa0000
update bl2_boot u-boot.bin
```
U-Boot should boot and run fastboot, then:
```
fastboot flash bootloader u-boot.bin
fastboot erase bootenv
fastboot reboot
```
From a SEI510 flashed with Mainline U-Boot
================================================================
Reboot to bootloader or press the recovery button under the device, then:
```
fastboot flash bootloader u-boot.bin
fastboot erase bootenv
```
\ No newline at end of file