You don’t need to register to reply or leave a new thread there now.
Hi Nick,
> sudo nand-oob-strip.py e3-nand-backup.0 e3-nand.0: No such file or
> directory
Two things. You probably don't need sudo as your ordinary user should
be able to read e3-nand-backup.0 and write e3-nand.0. You have to
specify a path to the nand-oob-strip.py script for the shell to find it.
Since it's in the current directory, that's just `.', i.e.
./nand-oob-strip.py in.0 out.0
If that complains, then it's because ./nand-oob-strip.py lacks the
`execute' permission for you. Either add it with chmod(1), or run the
Python interpreter directly:
python3 nand-oob-strip.py in.0 out.0
Alternatively, to modify the file in place, so ensure they're not your
only copies, you can do
LC_ALL=C perl -i -0777pe 's/(.{512})(.{16})/$1/gs' \
e3-nand-backup.{0..5}
which substitutes every 512 bytes followed by 16 bytes with just the
512.
--
Cheers, Ralph.
_______________________________________________
e3-hacking mailing list
e3-hacking@earth.li
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.earth.li%2Fmailman%2Flistinfo%2Fe3-hacking&data=02%7C01%7C%7C0c848394242c4830fc6e08d6c5b72a85%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636913787811205410&sdata=0kD8t8q7zfl%2FGDLfdCSjfHE%2B1A2ZbQ8DuiwML03509A%3D&reserved=0