rockchip-linux / rkdeveloptool

GNU General Public License v2.0
146 stars 85 forks source link

Getting "Opening loader failed, exiting download boot!" when running rkdeveloptool db #50

Open Marcus-C137 opened 4 years ago

Marcus-C137 commented 4 years ago

Put device into MaskRom mode. Build was successfull, but can not open loader

drmckay commented 3 years ago

check if the loader file is in the same directory :) if it is correct, you have to use a specific loader image format, which can be created several ways... the correct image should look like this:

$ hexdump -n 16 -C [yourfilename] 00000000 42 4f 4f 54 66 00 50 02 00 00 00 00 03 01 e4 07 |BOOTf.P.........|

blazczak commented 3 years ago

Ran into the same error message when trying to use rkdeveloptool to flash firefly-rk3399.

I'm curious @drmckay, what would be the easiest way to obtain the specific loader image format you're describing? The format of files in https://github.com/rockchip-linux/rkbin has changed, they no longer start with 0x42 0x4F 0x4F 0x54. This seems to break the instructions posted at http://wiki.t-firefly.com/ROC-RK3328-CC/flash_emmc.html#rkdeveloptool and https://en.opensuse.org/HCL:Firefly-RK3399

hexdump -n 16 -C rk3399_miniloader_v1.26.bin
00000000  82 00 00 14 00 00 00 00  52 53 41 4b f8 01 00 00  |........RSAK....|
00000010
SciLor commented 2 years ago

You may build the bootloader if you want, just remove the "rm loader.bin" in the /scripts/checkpatch.sh and run it (from the root directoy)