Ignore:
Timestamp:
Mar 13, 2017, 11:28:42 AM (3 months ago)
Author:
brainslayer
Message:

its big endian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/mtd/devices/ar7100_flash.c

    r31630 r31646  
    270270                        return i * 4;   // uboot, lzma image
    271271                }
    272                 if (ofs[i] == SQUASHFS_MAGIC) {
     272                if (ofs[i] == SQUASHFS_MAGIC_SWAP) {
    273273                        printk(KERN_EMERG "ZCom quirk found\n");
    274274                        zcom=1;
     
    447447                while ((offset + mtd->erasesize) < mtd->size) {
    448448                        //printk(KERN_EMERG "[0x%08X] = [0x%08X]!=[0x%08X]\n",offset,*((unsigned int *) buf),SQUASHFS_MAGIC);
    449                         if (*((__u32 *)buf) == SQUASHFS_MAGIC) {
     449                        if (*((__u32 *)buf) == SQUASHFS_MAGIC_SWAP) {
    450450                                printk(KERN_EMERG "\nfound squashfs at %X\n",
    451451                                       offset);
Note: See TracChangeset for help on using the changeset viewer.