WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] ppdev ( Kernel Module ) not found !!!  (Read 7042 times)

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
[SOLVED] ppdev ( Kernel Module ) not found !!!
« 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
« Last Edit: October 23, 2009, 04:39:56 AM by q7x »
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #1 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
« Last Edit: October 21, 2009, 12:45:26 PM by q7x »
>>>> Ony Tiny Core <<<<

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: ppdev ( Kernel Module ) not found !!!
« Reply #2 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.
« Last Edit: October 18, 2009, 11:32:34 PM by Juanito »

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #3 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 ?

>>>> Ony Tiny Core <<<<

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: ppdev ( Kernel Module ) not found !!!
« Reply #4 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.
« Last Edit: October 22, 2009, 04:13:26 AM by Juanito »

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #5 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

 :-[
>>>> Ony Tiny Core <<<<

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: ppdev ( Kernel Module ) not found !!!
« Reply #6 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?

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #7 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
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #8 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 ?
>>>> Ony Tiny Core <<<<

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: ppdev ( Kernel Module ) not found !!!
« Reply #9 on: October 21, 2009, 11:17:51 AM »
I'll try to have a look in the next couple of days

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #10 on: October 21, 2009, 11:27:16 AM »
thanks . so i will be waiting for your great response
>>>> Ony Tiny Core <<<<

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: ppdev ( Kernel Module ) not found !!!
« Reply #11 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/ and see if it works for you?

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: ppdev ( Kernel Module ) not found !!!
« Reply #12 on: October 22, 2009, 04:07:08 AM »
thanks Juanito  .solved

[^thehatsrule^: multiple (bad) attachments removed]
« Last Edit: November 17, 2009, 08:30:17 PM by ^thehatsrule^ »
>>>> Ony Tiny Core <<<<