Page 1 of 2

Printers: the case of brother hl2170w

Posted: 16 Jul 2011, 23:12
by francois
Non satisfied to have my HP laserjet 3030 working on Porteus v 1.0 32-bit with Wread's strategy (many thanks to him):
http://porteus.org/forum/viewtopic.php?f=51&t=457

I am working on the case of the printer brother hl2170w. Essentially, I am following the same path as I did under slax:
http://www.slax.org/forum.php?action=vi ... ntID=33379

However following Guest instructions from post 2, after downloading the two necessary printer drivers from:
http://welcome.solutions.brother.com/bs ... l#HL-2170W

- LPR: brhl2170wlpr-2.0.2-1.i386.rpm
- cupswrapper:cupswrapperHL2170W-2.0.2-1.i386.rpm

1) I could not get them to be converted in proper xzm (lzma2) modules using the right click rpm2xzm command: 'Some error occured while activating the module' message appears.

2) Downloading slax module rpm2lzm and converting it to xzm module, I get:
bash-4.1# rpm2lzm brhl2170wlpr-2.0.2-1.i386.rpm brhl2170wlpr-2.0.2-1.i386.lzm
Extracting brhl2170wlpr-2.0.2-1.i386.rpm to temp folder...
Creating module: brhl2170wlpr-2.0.2-1.i386.lzm
/usr/bin/rpm2lzm: line 29: dir2lzm: command not found
Cleaning up...
bash-4.1#

Someone has a cue to what is going on?

If this first strategy does not work for me I will try to rebuild Gusterrapolis' print solution:
http://www.slax.org/modules.php?action=detail&id=26

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 08:19
by Hamza
Easy,

1)
Open the script /usr/bin/rpm2lzm with Kwrite

2)
Remplace every dir2lzm by dir2xzm

3)
Re-execute the script.

Enjoy!

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 12:27
by francois
@Hamza:

Your tip is great. And I did not express myself right. I want rpm2lzm to yield a lzm in a first step, then convert it to xzm. Why do I get the error message:
'/usr/bin/rpm2lzm: line 29: dir2lzm: command not found'

I will try your trick anyway as I understand that you want me to create a rpm2xzm script.

Posted after 5 minutes 31 second:
In the rpm2lzm script, there is only one occurence of rpm2lzm and it is on the second line of the script:
# rpm2xzm by Bryan Elliott

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 12:30
by Hamza
There is a problem.

I did not found any "rpm2lzm" in the both versions.

Is it possible to post it with "code" TAG ?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 12:32
by francois
However, from your comment I understand that all I should do is replacing dir2lzm by dir2xzm and save the script as rpm2xzm. Thus I think I have found a small bug. Maybe we should check deb2lzm too.

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 12:34
by Hamza
Yes, because, every other changes have been done in liblinuxlive and dir2xzm by the devs.

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 12:56
by francois
All there is left is trying rpm2xzm to see if it works right.

Posted after 17 minutes 2 seconds:
No luck:

Code: Select all

bash-4.1# rpm2xzm cupswrapperHL2170W-2.0.2-1.i386.rpm cupswrapperHL2170W-2.0.2-1.i386.xzm
Extracting cupswrapperHL2170W-2.0.2-1.i386.rpm to temp folder...
Creating module: cupswrapperHL2170W-2.0.2-1.i386.xzm
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on cupswrapperHL2170W-2.0.2-1.i386.xzm, block size 262144.
[===================================================================|] 2/2 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are removed
Filesystem size 9.85 Kbytes (0.01 Mbytes)
        27.91% of uncompressed filesystem size (35.28 Kbytes)
Inode table size 142 bytes (0.14 Kbytes)
        62.83% of uncompressed inode table size (226 bytes)
Directory table size 166 bytes (0.16 Kbytes)
        95.95% of uncompressed directory table size (173 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 2
Number of fragments 1
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 5
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
Cleaning up...
bash-4.1#    
I get the same error: 'Some error occured while activating the module' message appears.

On the brother site, I will try the .deb files instead.

Posted after 4 minutes 42 seconds:
Trying to convert the same deb drivers with a right click of the mouse yields the same error:
'Some error occured while activating the module'

What could be the next step?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:07
by Hamza
Is it possible to post an archive with all files and post it somewhere ?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:15
by francois
In fact, as mentioned above, the files are at brother.com link:
http://welcome.solutions.brother.com/bs ... l#HL-2170W

There you can find the four LPR and CUPSWARAPPER files for the hl 2170w printer. Remember that I am working on Porteus v 1.0 32-bit.

Unless you are talking about some other files.

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:22
by Hamza
Did you tried with deb files ?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:30
by francois
Yes. But maybe you missed the information. Just climb three post before:
Posted after 4 minutes 42 seconds:
Trying to convert the same deb drivers with a right click of the mouse yields the same error:
'Some error occured while activating the module'

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:34
by Hamza
Sorry.

Did you checked if there is a kernel module in your final module ?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:39
by francois
Excuse my ignorance, but how would it make a difference? And how do I do that? Has this to do with crippled sources?

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 13:44
by Hamza
It is a device and it need a driver and the driver are stored inside kernel module folder.

Re: Printers: the case of brother hl2170w

Posted: 17 Jul 2011, 14:48
by francois
How do I do that? Has this to do with crippled sources?