[uClinux-dev] Kernel modules don't work on read-only filesystems
?
Marty Leisner
leisner at rochester.rr.com
Thu Oct 11 21:48:10 EDT 2007
Josue de Freitas <josue.freitas at gmail.com> writes on Thu, 11 Oct 2007 10:39:15
-0300
> ------=_Part_17093_29694369.1192109955780
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> On 10/10/07, Marty Leisner <leisner at rochester.rr.com> wrote:
> >
> >
> > What does /proc/devices say?
>
>
>
> # cat /proc/devices
> Character devices:
> 1 mem
> 2 pty
> 3 ttyp
> 4 vc/0
> 5 console
> 7 vcs
> 10 misc
> 90 mtd
> 162 raw
>
> Block devices:
> 1 ramdisk
> 31 mtdblock
>
>
> It's the same even if the module is loaded.
>
> Which version of the book are you using? LDD v3 only covers 2.6...
>
>
>
> I'm using LDD v2 for the 2.4 kernel.
>
> Did you have it working on other systems...?
>
>
>
> not yet. but I'm considering to do it on my machine (although,
theorically,
> the examples from the book are supposed to work well on PC's)
>
>
> marty
> >
>
>
> Thanks, Marty.
>
> Regards, Josue.
The fact the devices aren't registering into /proc/devices indicates something is
wrong -- without a device just making device file won't accomplish anything.
I recall the LDD2 examples worked on early 2.4 kernels, not later ones.
Caveat emporer...working through the LDD2 examples about 4 years I found painful...
(the kernel is always a moving target)
marty
More information about the uClinux-dev
mailing list