[uCsimm] Fix for genromfs

From: D. Jeff Dionne (jeff@lineo.ca)
Date: Fri Mar 30 2001 - 11:09:31 EST


Courtesy of <profesor at sidehack.sat.gweep.net> (many thanks)

http://www.uclinux.org/pub/uCsimm/archive/0537.html

J

On Fri, 30 Mar 2001, D. Jeff Dionne wrote:

> The problem is a bug in the version of genromfs shipped with the
> uCsimm. It's a result of a feature added to genromfs (which has a
> bug) that allows one to specify that the genromfs program should follow
> a symbolic link insted of creating a synlink in the resulting romfs.
>
> Only root can create device nodes. This functionality was added to
> genromfs as a simple way to allow us to install a dev directory (or
> anything else you didn't want to copy, for that matter) on the host
> machine in one place and use a symlink to point to it from another.
>
> The way (it is intended to) work is that one prepends an "@" to the name
> of a symlink, genromfs follows the link and strips off the "@" (insted of
> putting the symlink into the romfs). The bug is that 2 copies of what the
> link points to are added to the resulting romfs. It's completely
> harmless, but there is a patch floating around for it... I'll look around
> and post it.
>
> Again, it's harmless. That is to say that it will not cause any of the
> devices or device nodes to misbehave. If console is misbehaving, that's
> another bug entirely.
>
> Cheers,
> J
>
> On Fri, 30 Mar 2001, Bernhard Kuhn wrote:
>
> > Tom Walsh schrieb:
> >
> > > > crw------- 1 root 0 1, 5 Jan 1 1970 zero
> > > > crw------- 1 root 0 1, 5 Jan 1 1970 zero
> > >
> > > Are you sure that this is not the same old problem of having a dev
> > > directory under a dev directory?
> >
> > Good question! In directory "romdisk", i had a link
> > "@dev -> /opt/uClinux/dev-2.4" (including the correct
> > console device node). Can sombody explain
> > me what the prefixed "@" is actually doing?
> >
> > Anyway: i got rid of the problem by using devfs (but this
> > enlarges the kernel by 20 KByte).
> >
> > But there is still the problem that the terminal gets
> > "damaged" after a short while.
> >
> > Bernhard
> > This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/
> >
>
> This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
>

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:42 EST