MKDNS323FW(1)

๐Ÿ’– MKDNS323FW ๐Ÿ’–

okay bestie, so like... mkdns323fw is a User Commands girlie from the dns323-firmware-tools fam, and she builds firmware images for the DNS-323 from a kernel and an initrd. let's get into it ๐Ÿซถ


โœจ NAME โœจ

mkdns323fw โ€” build firmware images for the DNS-323 from a kernel and initrd ๐ŸŒธ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

mkdns323fw -k KERNEL -i INITRD [-d DEFAULTS] -p PRODUCT_ID -c CUSTOM_ID
-m MODEL_ID -o OUTPUTFILE

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so mkdns323fw creates firmware images that are, like, suitable for upload to the D-link DNS-323 and other similar devices based on the same basic firmware image โ€” think the Conceptronics CH3SNAS, bestie. these firmware images contain a kernel and an initrd, plus various product-specific values and checksums. it's giving โœจassembly requiredโœจ.

โš ๏ธ MAJOR WARNING BESTIE โš ๏ธ this command can be very dangerous. like, although it attempts to do some very, very basic sanity checking, it is still quite easy to generate a firmware file that, when loaded into your device, will kill it stone dead ๐Ÿ’€. this program is not able to check that you're uploading valid data to your device; if you brick it, you're on your own. no cap.

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -k kernel, --kernel=kernel โ€” specify the file containing the kernel image to embed in the firmware image. this must be a uBoot image file, as produced by mkimage(1) with appropriate options to specify it as a kernel image. attempts to provide a non-uBoot file will fail, while specifying a non-kernel uBoot file may well brick your device ๐Ÿ™ˆ. this option is required.
  • -i initrd, --initrd=initrd โ€” the initrd file to embed in the firmware image. this must be a uBoot image file, as produced by mkimage(1) with appropriate options to specify it as a ramdisk. the tool will refuse to embed a non-uBoot file, however a dodgy ramdisk will likely brick your device ๐Ÿ’€.
  • -d defaults.tar.gz, --defaults=defaults.tar.gz โ€” the firmware format has the ability to embed a tarball with a default configuration; if you want to do this, you may use this option to do so. however, the devices that the author has dealt with do not require such a thing, and leaving it out still produces a valid firmware (and one that is a bit smaller, to boot โœจ).
  • -s signature, --defaults=signature โ€” for reasons that will probably remain unknown until the ends of time ๐ŸŒˆ, there are (at least) two different firmware signatures running around that are otherwise identical in their internal structure, which are used for different devices. this option exists to allow you to specify the signature that you want to use in your firmware build. valid values for this option are currently FrodoII ยฎ (the default if this option is not specified), Chopper ยฎ or Gandolf ยฎ which is used in some devices. see the table at the top of the script if you don't know which value to use for your device ๐Ÿ‘‘
  • --p product_id, --product-id=product_id
  • --c custom_id, --custom-id=custom_id
  • --m model_id, --model-id=model_id โ€” specify the product, custom, and model ID that this firmware image is intended for. as several different devices share the same firmware format, the intended device type is encoded in these fields. if you do not specify the correct values for the device that you are targetting with your firmware, it is quite likely that the device will refuse the upload ๐Ÿ˜ญ.

known-good values for various devices are provided in the header of the script; please look there for more information. you can also obtain the values you need by downloading an existing firmware for the device you're targetting and doing a bit of digging ๐Ÿ”.

  • -o outputfile, --output=outputfile โ€” where to write the completed firmware image. will overwrite any existing file of the same name ๐Ÿ’….

๐Ÿ› BUGS ๐Ÿ›

e-mail bug reports to theshed+dns323-firmware-tools@hezmatt.org. i don't guarantee to be able to help, but i'll give it a shot. patches are far more helpful ๐Ÿซถ.


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

mkdns323fw was written by Matt Palmer, based on reverse-engineering work done by Leschinsky Oleg. iconic behaviour fr fr.


Copyright ยฉ 2008 Matt Palmer.

this is free software; see the source for copying conditions. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. (that's the legal girlie way of saying: no refunds bestie ๐Ÿ˜ญ)


๐ŸŒŸ SEE ALSO ๐ŸŒŸ

mkimage(1), splitdns323fw(1).


and that's the whole page, bestie!! ๐Ÿ’–โœจ๐ŸŽ€ this one's from dns323-firmware-tools 0.1, dated October 2008 โ€” yeah she's an elder but she still ate ๐Ÿ’…๐Ÿฆ‹ go build responsibly, and pls don't brick anything, i'm begging ๐Ÿ™๐ŸŒธ