Pandora Squashfs Pnd Problem


Hitnrun

Member
Joined
Mar 1, 2008
Messages
427
I am for the first time tring to package a big application using squashfs. I am building in Ubuntu 10.4, and passing the "-c" parameter to pnd_make.sh seems to work.

On the Pandora the pnd does not mount, giving this error:

[17989.331756] SQUASHFS error: squashfs_read_data failed to read block 0x224f8b4
[17989.338958] SQUASHFS error: unable to read id index table

I mounted the pnd directly using:

# /usr/pandora/scripts/pnd_run.sh -p tagaini-jisho.pnd -m

But running gives the same error on the .out file.

The file is ~35mb, while the original one is ~85mb.

Does someone saw this problem?
 
Hitnrun said:
I am for the first time tring to package a big application using squashfs. I am building in Ubuntu 10.4, and passing the "-c" parameter to pnd_make.sh seems to work.

On the Pandora the pnd does not mount, giving this error:

[17989.331756] SQUASHFS error: squashfs_read_data failed to read block 0x224f8b4
[17989.338958] SQUASHFS error: unable to read id index table

I mounted the pnd directly using:

# /usr/pandora/scripts/pnd_run.sh -p tagaini-jisho.pnd -m

But running gives the same error on the .out file.

The file is ~35mb, while the original one is ~85mb.

Does someone saw this problem?
I never had this :(
all my pnds use squshfs....
are you sure you have the right shashfs tools installed on your ubuntu (4.0) ?
 
Last edited by a moderator:
sebt3 said:
Hitnrun said:
I am for the first time tring to package a big application using squashfs. I am building in Ubuntu 10.4, and passing the "-c" parameter to pnd_make.sh seems to work.

On the Pandora the pnd does not mount, giving this error:

[17989.331756] SQUASHFS error: squashfs_read_data failed to read block 0x224f8b4
[17989.338958] SQUASHFS error: unable to read id index table

I mounted the pnd directly using:

# /usr/pandora/scripts/pnd_run.sh -p tagaini-jisho.pnd -m

But running gives the same error on the .out file.

The file is ~35mb, while the original one is ~85mb.

Does someone saw this problem?
I never had this :(
all my pnds use squshfs....
are you sure you have the right shashfs tools installed on your ubuntu (4.0) ?

It's what apt-get installed (squashfs-tools).
It says it is using squashfs version 4.0, is this compatible?
 
Last edited by a moderator:
Hitnrun said:
It's what apt-get installed (squashfs-tools).
It says it is using squashfs version 4.0, is this compatible?
As per pnd_make.sh comments, yes : This is the supported version.
Sorry, but I can't see an other reason why this won't mount. And as this isn't your first pnd, I guess the rest(PXML+icon) isn't the problem.
Here are my shots in the dark :
- the FS you're creating these PND is not full ?
- what does say "file tagaini-jisho.pnd" ?
- IO errors in dmesg ? (build host and pandora)
- Copy problem ?
 
Last edited by a moderator:
What command should I use to mount a squashfs pnd file on my Ubuntu linux?
 
No the host is not full, and it gives no message in dmesg. I transfer the file via ssh and never got any corruption problems before.

pnd_make command

pnd_make.sh -p tagaini-jisho.pnd -d build -x build/PXML.xml -i build/tagainijisho.png -c

$ ./make_pnd.sh
PNDNAME set to tagaini-jisho.pnd
FOLDER set to build
PXML set to build/PXML.xml
ICON set to build/tagainijisho.png
-c set, will create compressed squasfs image instead of iso --
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on tagaini-jisho.pnd.iso, block size 131072.
[============================================================================================================================================/] 681/681 100%
Exportable Squashfs 4.0 filesystem, data block size 131072
compressed data, compressed metadata, compressed fragments
duplicates are removed
Filesystem size 35150.33 Kbytes (34.33 Mbytes)
40.57% of uncompressed filesystem size (86649.21 Kbytes)
Inode table size 1878 bytes (1.83 Kbytes)
63.92% of uncompressed inode table size (2938 bytes)
Directory table size 108 bytes (0.11 Kbytes)
82.44% of uncompressed directory table size (131 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 6
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 1
Number of ids (unique uids + gids) 1
Number of uids 1
rreale (1000)
Number of gids 1
rreale (1000)
$ file tagaini-jisho.pnd
tagaini-jisho.pnd: Squashfs filesystem, little endian, version 4.0, 9213918719 bytes, 7 inodes, blocksize: 2 bytes, created: Mon Oct 16 01:41:52 1989
 
Hitnrun said:
What command should I use to mount a squashfs pnd file on my Ubuntu linux?
as root (prefix with sudo if requiered) :
mount -t squashfs -oloop tagaini-jisho.pnd directoryName
 
Last edited by a moderator:
Hitnrun said:
$ file tagaini-jisho.pnd
tagaini-jisho.pnd: Squashfs filesystem, little endian, version 4.0, 9213918719 bytes, 7 inodes, blocksize: 2 bytes, created: Mon Oct 16 01:41:52 1989
This looks good. hum, I can't see why this won't mount :( (and it is not related to filesize too, see kdegames.pnd is 122M, and the debug-build was over 300M...)
 
Last edited by a moderator:
I've had problems creating my first squashfs PND too. The ISO version is fine, but replacing the -x with -c in the create command returns a PXML related error and the PND doesn't show up on the Pandora. I don't have everything here to give more details, I'll come back to it later.
 
I had similar problem once while working on Ginge, simply recreating the image fixed it (but burned quite a bit of time to debug this). The image would mount fine but some files were unreadable, what broke Ginge in some subtle ways.

It feels like squashfs-tools on ubuntu are buggy, using uninitialized memory or something and sometimes producing corrupted images.
 
Back
Top