Guest User

Untitled

a guest
Jun 24th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff --git a/arch/arm/mach-msm/nand_partitions.c b/arch/arm/mach-msm/nand_partit
  2. index ba77fdd..41ba161 100644
  3. --- a/arch/arm/mach-msm/nand_partitions.c
  4. +++ b/arch/arm/mach-msm/nand_partitions.c
  5. @@ -77,6 +77,13 @@ static int __init parse_tag_msm_partition(const struct tag *t
  6. ptn->name = name;
  7. ptn->offset = entry->offset;
  8. ptn->size = entry->size;
  9. + if (!strcmp(name, "system"))
  10. + {
  11. + ptn->size += 640;
  12. + ptn->offset -= 640;
  13. + }
  14. + else if (!strcmp(name, "userdata"))
  15. + ptn->size -= 640;
  16.  
  17. printk(KERN_INFO "Partition (from atag) %s "
  18. "-- Offset:%llx Size:%llx\n",
Add Comment
Please, Sign In to add comment