this is the same source as psdread.exe, just called with a different name.
-3 is the disknr of the sdcard on the xda2/himalaya -1 is the disknr of the sdcard on the xda1/wallaby
psdwrite will only write to removable devices. when no length is specified, the whole file is written when no cardseek offset is specified, data is written to the start of the card
numbers can be specified as hex (ex: 0x8000) or decimal (ex: 32768)
windows commandline tool to write to a flash memory device on your PDA via activesync, or a card reader connected to your desktop pc.
example: writing to DSK3 in your PocketPC device
psdwrite -3 sd.img
will write the contents of sd.img to the sd card in your Himalaya sdcard slot.
example: writing to a memory card device attached to drive F: on your PC
psdwrite F: sd.img
offsets do not nescesarily have to be aligned to sector boundaries. for instance if you type:
psdwrite -3 x.bin 0x50 0x40
psdwrite will read the sector at 0x0, copy x.bin to offset 0x50 in that sector, and then write back the whole sector.
this is mainly useful when creating HimalayaSDcardLayout type sdcards. If you have a sdcard that contains the correct header, you can copy the contents of another sdcard as follows: assuming the sdcard contains a 32M image. ( add 0x200 bytes for the header )
psdread -3 0 0x02000200 sd.img
then copy it to the new sdcard ( which was prepare with the correct header from the bootloader ) as follows:
psdwrite -3 sd.img -s 0x180 0x180
this will copy the data from offset 0x180 in the sd.img file to offset 0x180 on the sd-card, thus preserving the header already present on the sdcard.