All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] tmpfs puzzle
@ 2011-07-11 17:08 Charles Krinke
  2011-07-11 17:18 ` Michael S. Zick
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Charles Krinke @ 2011-07-11 17:08 UTC (permalink / raw)
  To: buildroot

I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
filesystem and would appreciate a "clue" or at least a sarcastic
"RTFM" if one could tell me *which* "FM" and what its URL might be.

Here is my /etc/fstab, a cat or /proc/mounts and the result of "mount
-a", which fails on tmpfs.

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount pt>     <type>   <options>         <dump> <pass>
/dev/root       /              ext2     rw,noauto         0      1
proc            /proc          proc     defaults          0      0
devpts          /dev/pts       devpts   defaults,gid=5,mode=620   0      0
tmpfs           /tmp           tmpfs    defaults          0      0
sysfs           /sys           sysfs    defaults          0      0
#
#
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jffs2 rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
proc /proc proc rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
sysfs /sys sysfs rw,relatime 0 0
#
#
#
# mount -a
mount: mounting tmpfs on /tmp failed: Invalid argument
#


-- 
Charles Krinke

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] tmpfs puzzle
  2011-07-11 17:08 [Buildroot] tmpfs puzzle Charles Krinke
@ 2011-07-11 17:18 ` Michael S. Zick
  2011-07-11 17:36   ` Charles Krinke
  2011-07-11 17:26 ` ANDY KENNEDY
  2011-07-11 17:49 ` Michael S. Zick
  2 siblings, 1 reply; 6+ messages in thread
From: Michael S. Zick @ 2011-07-11 17:18 UTC (permalink / raw)
  To: buildroot

On Mon July 11 2011, Charles Krinke wrote:
> I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
> filesystem and would appreciate a "clue" or at least a sarcastic
> "RTFM" if one could tell me *which* "FM" and what its URL might be.
>

I'm crude, I can do that for you!
cat /proc/filesystems

Just on the chance it isn't enabled in your kernel build.
Mike
> 
> Here is my /etc/fstab, a cat or /proc/mounts and the result of "mount
> -a", which fails on tmpfs.
> 
> # cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount pt>     <type>   <options>         <dump> <pass>
> /dev/root       /              ext2     rw,noauto         0      1
> proc            /proc          proc     defaults          0      0
> devpts          /dev/pts       devpts   defaults,gid=5,mode=620   0      0
> tmpfs           /tmp           tmpfs    defaults          0      0
> sysfs           /sys           sysfs    defaults          0      0
> #
> #
> # cat /proc/mounts
> rootfs / rootfs rw 0 0
> /dev/root / jffs2 rw,relatime 0 0
> devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
> proc /proc proc rw,relatime 0 0
> devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
> sysfs /sys sysfs rw,relatime 0 0
> #
> #
> #
> # mount -a
> mount: mounting tmpfs on /tmp failed: Invalid argument
> #
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] tmpfs puzzle
  2011-07-11 17:08 [Buildroot] tmpfs puzzle Charles Krinke
  2011-07-11 17:18 ` Michael S. Zick
@ 2011-07-11 17:26 ` ANDY KENNEDY
  2011-07-11 17:49 ` Michael S. Zick
  2 siblings, 0 replies; 6+ messages in thread
From: ANDY KENNEDY @ 2011-07-11 17:26 UTC (permalink / raw)
  To: buildroot

> I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
> filesystem and would appreciate a "clue" or at least a sarcastic
> "RTFM" if one could tell me *which* "FM" and what its URL might be.

Guessing that you don't have tmpfs enabled in the kernel in BOTH
places.

Good luck!

Andy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] tmpfs puzzle
  2011-07-11 17:18 ` Michael S. Zick
@ 2011-07-11 17:36   ` Charles Krinke
  0 siblings, 0 replies; 6+ messages in thread
From: Charles Krinke @ 2011-07-11 17:36 UTC (permalink / raw)
  To: buildroot

Dear Andy & Michael:

Thanks for starting out Monday on a high note. With a tiny bit of
seriousness here is a cat of /proc/filesystems

# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   devtmpfs
nodev   sockfs
nodev   pipefs
nodev   anon_inodefs
nodev   devpts
nodev   ramfs
        vfat
        msdos
nodev   jffs2
nodev   mqueue
#

Additionally, in the kernel's .config file, I have:

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_SHMEM=y

I also have a /tmp (which puzzles me a bit)
# ls /tmp
dropbear.pid     ldconfig         portmap_mapping  subsys
ifstate          messages         sshd             utmp
#

Getting to the real issue, it is the failure of the sem_open() call
which returns ENOSYS. So, I go through glibc source and look at the
sem_open.c file which seems dependent on either "/dev/shm" or
/proc/mounts returning a mnt_type of "tmpfs" and not "devtmpfs". So, I
am really trying to "humourously" find my way through a slightly
mysterious part of Linux. Mysterious being that I am a driver/kernel
guy struggling with mounts, libraries and the like.



On Mon, Jul 11, 2011 at 10:18 AM, Michael S. Zick <minimod@morethan.org> wrote:
> On Mon July 11 2011, Charles Krinke wrote:
>> I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
>> filesystem and would appreciate a "clue" or at least a sarcastic
>> "RTFM" if one could tell me *which* "FM" and what its URL might be.
>>
>
> I'm crude, I can do that for you!
> cat /proc/filesystems
>
> Just on the chance it isn't enabled in your kernel build.
> Mike
>>
>> Here is my /etc/fstab, a cat or /proc/mounts and the result of "mount
>> -a", which fails on tmpfs.
>>
>> # cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # <file system> <mount pt> ? ? <type> ? <options> ? ? ? ? <dump> <pass>
>> /dev/root ? ? ? / ? ? ? ? ? ? ?ext2 ? ? rw,noauto ? ? ? ? 0 ? ? ?1
>> proc ? ? ? ? ? ?/proc ? ? ? ? ?proc ? ? defaults ? ? ? ? ?0 ? ? ?0
>> devpts ? ? ? ? ?/dev/pts ? ? ? devpts ? defaults,gid=5,mode=620 ? 0 ? ? ?0
>> tmpfs ? ? ? ? ? /tmp ? ? ? ? ? tmpfs ? ?defaults ? ? ? ? ?0 ? ? ?0
>> sysfs ? ? ? ? ? /sys ? ? ? ? ? sysfs ? ?defaults ? ? ? ? ?0 ? ? ?0
>> #
>> #
>> # cat /proc/mounts
>> rootfs / rootfs rw 0 0
>> /dev/root / jffs2 rw,relatime 0 0
>> devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
>> proc /proc proc rw,relatime 0 0
>> devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
>> sysfs /sys sysfs rw,relatime 0 0
>> #
>> #
>> #
>> # mount -a
>> mount: mounting tmpfs on /tmp failed: Invalid argument
>> #
>>
>>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>



-- 
Charles Krinke

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] tmpfs puzzle
  2011-07-11 17:08 [Buildroot] tmpfs puzzle Charles Krinke
  2011-07-11 17:18 ` Michael S. Zick
  2011-07-11 17:26 ` ANDY KENNEDY
@ 2011-07-11 17:49 ` Michael S. Zick
  2011-07-11 18:49   ` Charles Krinke
  2 siblings, 1 reply; 6+ messages in thread
From: Michael S. Zick @ 2011-07-11 17:49 UTC (permalink / raw)
  To: buildroot

On Mon July 11 2011, Charles Krinke wrote:
> I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
> filesystem and would appreciate a "clue" or at least a sarcastic
> "RTFM" if one could tell me *which* "FM" and what its URL might be.
>

http://lists.busybox.net/pipermail/buildroot/2011-June/043752.html

Mike
> 
> Here is my /etc/fstab, a cat or /proc/mounts and the result of "mount
> -a", which fails on tmpfs.
> 
> # cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount pt>     <type>   <options>         <dump> <pass>
> /dev/root       /              ext2     rw,noauto         0      1
> proc            /proc          proc     defaults          0      0
> devpts          /dev/pts       devpts   defaults,gid=5,mode=620   0      0
> tmpfs           /tmp           tmpfs    defaults          0      0
> sysfs           /sys           sysfs    defaults          0      0
> #
> #
> # cat /proc/mounts
> rootfs / rootfs rw 0 0
> /dev/root / jffs2 rw,relatime 0 0
> devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
> proc /proc proc rw,relatime 0 0
> devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
> sysfs /sys sysfs rw,relatime 0 0
> #
> #
> #
> # mount -a
> mount: mounting tmpfs on /tmp failed: Invalid argument
> #
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] tmpfs puzzle
  2011-07-11 17:49 ` Michael S. Zick
@ 2011-07-11 18:49   ` Charles Krinke
  0 siblings, 0 replies; 6+ messages in thread
From: Charles Krinke @ 2011-07-11 18:49 UTC (permalink / raw)
  To: buildroot

I am downloading and compiling the daily snapshot, thank you Michael.

One parting question.

I tried adding the incantations to /etc/fstab and /etc/inittab and on
re-booting,  when trying to mount tmpfs, I get "Invalid argument". I
am using busybox 1.18.3 and am now suspecting that something else has
changed, perhaps in busybox (or the linux kernel) with respect to the
mount command.

I am working with linux-2.6.35.12, so have advanced the linux kernel
several revisions.

I wonder if there is any comment on mount failing with "Invalid
command" with respect to either busybox or linux-2.6.35.12 while I do
wait for the compile on the daily snapshot with optimism that I will
not see this error when it is done.


On Mon, Jul 11, 2011 at 10:49 AM, Michael S. Zick <minimod@morethan.org> wrote:
> On Mon July 11 2011, Charles Krinke wrote:
>> I am puzzled why "tmpfs" is not mounting in my buildroot glibc root
>> filesystem and would appreciate a "clue" or at least a sarcastic
>> "RTFM" if one could tell me *which* "FM" and what its URL might be.
>>
>
> http://lists.busybox.net/pipermail/buildroot/2011-June/043752.html
>
> Mike
>>
>> Here is my /etc/fstab, a cat or /proc/mounts and the result of "mount
>> -a", which fails on tmpfs.
>>
>> # cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # <file system> <mount pt> ? ? <type> ? <options> ? ? ? ? <dump> <pass>
>> /dev/root ? ? ? / ? ? ? ? ? ? ?ext2 ? ? rw,noauto ? ? ? ? 0 ? ? ?1
>> proc ? ? ? ? ? ?/proc ? ? ? ? ?proc ? ? defaults ? ? ? ? ?0 ? ? ?0
>> devpts ? ? ? ? ?/dev/pts ? ? ? devpts ? defaults,gid=5,mode=620 ? 0 ? ? ?0
>> tmpfs ? ? ? ? ? /tmp ? ? ? ? ? tmpfs ? ?defaults ? ? ? ? ?0 ? ? ?0
>> sysfs ? ? ? ? ? /sys ? ? ? ? ? sysfs ? ?defaults ? ? ? ? ?0 ? ? ?0
>> #
>> #
>> # cat /proc/mounts
>> rootfs / rootfs rw 0 0
>> /dev/root / jffs2 rw,relatime 0 0
>> devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
>> proc /proc proc rw,relatime 0 0
>> devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
>> sysfs /sys sysfs rw,relatime 0 0
>> #
>> #
>> #
>> # mount -a
>> mount: mounting tmpfs on /tmp failed: Invalid argument
>> #
>>
>>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>



-- 
Charles Krinke

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-11 18:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 17:08 [Buildroot] tmpfs puzzle Charles Krinke
2011-07-11 17:18 ` Michael S. Zick
2011-07-11 17:36   ` Charles Krinke
2011-07-11 17:26 ` ANDY KENNEDY
2011-07-11 17:49 ` Michael S. Zick
2011-07-11 18:49   ` Charles Krinke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.