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-4.4/arch/arm/mach-brcm-hnd/board_ns.c

    r30468 r31672  
    501501
    502502                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    503                         rootfssize = squashfsb->bytes_used;
     503                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    504504                        printk(KERN_NOTICE "%s: squash filesystem found at block %d\n", mtd->name, off / mtd->erasesize);
    505505                        break;
     
    902902
    903903                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    904                         rootfssize = squashfsb->bytes_used;
     904                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    905905                        printk(KERN_NOTICE "%s: squash filesystem with lzma found at block %d\n", mtd->name, off / blocksize);
    906906                        break;
    907907                }
    908908                if (squashfsb2 && squashfsb2->s_magic == SQUASHFS_MAGIC) {
    909                         rootfssize = squashfsb2->bytes_used;
     909                        rootfssize = le64_to_cpu(squashfsb2->bytes_used);
    910910                        off += 0x60;
    911911                        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.