430-mtd_myloader_partition_parser.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/drivers/mtd/Kconfig
  2. +++ b/drivers/mtd/Kconfig
  3. @@ -176,6 +176,22 @@ config MTD_AR7_PARTS
  4. endif # MTD_PARTITIONS
  5. +config MTD_MYLOADER_PARTS
  6. + tristate "MyLoader partition parsing"
  7. + depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR231X || ATHEROS_AR71XX)
  8. + ---help---
  9. + MyLoader is a bootloader which allows the user to define partitions
  10. + in flash devices, by putting a table in the second erase block
  11. + on the device, similar to a partition table. This table gives the
  12. + offsets and lengths of the user defined partitions.
  13. +
  14. + If you need code which can detect and parse these tables, and
  15. + register MTD 'partitions' corresponding to each image detected,
  16. + enable this option.
  17. +
  18. + You will still need the parsing functions to be called by the driver
  19. + for your particular device. It won't happen automatically.
  20. +
  21. comment "User Modules And Translation Layers"
  22. config MTD_CHAR
  23. --- a/drivers/mtd/Makefile
  24. +++ b/drivers/mtd/Makefile
  25. @@ -12,6 +12,7 @@ obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo
  26. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
  27. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  28. obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
  29. +obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
  30. # 'Users' - code which presents functionality to userspace.
  31. obj-$(CONFIG_MTD_CHAR) += mtdchar.o