Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: q7x on October 18, 2009, 03:34:26 PM

Title: [SOLVED] ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 18, 2009, 03:34:26 PM
I am using some software (3rd party usb/parallel port driver for use with Xilinx s/w) which requires a 'ppdev' module in the kernel. Modules 'parport' & 'parport_pc' are already installed, but ppdev is not installed
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 18, 2009, 05:25:04 PM
i install one software in tiny core but this software need ppdev

i am in emergency . please help me
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: Juanito on October 18, 2009, 11:30:03 PM
You could check the tc .config file to see if this module was enabled?

If not, you'll need  to recompile the kernel to get this module and make an extension out of it.
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 20, 2009, 01:34:13 PM
i've created ppdev.ko using a kernel compile via 2.6.29.1
how should i use ppdev.ko in my running kernel ?

i've read ur article and compiled a new kernel , but i don't know how to boot from it!
it has only created a vmlinux not a bzImage or vmlinux.gz!
how can i use a compiled kernel in this linux ?
would u please explain it step by step ?

Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: Juanito on October 20, 2009, 02:04:01 PM
If you've compiled ppdev using the tc .config file and changing just the line to produce ppdev, then "make modules_install" will place ppdev.ko somewhere under /lib.

Once you've found where ppdev is, you can make an extension out of it by doing something like:
Code: [Select]
$ sudo tar -czvf ppdev.tcem --numeric-owner /path-to-file/ppdev.ko
You can then reboot with the standard tc kernel, load the new extension and be good to go.
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 20, 2009, 07:46:39 PM
after compile
tar -czvf ppdev.tcem  /lib/modules/2.6.29.1-tinycore/kernel/drivers/char/ppdev.ko
restart
tce-load -i ppdev.tcem
modprobe --force ppdev

FATAL: Error inserting ppdev (/lib/modules/2.6.29.1-tinycore/kernel/drivers/char/ppdev.ko): Invalid module format

 :-[
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: Juanito on October 20, 2009, 11:15:25 PM
Was the ppdev module compiled on tinycore using the patched kernel source and the tinycore .config?

What does "modinfo ppdev" show?
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 21, 2009, 04:23:07 AM
i've download .config from http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/config-2.6.29.1-tinycore
and change this line "# CONFIG_PPDEV is not set"  to  "CONFIG_PPDEV=m"

modinfo ppdev
filename:      /lib/modules/2.6.29.1-tinycore/kernel/drivers/char/ppdev.ko
alias :            char-major-99-*
license:          GPL
depends:       parport
vermagic:       2.6.29-rc1-tinycore SMP mod_unload 486
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 21, 2009, 11:06:57 AM
Was the ppdev module compiled on tinycore using the patched kernel source and the tinycore .config?

What does "modinfo ppdev" show?

mr Juanito can you make ppdev.tcem ?
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: Juanito on October 21, 2009, 11:17:51 AM
I'll try to have a look in the next couple of days
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 21, 2009, 11:27:16 AM
thanks . so i will be waiting for your great response
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: Juanito on October 22, 2009, 04:05:50 AM
I don't have a parallel port to test this with, but "sudo modprobe ppdev" loaded the parport and ppdev modules from the ppdev.tczm extension I made without errors.

Could you test ppdev.tczm in http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tce/src/ppdev/ (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tce/src/ppdev/) and see if it works for you?
Title: Re: ppdev ( Kernel Module ) not found !!!
Post by: q7x on October 22, 2009, 04:07:08 AM
thanks Juanito  .solved

[^thehatsrule^: multiple (bad) attachments removed]