* should i expect trying to mount a cramfs fs to give me a segmentation fault?
@ 2012-12-01 16:28 Robert P. J. Day
2012-12-03 9:27 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2012-12-01 16:28 UTC (permalink / raw)
To: U-Boot Version 2 (barebox)
again, just following along here:
http://wiki.barebox.org/doku.php?id=user:first_steps
i created a small cramfs filesystem image:
$ ls -l crypto.cramfs
-rw-rw-r-- 1 rpjday rpjday 24576 Dec 1 11:19 crypto.cramfs
$ file crypto.cramfs
crypto.cramfs: Linux Compressed ROM File System data, little endian size 24576 version #2 sorted_dirs CRC 0x969356bc, edition 0, 24
blocks, 13 files
$
started barebox:
$ ./barebox -i crypto.cramfs
add file crypto.cramfs()
barebox 2012.11.0-00305-g159109f #1 Sat Dec 1 07:46:38 EST 2012
Board: sandbox
could not get tap device: Operation not permitted
tap tap0: probe failed: Operation not permitted
malloc space: 0x7f0f1cb3c010 -> 0x7f0f1d33c00f (size 8 MB)
Open /dev/env0 No such file or directory
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
set parameter: No such device
set parameter: No such device
set parameter: No such device
set parameter: No such device
set parameter: No such device
barebox:/
then tried to mount it as that page suggests:
barebox:/ mkdir mnt
barebox:/ mount /dev/fd0 cramfs /mnt
Segmentation fault (core dumped)
rpjday@oneiric:~/OE/dist/barebox/git$
i also tried the variation:
barebox> mount -t cramfs /dev/fd0 /mnt
same result. help?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: should i expect trying to mount a cramfs fs to give me a segmentation fault?
2012-12-01 16:28 should i expect trying to mount a cramfs fs to give me a segmentation fault? Robert P. J. Day
@ 2012-12-03 9:27 ` Sascha Hauer
2012-12-03 12:51 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2012-12-03 9:27 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)
On Sat, Dec 01, 2012 at 11:28:08AM -0500, Robert P. J. Day wrote:
>
> again, just following along here:
>
> http://wiki.barebox.org/doku.php?id=user:first_steps
>
> i created a small cramfs filesystem image:
>
> $ ls -l crypto.cramfs
> -rw-rw-r-- 1 rpjday rpjday 24576 Dec 1 11:19 crypto.cramfs
> $ file crypto.cramfs
> crypto.cramfs: Linux Compressed ROM File System data, little endian size 24576 version #2 sorted_dirs CRC 0x969356bc, edition 0, 24
> blocks, 13 files
> $
>
> started barebox:
>
> $ ./barebox -i crypto.cramfs
> add file crypto.cramfs()
>
>
> barebox 2012.11.0-00305-g159109f #1 Sat Dec 1 07:46:38 EST 2012
>
>
> Board: sandbox
> could not get tap device: Operation not permitted
> tap tap0: probe failed: Operation not permitted
> malloc space: 0x7f0f1cb3c010 -> 0x7f0f1d33c00f (size 8 MB)
> Open /dev/env0 No such file or directory
> no valid environment found on /dev/env0. Using default environment
> running /env/bin/init...
> set parameter: No such device
> set parameter: No such device
> set parameter: No such device
> set parameter: No such device
> set parameter: No such device
> barebox:/
>
> then tried to mount it as that page suggests:
>
> barebox:/ mkdir mnt
> barebox:/ mount /dev/fd0 cramfs /mnt
> Segmentation fault (core dumped)
> rpjday@oneiric:~/OE/dist/barebox/git$
>
> i also tried the variation:
>
> barebox> mount -t cramfs /dev/fd0 /mnt
>
> same result. help?
cramfs was present in barebox very early. I think in some places the
implementation still assumes that the filesystem image is directly
memory mapped. Probably we should investigate and either add a big
warning somewhere or fix it.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: should i expect trying to mount a cramfs fs to give me a segmentation fault?
2012-12-03 9:27 ` Sascha Hauer
@ 2012-12-03 12:51 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2012-12-03 12:51 UTC (permalink / raw)
To: Sascha Hauer; +Cc: U-Boot Version 2 (barebox)
On Mon, 3 Dec 2012, Sascha Hauer wrote:
> cramfs was present in barebox very early. I think in some places the
> implementation still assumes that the filesystem image is directly
> memory mapped. Probably we should investigate and either add a big
> warning somewhere or fix it.
ok, good to know ... i deleted my wiki page regarding barebox and
cramfs since it's clear i didn't understand it. only suggestion
would be to update this page:
http://wiki.barebox.org/doku.php?id=user:first_steps
so users don't trip over the same thing i did. onward ...
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-03 12:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-01 16:28 should i expect trying to mount a cramfs fs to give me a segmentation fault? Robert P. J. Day
2012-12-03 9:27 ` Sascha Hauer
2012-12-03 12:51 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox