Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 82

Thread: HP LaserJet 1000/1005/1020 not working: sort of solution

  1. #46
    Join Date
    Feb 2008
    Location
    Budapest, Hungary
    Posts
    2

    Smile hotplug? FSTAB?

    Quote Originally Posted by Rushke View Post
    Time to corect myself: If I powercycle printer, it stops working... It seems I flipped power switch too fast & didn' reset printer. So - hotplug it is.

    Fortunately, I can read Russian, because in Russian thread hotplugging is explained in detail. Mounted USB HDD ext3 partition on /opt, placed hotplug.sh, sihp1020.dl and usb_printerid on disc, modified post-mount & post-boot scripts, and MAGIC - printer is working!

    ... Untill first time I rebooted router without attached HDD...
    Plugged in HDD - and no printing... My partition with hotplug, firmware & the rest is not mounted....

    ... Few hours later, after playing with post-mount, hotplug.sh etc. and a lot of reading later - solution: FSTAB ! Everything is working

    ... Few hours of reading later - flashfs on WL500g Premium is big enough to store firmware. Ouch!

    Epilogue: Everything is working now & I had a lot of fun getting to it long way round

    Thanks, Oleg & everybody else.

    A.
    I am not familiar with Linux, hotplug and fstab does not tell me too much. Can you help me how could I send the firmware to a HP1020. I have a 500gPremium with the original firmware and with an USB HDD. I have downloaded usb_printerid and sihp1020.dl to the HDD but I do not know where to put (which folder) these files and where to include the following command. chmod +x usb_printerid
    ./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0
    I used only the web setup page of the router.
    Do I need to update the firmware to Oleg's one first?

    If you could support a such a "user" like me, I would appreciate your help.
    Tx in advance.

  2. #47
    Join Date
    Feb 2008
    Location
    Budapest, Hungary
    Posts
    2

    where I am now

    My Status & Log - System Log is the following:

    Jan 1 01:00:09 dhcp client: deconfig: lease is lost
    Jan 1 01:00:10 dhcp client: bound IP : 89.134.173.66 from 89.134.175.254
    Jan 1 01:00:20 USB storage: vfat fs mounted to /tmp/harddisk/part0
    Feb 5 21:11:11 USB storage: 32760k swap file is added
    Feb 5 21:11:11 FTP server: daemon is started
    Feb 5 21:11:13 Samba server: daemon is started
    Feb 5 21:11:15 Media Server: daemon is started
    Feb 5 21:11:16 Download Master: daemon is started
    Feb 5 21:11:25 ntp client: time is synchronized to time.nist.gov

    I have the sihp1020.dl and usb_printerid files in the /tmp folder of the mounted HDD (/tmp/harddisk/part0/tmp)

    I have the following script in the root of the HDD ((/tmp/harddisk/part0) It is a text file without extension, I used post-mount, post-boot, hotplug, hotplug.sh as file names but nothing happened, no hotplug.log, printer...

    #!/bin/sh
    echo --------------- >> /tmp/harddisk/part0/hotplug.log
    date >> /tmp/harddisk/part0/hotplug.log
    echo $* >> /tmp/harddisk/part0/hotplug.log
    set >> /tmp/harddisk/part0/hotplug.log
    if [ "$ACTION" = "add" ] || [ "$1" = "usb" ] || [ "$DEVFS" = "/proc/bus/usb" ]; then
    sleep 5
    chmod +x usb_printerid

    /tmp/harddisk/part0/tmp/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/harddisk/part0/tmp/sihp1020.dl > /dev/usb/lp0
    echo "Firmware loaded succesfully!" >> /tmp/hotplug.log
    else
    echo "Device removed" >> /tmp/harddisk/part0/hotplug.log

    Please advice what to do now or send me a correct hotplug.sh/post-mount files.

    Thanx for your help.

  3. #48
    Join Date
    Jan 2008
    Location
    Novi Sad, Vojvodina, Serbia
    Posts
    10

    HP LJ 1020 - how to

    First, you'll need to flash your router with Oleg's firmware. Then you can get dirty and start tinkering with asus box. It will be good idea to get somewhat familliar with Linux, it is more fun when you know what you are doing

    I will asume you have PC with Windows connected to router. Telnet and log to Asus, then make folder for firmware, hotplug etc.

    mkdir /usr/local/sbin

    #change to that dir

    cd /usr/local/sbin

    #copy files from HDD to flash

    cp /tmp/harddisk/part0/tmp/sihp1020.dl sihp1020.dl
    cp /tmp/harddisk/part0/tmp/usb_printerid usb_printerid

    #make hotplug.sh file

    echo "#!/bin/sh" > hotplug.sh
    echo "/usr/local/sbin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /usr/local/sbin/sihp1020.dl > /dev/usb/lp0" >> hotplug.sh

    #this will load firmware every time printer is plugged in, and firmware is not present
    # make post-boot script

    echo "#!/bin/sh" > post-boot
    echo "if [ -w /dev/usb/lp0 ]" >> post-boot
    echo "cat /usr/local/sbin/sihp1020.dl>/dev/usb/lp0" >> post-boot
    echo "fi" >> post-boot
    echo "/usr/local/sbin/hotplug.sh">>/proc/sys/kernel/hotplug

    #this will take care of situation when printer was plugged in before powering router, and activate hotplug
    # now make everything eXecutable

    chmod +x /usr/local/sbin/*

    #save everything to flash and restart router

    flashfs save
    flashfs commit
    flashfs enable
    reboot

    I prefer to keep everything in flash, Premium has enough of it to hold firmware.

    Now to the windows part. Install printer:
    http://oleg.wl500g.info/printing/

    and... working

    If printer runs out of paper during printing, it'll stop. unplug&plug usb cable to resume printing, or power off/on for cancel.

    A.

  4. #49
    I have a problem with the manual above me.
    When i reboot the router, the router forgets the hotplug file.

    When I reboot I see in the file /proc/sys/kernel/hotplug :
    /sbin/hotplug

    This is not correct, it must be
    /usr/local/sbin/hotplug.sh

    When i manual do :
    echo "/usr/local/sbin/hotplug.sh">>/proc/sys/kernel/hotplug

    Everything works fine. But I want that the router do this by himself. Someone have a idea ?

    I have a laserjet 1005

  5. #50
    did you end every change before reboot with commands

    Code:
    flashfs save
    flashfs commit
    flashfs enable
    ?

  6. #51
    Quote Originally Posted by jimmy_cr View Post
    did you end every change before reboot with commands

    Code:
    flashfs save
    flashfs commit
    flashfs enable
    ?
    Yes, I did

  7. #52
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    create /usr/local/sbin/pre-boot file with the following minimum content:

    PHP Code:
    #! /bin/sh

    echo "/usr/local/sbin/hotplug.sh" > /proc/sys/kernel/hotplug 
    save flashfs and reboot

  8. #53
    Quote Originally Posted by al37919 View Post
    create /usr/local/sbin/pre-boot file with the following minimum content:

    PHP Code:
    #! /bin/sh

    echo "/usr/local/sbin/hotplug.sh" > /proc/sys/kernel/hotplug 
    save flashfs and reboot
    No, it's not working.
    I put this line also in post-boot, but its also not working.

    The /proc/sys/kernel/hotplug-file still contains :
    /sbin/hotplug

    I have firmware version 1.9.2.7-10 (the version -9, doesn't work) (WL500g.Deluxe)

    [edit]
    I cleared my config files and flashed a new firmware. Now everything thing is up and running.
    Thanks guys !!
    [/edit]
    Last edited by software; 22-04-2008 at 20:28.

  9. #54

    Red face

    Done, but If I restart the printer or I power off the router nothing is working, I have to telnet and run

    Code:
    cd /usr/local/sbin
    ./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0
    I'm a total newcommer to linux...

    I have WL500gpv2 firmware 1.9.2.7-10-USB-1.71

    please help...
    Last edited by ENDer2000; 05-12-2008 at 00:25.

  10. #55
    It's working now and if you telnet the router, ou can copy & paste the commands from here:
    http://www.bogdangheorghe.ro/2008/12...0100510181020/

  11. #56
    Hi guys,

    First of all thanks to all of you for very simple and clear steps that make it work. It's great you presented it in a way a newcomer can understand!

    Yesterday I've been struggling to make it work using the early instructions. It didn't work until I created the pre-boot file. I have HP 1020 and WL-500gP v2.

    Now it works if I power off and power on the printer. Apparently it works if I power cycle the router with the printer on (firmware is still in the printer). Although it didn't work after I turned off everything for the night and then turned it back on in the morning (printer and router). And it looked differently, it wasn't just ignoring my printing requests silently but giving me messages like "local downlevel document failed to print".

    After I turned off the printer and turned it on again, it works. Can it be the the hotplug works but post-boot or pre-boot do not?

    the /proc/sys/kernel/hotplug file has the necessary line in it.
    my /usr/local/sbin has pre-boot, post-boot, hotplug.sh, usb_printerid and sihp1020.dl files.

    It is still unclear to me how the post-boot file is used. Is this /usr/local/sbin a special directory and post-boot and pre-boot some special file names that are executed automatically?
    Last edited by mecanico; 08-03-2009 at 07:47.

  12. #57

    Wink

    Old but difficult problem.

    I have the same problem.

    ASUS WL-520gU. firmware 1.9.2.10. HP 1020 printer.

    All can work perfectly except the pre-boot.

    The file /proc/sys/kernel/hotplug changed to
    /sbin/hotplug
    after I powered off or reboot.

    Who can help me/us ?
    Last edited by liucw99; 26-06-2009 at 03:59.

  13. #58
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi,

    Sorry my English.

    Add this to your post-boot.
    Change path of sihp1020.dl to yours.

    Code:
    # Printer
    if [ -w /dev/usb/lp0 ]; then
      /opt/bin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /opt/bin/sihp1020.dl > /dev/usb/lp0
    fi
    echo "/usr/local/sbin/hotplug.sh" >> /proc/sys/kernel/hotplug
    This code send hp fw to printer, if connected (and power on ) after boot.
    Dont't forget save files to flashfs (flashfs save+commit+enable).

    Bye,
    George

  14. #59
    Greate!

    It works now!

    thank you verrrrrrrrrrrrrrrrrrrrry much.

    Quote Originally Posted by KGy View Post
    Hi,

    Sorry my English.

    Add this to your post-boot.
    Change path of sihp1020.dl to yours.

    Code:
    # Printer
    if [ -w /dev/usb/lp0 ]; then
      /opt/bin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /opt/bin/sihp1020.dl > /dev/usb/lp0
    fi
    echo "/usr/local/sbin/hotplug.sh" >> /proc/sys/kernel/hotplug
    This code send hp fw to printer, if connected (and power on ) after boot.
    Dont't forget save files to flashfs (flashfs save+commit+enable).

    Bye,
    George

  15. #60

    HP 1005 - dosn't work!(

    Sorry for my English.
    The problem is this: The printer 1005, all of the instructions executed.
    Switch on the printer, perform
    /tmp/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/sihpP1005.dl > /dev/usb/lp0
    (this printer pogudel and subsided). Also try the file sihp1005.dl - with the printer does not even boos.
    Then when you send a print job windows gives an error that the press has failed in the task list, the page is assigned the status of "error".
    'll Show what could be wrong?

Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 18-12-2005, 02:07
  2. Solution for: No printer driver with Mac OSX
    By tortuga in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 16-12-2005, 14:21
  3. Replies: 1
    Last Post: 09-12-2005, 23:29
  4. Problem mit HP LaserJet 1020
    By Gray in forum German Discussion - Deutsch (DE)
    Replies: 0
    Last Post: 05-12-2005, 18:36
  5. Trying to get IDE working on Oleg's Firmware
    By hugo in forum WL-HDD Custom Development
    Replies: 34
    Last Post: 01-11-2004, 19:06

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •