From fdd761a6cba47e1002b9f2cc7ffbf4828ba50312 Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Mon, 1 Aug 2022 00:39:38 -0400 Subject: [PATCH] Update help-uboot.md --- en/help-uboot.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/en/help-uboot.md b/en/help-uboot.md index 7e08ba1..a122a9e 100644 --- a/en/help-uboot.md +++ b/en/help-uboot.md @@ -68,7 +68,8 @@ Convert the hex dump into a binary firmware file and use it for further research or restoring camera to its pristine state. ``` -xxd -r -p fulldump.log fulldump.bin +cat fulldump.log | sed -E "s/^[0-9a-f]{8}\b: //i" | sed "s/ .*$//" > fulldump.hex +xxd -r -p fulldump.hex fulldump.bin ``` Use [binwalk](https://github.com/ReFirmLabs/binwalk) to unpack the binary file.