PDA

View Full Version : Nbmerge issue with "-conservative" switch


jwzg
8th July 2009, 02:08 AM
I'm cooking a Hermes 6.1 ROM with Bepe's old Hermes ROM kitchen using Tadzio's tools, and when the .bat file gets to the last nbmerge command it throws an error: Could not open input file -conservative.payload.

http://i158.photobucket.com/albums/t103/jlb_china/error.jpg

The instructions when using nbmerge state "In -conservative mode, <os-new.nb.extra> must exist". How do I write this command in the .bat file to get it to build the ROM in -conservative mode. I'm trying to leave the ULDR partition in place.

Help anyone?

jwzg
8th July 2009, 05:02 AM
Bumpity bump bump... I'll refrain from using the mod powers to sticky this until I get an answer. :p

NRGZ28
8th July 2009, 08:18 AM
From what I can see... you're not supplying nbmerge with the right number of parameters. It thinks "-conservative.payload" is the input file name. I'd say you need to supply it a file name... most likely "os.nb.payload" and THEN pass it that conservative switch.

jwzg
8th July 2009, 03:25 PM
From what I can see... you're not supplying nbmerge with the right number of parameters. It thinks "-conservative.payload" is the input file name. I'd say you need to supply it a file name... most likely "os.nb.payload" and THEN pass it that conservative switch.


That's what I thought. I know that os.new.payload.extra has to be there, but I don't know where it goes.

B4PJS
8th July 2009, 03:49 PM
ImgfsToNb imgfs-new.bin OS.nb.payload OS-new.nb.payload -bigstoragemove

thats what I use for imgfstonb if that helps... (Cant get conservative to work with this though :()

jwzg
8th July 2009, 04:27 PM
The -conservative parameter MUST be used in the nbmerge command line if it is also used in the imgfstonb command line. The idea is simply to find out where os-new.payload.extra fits in the command.

B4PJS
8th July 2009, 05:11 PM
NBMerge
-------
Usage:

NBMerge -hermes|-kaiser|-titan|-sp|-wizard|-athena <os-new.nb> or
NBMerge -hermes|-kaiser|-titan|-sp|-wizard|-athena <os-new.nb> -conservative

or

NBMerge -data <payload-chunk-size> -extra <extra-chunk-size> <os-new.nb> or
NBMerge -data <payload-chunk-size> -extra <extra-chunk-size> <os-new.nb> -conservative

IMPORTANT NOTE:
If you ran ImgfsToNb with -conservative, you also *must* use -conservative with NBMerge. Similarily, if you ran ImgfsToNb without -conservative, you *must not* use -conservative with NBMerge!

Adds back in the device-specific extra data, creating a properly formatted <os-new.nb> file. The names of the input files are derived from the output file name - for example, if you call NBMerge with os-new.nb, then os-new.nb.payload is used as input file.

Just like NBSplit, NBMerge does nothing for Wizard and Athena.

The -data <numer> -extra <number> format is explained above, under NBSplit.

If -conservative is not given, the extra data is generated internally. (This currently only works for devices which have an extra-chunk-size of 8, like Hermes, Kaiser, and Titan.) In this case, <os-new.nb.extra> is not needed.

In -conservative mode, <os-new.nb.extra> must exist.

As the last step of creating <os-new.nb>, the resulting file is checked for bad NAND block markers (only for Hermes, Kaiser, and Titan). If any are found, a warning is printed and an errorlevel > 0 is returned. DO NOT IGNORE THIS WARNING!

jwzg
8th July 2009, 07:57 PM
NBMerge
-------
Usage:

NBMerge -hermes|-kaiser|-titan|-sp|-wizard|-athena <os-new.nb> or
NBMerge -hermes|-kaiser|-titan|-sp|-wizard|-athena <os-new.nb> -conservative

or

NBMerge -data <payload-chunk-size> -extra <extra-chunk-size> <os-new.nb> or
NBMerge -data <payload-chunk-size> -extra <extra-chunk-size> <os-new.nb> -conservative


In -conservative mode, <os-new.nb.extra> must exist.




When written as above, I got the error. Please follow with an example.

Also, if <os-new.nb.extra> must exist, where does it go?

B4PJS
8th July 2009, 09:12 PM
When written as above, I got the error. Please follow with an example.

Also, if <os-new.nb.extra> must exist, where does it go?
I was just quoting from the readme.txt found in my \tools\imgfs folder. I am guessing that the .extra needs to be in the same folder as the .payload. I have attached the readdme just in case you dont have it.

jwzg
8th July 2009, 11:37 PM
I was just quoting from the readme.txt found in my \tools\imgfs folder. I am guessing that the .extra needs to be in the same folder as the .payload. I have attached the readdme just in case you dont have it.

Thanks. I actually have this, but I'm just still needing clarification on how this nbmerge line should read or why it's asking for conservative.payload.

We'll figure this out if I can get ahold of Bepe or one of the others supergods.

NRGZ28
8th July 2009, 11:53 PM
How about...... "NBMerge -hermes os-new.nb.payload os-new.nb.payload.extra -conservative" ? Better yet... upload the batch file u use here so I can take a look see...

jwzg
9th July 2009, 04:42 AM
Here ya go. This is the original and I know that it does not copy OS-new.nb.extra into the temp folder as well as call for it in the nbmerge cmd line. No matter what I do, for some reason nbmerge thinks that -conservative is a file. I'm using v. 2.0 rc1 I think.

jwzg
9th July 2009, 05:25 PM
Bumpity, bump, bump....

jwzg
10th July 2009, 07:47 PM
Double bump!

dcd1182
10th July 2009, 09:43 PM
batch looks just fine to me.... os.nb.extra is not needed :) why are you using imgfstools 2.0 rc1?

edit: whoops, um, i know how to read....
In -conservative mode, <os-new.nb.extra> must exist.

well i was going to test for you with .nb.extra there, but i cant seem to trim my stuff down to fit within -conservative. can i ask why you want to use -conservative mode anyways?

jwzg
10th July 2009, 09:57 PM
Well, I don't know why I was using RC1 but I have it fixed now. It seems I dumped the RC2 tools into my Kaiser kitchen.

Basically, I needed to put in a copy command to get OS-new.nb.extra into the temp folder. It worked, and now my device isn't dropping to 9mb of RAM available after 30 minutes. ROM release upcoming soon.

Thanks for your help.

dcd1182
10th July 2009, 10:14 PM
i am glad you got it working

i am still curious why you dont want to use bigstorage, and im very surprised that your device booted with the improper nb and ate RAM.

jwzg
10th July 2009, 10:30 PM
Well, I was using bigstoragemove, but I wanted a perfect port. I'm wanting to keep the ULDR partition due to the fact that device update is currently being developed on another thread in this subforum, and I may be interested in using it. I ported my build directly from the 19214 build from the Tilt using Bepe's first Hermes kitchen and his kitchen used the RC1 tools.