自定义bootloader
-
背景:需要自定义tee os(使用OPTEE而不是rockchip的TEE),所以想要定制bootloader。
我之前有个rock pi 4b,然后其启动流程就如同这里所示:https://opensource.rock-chips.com/wiki_Boot_option,基于这个wiki我们构建了一个基于官方TEE的启动镜像。
不过现在想知道在RK3588S的coolpi上是否也是一样的启动流程,如果地址或者流程不一样的话,能否告知一下coolpi 4b的启动流程呢 -
@zehui
启动的流程是一样的,目前uboot的结构如下:FIT description: FIT Image with ATF/OP-TEE/U-Boot/MCU Created: Wed Feb 28 09:32:41 2024 Image 0 (uboot) Description: U-Boot Created: Wed Feb 28 09:32:41 2024 Type: Standalone Program Compression: uncompressed Data Size: 1389728 Bytes = 1357.16 KiB = 1.33 MiB Architecture: AArch64 Load Address: 0x00200000 Entry Point: unavailable Hash algo: sha256 Hash value: e8eeabe5b2891390396b4cb77a33c5bb8da03b1da33a64274a077cf386f2b5aa Image 1 (atf-1) Description: ARM Trusted Firmware Created: Wed Feb 28 09:32:41 2024 Type: Firmware Compression: uncompressed Data Size: 200008 Bytes = 195.32 KiB = 0.19 MiB Architecture: AArch64 Load Address: 0x00040000 Hash algo: sha256 Hash value: c902200be1343fe569e54778c286005b1c6163606664c463a24d787be4376966 Image 2 (atf-2) Description: ARM Trusted Firmware Created: Wed Feb 28 09:32:41 2024 Type: Firmware Compression: uncompressed Data Size: 24576 Bytes = 24.00 KiB = 0.02 MiB Architecture: AArch64 Load Address: 0xff100000 Hash algo: sha256 Hash value: 225d6bf0712f850648223365ba06a73ba5f6315fb8a9580f23ab48ece795f91e Image 3 (atf-3) Description: ARM Trusted Firmware Created: Wed Feb 28 09:32:41 2024 Type: Firmware Compression: uncompressed Data Size: 24576 Bytes = 24.00 KiB = 0.02 MiB Architecture: AArch64 Load Address: 0x000f0000 Hash algo: sha256 Hash value: aa71013e72d7ab4be264c1093b155ef06e65d0a263d552be25b13c8ddf285586 Image 4 (optee) Description: OP-TEE Created: Wed Feb 28 09:32:41 2024 Type: Firmware Compression: uncompressed Data Size: 465304 Bytes = 454.40 KiB = 0.44 MiB Architecture: AArch64 Load Address: 0x08400000 Hash algo: sha256 Hash value: 66e30bf9e879405a49797aaa6c08ca1c41aa325443e910af42e3df309e65909b Image 5 (kern-fdt) Description: cp4/uboot.dtb Created: Wed Feb 28 09:32:41 2024 Type: Flat Device Tree Compression: uncompressed Data Size: 141854 Bytes = 138.53 KiB = 0.14 MiB Architecture: AArch64 Hash algo: sha256 Hash value: ba43bc47ab29f0cbcba25658712ac3d3c6349a30486c76d5b720310e58f02de3 Image 6 (fdt) Description: U-Boot dtb Created: Wed Feb 28 09:32:41 2024 Type: Flat Device Tree Compression: uncompressed Data Size: 7065 Bytes = 6.90 KiB = 0.01 MiB Architecture: AArch64 Hash algo: sha256 Hash value: 987a71d492c0045c4964bbed7799da0eee5276a2b60b5a1335fc2d37fdfcf944 Default Configuration: 'conf' Configuration 0 (conf) Description: rk3588s-cp4 Kernel: unavailable Firmware: atf-1 FDT: fdt kern-fdt Loadables: uboot atf-2 atf-3 optee