fip: add Amlogic prebuilt firmware files for Odroid-N2
authorJaehoon Chung <jh80.chung@samsung.com>
Sun, 10 May 2020 22:34:24 +0000 (07:34 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:23 +0000 (13:19 +0900)
Add amlogic prebilt firmware files for Odroind-N2.
It needs to make u-boot.bin.

Change-Id: I39b3b1145f4f9006632e97702db4e56cea651952
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
15 files changed:
fip/aml_ddr.fw [new file with mode: 0644]
fip/aml_encrypt_g12b [new file with mode: 0755]
fip/bl2.n.bin.sig [new file with mode: 0644]
fip/bl30_new.bin.enc [new file with mode: 0644]
fip/bl30_new.bin.g12a.enc [new file with mode: 0644]
fip/bl31.img [new file with mode: 0755]
fip/bl31.img.enc [new file with mode: 0644]
fip/blx_fix.sh [new file with mode: 0644]
fip/ddr3_1d.fw [new file with mode: 0755]
fip/ddr4_1d.fw [new file with mode: 0755]
fip/ddr4_2d.fw [new file with mode: 0755]
fip/diag_lpddr4.fw [new file with mode: 0755]
fip/lpddr4_1d.fw [new file with mode: 0755]
fip/lpddr4_2d.fw [new file with mode: 0755]
fip/piei.fw [new file with mode: 0755]

diff --git a/fip/aml_ddr.fw b/fip/aml_ddr.fw
new file mode 100644 (file)
index 0000000..a9a9d04
Binary files /dev/null and b/fip/aml_ddr.fw differ
diff --git a/fip/aml_encrypt_g12b b/fip/aml_encrypt_g12b
new file mode 100755 (executable)
index 0000000..4c8187c
Binary files /dev/null and b/fip/aml_encrypt_g12b differ
diff --git a/fip/bl2.n.bin.sig b/fip/bl2.n.bin.sig
new file mode 100644 (file)
index 0000000..2f3f8c6
Binary files /dev/null and b/fip/bl2.n.bin.sig differ
diff --git a/fip/bl30_new.bin.enc b/fip/bl30_new.bin.enc
new file mode 100644 (file)
index 0000000..4a41383
Binary files /dev/null and b/fip/bl30_new.bin.enc differ
diff --git a/fip/bl30_new.bin.g12a.enc b/fip/bl30_new.bin.g12a.enc
new file mode 100644 (file)
index 0000000..7edcbc9
Binary files /dev/null and b/fip/bl30_new.bin.g12a.enc differ
diff --git a/fip/bl31.img b/fip/bl31.img
new file mode 100755 (executable)
index 0000000..398d39d
Binary files /dev/null and b/fip/bl31.img differ
diff --git a/fip/bl31.img.enc b/fip/bl31.img.enc
new file mode 100644 (file)
index 0000000..1ceb16a
Binary files /dev/null and b/fip/bl31.img.enc differ
diff --git a/fip/blx_fix.sh b/fip/blx_fix.sh
new file mode 100644 (file)
index 0000000..f70817b
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+#bl2 file size 41K, bl21 file size 3K (file size not equal runtime size)
+#total 44K
+#after encrypt process, bl2 add 4K header, cut off 4K tail
+
+#bl30 limit 41K
+#bl301 limit 12K
+#bl2 limit 41K
+#bl21 limit 3K, but encrypt tool need 48K bl2.bin, so fix to 7168byte.
+
+#$7:name flag
+if [ "$7" = "bl30" ]; then
+       declare blx_bin_limit=40960
+       declare blx01_bin_limit=13312
+elif [ "$7" = "bl2" ]; then
+       declare blx_bin_limit=57344
+       declare blx01_bin_limit=4096
+else
+       echo "blx_fix name flag not supported!"
+       exit 1
+fi
+
+# blx_size: blx.bin size, zero_size: fill with zeros
+declare -i blx_size=`du -b $1 | awk '{print int($1)}'`
+declare -i zero_size=$blx_bin_limit-$blx_size
+dd if=/dev/zero of=$2 bs=1 count=$zero_size
+cat $1 $2 > $3
+rm $2
+
+declare -i blx01_size=`du -b $4 | awk '{print int($1)}'`
+declare -i zero_size_01=$blx01_bin_limit-$blx01_size
+dd if=/dev/zero of=$2 bs=1 count=$zero_size_01
+cat $4 $2 > $5
+
+cat $3 $5 > $6
+
+rm $2
+
+exit 0
diff --git a/fip/ddr3_1d.fw b/fip/ddr3_1d.fw
new file mode 100755 (executable)
index 0000000..16586ff
Binary files /dev/null and b/fip/ddr3_1d.fw differ
diff --git a/fip/ddr4_1d.fw b/fip/ddr4_1d.fw
new file mode 100755 (executable)
index 0000000..2a9db98
Binary files /dev/null and b/fip/ddr4_1d.fw differ
diff --git a/fip/ddr4_2d.fw b/fip/ddr4_2d.fw
new file mode 100755 (executable)
index 0000000..f70d3a3
Binary files /dev/null and b/fip/ddr4_2d.fw differ
diff --git a/fip/diag_lpddr4.fw b/fip/diag_lpddr4.fw
new file mode 100755 (executable)
index 0000000..f12fa27
Binary files /dev/null and b/fip/diag_lpddr4.fw differ
diff --git a/fip/lpddr4_1d.fw b/fip/lpddr4_1d.fw
new file mode 100755 (executable)
index 0000000..6c98b7a
Binary files /dev/null and b/fip/lpddr4_1d.fw differ
diff --git a/fip/lpddr4_2d.fw b/fip/lpddr4_2d.fw
new file mode 100755 (executable)
index 0000000..5f01b35
Binary files /dev/null and b/fip/lpddr4_2d.fw differ
diff --git a/fip/piei.fw b/fip/piei.fw
new file mode 100755 (executable)
index 0000000..94bff08
Binary files /dev/null and b/fip/piei.fw differ