Another attempt to access beyond end of dev

Help
hghua
2005-09-10
2013-05-29
  • hghua
    hghua
    2005-09-10

    Hi,

    I'm trying to mount a squashfs image in a DSL router firmware.
    Environment: Fedora Core 4, squashfs 2.2 patch for linux 2.6.11.

    Kernel trace:
    squashfs: no version for "struct_module" found: kernel tainted.
    Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
    loop: loaded (max 8 devices)
    SQUASHFS: Entered squashfs_read_superblock
    SQUASHFS: Block @ 0x0, uncompressed size 63
    SQUASHFS: Mounting a different endian SQUASHFS filesystem on loop0
    SQUASHFS: Found valid superblock on loop0
    SQUASHFS: Inodes are compressed
    SQUASHFS: Data is compressed
    SQUASHFS: Check data is not present in the filesystem
    SQUASHFS: Filesystem size 1106445 bytes
    SQUASHFS: Block size 32768
    SQUASHFS: Number of inodes 365
    SQUASHFS: Number of uids 2
    SQUASHFS: Number of gids 0
    SQUASHFS: sBlk->inode_table_start 10ce35
    SQUASHFS: sBlk->directory_table_start 10d751
    SQUASHFS: sBlk->uid_start 10e205
    SQUASHFS: Block @ 0x10e205, uncompressed size 8
    SQUASHFS: Entered squashfs_iget_1
    SQUASHFS: Entered squashfs_get_cached_block [1670e4a3:13d1]
    attempt to access beyond end of device
    loop0: rw=0, want=735348, limit=2168
    SQUASHFS error: sb_bread failed reading block 0x59c39
    SQUASHFS error: Unable to read cache block [1670e4a3:13d1]
    SQUASHFS error: Unable to read inode [1670e4a3:13d1]
    SQUASHFS error: Root inode create failed

    Is there anyone can try to mount it for me?
    The file is here: http://www.keepmyfile.com/download/a3f36d37121

    Thanks a lot!

     
    • I have downloaded the file, and can confirm that the mount fails.  I will analyse the filesystem to see what is wrong when I get time.

      In the meantime can you tell me:

      1. if you generated the filesystem, what version of mksquashfs, and where you got mksquashfs, or

      2 If you didn't generate the filesystem, where did you get it?  You mention DSL firmware router software, and so did the filesystem get generated by a third party?  Does the filesystem work successfully on the router?

      The more information you can give me, the more likely and quicker I'll be able to find out what the problem is!

      Phillip

       
    • hghua
      hghua
      2005-09-12

      This file wasn't generated by me.
      It's a part of firmware upgrade file, which is composed of header, loader, file system and linux kernel.
      See http://skaya.enix.org/wiki/FirmwareFormat for the firmware format.
      It works fine, and the checksum is ok.

      Thanks!

       
    • hghua
      hghua
      2005-09-12

      In case you need it, here is the whole firmware image:
      http://www.keepmyfile.com/download/5e266439763