script: tizen: artik530: add the prebuilt image for os_1.0.0
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 10 Nov 2017 06:16:03 +0000 (15:16 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Jan 2019 07:07:58 +0000 (16:07 +0900)
Current Tizen is used the DS release version 1.0.0.
This version is too old, so some boards need to downgrade to os_1.0.0.
This patch is for providing the downgrading.

*Usage:
-Target side:
artik530# fastboot 0

-Host side:
$./flash_boot_for_tizen.sh

This is for only Tizen Platform.

Change-Id: Ia39f8d2e962936eee67b639ee0512019c04060d4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/tizen/artik530/os_1.0.0/README.A530_os_1.0.0 [new file with mode: 0644]
scripts/tizen/artik530/os_1.0.0/bl1-emmcboot.img [new file with mode: 0644]
scripts/tizen/artik530/os_1.0.0/bootloader.img [new file with mode: 0755]
scripts/tizen/artik530/os_1.0.0/flash_boot_for_tizen.sh [new file with mode: 0755]
scripts/tizen/artik530/os_1.0.0/partmap_artik530_tizen_emmc.txt [new file with mode: 0755]
scripts/tizen/artik530/os_1.0.0/tizen_params.bin [new file with mode: 0755]

diff --git a/scripts/tizen/artik530/os_1.0.0/README.A530_os_1.0.0 b/scripts/tizen/artik530/os_1.0.0/README.A530_os_1.0.0
new file mode 100644 (file)
index 0000000..4f188c3
--- /dev/null
@@ -0,0 +1,40 @@
+1. Description:
+==============
+
+These images are for downgrading ARTIK Software version to OS_1.0.0.
+SamsungARTIK github is provided the migration image on git repository.
+(https://github.com/SamsungARTIK/boot-firmware-artik530)
+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_1.0.0). Each version can't maintain
+the compatible.
+It needs to downgrade for using the Tizen booting.
+
+*NOTE:
+These images are for ARTIK530_OS_1.0.0.
+
+
+2. Usage:
+=========
+
+Target device side:
+
+#artik530:fastboot 0
+
+Host side:
+$./flash_boot_for_tizen.sh
+
+Then it will be flased all image into artik530 board.
+
+3. Image information:
+=====================
+- bl-emmcboot.img                      - from SamsungARTIK github
+- partmap_artik530_tizen_emmc.txt      - Tizen specific
+- bootloader.img                       - from Tizen Released image
+- 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/artik530/os_1.0.0/bl1-emmcboot.img b/scripts/tizen/artik530/os_1.0.0/bl1-emmcboot.img
new file mode 100644 (file)
index 0000000..8bf7355
Binary files /dev/null and b/scripts/tizen/artik530/os_1.0.0/bl1-emmcboot.img differ
diff --git a/scripts/tizen/artik530/os_1.0.0/bootloader.img b/scripts/tizen/artik530/os_1.0.0/bootloader.img
new file mode 100755 (executable)
index 0000000..97f221c
Binary files /dev/null and b/scripts/tizen/artik530/os_1.0.0/bootloader.img differ
diff --git a/scripts/tizen/artik530/os_1.0.0/flash_boot_for_tizen.sh b/scripts/tizen/artik530/os_1.0.0/flash_boot_for_tizen.sh
new file mode 100755 (executable)
index 0000000..310b490
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "Fusing bootloader binaries..."
+sudo fastboot flash partmap ./partmap_artik530_tizen_emmc.txt
+sudo fastboot flash 2ndboot ./bl1-emmcboot.img
+sudo fastboot flash bootloader ./bootloader.img
+sudo fastboot flash env ./tizen_params.bin
+
+sudo fastboot reboot
+
+echo "Fusing done"
+echo "You have to resize the rootfs after first booting"
diff --git a/scripts/tizen/artik530/os_1.0.0/partmap_artik530_tizen_emmc.txt b/scripts/tizen/artik530/os_1.0.0/partmap_artik530_tizen_emmc.txt
new file mode 100755 (executable)
index 0000000..32e5cfd
--- /dev/null
@@ -0,0 +1,8 @@
+flash=mmc,0:2ndboot:2nd:0x200,0x10000:bl1-emmcboot.img;
+flash=mmc,0:bootloader:boot:0x10200,0x300000:bootloader.img;
+flash=mmc,0:env:env:0x310200,0x4000:params.bin;
+flash=mmc,0:boot:ext4:0x400000,0x2000000:boot.img;
+flash=mmc,0:modules:ext4:0x2400000,0x2000000:modules.img;
+flash=mmc,0:rootfs:ext4:0x4400000,0x80000000:rootfs.img;
+flash=mmc,0:system-data:ext4:0x84500000,0x40000000:system-data.img;
+flash=mmc,0:user:ext4:0xC4500000,0:user.img;
diff --git a/scripts/tizen/artik530/os_1.0.0/tizen_params.bin b/scripts/tizen/artik530/os_1.0.0/tizen_params.bin
new file mode 100755 (executable)
index 0000000..61ee9b2
Binary files /dev/null and b/scripts/tizen/artik530/os_1.0.0/tizen_params.bin differ