diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-08-24 17:09:04 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2018-08-24 17:09:04 +0800 |
commit | d95e39b01ad44413afe8ca568d1c695b4af42adf (patch) | |
tree | 3f14d386f986aec00ec87f35fb2c80803f4452e2 /installer | |
parent | f6edae694f9613627068902387e41d9385c20373 (diff) | |
download | poplar-d95e39b01ad44413afe8ca568d1c695b4af42adf.tar.gz |
Add partition table and bootloader installer
It adds an installer for flashing partition table and prebuilt
bootloader onto Poplar. README file contains the instructions for
initial installation and updating with fastboot.
Change-Id: Ic0c02492d9c22625dcc1ba8e722be421b56955e2
Diffstat (limited to 'installer')
-rw-r--r-- | installer/README | 44 | ||||
-rwxr-xr-x | installer/fastboot.bin | bin | 0 -> 2031616 bytes | |||
-rw-r--r-- | installer/recovery_files/ebr5.bin.gz | bin | 0 -> 66 bytes | |||
-rw-r--r-- | installer/recovery_files/ebr6.bin.gz | bin | 0 -> 69 bytes | |||
-rw-r--r-- | installer/recovery_files/ebr7.bin.gz | bin | 0 -> 51 bytes | |||
-rw-r--r-- | installer/recovery_files/install | 29 | ||||
-rw-r--r-- | installer/recovery_files/install.scr | bin | 0 -> 894 bytes | |||
-rw-r--r-- | installer/recovery_files/loader.bin.gz | bin | 0 -> 1041514 bytes | |||
-rw-r--r-- | installer/recovery_files/mbr.bin.gz | bin | 0 -> 100 bytes |
9 files changed, 73 insertions, 0 deletions
diff --git a/installer/README b/installer/README new file mode 100644 index 0000000..7055eee --- /dev/null +++ b/installer/README @@ -0,0 +1,44 @@ +The following instructions will help you to flash partition table and +prebuilt bootloader onto Poplar board. + +* Find a USB disk formated with FAT file system, copy fastboot.bin and + recovery_files/ folder onto the disk. + +* Attach the USB disk to USB port J2 (next to IR receiver), and power on + Poplar board with button S3 (USB_BOOT) pressed until following + messages are seen on serial output. + + Entry usb bootstrap + + Usb disk(1): + Decrypt auxiliary code ...OK + +* Hit any key to stop U-Boot autoboot and get into the prompt. + +* Run U-Boot commands below to install partition table and bootloader. + + poplar# usb reset + poplar# fatload usb 0:1 ${scriptaddr} recovery_files/install.scr + poplar# source ${scriptaddr} + +These instructions are only necessary for initial bootloader +installation or board unbricking. Once the initial installation is +completed, you can update bootloader with fastboot support as below. + +* Connect Poplar (USB port J2) to PC with a Male-to-Male USB cable. + +* Power on Poplar, get into U-Boot prompt and run command below. + + poplar# fastboot 0 + +* On PC side, run command below to update the bootloader. + + $ fastboot flash mmcsda1 loader.bin + +To install the AOSP images, use fastboot commands as below. + + $ fastboot flash mmcsda2 boot.img + $ fastboot flash mmcsda3 system.img + $ fastboot flash mmcsda5 vendor.img + $ fastboot flash mmcsda6 cache.img + $ fastboot flash mmcsda7 userdata.img diff --git a/installer/fastboot.bin b/installer/fastboot.bin Binary files differnew file mode 100755 index 0000000..65ffebc --- /dev/null +++ b/installer/fastboot.bin diff --git a/installer/recovery_files/ebr5.bin.gz b/installer/recovery_files/ebr5.bin.gz Binary files differnew file mode 100644 index 0000000..1ffae37 --- /dev/null +++ b/installer/recovery_files/ebr5.bin.gz diff --git a/installer/recovery_files/ebr6.bin.gz b/installer/recovery_files/ebr6.bin.gz Binary files differnew file mode 100644 index 0000000..166f19d --- /dev/null +++ b/installer/recovery_files/ebr6.bin.gz diff --git a/installer/recovery_files/ebr7.bin.gz b/installer/recovery_files/ebr7.bin.gz Binary files differnew file mode 100644 index 0000000..07667fa --- /dev/null +++ b/installer/recovery_files/ebr7.bin.gz diff --git a/installer/recovery_files/install b/installer/recovery_files/install new file mode 100644 index 0000000..8c1bb34 --- /dev/null +++ b/installer/recovery_files/install @@ -0,0 +1,29 @@ +# partition table +fatload usb 0:1 0x08000000 recovery_files/mbr.bin.gz +unzip 0x08000000 0x18000000 0x00000200 +mmc write 0x18000000 0x00000000 0x00000001 +echo + +fatload usb 0:1 0x08000000 recovery_files/ebr5.bin.gz +unzip 0x08000000 0x18000000 0x00000200 +mmc write 0x18000000 0x00315fff 0x00000001 +echo + +fatload usb 0:1 0x08000000 recovery_files/ebr6.bin.gz +unzip 0x08000000 0x18000000 0x00000200 +mmc write 0x18000000 0x00395fff 0x00000001 +echo + +fatload usb 0:1 0x08000000 recovery_files/ebr7.bin.gz +unzip 0x08000000 0x18000000 0x00000200 +mmc write 0x18000000 0x00415fff 0x00000001 +echo + +# loader +fatload usb 0:1 0x08000000 recovery_files/loader.bin.gz +unzip 0x08000000 0x18000000 0x001efe00 +mmc write 0x18000000 0x00000001 0x00000f7f +echo + +echo ============ INSTALLATION IS DONE ============= +echo (Please reset your board) diff --git a/installer/recovery_files/install.scr b/installer/recovery_files/install.scr Binary files differnew file mode 100644 index 0000000..9591a8c --- /dev/null +++ b/installer/recovery_files/install.scr diff --git a/installer/recovery_files/loader.bin.gz b/installer/recovery_files/loader.bin.gz Binary files differnew file mode 100644 index 0000000..4711868 --- /dev/null +++ b/installer/recovery_files/loader.bin.gz diff --git a/installer/recovery_files/mbr.bin.gz b/installer/recovery_files/mbr.bin.gz Binary files differnew file mode 100644 index 0000000..0e3b1e5 --- /dev/null +++ b/installer/recovery_files/mbr.bin.gz |