View Single Post
Old 04-06-2012, 04:10 AM   #7
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
You probably don't have the current directory (".") in your path. Try executing it as:

Code:
./pbfwsplit.pl SWUPDATE.BIN
meaning, run the version of pbfwsplit.pl in the current directory. Or, since pbfwsplit.pl is a perl script, you can run it as:

Code:
perl pbfwsplit.pl SWUPDATE.BIN
since "perl" will be in your executable path.

".." refers to the parent directory of where you are, so "../pbfwsplit.pl" would only work if the script was in that directory. In my earlier instructions, I created the temporary directory where pbfwsplit.pl and the firmware were. When you change into the temporary directory, then the script and firmware would be accessed using the "../" prefix. I did it that way because splitting the firmware creates quite a few files, and I wanted to keep them separate from the originals. But you don't have to do it exactly that way. Splitting the files in the same directory would still work, too.

Edit: Oh yes, to run the script as "./pbfwsplit.pl", it has to have the executable permission bits set. Running "chmod +x pbfwsplit.pl" would do that. If you run it with "perl pbfwsplit.pl", then the script doesn't need the exectutable bits set since it is actually "perl" that is being run directly.

Last edited by rkomar; 04-06-2012 at 04:21 AM.
rkomar is offline   Reply With Quote