Ignore:
Timestamp:
Mar 15, 2017, 1:53:13 PM (4 months ago)
Author:
brainslayer
Message:

fix fs detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/arch/arm/mach-brcm-hnd/board_ns.c

    r28403 r31672  
    492492
    493493                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    494                         rootfssize = squashfsb->bytes_used;
     494                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    495495                        printk(KERN_NOTICE "%s: squash filesystem found at block %d\n", mtd->name, off / mtd->erasesize);
    496496                        break;
     
    875875
    876876                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    877                         rootfssize = squashfsb->bytes_used;
     877                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    878878                        printk(KERN_NOTICE "%s: squash filesystem with lzma found at block %d\n", mtd->name, off / blocksize);
    879879                        break;
    880880                }
    881881                if (squashfsb2 && squashfsb2->s_magic == SQUASHFS_MAGIC) {
    882                         rootfssize = squashfsb2->bytes_used;
     882                        rootfssize = le64_to_cpu(squashfsb2->bytes_used);
    883883                        off += 0x60;
    884884                        printk(KERN_NOTICE "%s: squash filesystem with lzma found at block %d\n", mtd->name, off / blocksize);
Note: See TracChangeset for help on using the changeset viewer.