Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo authored Nov 12, 2023
1 parent bea4c4a commit e093fad
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions unbrick/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down

0 comments on commit e093fad

Please sign in to comment.