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

fix fs detection

File:
1 edited

Legend:

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

    r29875 r31672  
    493493
    494494                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    495                         rootfssize = squashfsb->bytes_used;
     495                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    496496                        printk(KERN_NOTICE "%s: squash filesystem found at block %d\n", mtd->name, off / mtd->erasesize);
    497497                        break;
     
    888888
    889889                if (squashfsb->s_magic == SQUASHFS_MAGIC) {
    890                         rootfssize = squashfsb->bytes_used;
     890                        rootfssize = le64_to_cpu(squashfsb->bytes_used);
    891891                        printk(KERN_NOTICE "%s: squash filesystem with lzma found at block %d\n", mtd->name, off / blocksize);
    892892                        break;
    893893                }
    894894                if (squashfsb2 && squashfsb2->s_magic == SQUASHFS_MAGIC) {
    895                         rootfssize = squashfsb2->bytes_used;
     895                        rootfssize = le64_to_cpu(squashfsb2->bytes_used);
    896896                        off += 0x60;
    897897                        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.