Printers: the case of brother hl2170w

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Printers: the case of brother hl2170w

Post#1 by francois » 16 Jul 2011, 23:12

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
Last edited by francois on 24 Jul 2011, 19:58, edited 2 times in total.
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#2 by Hamza » 17 Jul 2011, 08:19

Easy,

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

2)
Remplace every dir2lzm by dir2xzm

3)
Re-execute the script.

Enjoy!
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#3 by francois » 17 Jul 2011, 12:27

@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
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#4 by Hamza » 17 Jul 2011, 12:30

There is a problem.

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

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

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#5 by francois » 17 Jul 2011, 12:32

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.
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#6 by Hamza » 17 Jul 2011, 12:34

Yes, because, every other changes have been done in liblinuxlive and dir2xzm by the devs.
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#7 by francois » 17 Jul 2011, 12:56

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?
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#8 by Hamza » 17 Jul 2011, 13:07

Is it possible to post an archive with all files and post it somewhere ?
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#9 by francois » 17 Jul 2011, 13:15

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.
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#10 by Hamza » 17 Jul 2011, 13:22

Did you tried with deb files ?
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#11 by francois » 17 Jul 2011, 13:30

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'
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#12 by Hamza » 17 Jul 2011, 13:34

Sorry.

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

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#13 by francois » 17 Jul 2011, 13:39

Excuse my ignorance, but how would it make a difference? And how do I do that? Has this to do with crippled sources?
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Printers: the case of brother hl2170w

Post#14 by Hamza » 17 Jul 2011, 13:44

It is a device and it need a driver and the driver are stored inside kernel module folder.
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Printers: the case of brother hl2170w

Post#15 by francois » 17 Jul 2011, 14:48

How do I do that? Has this to do with crippled sources?
Prendre son temps, profiter de celui qui passe.

Post Reply