rockchip: parameter: mtdpart address uses cmdline directly
1. rename RK_BLK_OFFSET to RK_PARAM_OFFSET; 2. parameter.txt should promise partition address is physical. Change-Id: Ibadc0589c14f6e48475e4db8526535b8a986d944 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
4853871c4f
commit
55aee569aa
|
|
@ -61,7 +61,7 @@ static int rockchip_param_parse(char *param)
|
|||
printf("out of memory\n");
|
||||
break;
|
||||
}
|
||||
part->from = from + RK_BLK_OFFSET;
|
||||
part->from = from;
|
||||
part->size = size;
|
||||
strncpy(part->name, next, len);
|
||||
part->name[len] = '\0';
|
||||
|
|
@ -84,7 +84,7 @@ static int rockchip_init_param(void)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
blkdev_read(param, RK_BLK_OFFSET, MAX_PARAM_SIZE >> 9);
|
||||
blkdev_read(param, RK_PARAM_OFFSET, MAX_PARAM_SIZE >> 9);
|
||||
|
||||
return rockchip_param_parse(param->params);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <linux/list.h>
|
||||
|
||||
#define RK_BLK_OFFSET 0x2000
|
||||
#define RK_PARAM_OFFSET 0x2000
|
||||
#define PART_NAME_SIZE 32
|
||||
#define RK_BLK_SIZE (1 << 9)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue