marcdbl
30th July 2005, 10:17 PM
When I first tried writing a bigstorage ROM to SD using "ntrw write", like many other people here I got the "incorrect parameter" message and was quite nervous about attempting to flash my magician having seen this message.
So, I've come up with the following method to verify that the ROM has written correctly to the SD card, despite the error above.
To perform this procedure, in addition to the usual tools, you will need to install GNU32 diff tools from here:
http://prdownloads.sourceforge.net/gnuwin32/diffutils-2.8.7-1.exe?download
1. Let's presume that the image you want to write is called hackedimage.nb1.
2. In Windows explorer, right click on the file hackedimage.nb1 and choose Properties, from this window you will be able to read the size of this file in bytes (it will be something like 66847136) write this down somewhere. This is the magic number. [NOTE, write down the "Size" NOT "Size on disk"].
3. Now write the file to your SD card with the command "ntrw write hackedimage.nb1 X:"
4. Next, we'll read the image straight back to another file that we'll call "readimage.nb1". The command is "ntrw read readimage.nb1"
5. You now have two files, which we'll compare to make sure the content is identical (ignoring the fact that they are completely different sizes).
6. In the directory \Program Files\GnuWin32\bin\ you will find a file called "cmp.exe".
7. Run the command "cmp -b -n XXXXX hackedimage1.nb1 readimage.nb1" replacing XXXXX with the magic number you wrote down earlier. This command will do whats known as a "binary diff" to compare the contents of the files.
8. If the command gives no output whatsoever, then you should have a good image, great! Go flash it! (If the command does give output, then the images don't match, time to try again).
Hope that helps, it certainly worked for me.
So, I've come up with the following method to verify that the ROM has written correctly to the SD card, despite the error above.
To perform this procedure, in addition to the usual tools, you will need to install GNU32 diff tools from here:
http://prdownloads.sourceforge.net/gnuwin32/diffutils-2.8.7-1.exe?download
1. Let's presume that the image you want to write is called hackedimage.nb1.
2. In Windows explorer, right click on the file hackedimage.nb1 and choose Properties, from this window you will be able to read the size of this file in bytes (it will be something like 66847136) write this down somewhere. This is the magic number. [NOTE, write down the "Size" NOT "Size on disk"].
3. Now write the file to your SD card with the command "ntrw write hackedimage.nb1 X:"
4. Next, we'll read the image straight back to another file that we'll call "readimage.nb1". The command is "ntrw read readimage.nb1"
5. You now have two files, which we'll compare to make sure the content is identical (ignoring the fact that they are completely different sizes).
6. In the directory \Program Files\GnuWin32\bin\ you will find a file called "cmp.exe".
7. Run the command "cmp -b -n XXXXX hackedimage1.nb1 readimage.nb1" replacing XXXXX with the magic number you wrote down earlier. This command will do whats known as a "binary diff" to compare the contents of the files.
8. If the command gives no output whatsoever, then you should have a good image, great! Go flash it! (If the command does give output, then the images don't match, time to try again).
Hope that helps, it certainly worked for me.