InEnglish

Debian stock on Cubox-i, USB issue

Sunday, 25 February 2024
|
Écrit par
Grégory Soutadé

My backup server was off for a while now. Something broken in my Sheevaplug power supply. And, if I do regular backup of my data on laptop, this is not the case for my server, so it was urgent to find a solution. I first though to buy a Cubox-M which is more powerful, but it's 250$ ! Quite expensive for this kind of stuff ! So I bought a second hand Cubox-i for for only 30€. This is a clone of my current server. I had to install everything from scratch, so I follow Solid Run instructions to prepare my SDCard with UBoot (with a new 2022 release and the ability to read ext4 partitions !).

> sudo dd if=SPL of=/dev/sdX bs=1k seek=1 conv=sync
> sudo dd if=u-boot.img of=/dev/sdX bs=1k seek=69 conv=sync

Then, I wanted to try to install a Debian distribution in stock version (with "nothing" from SolidRun) for an easier maintenance.

My SDCard partitioning looks like (partitioned with gparted) :

Cubox SDCard partitioning

On the main partition, I downloaded generic netboot console install from Debian server (netboot.tar.gz) and uncompress all files in the main partition. But I think it's better to put all in a directory named boot. Then put it in my Cubox and start to install using serial console.

> screen /dev/ttyUSB0 115200

Everything went fine, except that the image is configured for old stable release. So, I have to migrate to stable one (and don't forgot to remove installation files !).

When all was installed, I tried to put a USB key, but nothing happened... USB seems to work :

> lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

After looking for kernel logs for a while (and a bit despairs), I found the solution : Debian compile its kernel with only few drivers linked. Most of them are in modules (located in /lib/modules/kernelname). And the one missing is USB PHY driver phy-mxs-usb ! In my main server, I had it compiled because I use target imx6/7.

So, then simplest way to test is :

> sudo modprobe phy-mxs-usb

And for automatic loading at boot time :

> sudo echo phy-mxs-usb >> /etc/modules

I also added tun, dm-mod and dm-crypt.

Libgourou v0.8.4

Thursday, 18 January 2024
|
Écrit par
Grégory Soutadé

Reminder : Libgourou is an open source ADEPT protocol implementation (ePub DRM management from Adobe) that helps download ACSM files on Linux system (and remove DRM).

Just two little fixes after a user reported an issue downloading his ebook from Kobo. Unfortunately it doesn't fix his issue as it's more a problem with new cloudflare firewall setup by Kobo.

Changes :

  • Bugfix : Operator URL only written when the full certificate is retrieved
  • Raise an error for HTTP request with status != 200
  • Set up cookie jar file for each session
  • Fix for compilation in Android (strptime() format)

You can find source code and binaries in my forge

Libgourou v0.8.3

Sunday, 01 October 2023
|
Écrit par
Grégory Soutadé

Reminder : Libgourou is a free ADEPT protocol implementation (ePub DRM management from Adobe) that helps download ACSM files on Linux system (and remove DRM).

No revolution for version 0.8.3 but only a bug raised by J.M. and a little feature coming from this bug :

  • Bugfix : bad ID used for loaned files
  • Server is now notified (if desired) when downloading file & loan return. Can be disabled with --no-notify option

You can find source code and binaries in my forge

Libgourou v0.8.2

Sunday, 20 August 2023
|
Écrit par
Grégory Soutadé

Reminder : Libgourou is a free ADEPT protocol implementation (ePub DRM management from Adobe) that helps download ACSM files on Linux system (and remove DRM).

Libgourou v0.8.2 is now out ! Few changes since v0.8.1 :

  • libgen.h missing
  • Makefile updates (GCC 13 compilation, PREFIX and DESTDIR variable management)
  • Bugfix : hexadecimal strings were not decrypted in PDF (can be used for table of content)

What's interesting is that all errors/fix has been reported by libgourou users. I specially want to thanks Berwyn H. for his kind donation !

You can find source code and binaries in my forge

Libgourou v0.8.1

Saturday, 21 January 2023
|
Écrit par
Grégory Soutadé

Reminder : Libgourou is a free ADEPT protocol implementation (ePub DRM management from Adobe) that helps download ACSM files on Linux system (and remove DRM).

Libgourou v0.8.1 is out now. It's a minor release if we only look at the ChangeLog, but a very intersting one for a lot of aspects. First, the ChangeLog :

  • DRM with encryption key size 192 bits now fully supported by adept_remove
  • New -D option to specify .adept directory
  • Check for user ID before trying to decrypt a file
  • Default ADEPT directory is now /home/USER/.config/adept and can be specified by $ADEPT_DIR environment variable
  • -f option can be omitted and is replaced by last argument (ie: we can do ./acsmdownloader EPUB)
  • Add man pages
  • Add install/unintall and install_headers/uninstall_headers Makefile targets
  • PugiXML is no more statically linked, we use the system level shared library

Except one bug fix which add a major feature and new default path for .adept, all work has been done in Makefile part which is not code related. And this is interesting because it enlight the fact that libgourou is becoming a popular software (535 downloads within 4 months for v0.8), in "concurrence" with Knock (command line) and Calibre's plugin DeACSM (GUI). I get feedback from 5 different peoples that creates a port to MacOS, create packages for Gentoo and OpenSuse (ArchLinux has an outdated package) + a docker version. The reference implementation (utils) is becoming the only implementation and now has to be more user friendly. This is unexpected as, initially, the project has been designed as a library (so the name "lib" gourou) that should have been integrated by embedded devices, and a reference implementation to be used for Linux users. But I didn't expected that so many people were interested by the command line interface. If the project is still growing like that, I have no doubt that people will ask for new nice features, so wait and see !

You can find binary packages (compiled + AppImage) here.