Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initilize bch, invalid parameters? #5

Open
JavierBaratech opened this issue Nov 7, 2023 · 1 comment
Open

Unable to initilize bch, invalid parameters? #5

JavierBaratech opened this issue Nov 7, 2023 · 1 comment

Comments

@JavierBaratech
Copy link

I have the following ouput when I executed the nand-decoder script:

./nand_dump_decoder.sh -i /chipoff/ -o test.bin -m ATMEL --atmel-config

[] Found one binary input file (138412032 bytes)
[
] Using ECC mode ATMEL
[*] Used configuration
Block size: 131072 bytes (64 pages)
Page size: 2048 bytes
Sector size: 512 bytes
Spare size: 64 bytes
ECC offset: 36 bytes
ECC errors: 4 errors per sector (max.)
ECC bytes: 7 bytes per sector
Use ECC: True
File offset: 0x0 (skip 0 blocks)
Traceback (most recent call last):
File "nand-dump-tools/nand_dump_decoder.py", line 1425, in
ecc_method(input_files, args.outfile, config)
File /nand-dump-tools/nand_dump_decoder.py", line 158, in atmel_error_correction
bch = bchlib.BCH(config['ecc_polynom'], config['ecc_errors'], False)
RuntimeError: unable to inititalize bch, invalid parameters?

Do you have any suggestion? Thanks in advance.

@sirastynax
Copy link

Been slamming my head into this for the better part of a day. It appears that when bchlib moved to version 1.0.0, it changed everything about the lib.

Run 'pip uninstall bchlib' and then 'pip install bchlib==0.7'

This change worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants