mtd: add option for TRX magic to fixtrx
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 7 Mar 2021 15:47:17 +0000 (16:47 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 15 Mar 2021 15:57:34 +0000 (16:57 +0100)
commitb5b0796a13223b56f1c2e13e2697c92dec22e9c2
treef4a37b4d962f62829660206b2d5abad43d9d9942
parent4d9f69322cdaaec10a8f37c67c772f5c3b21e841
mtd: add option for TRX magic to fixtrx

Buffalo uses the TRX header with a different magic and even changes this
magic with different devices. This change allows to specify the header
to use as a command line argument.

This is needed for the Buffalo WSR-2533DHP2 based on mt7622.

Co-Developed-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/system/mtd/src/mtd.c
package/system/mtd/src/mtd.h
package/system/mtd/src/trx.c