Hi,

genromfs 0.5.1 is ancient, this has already been fixed in 0.5.2 several
years ago, together with a few other improvements.

-Erwin

Am Donnerstag, den 17.02.2011, 00:07 +0300 schrieb Alexander Kurz:
> Hello folks,
> quite a while ago (linux-2.4 or earlier) the i2c subsystem has been
> introduced with device file names containing a "-", e.g. /dev/i2c-*.
> Unfortunately the current genromfs version can not handle this notation.
> 
> Now I would like to make the i2c devices available on a uClinux system
> with romfs as root file system.
> 
> Is it acceptable for you to apply my patch to the current genromfs 
> version?
> Thanks, Alexander
> 
> 
> diff -Nur a/genromfs-0.5.1/genromfs.c b/genromfs-0.5.1/genromfs.c
> --- a/genromfs-0.5.1/genromfs.c       2002-01-22 10:12:01.000000000 +0100
> +++ b/genromfs-0.5.1/genromfs.c       2011-02-16 21:16:15.000000000 +0100
> @@ -599,7 +599,7 @@
>                               int       major;
>                               int       minor;
>                                               
> -                             if (sscanf(n->name, "@%[a-zA-Z0-9],%c,%d,%d",
> +                             if (sscanf(n->name, "@%[a-zA-Z0-9-],%c,%d,%d",
>                                          devname, &type, &major, &minor) == 4 
> ) {
>                                       strcpy(n->name, devname);
>                                       sb->st_rdev = makedev(major, minor);
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev


_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to