imagetag.ggo 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Command line option parsing generator file for imagetag
  2. # Supplied-To: gengetopt
  3. #
  4. # Copyright 2010 Daniel Dickinson <openwrt@cshore.neomailbox.net>
  5. #
  6. # This file is subject to the terms and conditions of the GNU General Public
  7. # License. See the file "COPYING" in the main directory of this archive
  8. # for more details.
  9. #
  10. package "imagetag"
  11. version "2.0.0"
  12. purpose "Generate image with CFE imagetag for Broadcom 63xx routers."
  13. description "Copyright (C) 2008 Axel Gembe
  14. Copyright (C) 2009-2010 Daniel Dickinson
  15. Licensed unter the terms of the Gnu General Public License.
  16. Given a root filesystem, a linux kernel, and an optional CFE, generates an image with an imagetag for a Broadcom 63xx-based router. Additional parameters to be specified depend on the specfic brand and model of router."
  17. args "--file-name=imagetag_cmdline"
  18. option "kernel" i "File with LZMA compressed kernel to include in the image." string typestr="filename" required
  19. option "rootfs" f "File with RootFS to include in the image." string typestr="filename" required
  20. option "output" o "Name of output file." string typestr="filename" required
  21. option "cfe" - "File with CFE to include in the image." string typestr="filename" optional
  22. option "boardid" b "Board ID to set in the image (must match what router expects, e.g. \"96345GW2\")." string required
  23. option "chipid" c "Chip ID to set in the image (must match the actual hardware, e.g. \"6345\")." string required
  24. option "flash-start" s "Flash start address." string typestr="address" optional default="0xBFC00000"
  25. option "image-offset" n "Offset from start address for the first byte after the CFE (in memory)." string typestr="offset" default="0x10000" optional
  26. option "tag-version" v "Version number for imagetag format." string default="6" optional
  27. option "signature" a "Magic string (signature), for boards that need it." string default="Broadcom Corporatio" optional
  28. option "signature2" m "Second magic string (signature2)." string default="ver. 2.0" optional
  29. option "block-size" k "Flash erase block size." string optional default="0x10000"
  30. option "load-addr" l "Kernel load address." string typestr="address" required
  31. option "entry" e "Address where the kernel entry point will be for booting." string typestr="address" required
  32. option "layoutver" y "Flash layout version (version 2.2x of the Broadcom code requires this)." string optional
  33. option "info1" 1 "String for first vendor information section." string optional
  34. option "altinfo" - "String for vendor information section (alternate/pirelli)." string optional
  35. option "info2" 2 "String for second vendor information section." string optional
  36. option "root-first" - "Put the rootfs before the kernel (only for stock images, e.g. captured from the router's flash memory)." flag off
  37. option "rsa-signature" r "String for RSA Signature section." string optional
  38. option "second-image-flag" - "Dual Image Flag (2=not-specified)." values="0", "1", "2" default="2" typestr="flag-value" optional
  39. option "inactive" - "Inactive Flag (2=not-specified)." values="0", "1", "2" default="2" typestr="flag-value" optional
  40. option "reserved2" - "String for second reserved section." string optional
  41. option "kernel-file-has-header" - "Indicates that the kernel file includes the kernel header with correct load address and entry point, so no changes are needed" flag off
  42. option "pad" p "Pad the image to this size if smaller (in MiB)" int typestr="size (in MiB)" optional