View previous topic :: View next topic |
Author |
Message |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Wed Jun 08, 2005 5:51 pm Post subject: install usb printer |
|
|
i can't modprobe usblp
and i don't have /dev/usb/pl0 or /dev/pl0
i follow the guide line of usb support which ask me to recompile kernal
i am using gen-kernal (stage 3)
recompile kernal have any risk? and how to recompile ?
i have set the correct driver at gnome for printer but it is not working
i use gnome-cups-manager
help pls
my lsusb shows this :
Code: |
Bus 001 Device 003: ID 03f0:0c17 Hewlett-Packard
Bus 001 Device 001: ID 0000:0000
| [/code] _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Jun 08, 2005 8:08 pm Post subject: |
|
|
if you can't modprobe usblp it wont work ..
what is the error message when you try to modprobe ? what tells dmesg ?
to recompile your kernel, emerge the apropriated sources, create the /usr/src/linux link (make it point to your new kernel sources), go to /usr/src/linux, type make menuconfig, configure your kernel, and compile _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Wed Jun 08, 2005 11:20 pm Post subject: |
|
|
modprobe usblp
Code: |
FATAL: Module usblp not found.
|
dmesg | grep usb
Code: |
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usbcore: registered new driver usb-storage
usb 1-1: new full speed USB device using uhci_hcd and address 2
|
Really have to recompile kernal? _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Wed Jun 08, 2005 11:25 pm Post subject: |
|
|
last time i use genkernal
to recompile is it i have to use back genkernal?
Code: |
genkernel --menuconfig all
|
or u recompile it manualy? _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Jun 08, 2005 11:25 pm Post subject: |
|
|
Quote: | Really have to recompile kernal? |
maybe ..
what tells Code: | grep USB_PRINTER /usr/src/linux/.config | and Code: | zgrep USB_PRINTER /proc/config.gz |
recompiling your kernel manualy is IMHO better _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Thu Jun 09, 2005 11:12 am Post subject: |
|
|
Code: |
surface@tux surface $ grep USB_PRINTER /usr/src/linux/.config
CONFIG_USB_PRINTER=y
surface@tux surface $ zgrep USB_PRINTER /proc/config.gz
# CONFIG_USB_PRINTER is not set
surface@tux surface $
|
Its that possible to set it without recompile kernel? coz i scared all the settings is gone after i recompile kernel...
if no choice i then recompile, but i wish to make sure something
i type this
it shows configuration with so M and some *
my question, is this settings are my current kernel settings? or the settings are default setting of the new kernel?
any precausion i have to do before recompile kernel? and what should do after finished compile kernel? what show be set after recompile kernel?
thanks for helpping. _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Thu Jun 09, 2005 3:18 pm Post subject: |
|
|
if you don't want to recompile your kernel, just se the option as module, and instead of typing make just type make modules and then make modules_install
after that you should be able to modprobe the usblp module (maybe will you need to run depmod and modules-update before)
but be careful, if you set something as built-in, recompiling the whole kernel is needed ...
your current kernel settings are in /proc/config.gz
so, before recompiling, do : Code: | zcat /proc/config.gz >/usr/src/linux/.config |
_________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Thu Jun 09, 2005 4:31 pm Post subject: |
|
|
Thank you very much! i will try it later days... maybe tomorro... and i will be back.. wish me luck =) _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mysurface n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2005 Posts: 18
|
Posted: Fri Jun 10, 2005 3:03 am Post subject: |
|
|
Done! Thank you.
This is what i do.
copy the kernel module cofig to /usr/scr/linux
Code: | zcat /proc/config.gz >/usr/src/linux/.config |
edit the .config file
Code: |
cd /usr/scr/linux
nano .config
|
change the line
Code: | # CONFIG_USB_PRINTER is not set |
to
Code: | CONFIG_USB_PRINTER=m |
then install all the modules
Code: |
make modules
make modules_install |
modprobe usbcore
modprobe usblp
then i try print at gdm its done! because i had did the cups setting. _________________ n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|