mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
cmd_mtdparts: use 64 bits for flash size, partition size & offset
This matches the 64 bit size in struct mtd_info and allows the mtdparts command to function correctly with a flash >= 4GiB. Format specifiers for size & offset are given the ll length, matching its use in drivers/mtd in absence of something like inttypes.h/PRIx64. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
@@ -32,8 +32,8 @@ struct part_info {
|
||||
struct list_head link;
|
||||
char *name; /* partition name */
|
||||
u8 auto_name; /* set to 1 for generated name */
|
||||
u32 size; /* total size of the partition */
|
||||
u32 offset; /* offset within device */
|
||||
u64 size; /* total size of the partition */
|
||||
u64 offset; /* offset within device */
|
||||
void *jffs2_priv; /* used internaly by jffs2 */
|
||||
u32 mask_flags; /* kernel MTD mask flags */
|
||||
u32 sector_size; /* size of sector */
|
||||
@@ -44,7 +44,7 @@ struct mtdids {
|
||||
struct list_head link;
|
||||
u8 type; /* device type */
|
||||
u8 num; /* device number */
|
||||
u32 size; /* device size */
|
||||
u64 size; /* device size */
|
||||
char *mtd_id; /* linux kernel device id */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user