Changeset 29543


Ignore:
Timestamp:
2011-12-15T23:03:40+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: tplinkpart: allow to detect JFFS2 as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c

    r29446 r29543  
    8585} 
    8686 
    87 static int tplink_check_squashfs_magic(struct mtd_info *mtd, size_t offset) 
     87static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset) 
    8888{ 
    8989        u32 magic; 
     
    9999                return -EIO; 
    100100 
    101         if (le32_to_cpu(magic) != SQUASHFS_MAGIC) 
     101        if (le32_to_cpu(magic) != SQUASHFS_MAGIC && 
     102            magic != 0x19852003) 
    102103                return -EINVAL; 
    103104 
     
    137138                          be32_to_cpu(header->kernel_len); 
    138139 
    139         ret = tplink_check_squashfs_magic(master, squashfs_offset); 
     140        ret = tplink_check_rootfs_magic(master, squashfs_offset); 
    140141        if (ret == 0) 
    141142                rootfs_offset = squashfs_offset; 
Note: See TracChangeset for help on using the changeset viewer.