tizen: add bootcode.bin with RV64 code to jump to sector 34
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 5 Aug 2024 16:21:25 +0000 (18:21 +0200)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Mon, 28 Oct 2024 07:29:01 +0000 (08:29 +0100)
The bootcode written to the protective MBR (sector zero) has to be
proviced by the uboot package instead of being hardcoded in sd_fusing.py
script. This makes the SD card flashing proceduce a bit more flexible and
prepares sd_fusing for handling more complicated bootcode for other
boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I875760aea53acc638a7daffb49927d876367186d

board/thead/light-c910/tizen/bootcode.bin [new file with mode: 0644]
board/thead/light-c910/tizen/bootcode.txt [new file with mode: 0644]
packaging/u-boot-lpi4a-16g.spec
packaging/u-boot-lpi4a-8g.spec

diff --git a/board/thead/light-c910/tizen/bootcode.bin b/board/thead/light-c910/tizen/bootcode.bin
new file mode 100644 (file)
index 0000000..c95ce88
Binary files /dev/null and b/board/thead/light-c910/tizen/bootcode.bin differ
diff --git a/board/thead/light-c910/tizen/bootcode.txt b/board/thead/light-c910/tizen/bootcode.txt
new file mode 100644 (file)
index 0000000..a198e61
--- /dev/null
@@ -0,0 +1 @@
+RV64 'J 0x4400' (sector 34, which is the first free sector after GPT partition table)
\ No newline at end of file
index de813e60fb95b44888b8ba5ace272a0d45a0e8ce..97659973d324fee8e9ad9cecd2932f0185d5d96d 100644 (file)
@@ -58,6 +58,7 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}/boot
 mkdir -p %{buildroot}/var/tmp
 install -m 755 u-boot-with-spl.bin %{buildroot}/var/tmp/
+install -m 755 board/thead/light-c910/tizen/bootcode.bin %{buildroot}/var/tmp/
 install -m 755 uboot.env %{buildroot}/boot/
 install -m 755 boot.scr.uimg %{buildroot}/boot/
 install -m 755 lpi4a/fw_dynamic.bin %{buildroot}/boot/
@@ -70,6 +71,7 @@ install -m 755 lpi4a/light_c906_audio.bin %{buildroot}/boot/
 %manifest u_boot_lpi4a-16g.manifest
 %defattr(-,root,root,-)
 /var/tmp/u-boot-with-spl.bin
+/var/tmp/bootcode.bin
 /boot/uboot.env
 /boot/boot.scr.uimg
 /boot/fw_dynamic.bin
index 643dde069aacd142d41985f727458c621b90181c..0d6df23a0bfcd76da20352361303b0dfe6e24876 100644 (file)
@@ -58,6 +58,7 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}/boot
 mkdir -p %{buildroot}/var/tmp
 install -m 755 u-boot-with-spl.bin %{buildroot}/var/tmp/
+install -m 755 board/thead/light-c910/tizen/bootcode.bin %{buildroot}/var/tmp/
 install -m 755 uboot.env %{buildroot}/boot/
 install -m 755 boot.scr.uimg %{buildroot}/boot/
 install -m 755 lpi4a/fw_dynamic.bin %{buildroot}/boot/
@@ -70,6 +71,7 @@ install -m 755 lpi4a/light_c906_audio.bin %{buildroot}/boot/
 %manifest u_boot_lpi4a-8g.manifest
 %defattr(-,root,root,-)
 /var/tmp/u-boot-with-spl.bin
+/var/tmp/bootcode.bin
 /boot/uboot.env
 /boot/boot.scr.uimg
 /boot/fw_dynamic.bin