cmd: nandbcb: Reconstruct the nandbcb tool for all platforms
The original nandbcb tool was designed for imx6 only, when trying to leverage it to replace the kobs-ng tool, we found the design is not friendly for supporting all platforms. To support all iMX6/7/8 platforms and for easy further maintain, I reconstruct the structure of the tool. The main changes including: 1. Use platform_data to determine the logic branches rather than simply use SOC name. 2. More data structures as parameter for functions. 3. Global variables to define the FCB/DBBT/FW locations. 4. Implement the kobs-ng default 4 FCB/4 DBBT/2 FW layout. 5. Support Hamming coding/ 40bit BCH/ 62bit BCH coding FCB. 6. Dump and compare all written FCB/DBBT to verify data integrity. The tool has been verified on iMX6Q/DL, 6SX, 7D, 6ULL, iMX8QX, iMX8MM. Signed-off-by: Han Xu <han.xu@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
49f8454705
commit
214b7d534d
|
@ -9,9 +9,11 @@
|
|||
|
||||
#define FCB_FINGERPRINT 0x20424346 /* 'FCB' */
|
||||
#define FCB_VERSION_1 0x01000000
|
||||
#define FCB_FINGERPRINT_OFF 0x4 /* FCB fingerprint offset*/
|
||||
|
||||
#define DBBT_FINGERPRINT2 0x54424244 /* 'DBBT' */
|
||||
#define DBBT_FINGERPRINT 0x54424244 /* 'DBBT' */
|
||||
#define DBBT_VERSION_1 0x01000000
|
||||
#define DBBT_FINGERPRINT_OFF 0x4 /* DBBT fingerprint offset*/
|
||||
|
||||
struct dbbt_block {
|
||||
u32 checksum; /* reserved on i.MX6 */
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue