From mboxrd@z Thu Jan 1 00:00:00 1970 From: Quilro Ordonez Subject: bug#23409: unable to load free firmware Date: Tue, 03 May 2016 15:10:10 -0500 Message-ID: References: <8c7981c22c93720a9dbd5f63c279c44b@riseup.net> <87shy1apax.fsf@gnu.org> <20160502085507.31da4d6f@openmailbox.org> <871t5jfu3d.fsf@gnu.org> Reply-To: 23409@debbugs.gnu.org, lxo@fsfla.org, Quiliro =?UTF-8?Q?Ord=C3=B3=C3=B1ez?= Baca Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axh7C-0004Bs-Iu for bug-guix@gnu.org; Tue, 03 May 2016 16:40:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axh70-0004YW-BR for bug-guix@gnu.org; Tue, 03 May 2016 16:40:13 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axh6z-0004VZ-3O for bug-guix@gnu.org; Tue, 03 May 2016 16:40:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axh6v-00031U-Ko for bug-guix@gnu.org; Tue, 03 May 2016 16:40:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871t5jfu3d.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: ludo@gnu.org Cc: lxo@fsfla.org, 23409@debbugs.gnu.org El 2016-05-03 03:01, ludo@gnu.org escribió: > Eric Bavier skribis: > >> On Sun, 01 May 2016 15:19:34 +0200 >> ludo@gnu.org (Ludovic Courtès) wrote: >> >>> Quilro Ordonez skribis: >>> >>> > I am trying to lo use Broadcom wireless device on GuixSD. It is >>> > confirmed to work with free drivers and free firmware. It works >>> > correctly in Trisquel too. >>> > >>> > dmesg gives the following messages. I have included only the relevant >>> > parts: >>> >>> [...] >>> >>> > [ 20.591158] b43-phy0 ERROR: Firmware file "b43-open/ucode5.fw" not >>> > found >>> > [ 21.313688] b43-phy0 ERROR: /*(DEBLOBBED)*/ >>> >>> “DEBLOBBED” would suggest that Linux-libre’s deblobbing script viewed >>> it >>> as an opaque binary blob and thus patched it, which may be an issue >>> here, no? >> >> Does deblobbing happen at runtime too? I thought it was only during >> build time. > > Right, it’s at at build time, but the “deblobbing script” leaves those > “DEBLOBBED” messages in places where it has removed firmware loading > capabilities. > > It may be worth checking with the Linux-libre team what happens in this > particular case—i.e., whether this code is erroneously deblobbed, or > something else. > > Quilíro: firmware files are searched for in the directory specified in > the /sys/module/firmware_class/parameters/path pseudo-file (see the > (gnu > build activation) module.) > > Could you try, as root, something like (use the right package and > module > name below): > > echo -n $(guix build b43-firmware-whatever)/lib/firmware \ > > /sys/module/firmware_class/parameters/path > insmod b43-module-whatever-its-called > dmesg | tail > > … and report back? These are the three options I tested: echo -n $(guix build b43-firmware-whatever)/lib/firmware > /sys/module/firmware_class/parameters/path echo -n $(guix build b43-open)/lib/firmware > /sys/module/firmware_class/parameters/path echo -n $(guix build b43-tools)/lib/firmware > /sys/module/firmware_class/parameters/path echo -n $(guix build openfwwf)/lib/firmware > /sys/module/firmware_class/parameters/path echo -n $(guix build openfwwf-firmware)/lib/firmware > /sys/module/firmware_class/parameters/path The results for all those in the order of: guix build: error: openfwwf-firmware: unknown package bash: /sys/module/firmware_class/parameters/path: Permiso denegado (This is the result of the last test.) > Also, can you show the output of: > > find $(guix build b43-firmware-whatever)/lib/firmware > > ? > > It should contain “b43-open/ucode5.fw”. quiliro@komputilo ~$ find $(guix build openfwwf-firmware)/lib/firmware guix build: error: openfwwf-firmware: unknown package find: ‘/lib/firmware’: No existe el fichero o el directorio >>> I assume you used the firmware packages that Leo copied. Could you >>> get >>> its author to submit it? :-) >> >> That would be me :) > > Ah ha! I suspected it but wasn’t sure. :-) > >> But I don't have the hardware to test it out on, and qemu doesn't >> offer emulation of the broadcomm cards. > > Good point. Let’s test it with Quilíro. > > Thanks! > > Ludo’. This is my config.scm http://termbin.com/4qpx And this is the output of the update with that config: quiliro@komputilo ~$ sudo guix system reconfigure raw.scm Password: substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0% substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0% The following derivation will be built: /gnu/store/2cj80qdh89vd5zjnwg3m6cx0bhf97lac-grub.cfg.drv /gnu/store/xv88rlnb9q1gk9vp7z5ih2dwf6rjd0kd-system /gnu/store/sb9g34hmckfnnjpr471llqmyg4hckflm-grub.cfg /gnu/store/myrc5cinlhpj2yilhzv5y0szz2ax2i6z-grub-2.00 activating system... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/msm5mb78xdfc49jp1400jwz9wfnmydrs-etc... usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios usermod: sin cambios making '/gnu/store/xv88rlnb9q1gk9vp7z5ih2dwf6rjd0kd-system' the current system... Installation finished. No error reported.