Skip to contentSkip to conversation

board: odroid-n2: Update docs for signing

PATCH In review Baltazár Radics 2 participants 3 messages Jan 10, 2025 – Feb 24, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: odroid-n2: Update docs for signing

The previous instructions resulted in a bootloader that wouldn't fit in an MBR gap. I have updated the docs based on upstream's build process.

---

 doc/board/amlogic/odroid-n2.rst | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
doc/board/amlogic/odroid-n2.rst +3 -12
index 883720f8fb..5222a21c80 100644
@@ -54,10 +54,9 @@ image so it is necessary to obtain binaries from sources published by the board
     $ tar xvfJ gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz
     $ export PATH=$PWD/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:$PWD/gcc-linaro-arm-none-eabi-4.8-2013.11_linux/bin:$PATH
 
-    $ DIR=odroid-n2
-    $ git clone --depth 1 https://github.com/hardkernel/u-boot.git -b odroidn2-v2015.01 $DIR
+    $ git clone --depth 1 https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01 odroidg12
 
-    $ cd odroid-n2
+    $ cd odroidg12
     $ make odroidn2_defconfig
     $ make
     $ export UBOOTDIR=$PWD
@@ -74,12 +73,8 @@ Go back to the mainline U-Boot source tree then:
     $ cp $UBOOTDIR/fip/g12b/bl2.bin fip/
     $ cp $UBOOTDIR/fip/g12b/bl30.bin fip/
     $ cp $UBOOTDIR/fip/g12b/bl31.img fip/
-    $ cp $UBOOTDIR/fip/g12b/ddr3_1d.fw fip/
     $ cp $UBOOTDIR/fip/g12b/ddr4_1d.fw fip/
     $ cp $UBOOTDIR/fip/g12b/ddr4_2d.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/diag_lpddr4.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/lpddr4_1d.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/lpddr4_2d.fw fip/
     $ cp $UBOOTDIR/fip/g12b/piei.fw fip/
     $ cp $UBOOTDIR/fip/g12b/aml_ddr.fw fip/
     $ cp u-boot.bin fip/bl33.bin
@@ -113,7 +108,7 @@ Go back to the mainline U-Boot source tree then:
                                           --level v3 --type bl31
     $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bl3sig --input fip/bl33.bin --compress lz4 \
                                           --output fip/bl33.bin.enc \
-                                          --level v3 --type bl33 --compress lz4
+                                          --level v3 --type bl33
     $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bl2sig --input fip/bl2_new.bin \
                                           --output fip/bl2.n.bin.sig
     $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bootmk \
@@ -124,11 +119,7 @@ Go back to the mainline U-Boot source tree then:
                                           --bl33 fip/bl33.bin.enc \
                                           --ddrfw1 fip/ddr4_1d.fw \
                                           --ddrfw2 fip/ddr4_2d.fw \
-                                          --ddrfw3 fip/ddr3_1d.fw \
                                           --ddrfw4 fip/piei.fw \
-                                          --ddrfw5 fip/lpddr4_1d.fw \
-                                          --ddrfw6 fip/lpddr4_2d.fw \
-                                          --ddrfw7 fip/diag_lpddr4.fw \
                                           --ddrfw8 fip/aml_ddr.fw \
                                           --level v3
 
Signature · 1 line
2.47.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 50 lines · Baltazár Radics

The previous instructions resulted in a bootloader that wouldn't fit in an MBR gap. I have updated the docs based on upstream's build process.

---

  doc/board/amlogic/odroid-n2.rst | 15 +++------------
  1 file changed, 3 insertions(+), 12 deletions(-)
doc/board/amlogic/odroid-n2.rst +3 -8
index 883720f8fb..5222a21c80 100644
@@ -54,10 +54,9 @@ image so it is necessary to obtain binaries from sources published by the board
      $ tar xvfJ gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz
      $ export PATH=$PWD/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:$PWD/gcc-linaro-arm-none-eabi-4.8-2013.11_linux/bin:$PATH
 
-    $ DIR=odroid-n2
-    $ git clone --depth 1 https://github.com/hardkernel/u-boot.git -b odroidn2-v2015.01 $DIR
+    $ git clone --depth 1 https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01 odroidg12
 
-    $ cd odroid-n2
+    $ cd odroidg12
      $ make odroidn2_defconfig
      $ make
      $ export UBOOTDIR=$PWD
@@ -74,12 +73,8 @@ Go back to the mainline U-Boot source tree then:
      $ cp $UBOOTDIR/fip/g12b/bl2.bin fip/
      $ cp $UBOOTDIR/fip/g12b/bl30.bin fip/
      $ cp $UBOOTDIR/fip/g12b/bl31.img fip/
-    $ cp $UBOOTDIR/fip/g12b/ddr3_1d.fw fip/
      $ cp $UBOOTDIR/fip/g12b/ddr4_1d.fw fip/
      $ cp $UBOOTDIR/fip/g12b/ddr4_2d.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/diag_lpddr4.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/lpddr4_1d.fw fip/
-    $ cp $UBOOTDIR/fip/g12b/lpddr4_2d.fw fip/
      $ cp $UBOOTDIR/fip/g12b/piei.fw fip/
      $ cp $UBOOTDIR/fip/g12b/aml_ddr.fw fip/
      $ cp u-boot.bin fip/bl33.bin
@@ -113,7 +108,7 @@ Go back to the mainline U-Boot source tree then:
                                            --level v3 --type bl31
      $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bl3sig --input fip/bl33.bin --compress lz4 \
                                            --output fip/bl33.bin.enc \
-                                          --level v3 --type bl33 --compress lz4
+                                          --level v3 --type bl33
      $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bl2sig --input fip/bl2_new.bin \
                                            --output fip/bl2.n.bin.sig
      $ $UBOOTDIR/fip/g12b/aml_encrypt_g12b --bootmk \
@@ -124,11 +119,7 @@ Go back to the mainline U-Boot source tree then:
                                            --bl33 fip/bl33.bin.enc \

doc/board/amlogic/odroid-n2.rst Go back to the mainline U-Boot source tree then: · line 125

Quoted 10 lines
doc/board/amlogic/odroid-n2.rst +0 -4
                                            --ddrfw1 fip/ddr4_1d.fw \
                                            --ddrfw2 fip/ddr4_2d.fw \
-                                          --ddrfw3 fip/ddr3_1d.fw \
                                            --ddrfw4 fip/piei.fw \
-                                          --ddrfw5 fip/lpddr4_1d.fw \
-                                          --ddrfw6 fip/lpddr4_2d.fw \
-                                          --ddrfw7 fip/diag_lpddr4.fw \
                                            --ddrfw8 fip/aml_ddr.fw \
                                            --level v3
 
#2 lore raw
In reply to Baltazár Radics

Hi,

Quoted 4 lines · Baltazár Radics

The previous instructions resulted in a bootloader that wouldn't fit in an MBR gap. I have updated the docs based on upstream's build process.

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogic-next)

[1/1] board: odroid-n2: Update docs for signing

      https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/a2f995ec5c0cfa4876ad98fefb8603b24d96efad
Signature · 1 line
Neil