SULDR Forums Supported Printers Printing Questions Scanning Questions General Questions Samsung Installer

Author Topic: Howto enable SULD drivers on rasberrypi  (Read 413 times)

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Howto enable SULD drivers on rasberrypi
« on: July 02, 2021, 04:03:56 »
I've managed to get the suld drivers working on raspberrypi by using qemu-user emulation of amd64.
Sharing my work so others can benefit:

 # enable transparent emulation of amd64 (on armhf/arm64)

apt install qemu-user-binfmt binfmt-support
dpkg --add-architecture amd64

# enable suldr repo for amd64
echo 'deb [arch=amd64] https://www.bchemnet.com/suldr/ debian extra' > /etc/apt/sources.list.d/suldr.list
wget 'http://www.bchemnet.com/suldr/pool/debian/extra/su/suldr-keyring_2_all.deb'
dpkg -i suldr-keyring_2_all.deb


# Make sure you have set up apt to install packages for amd64
# You may need to add [arch=arm64] or [arch=armhf] modifiers to lines in /etc/apt.sources.list
# and/or add the main ubuntu/debian repositories for arm64

# Update the package DB
apt update

# Install the driver indicated for your printer, in my case for a Samsung C410, suld-driver2-1.00.39. 

# This wil pull in a LOT of dependencies (about 200MB) of amd64 libs
apt install suld-driver2-1.00.39:amd64


Enjoy printing


UPDATE:
Thanks to bchemnet for updating the drivers before anyone else read this, the procedure has been shortened considerably.
I've removed the redundant steps to avoid confusion
« Last Edit: July 03, 2021, 13:25:57 by ellepdesk »

bchemnet

  • Administrator
  • *****
  • Posts: 556
    • View Profile
  • Linux Distribution: Debian Testing
  • Printer: none
Re: Howto enable SULD drivers on rasberrypi
« Reply #1 on: July 03, 2021, 11:31:44 »
Thank you for sharing.  I have made this sticky and linked to it from the web pages.

Note that the steps for modifying and overriding packages should not be necessary with the most recent update to the repository (eliminating most of the steps in the middle).  Also note that version 1.00.36 is no longer available and 1.00.39 should be used.
« Last Edit: July 03, 2021, 13:24:04 by bchemnet »

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #2 on: July 03, 2021, 13:23:02 »
Thanks for updating the driver-common and ppd packages, I've updated the procedure.
I've also updated to 1.00.39.

schluppschlupp

  • Testing the water
  • **
  • Posts: 3
    • View Profile
  • Linux Distribution: PiOS
  • Printer: ML-1670
Re: Howto enable SULD drivers on rasberrypi
« Reply #3 on: August 23, 2021, 09:17:50 »
Sounds very interesting to me! I want to get a Samsung ML-1670 running on a Raspberry Pi 4 compute module with PiOS (Linux-5.10.52-v7l+).

Unfortunely apt has difficulties solving the dependencies:

# export LANG=en_US.UTF-8 ; export LC_ALL=en_US.UTF-8 ; apt-get install suld-driver-3.00.65
bash: Warnung: setlocale: LC_ALL: Kann die Locale nicht ändern (en_US.UTF-8).
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 suld-driver-3.00.65:amd64 : Depends: libstdc++5:amd64 but it is not installable
                             Depends: libusb-0.1-4:amd64 but it is not installable
                             Depends: libxml2:amd64 but it is not installable
                             Depends: suld-network-install:amd64
                             Depends: libcupsimage2:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.

Can somebody give me a hand with this issue?

Many thanks in advance,
Jürgen.

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #4 on: August 23, 2021, 09:46:32 »
This is probably due to the fact that there is no repository configured for amd64 packages.

Can you post the content of '/etc/apt/sources.list' and all/any files in '/etc/apt/sources.list.d/'?

You will need to add a source for amd64 sources, matching the version of your os.

schluppschlupp

  • Testing the water
  • **
  • Posts: 3
    • View Profile
  • Linux Distribution: PiOS
  • Printer: ML-1670
Re: Howto enable SULD drivers on rasberrypi
« Reply #5 on: August 23, 2021, 10:09:13 »

Many thanks for the quick response! Please find below the requested data:

root@pi4-pios-nas:~# cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

root@pi4-pios-nas:~# ls -l /etc/apt/sources.list.d/
total 20
-rw-r--r-- 1 root root 187 Jan 11  2021 raspi.list
-rw-r--r-- 1 root root  56 Aug 11 09:50 raspotify.list
-rw-r--r-- 1 root root  50 Aug 11 09:46 spotify.list
-rw-r--r-- 1 root root  62 Aug 23 15:58 suldr.list

root@pi4-pios-nas:~# cat /etc/apt/sources.list.d/*
deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main
deb https://dtcooper.github.io/raspotify raspotify main
deb http://repository.spotify.com stable non-free
deb [arch=amd64] https://www.bchemnet.com/suldr/ debian extra

Cheers, Jürgen

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #6 on: August 23, 2021, 10:20:34 »
Ok, so your distro is based on debian buster.

I think you need to add the following lines to a new file, '/etc/apt/sources.list.d/debian-arm64.list':

deb [arch=amd64] http://deb.debian.org/debian buster main
# deb [arch=amd64] http://deb.debian.org/debian-security/ buster-security main
# deb [arch=amd64] http://deb.debian.org/debian buster-updates main

This will add the main debian repositories for buster to you system, but only for amd64 packages.
run 'apt update' after adding the file and try installing suld again.


For my own system, which is based on ubuntu focal, I've added the file '/etc/atp/sources.list.d/ubuntu-amd64.list' with the content:
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-security main
« Last Edit: September 07, 2021, 02:20:56 by ellepdesk »

schluppschlupp

  • Testing the water
  • **
  • Posts: 3
    • View Profile
  • Linux Distribution: PiOS
  • Printer: ML-1670
Re: Howto enable SULD drivers on rasberrypi
« Reply #7 on: August 23, 2021, 10:52:39 »
Hmm... tough ride here... I had to solve some GPG errors first, but now I get this:

root@pi4-pios-nas:~# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://repository.spotify.com stable InRelease                                                                                                                                                         
Ign:3 http://deb.debian.org/debian-security buster-security InRelease                                                                                                                                         
Hit:4 http://archive.raspberrypi.org/debian buster InRelease                                                                                                                                                 
Hit:5 https://dtcooper.github.io/raspotify raspotify InRelease                                                         
Get:6 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]                                                 
Hit:7 http://raspbian.raspberrypi.org/raspbian buster InRelease                                               
Err:8 http://deb.debian.org/debian-security buster-security Release       
  404  Not Found [IP: 151.101.14.132 80]
Hit:9 https://www.bchemnet.com/suldr debian InRelease
Get:10 http://deb.debian.org/debian buster-updates/main amd64 Packages [15.2 kB]
Get:11 http://deb.debian.org/debian buster-updates/main Translation-en [13.9 kB]
Reading package lists... Done       
E: The repository 'http://deb.debian.org/debian-security buster-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'non-free/binary-armhf/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://dtcooper.github.io/raspotify raspotify InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'contrib/binary-amd64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'non-free/binary-amd64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'rpi/binary-amd64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'amd64'

Tried to install anyway, and got the same error as above :( Any help is very much appreciated!

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #8 on: August 23, 2021, 14:20:29 »
Hmm,  I'll have a good look tomorrow, in the meantime can you try removing the second and third line and try again?

ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #9 on: August 24, 2021, 02:40:00 »
I think that

deb [arch=amd64] http://deb.debian.org/debian buster main

or maybe

deb [arch=amd64] http://deb.debian.org/debian buster main contrib

should be enough to work

I also found that adding [arch=arm64] after 'deb' to the existing repos cleans up a lot of the 'doesn't support architecture' warnings

markosjal

  • Splashing around
  • ***
  • Posts: 5
    • View Profile
  • Linux Distribution: Mint 14
  • Printer: ML-1675
Re: Howto enable SULD drivers on rasberrypi
« Reply #10 on: August 27, 2021, 14:06:58 »
I think this is a serious case of "Pi in the Sky" as it does not work, even with the "updated instructions". (English in quotes)

root@raspberrypi:/etc/apt/sources.list.d# apt install suld-driver2-1.00.39:amd64
Leyendo lista de paquetes... Hecho (reading...)
Creando árbol de dependencias        (Creating dependency tree...)
Leyendo la información de estado... Hecho (reading state...)
No se pudieron instalar algunos paquetes. Esto puede significar que (could not instrall some packages, this could mean that)
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».  (you asked for an impossible situation or you are using ...)
La siguiente información puede ayudar a resolver la situación: (the following may be helpful...)

Los siguientes paquetes tienen dependencias incumplidas: (...incomplete dependencies...)
 suld-driver2-1.00.39:amd64 : Depende: libxml2:amd64 pero no va a instalarse
                              Depende: libstdc++6:amd64 pero no va a instalarse
                              Depende: libusb-0.1-4:amd64 pero no va a instalarse
                              Depende: libcupsimage2:amd64 pero no va a instalarse
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos. (unable to correct problems)

Using Raspbian debian stretch


I have  created /etc/apt/sources.list.d/debian-arm64.list

which  contains:
deb [arch=amd64] http://deb.debian.org/debian stretch main
deb [arch=amd64] http://deb.debian.org/debian-security/ stretch-security main
deb [arch=amd64] http://deb.debian.org/debian stretch-updates main

on apt-get update I see..

Err:13 http://deb.debian.org/debian-security stretch-security/main amd64 Packages
  404  Not Found [IP: 2a04:4e42:64::644 80]

W: El repositorio «http://deb.debian.org/debian-security stretch-security Release» no tiene un fichero de Publicación.
N: Los datos de un repositorio como este no se pueden autenticar y por tanto su uso es potencialmente peligroso.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
W: Error de GPG: http://deb.debian.org/debian stretch-updates InRelease: Las firmas siguientes no se pudieron verificar porque su clave pública no está disponible: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
W: El repositorio «http://deb.debian.org/debian stretch-updates InRelease» no está firmado.
N: Los datos de un repositorio como este no se pueden autenticar y por tanto su uso es potencialmente peligroso.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
W: Error de GPG: http://deb.debian.org/debian stretch Release: Las firmas siguientes no se pudieron verificar porque su clave pública no está disponible: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY EF0F382A1A7B6500
W: El repositorio «http://deb.debian.org/debian stretch Release» no está firmado.
N: Los datos de un repositorio como este no se pueden autenticar y por tanto su uso es potencialmente peligroso.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
E: Fallo al obtener http://deb.debian.org/debian-security/dists/stretch-security/main/binary-amd64/Packages  404  Not Found [IP: 2a04:4e42:64::644 80]
E: No se han podido descargar algunos archivos de índice, se han omitido, o se han utilizado unos antiguos en su lugar.



now to try and undo the damage.....


ellepdesk

  • Splashing around
  • ***
  • Posts: 9
    • View Profile
  • Linux Distribution: Ubuntu/Debian
  • Printer: C410
Re: Howto enable SULD drivers on rasberrypi
« Reply #11 on: August 27, 2021, 14:13:58 »
Well, it does work, but it is not for the faint of heart.
The main problem is that it requires setting up sources for amd64 corresponding to the distribution you are running. This will differ fron distro to distro, and there are quite a lot of variants around.

There is definitely something wrong with my debian config, I'll have a look later, I'll mark it as broken for now.

 

Repository Information Legal Contact Alternative Drivers