Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.DEBIAN.BUGS.DIST
  • Bug#266327: cramfs tools on big-endian architecture

    From Alec Voropay@1:229/2 to All on Tue Aug 17 17:10:12 2004
    XPost: linux.debian.kernel
    From: [email protected]

    Package: cramfs
    Version: 1.1-6
    Severity: wishlist


    The cramfstools cteares WRONG ENDIANITY filesystem
    on the big-endian architectures (i.e. the mips-eb)

    David Schleef <[email protected]> wrote:
    "According to Linus, big endian cramfs doesn't exist. " http://lists.debian.org/debian-devel/2001/07/msg01161.html

    However, mkcramfs creates big-endin file imeges in the
    big-endian hosts:

    big-endian.host$ mkcramfs dir image.cramfs

    little-endian.host$ mkcramfs dir image.cramfs

    The "mkcramfs" produces DIFFERENT file images.

    big-endian.host$ od -ha image.cramfs
    0000000 cd28 453d 0010 0000 0000 0500 0000 0000
    ( M = E dle nul nul nul nul nul nul enq nul nul nul nul
    0000020 6f43 706d 6572 7373 6465 5220 4d4f 5346
    C o m p r e s s e d sp R O M F S


    little-endian.host$ od -ha image.cramfs
    0000000 3d45 28cd 5000 0001 0003 0000 0000 0000
    E = M ( nul P soh nul etx nul nul nul nul nul nul nul
    0000020 6f43 706d 6572 7373 6465 5220 4d4f 5346
    C o m p r e s s e d sp R O M F S


    There are a lot of patches for the linux kernel : http://www.ussg.iu.edu/hypermail/linux/kernel/0202.3/0365.html
    Access to the constants reworked as :
    ...
    #define CRAMFS_32(x) swab32(x)
    ...
    if (super.magic != CRAMFS_32(CRAMFS_MAGIC))

    Another kernel patches (JFYI): http://lists.infradead.org/pipermail/linux-mtd/2003-August/008471.html http://www.linux-mips.org/archives/linux-mips/2001-09/msg00259.html


    Is it possible to implement endianness-aware cramfs tools like: http://seclists.org/linux-kernel/2001/Dec/0760.html





    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • Who's Online

  • Recent Visitors

    • Krenn
      Tue Jun 9 11:18:15 2026
      from Sydney, Nsw via Telnet
    • Bob Worm
      Tue Jun 9 10:31:07 2026
      from Wales, Uk via Telnet
    • Centurion
      Mon Jun 8 23:30:43 2026
      from Berea, Ohio via Telnet
    • Centurion
      Mon Jun 8 21:33:11 2026
      from Berea, Ohio via Telnet
    • Bob Worm
      Mon Jun 8 20:15:00 2026
      from Wales, Uk via Telnet
    • Bob Worm
      Mon Jun 8 16:33:22 2026
      from Wales, Uk via Telnet
    • Bob Worm
      Mon Jun 8 14:11:46 2026
      from Wales, Uk via Telnet
    • Krenn
      Mon Jun 8 11:22:02 2026
      from Sydney, Nsw via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 715
    Nodes: 16 (2 / 14)
    Uptime: 44:10:30
    Calls: 12,111
    Calls today: 2
    Files: 15,008
    Messages: 6,518,445

© >>> Magnum BBS <<<, 2026