script: tizen: artik710: add the prebuilt image for os_2.0.0
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 23 Nov 2017 05:42:51 +0000 (14:42 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Jan 2019 07:23:05 +0000 (16:23 +0900)
Current ARTIK710 tizen is using the DS release version 2.0.0.
Because this is not the latest version, some boards need to downgrade to
os_2.0.0.
This patch is for provide the downgrading.

*Usage:
-Target side:
artik710# fastboot 0

-Host side:
$./flash_boot_for_tizen.sh

This is for only Tizen Platform.

**** NOTE: This is not ARTIK710S ****

Change-Id: I97f13171749a89ac394321c5b7f85fb7b90c11f9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/tizen/artik710/os_2.0.0/README.A710_os_2.0.0 [new file with mode: 0644]
scripts/tizen/artik710/os_2.0.0/bl1-emmcboot.img [new file with mode: 0644]
scripts/tizen/artik710/os_2.0.0/boot.img [new file with mode: 0644]
scripts/tizen/artik710/os_2.0.0/fip-loader-emmc.img [new file with mode: 0644]
scripts/tizen/artik710/os_2.0.0/fip-nonsecure.img [new file with mode: 0755]
scripts/tizen/artik710/os_2.0.0/fip-secure.img [new file with mode: 0644]
scripts/tizen/artik710/os_2.0.0/flash_boot_for_tizen.sh [new file with mode: 0755]
scripts/tizen/artik710/os_2.0.0/partmap_artik710_tizen_emmc.txt [new file with mode: 0755]
scripts/tizen/artik710/os_2.0.0/tizen_params.bin [new file with mode: 0755]

diff --git a/scripts/tizen/artik710/os_2.0.0/README.A710_os_2.0.0 b/scripts/tizen/artik710/os_2.0.0/README.A710_os_2.0.0
new file mode 100644 (file)
index 0000000..0348d21
--- /dev/null
@@ -0,0 +1,42 @@
+1. Description:
+==============
+
+These images are for downgrading ARTIK Software version to OS_2.0.0.
+SamsungARTIK github is provided the migration image on git repository.
+(https://github.com/SamsungARTIK/boot-firmware-artik710)
+Tizen also needs to provide the migration image for each versions.
+
+Current ARTIK release version is OS_3.0.0. (From 2017.11.13).
+But Tizen is using older version(OS_2.0.0). Each version can't maintain
+the compatible.
+It needs to downgrade for using the Tizen booting.
+
+*NOTE:
+These images are for ARTIK710_OS_2.0.0.
+
+
+2. Usage:
+=========
+
+Target device side:
+
+#artik710:fastboot 0
+
+Host side:
+$./flash_boot_for_tizen.sh
+
+Then it will be flased all image into artik710 board.
+
+3. Image information:
+=====================
+- bl-emmcboot.img                      - from SamsungARTIK github
+- fip-loader-emmc.img                  - from SamsungARTIK github
+- partmap_artik710_tizen_emmc.txt      - Tizen specific
+- fip-nonsecure.img                    - from Tizen Released image
+- fip-secure.img                       - from SamsungARTIK github
+- tizen_params.bin                     - from Tizen Released image
+- flash_boot_for_tizen.sh              - Tizen specific
+
+4. Contact
+==========
+If face on some problems, contact to Tizen Kernel Part.
diff --git a/scripts/tizen/artik710/os_2.0.0/bl1-emmcboot.img b/scripts/tizen/artik710/os_2.0.0/bl1-emmcboot.img
new file mode 100644 (file)
index 0000000..b5c5d92
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/bl1-emmcboot.img differ
diff --git a/scripts/tizen/artik710/os_2.0.0/boot.img b/scripts/tizen/artik710/os_2.0.0/boot.img
new file mode 100644 (file)
index 0000000..dfb45ec
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/boot.img differ
diff --git a/scripts/tizen/artik710/os_2.0.0/fip-loader-emmc.img b/scripts/tizen/artik710/os_2.0.0/fip-loader-emmc.img
new file mode 100644 (file)
index 0000000..3293ee3
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/fip-loader-emmc.img differ
diff --git a/scripts/tizen/artik710/os_2.0.0/fip-nonsecure.img b/scripts/tizen/artik710/os_2.0.0/fip-nonsecure.img
new file mode 100755 (executable)
index 0000000..73a089d
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/fip-nonsecure.img differ
diff --git a/scripts/tizen/artik710/os_2.0.0/fip-secure.img b/scripts/tizen/artik710/os_2.0.0/fip-secure.img
new file mode 100644 (file)
index 0000000..03a0163
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/fip-secure.img differ
diff --git a/scripts/tizen/artik710/os_2.0.0/flash_boot_for_tizen.sh b/scripts/tizen/artik710/os_2.0.0/flash_boot_for_tizen.sh
new file mode 100755 (executable)
index 0000000..cadbf64
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo "Fusing ARTIK710 OS_2.0.0 bootloader binaries..."
+sudo fastboot flash partmap ./partmap_artik710_tizen_emmc.txt
+sudo fastboot flash 2ndboot ./bl1-emmcboot.img
+sudo fastboot flash fip-loader ./fip-loader-emmc.img
+sudo fastboot flash fip-secure ./fip-secure.img
+sudo fastboot flash fip-nonsecure ./fip-nonsecure.img
+sudo fastboot flash env ./tizen_params.bin
+sudo fastboot flash boot ./boot.img
+
+sudo fastboot reboot
+
+echo "Fusing done"
+echo "You have to resize the rootfs after first booting"
diff --git a/scripts/tizen/artik710/os_2.0.0/partmap_artik710_tizen_emmc.txt b/scripts/tizen/artik710/os_2.0.0/partmap_artik710_tizen_emmc.txt
new file mode 100755 (executable)
index 0000000..41b4e09
--- /dev/null
@@ -0,0 +1,10 @@
+flash=mmc,0:2ndboot:2nd:0x200,0x10000:bl1-emmcboot.img;
+flash=mmc,0:fip-loader:boot:0x10200,0x50000:fip-loader-emmc.img;
+flash=mmc,0:fip-secure:boot:0x60200,0x180000:fip-secure.img;
+flash=mmc,0:fip-nonsecure:boot:0x1E0200,0x100000:fip-nonsecure.img;
+flash=mmc,0:env:env:0x2E0200,0x4000:params.bin;
+flash=mmc,0:boot:ext4:0x400000,0x3000000:boot.img;
+flash=mmc,0:modules:ext4:0x3400000,0x2000000:modules.img;
+flash=mmc,0:rootfs:ext4:0x5400000,0x60000000:rootfs.img;
+flash=mmc,0:system-data:ext4:0x65500000,0x40000000:system-data.img;
+flash=mmc,0:user:ext4:0xA4500000,0:user.img;
diff --git a/scripts/tizen/artik710/os_2.0.0/tizen_params.bin b/scripts/tizen/artik710/os_2.0.0/tizen_params.bin
new file mode 100755 (executable)
index 0000000..16c4b28
Binary files /dev/null and b/scripts/tizen/artik710/os_2.0.0/tizen_params.bin differ