26

Odp: drukarka hp 1005 + Gargulec

Witam!

Jeszcze się nie poddałem;)

Działam teraz bez huba . Drukarka bezbłędnie drukuje na pojedynczych komputerach xp oraz 7. Ma ktoś jakiś pomysł?

Uparłem się na p910nd bo jest w systemie i wg wszelkich znaków na niebie powinno to hulać . Myślę że to jakiś "czeski błąd".Może ma ktoś jakieś świeże spojrzenie?

Pozdrawiam

27

Odp: drukarka hp 1005 + Gargulec

Po kolejnych zmaganiach wink  fragment logu:

which has no address
Oct 15 21:54:52 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:54:58 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:02 Gargoyle kern.warn kernel: [  864.800000] usblp0: nonzero write bulk status received: -32
Oct 15 21:55:02 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 15 21:55:02 Gargoyle kern.info kernel: [  864.970000] usb 1-1.2: USB disconnect, device number 4
Oct 15 21:55:02 Gargoyle kern.info kernel: [  864.970000] usblp0: removed
Oct 15 21:55:02 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 15 21:55:03 Gargoyle user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=TDKMedia Product=Trans-It_Drive Serial=07AA080351130488
Oct 15 21:55:03 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 15 21:55:03 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 15 21:55:03 Gargoyle user.notice usb-modeswitch: 1-1.2:1.0: Manufacturer=? Product=? Serial=?
Oct 15 21:55:03 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 15 21:55:05 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:08 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:10 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:11 Gargoyle kern.info kernel: [  873.390000] usb 1-1.2: new full-speed USB device number 5 using ehci-platform
Oct 15 21:55:11 Gargoyle kern.info kernel: [  873.520000] usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1317
Oct 15 21:55:14 Gargoyle kern.warn kernel: [  876.490000] head: sending ioctl 540d to a partition!
Oct 15 21:55:14 Gargoyle kern.warn kernel: [  876.490000] head: sending ioctl 540d to a partition!
Oct 15 21:55:14 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:20 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:24 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:26 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:28 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:30 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:35 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:41 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:41 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:44 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:45 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:46 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:46 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:47 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:49 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Oct 15 21:55:50 Gargoyle daemon.warn dnsmasq-dhcp[1834]: DHCP packet received on eth0.2 which has no address
Success

28

Odp: drukarka hp 1005 + Gargulec

Doszedłęm do takiego  momentu bez huba

Co dalej ?

Oct 17 22:27:05 Gargoyle daemon.warn dnsmasq-dhcp[4472]: DHCP packet received on eth0.2 which has no address
Oct 17 22:27:09 Gargoyle user.notice usb-modeswitch: 1-1.2:1.0: Manufacturer=Hewlett-Packard Product=hp_LaserJet_1005_series Serial=?

29

Odp: drukarka hp 1005 + Gargulec

Tu nic nie ma. Po prostu pojawiło się urządzenie na usb.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

30

Odp: drukarka hp 1005 + Gargulec

A to nam coś mówi?



Oct 18 12:22:50 Gargoyle daemon.warn dnsmasq-dhcp[1712]: DHCP packet received on eth0.2 which has no address
Oct 18 12:22:51 Gargoyle user.notice root: Wyslano firmware do drukarki
Oct 18 12:22:53 Gargoyle daemon.warn dnsmasq-dhcp[1712]: DHCP packet received on eth0.2 which has no address
Oct 18 12:22:56 Gargoyle daemon.warn dnsmasq-dhcp[1712]: DHCP packet received on eth0.2 which has no address
Oct 18 12:22:58 Gargoyle daemon.warn dnsmasq-dhcp[1712]: DHCP packet received on eth0.2 which has no address

31

Odp: drukarka hp 1005 + Gargulec

Że wysłano firmware do drukarki

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

32

Odp: drukarka hp 1005 + Gargulec

A więc jest gotowa do pracy?

33

Odp: drukarka hp 1005 + Gargulec

Jeżeli faktycznie wysłałeś firmware to tak.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

34

Odp: drukarka hp 1005 + Gargulec

No to teraz muszę powalczyć moim xp-kiem bo nie mogę zainsalować jej jako drukarki sieciowej . Może jakaś podpowiedź?

35

Odp: drukarka hp 1005 + Gargulec

W poradniku masz link do wiki openwrt.org, gdzie krok po kroku jest opisane jak to zrobić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

36

Odp: drukarka hp 1005 + Gargulec

Czesc,
takze mam taka drukarke HP 1005 ktora chce podlaczyc przez USB do routera.
Jak pamiteam po ostatnich probach zainstalowalem sie wg instrukcji : http://eko.one.pl/?p=openwrt-cups
i to nie dzialalo.

To jaka kolejnosc mam wykonac by bylo poprawnie?

Patrzac na te linki:
http://eko.one.pl/?p=openwrt-cups
http://wiki.openwrt.org/doc/howto/p910nd.server ( ktora sekcja? )
no i firmware : http://ecco.selfip.net/orig/drukarki_firmware/

Bo rozumiem ze to bedzie oparte o CUPSA tylko nie mam strownikow do HP 1005 ?

37

Odp: drukarka hp 1005 + Gargulec

Drugi link opisuje p910nd, więc inny serwer. Instalujesz normalnie cups, z tym żeby ta drukarka chciała działać to akurat musisz jej wysłać firmware, a to jest opisane w dokumencie od p910nd. Po wysłaniu firmware masz wyładować moduł usbprinter i zrestartować cups, inaczej będzie się gryzło.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

38

Odp: drukarka hp 1005 + Gargulec

OK cupsa juz mam.

I teraz wykonalem te komendy na routerze:
  $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  $ tar zxf foo2zjs.tar.gz
  $ cd foo2zjs

No i "make" nie dziala, jak to wykonać dalej ?
Compile:
    $ make

39

Odp: drukarka hp 1005 + Gargulec

Nie będzie działał, bo nie ma tego w openwrt. Po co to zrobiłeś, skoro jak sam pokazałeś - u  mnie jest już firmware ściągnięty?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

40

Odp: drukarka hp 1005 + Gargulec

Troche nie kumam tej akcji.

1. Mam tego CUPSA
2. i teraz trzeba wyslac ten obraz : sihpP1005.img do drukarki ?

czyli jak wyslac do drukarki ?
i co po stronie openwrt musze zrobic by cups ta drukarke obslugiwal poprawnie ?

41

Odp: drukarka hp 1005 + Gargulec

cat  sihpP1005.img > /dev/usb/lp0

Z tym żeby  /dev/usb/lp0 istniało musi być załadowany moduł usbprinter (z kmod-usb-printer). Później ten moduł musisz wyładować z pamięci (rmmod usbprinter) bo cups nie chce z nim działać i uruchomić wspomnianego cupsa.

Ten "cat" to oczywiście najprostsza forma, bo tam masz cały skrypt do tego - na hotplugu, sprawdzający czy  /dev/usb/lp0 już istnieje itd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

42

Odp: drukarka hp 1005 + Gargulec

Teraz jak patrze opkg list-installed to nie mam kmod-usb-printer.
Czyli mam na chwile zainstalowac ?

43

Odp: drukarka hp 1005 + Gargulec

Czyli masz w ogóle zainstalować a po wysłaniu firmware wyładować moduł z pamięci (nie usuwać). Napisałem to poprzednio.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

44

Odp: drukarka hp 1005 + Gargulec

1. zrobilem: /etc/init.d/cupsd stop

2. potem
opkg install kmod-usb-printer
Installing kmod-usb-printer (2.6.32.27-1) to root...
Downloading http://downloads.openwrt.org/backfire/1 … ar71xx.ipk.
Multiple packages (kernel and kernel) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kernel and kernel) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Not downgrading package kernel on root from 2.6.32.27-1cj to 2.6.32.27-1.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-usb-printer.

3. cat sihpP1005.img > /dev/usb/lp0
-ash: can't create /dev/usb/lp0: nonexistent directory

mam tylko /dev/usb1

drukarke podlaczylem i mam:
Nov 16 16:55:39 tt-ext user.info kernel: usb 1-1.4: new high speed USB device using ar71xx-ehci and address 7
Nov 16 16:55:39 tt-ext user.info kernel: usb 1-1.4: configuration #1 chosen from 1 choice
Nov 16 16:55:39 tt-ext user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=Hewlett-Packard Product=HP_LaserJet_P1005 Serial=BC0GLPW

nie wiem co dalej ?

45

Odp: drukarka hp 1005 + Gargulec

Zacznij od zrobienia upgrade. Używasz starego backfire i wypisał Ci że nie zainstaluje pakietu bo nie ma go w takiej wersji. Więc i /dev/usb/lp0 nie masz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

46

Odp: drukarka hp 1005 + Gargulec

upgrade openwrt, gargoyle?
nie starace zadnych danych?
ja to mam na extroot to trzeba jakos inaczej?

47

Odp: drukarka hp 1005 + Gargulec

Wszystkie dane stracisz. A tym bardziej extroota będziesz musiał zrobić nowego, bo to co masz teraz nijak ma się do aktualnej wersji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

48

Odp: drukarka hp 1005 + Gargulec

Obecnie mam takie wersje na routerze TP-LINK 1043-ND

Gargoyle 1.5.4
OpenWrt Backfire 10.03.1

1 pytanie: Obie wersje mam zainstalować od nowa ?

2 pytanie: czy przez www gargoyle > system > aktualizacja mam wskazać który plik ?
openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin

49

Odp: drukarka hp 1005 + Gargulec

sysupgrade. I masz zainstalować aktualną wersję, tak. (openwrt-ar71xx-generic -> skąd to? Bo jak ode mnie to to nie ma gui)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

50

Odp: drukarka hp 1005 + Gargulec

stąd ?

http://ecco.selfip.net/attitude_adjustment/ar71xx/

to dobry link ?