From e093fad2a42add1079362c8413933bb29dfb3278 Mon Sep 17 00:00:00 2001 From: roleo Date: Sun, 12 Nov 2023 13:52:26 +0100 Subject: [PATCH] Update README.md --- unbrick/README.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/unbrick/README.md b/unbrick/README.md index 7bc08a1..fec8f45 100644 --- a/unbrick/README.md +++ b/unbrick/README.md @@ -2,19 +2,39 @@ This procedure allows you to unbrick your cam using a backup file (which you did previously). +Please note: bootloader saves the hash of the file and if it matches the hash of the file you are trying to load, this procedure will not work. + +In this case, you have to use a different file: for example you can use "factory" if you have previously used "hacked" and vice versa (see below). + +In the "hacked" version I added a random file to force the hash to change. + + ## How to use 1. Clone this repo on a linux environment. -2. Copy your home partition (mtdblock3.bin) in the folder corresponding to your model. +2. Copy your partition (mtdblockX.bin) in the folder corresponding to your model. mtdblock2.bin for rootfs partition and mtdblock3.bin for home partition. 3. Enter to the unbrick folder `cd unbrick` -4. Run the build command to create the unbrick partition: +4. Run the build command with the desired option. + + If you want to create an original unbrick partition: + + `./build.sh factory` - `./build.sh` + If you want to create a hacked partition: -5. You will find the file home_XXX.gz in the folder corresponding to your model. -6. Unzip it in the root folder of your cam. -7. Switch on the cam and wait for the cam to come online. + `./build.sh hacked` + + The last option allows you to run the hack after the unbrick (but you need to install the hack separately). The backup partition is already modified to run the hack. +5. You will find the file home_XXX.gz (and/or rootfs_XXX.gz) in the folder corresponding to your model. +6. Check if there were any errors in the procedure: the size of the resulting file must be similar to the corresponding mtdblockX.bin. +7. Unzip it in the root folder of your sd card. +8. Switch on the cam and wait for the cam to come online. + +To run this script correctly you have to comply some dependencies depending on your OS. +For example if you are using a Debian distro, install: +- mtd-utils +- u-boot-tools ## DISCLAIMER **NOBODY BUT YOU IS RESPONSIBLE FOR ANY USE OR DAMAGE THIS SOFTWARE MAY CAUSE. THIS IS INTENDED FOR EDUCATIONAL PURPOSES ONLY. USE AT YOUR OWN RISK.**