![]() |
the self built bl602_boot2 is very different from pre-built one - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=1) +--- Forum: Getting Started (https://forum.pine64.org/forumdisplay.php?fid=21) +--- Thread: the self built bl602_boot2 is very different from pre-built one (/showthread.php?tid=20001) |
the self built bl602_boot2 is very different from pre-built one - pinecheng - 09-16-2025 Anyone is still playing PineCone? I am trying to build blsp_boot2 myself using the bl_iot_sdk tree. However, the binary that I built is very different from the prebuilt image bl_iot_sdk/tools/flash_tool/bl602/builtin_imgs/blsp_boot2.elf Here is how I did: $ cd bl_iot_sdk $ export BL60X_SDK_PATH=$(pwd) $ export CONFIG_CHIP_NAME=BL602 $ cd bl_iot_sdk/customer_app/bl602_boot2 $make The generated binary bl602_boot2.elf contains the main function like a dummy. 230002aa <main>: 230002aa: 8082 ret 230002ac: 0001 nop 230002ae: 0101 addi sp,sp,0 The pre-built blsp_boot2.elf seems to be a valid one, which matches the bl602_boot2 code. Can anyone point out what I have missed here? thanks so much in advance. RE: the self built bl602_boot2 is very different from pre-built one - pinecheng - 09-16-2025 (Yesterday, 09:58 AM)pinecheng Wrote: Anyone is still playing PineCone? I am trying to build blsp_boot2 myself using the bl_iot_sdk tree. RE: the self built bl602_boot2 is very different from pre-built one - pinecheng - 09-16-2025 I once again checked where the main function comes from from my build log. The libraries: libbl602_boot2.a, libbl602.a, andlibbl602_std.a are the products of components that bootloader depends on. And the "main" seems to come from the libbl602_std.a (bl602_mfg_flash.c) instead of libbl602_boot2.a (blsp_boot2.c). So the question now is what is the correct way to build the bootloader blsp_boot2? thanks |