SHARE
TWEET

Untitled

asturel Mar 15th, 2013 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/arch/arm/mach-msm/nand_partitions.c b/arch/arm/mach-msm/nand_partitions.c
  2. index d448aed..49cf108 100644
  3. --- a/arch/arm/mach-msm/nand_partitions.c
  4. +++ b/arch/arm/mach-msm/nand_partitions.c
  5. @@ -74,6 +74,21 @@ static int __init parse_tag_msm_partition(const struct tag *tag)
  6.                 ptn->offset = entry->offset;
  7.                 ptn->size = entry->size;
  8.  
  9. +               if (!strcmp(name, "userdata")){
  10. +                       ptn->offset = 0xb01;
  11. +                       ptn->size = 0x3f8;
  12. +               }
  13. +               else if (!strcmp(name, "system"))
  14. +               {
  15. +                       ptn->offset = 0x201;
  16. +                       ptn->size = 0x8d8;
  17. +               }
  18. +               else if (!strcmp(name, "cache"))
  19. +               {
  20. +                       ptn->offset = 0xad9;
  21. +                       ptn->size = 0x28;
  22. +               }
  23. +
  24.                 printk(KERN_INFO "Partition (from atag) %s "
  25.                                 "-- Offset:%llx Size:%llx\n",
  26.                                 ptn->name, ptn->offset, ptn->size);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top