unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23409: unable to load free firmware
@ 2016-04-30 21:06 Quilro Ordonez
  2016-04-30 22:43 ` Leo Famulari
  2016-05-01 13:19 ` Ludovic Courtès
  0 siblings, 2 replies; 24+ messages in thread
From: Quilro Ordonez @ 2016-04-30 21:06 UTC (permalink / raw)
  To: 23409

Hello mashi (Mashi is the kichwa word for friend, partner, associate, 
camerade. Kichwa is the language spoken in the Andes mountain region 
along all the West of South America).

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.400251] b43-phy0: Broadcom 4311 WLAN found (core revision 10)
[   20.432041] b43-phy0: Found PHY: Analog 4, Type 2 (G), Revision 8
[   20.432058] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2050, Revision 
2, Version 0
[   20.444116] Broadcom 43xx driver loaded [ Features: PNL ]
[   20.444306] ssb0:0: Missing Free firmware (non-Free firmware loading 
is disabled)
[   20.444308] Unable to load firmware
[   20.591119] b43 ssb0:0: Direct firmware load for /*(DEBLOBBED)*/ 
failed with error -2
[   20.591135] b43 ssb0:0: Direct firmware load for b43-open/ucode5.fw 
failed with error -2
[   20.591154] b43 ssb0:0: Direct firmware load for b43-open/ucode5.fw 
failed with error -2
[   20.591158] b43-phy0 ERROR: Firmware file "b43-open/ucode5.fw" not 
found
[   21.313688] b43-phy0 ERROR: /*(DEBLOBBED)*/

'lspci -vmmnn -d 14e4:' shows:
Slot:    03:00.0
Class:    Network controller [0280]
Vendor:    Broadcom Corporation [14e4]
Device:    BCM4311 802.11b/g WLAN [4311]
SVendor:    Hewlett-Packard Company [103c]
SDevice:    BCM4311 802.11b/g Wireless LAN Controller [1363]
Rev:    01

'lspci -nn -d 14e4:' shows
03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 
802.11b/g WLAN [14e4:4311] (rev 01)

h-node.com establishes rev 01 of this card works with free software in
https://h-node.org/wifi/view/en/2/Broadcom-Corporation-BCM4311-802-11b-g-WLAN--rev-02-

Please suggest what I should try. Thank you very much.

Quiliro

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-04-30 21:06 bug#23409: unable to load free firmware Quilro Ordonez
@ 2016-04-30 22:43 ` Leo Famulari
  2016-05-01 13:19 ` Ludovic Courtès
  1 sibling, 0 replies; 24+ messages in thread
From: Leo Famulari @ 2016-04-30 22:43 UTC (permalink / raw)
  To: quiliro; +Cc: 23409

On Sat, Apr 30, 2016 at 04:06:58PM -0500, Quilro Ordonez wrote:
> 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.

I believe that these package definitions for b43-tools and
openfwwf-firmware, copied from http://termbin.com/i02e, are what are
being used:

(define-public b43-tools
  (let ((commit "8dce53297966b31b6c70a7a03c2433978dd9f288"))
    (package
      (name "b43-tools")
      (version (string-append "20160406." (string-take commit 8)))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "http://git.bues.ch/git/b43-tools.git")
               (commit commit)))
         (sha256
          (base32
           "08k7sdr9jagm43r2zv4h03j86klhkblpk73p12444a3vzg1gy1lv"))))
      (build-system gnu-build-system)
      (native-inputs
       `(("flex" ,flex)
         ("bison" ,bison)))
      (arguments
       `(#:modules ((srfi srfi-1)
                    (guix build gnu-build-system)
                    (guix build utils))
         #:tests? #f                    ;no tests
         #:phases (let ((subdirs '("assembler" "disassembler"))) ;TODO: fwcutter
                    (modify-phases %standard-phases
                      (delete 'configure)
                      (add-before 'build 'patch-/bin/true
                        (lambda _
                          (substitute* (find-files "." "Makefile")
                            (("/bin/true") ":"))
                          #t))
                      (replace 'build
                        (lambda _
                          (every (lambda (dir)
                                   (zero?
                                    (system* "make" "-C" dir "CC=gcc")))
                                 subdirs)))
                      (replace 'install
                        (lambda* (#:key outputs #:allow-other-keys)
                          (let ((out (assoc-ref outputs "out")))
                            (mkdir-p (string-append out "/bin"))
                            (every (lambda (dir)
                                     (zero?
                                      (system* "make" "-C" dir
                                               (string-append "PREFIX=" out)
                                               "install")))
                                   subdirs))))))))
      (home-page "")
      (synopsis "")
      (description "")
      (license gpl2))))

(define-public openfwwf-firmware
  (package
    (name "openfwwf-firmware")
    (version "5.2")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "http://netweb.ing.unibs.it/~openfwwf/firmware/"
                           "openfwwf-" version ".tar.gz"))
       (sha256
        (base32
         ;; /gnu/store/ag7rf0kmb1wrnhwjfi3fgr1jcv1vg021-openfwwf-5.2.tar.gz
         "1p60gdi7w88s7qw82d3g9v7mk887mhvidf4l5q5hh09j10h37q4x"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("b43-tools" ,b43-tools)))
    (arguments
     `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs 
"out") "/b43-open"))
       #:tests? #f                      ;no tests
       #:phases (modify-phases %standard-phases
                  (delete 'configure))))
    (home-page "http://netweb.ing.unibs.it/~openfwwf/")
    (synopsis "")
    (description "")
    (license gpl2)))

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-04-30 21:06 bug#23409: unable to load free firmware Quilro Ordonez
  2016-04-30 22:43 ` Leo Famulari
@ 2016-05-01 13:19 ` Ludovic Courtès
  2016-05-02 13:55   ` Eric Bavier
                     ` (2 more replies)
  1 sibling, 3 replies; 24+ messages in thread
From: Ludovic Courtès @ 2016-05-01 13:19 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: quiliro, 23409

Quilro Ordonez <quiliro@riseup.net> 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?

I assume you used the firmware packages that Leo copied.  Could you get
its author to submit it?  :-)

What’s your GuixSD OS config like?  You must make sure to list the
firmware packages in the ‘firmware’ field, as noted at:

  https://www.gnu.org/software/guix/manual/html_node/operating_002dsystem-Reference.html#index-firmware

Is this part OK?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-01 13:19 ` Ludovic Courtès
@ 2016-05-02 13:55   ` Eric Bavier
  2016-05-03  8:01     ` Ludovic Courtès
  2016-11-02 22:19     ` Ludovic Courtès
  2016-11-04  0:43   ` Quiliro Ordonez
  2016-11-04  0:46   ` Quiliro Ordonez
  2 siblings, 2 replies; 24+ messages in thread
From: Eric Bavier @ 2016-05-02 13:55 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Quilro Ordonez, quiliro, 23409

On Sun, 01 May 2016 15:19:34 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Quilro Ordonez <quiliro@riseup.net> 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.

> 
> I assume you used the firmware packages that Leo copied.  Could you get
> its author to submit it?  :-)

That would be me :)  But I don't have the hardware to test it out on,
and qemu doesn't offer emulation of the broadcomm cards.

`~Eric

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-02 13:55   ` Eric Bavier
@ 2016-05-03  8:01     ` Ludovic Courtès
  2016-05-03 20:10       ` Quilro Ordonez
  2016-11-02 22:19     ` Ludovic Courtès
  1 sibling, 1 reply; 24+ messages in thread
From: Ludovic Courtès @ 2016-05-03  8:01 UTC (permalink / raw)
  To: Eric Bavier; +Cc: Quilro Ordonez, quiliro, 23409

Eric Bavier <ericbavier@openmailbox.org> skribis:

> On Sun, 01 May 2016 15:19:34 +0200
> ludo@gnu.org (Ludovic Courtès) wrote:
>
>> Quilro Ordonez <quiliro@riseup.net> 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?

Also, can you show the output of:

  find $(guix build b43-firmware-whatever)/lib/firmware

?

It should contain “b43-open/ucode5.fw”.

>> 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’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-03  8:01     ` Ludovic Courtès
@ 2016-05-03 20:10       ` Quilro Ordonez
  2016-05-03 20:45         ` Ludovic Courtès
  0 siblings, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-03 20:10 UTC (permalink / raw)
  To: ludo; +Cc: lxo, 23409

El 2016-05-03 03:01, ludo@gnu.org escribió:
> Eric Bavier <ericbavier@openmailbox.org> skribis:
> 
>> On Sun, 01 May 2016 15:19:34 +0200
>> ludo@gnu.org (Ludovic Courtès) wrote:
>> 
>>> Quilro Ordonez <quiliro@riseup.net> 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.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-03 20:10       ` Quilro Ordonez
@ 2016-05-03 20:45         ` Ludovic Courtès
  2016-05-03 21:17           ` Quilro Ordonez
  0 siblings, 1 reply; 24+ messages in thread
From: Ludovic Courtès @ 2016-05-03 20:45 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: lxo, 23409

Quilro Ordonez <quiliro@riseup.net> skribis:

> El 2016-05-03 03:01, ludo@gnu.org escribió:

[...]

>> 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

That’s because “openfwwf-firmware” is not the right package name, or is
not found.  Perhaps you need to adjust GUIX_PACKAGE_PATH so that the
recipe for “openfwwf-firmware” is found?

> bash: /sys/module/firmware_class/parameters/path: Permiso denegado

That’s because this is not performed as root.  This needs to be done in
a “root” shell, so:

  sudo bash
  export GUIX_PACKAGE_PATH=/path/to/recipes
  echo -n $(guix build openfwwf-firmware)/lib/firmware > \
     /sys/module/firmware_class/parameters/path

Could you try again?

(Please paste the exact commands and output in your reply.)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-03 20:45         ` Ludovic Courtès
@ 2016-05-03 21:17           ` Quilro Ordonez
  2016-05-03 21:21             ` Quilro Ordonez
  0 siblings, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-03 21:17 UTC (permalink / raw)
  To: 23409; +Cc: lxo

El 2016-05-03 15:45, ludo@gnu.org escribió:
> Quilro Ordonez <quiliro@riseup.net> skribis:
> 
>> El 2016-05-03 03:01, ludo@gnu.org escribió:
> 
> [...]
> 
>>> 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
> 
> That’s because “openfwwf-firmware” is not the right package name, or is
> not found.  Perhaps you need to adjust GUIX_PACKAGE_PATH so that the
> recipe for “openfwwf-firmware” is found?

I suppose the path can be found with:
ls /gnu/store/*/ucode5.fw
/gnu/store/l7k3psmq08ad40swi1kf9as4bjizlz7i-openfwwf-firmware-5.2/ucode5.fw
/gnu/store/yjycspnbxyafys84hn4f1phjy37fai20-openfwwf-firmware-5.2/ucode5.fw

>   sudo bash
>   export GUIX_PACKAGE_PATH=/path/to/recipes
>   echo -n $(guix build openfwwf-firmware)/lib/firmware > \
>      /sys/module/firmware_class/parameters/path

So the path would be:
export GUIX_PACKAGE_PATH=/openfwwf-firmware-5.2

Is that correct?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-03 21:17           ` Quilro Ordonez
@ 2016-05-03 21:21             ` Quilro Ordonez
  2016-05-04  9:10               ` Alex Kost
  0 siblings, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-03 21:21 UTC (permalink / raw)
  To: 23409; +Cc: lxo

root@komputilo /home/quiliro# export 
GUIX_PACKAGE_PATH=/openfwwf-firmware-5.2
root@komputilo /home/quiliro# echo -n $(guix build 
openfwwf-firmware)/lib/firmware > \
>      /sys/module/firmware_class/parameters/path
guix build: warning: cannot access `/openfwwf-firmware-5.2': No existe 
el fichero o el directorio
guix build: error: openfwwf-firmware: unknown package
root@komputilo /home/quiliro# export 
GUIX_PACKAGE_PATH=/gnu/store/yjycspnbxyafys84hn4f1phjy37fai20-openfwwf-firmware-5.2
root@komputilo /home/quiliro# echo -n $(guix build 
openfwwf-firmware)/lib/firmware >      
/sys/module/firmware_class/parameters/path
guix build: error: openfwwf-firmware: unknown package

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-03 21:21             ` Quilro Ordonez
@ 2016-05-04  9:10               ` Alex Kost
  2016-05-04 18:30                 ` Quilro Ordonez
  0 siblings, 1 reply; 24+ messages in thread
From: Alex Kost @ 2016-05-04  9:10 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: lxo, 23409

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

Quilro Ordonez wrote:

> So the path would be:
> export GUIX_PACKAGE_PATH=/openfwwf-firmware-5.2

> Is that correct?

No.

> root@komputilo /home/quiliro# export
> GUIX_PACKAGE_PATH=/openfwwf-firmware-5.2
> root@komputilo /home/quiliro# echo -n $(guix build
> openfwwf-firmware)/lib/firmware > \
>>      /sys/module/firmware_class/parameters/path
> guix build: warning: cannot access `/openfwwf-firmware-5.2': No existe
> el fichero o el directorio
> guix build: error: openfwwf-firmware: unknown package
> root@komputilo /home/quiliro# export
> GUIX_PACKAGE_PATH=/gnu/store/yjycspnbxyafys84hn4f1phjy37fai20-openfwwf-firmware-5.2
> root@komputilo /home/quiliro# echo -n $(guix build
> openfwwf-firmware)/lib/firmware >
> /sys/module/firmware_class/parameters/path
> guix build: error: openfwwf-firmware: unknown package

This happens because you put your packages in your system config file,
so "guix build" command cannot find them.  As Ludovic pointed, you need
to move these packages into a separate file (or files) and set
GUIX_PACKAGE_PATH accordingly.  For example, you can create
"/any/directory/you/want/my-guix-packages.scm" file with the following
contents:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: my-guix-packages.scm --]
[-- Type: text/x-scheme, Size: 3356 bytes --]

(define-module (my-guix-packages)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix licenses)
  #:use-module (gnu packages flex)
  #:use-module (gnu packages bison))

(define-public b43-tools
  (let ((commit "8dce53297966b31b6c70a7a03c2433978dd9f288"))
    (package
      (name "b43-tools")
      (version (string-append "20160406." (string-take commit 8)))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "http://git.bues.ch/git/b43-tools.git")
               (commit commit)))
         (sha256
          (base32
           "08k7sdr9jagm43r2zv4h03j86klhkblpk73p12444a3vzg1gy1lv"))))
      (build-system gnu-build-system)
      (native-inputs
       `(("flex" ,flex)
         ("bison" ,bison)))
      (arguments
       `(#:modules ((srfi srfi-1)
                    (guix build gnu-build-system)
                    (guix build utils))
         #:tests? #f                    ;no tests
         #:phases (let ((subdirs '("assembler" "disassembler"))) ;TODO: fwcutter
                    (modify-phases %standard-phases
                      (delete 'configure)
                      (add-before 'build 'patch-/bin/true
                        (lambda _
                          (substitute* (find-files "." "Makefile")
                            (("/bin/true") ":"))
                          #t))
                      (replace 'build
                        (lambda _
                          (every (lambda (dir)
                                   (zero?
                                    (system* "make" "-C" dir "CC=gcc")))
                                 subdirs)))
                      (replace 'install
                        (lambda* (#:key outputs #:allow-other-keys)
                          (let ((out (assoc-ref outputs "out")))
                            (mkdir-p (string-append out "/bin"))
                            (every (lambda (dir)
                                     (zero?
                                      (system* "make" "-C" dir
                                               (string-append "PREFIX=" out)
                                               "install")))
                                   subdirs))))))))
      (home-page "")
      (synopsis "")
      (description "")
      (license gpl2))))

(define-public openfwwf-firmware
  (package
    (name "openfwwf-firmware")
    (version "5.2")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "http://netweb.ing.unibs.it/~openfwwf/firmware/"
                           "openfwwf-" version ".tar.gz"))
       (sha256
        (base32
         ;; /gnu/store/ag7rf0kmb1wrnhwjfi3fgr1jcv1vg021-openfwwf-5.2.tar.gz
         "1p60gdi7w88s7qw82d3g9v7mk887mhvidf4l5q5hh09j10h37q4x"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("b43-tools" ,b43-tools)))
    (arguments
     `(#:make-flags
       (list (string-append "PREFIX="
                            (assoc-ref %outputs "out") "/b43-open"))
       #:tests? #f                      ;no tests
       #:phases (modify-phases %standard-phases
                  (delete 'configure))))
    (home-page "http://netweb.ing.unibs.it/~openfwwf/")
    (synopsis "")
    (description "")
    (license gpl2)))

[-- Attachment #3: Type: text/plain, Size: 309 bytes --]


After that the following command should build the package:

  $ GUIX_PACKAGE_PATH=/any/directory/you/want guix build openfwwf-firmware

Also if you add this directory to GUILE_LOAD_PATH, you could use
(my-guix-packages) module in any guile code, particularly in your system
config which may look like this:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: quilro-os.scm --]
[-- Type: text/x-scheme, Size: 1902 bytes --]

;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.

(use-modules
 (gnu)
 (gnu system nss)
 (my-guix-packages))

(use-service-modules desktop)
(use-package-modules certs)

(operating-system
  (host-name "komputilo")
  (timezone "America/Guayaquil")
  (locale "es_EC.utf8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sda")))

  (initrd (lambda (fs . args)
            (apply base-initrd fs
                   #:extra-modules '("pata_amd" "sata_nv")
                   args)))
  (firmware (list openfwwf-firmware))
  ;; (firmware (cons* b34-tools
  ;;            openfwwf-firmware %base-firmware))
  (file-systems (cons (file-system
                        (device "raiz")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))


  (users (cons (user-account
                (name "quiliro")
                (comment "Quiliro Ordonez")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/quiliro"))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with Wicd,
  ;; and more.
  (services (cons* (gnome-desktop-service)
                   (xfce-desktop-service)
                   %desktop-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

[-- Attachment #5: Type: text/plain, Size: 158 bytes --]


So add the following to your ~/.bash_profile:

  export GUIX_PACKAGE_PATH=/any/directory/you/want
  export GUILE_LOAD_PATH=/any/directory/you/want

-- 
Alex

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-04  9:10               ` Alex Kost
@ 2016-05-04 18:30                 ` Quilro Ordonez
  2016-05-04 21:33                   ` Alex Kost
  0 siblings, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-04 18:30 UTC (permalink / raw)
  To: 23409; +Cc: lxo

Thank you very much for your help Alex. Below is my report.

El 2016-05-04 04:10, Alex Kost escribió:
> you can create
> "/any/directory/you/want/my-guix-packages.scm" file

Downloaded the file and saved it on directory 
/home/quiliro/guix/packages

> After that the following command should build the package:
> 
>   $ GUIX_PACKAGE_PATH=/any/directory/you/want guix build 
> openfwwf-firmware

This is the output:

$ GUIX_PACKAGE_PATH=/home/quiliro/guix/packages guix build 
openfwwf-firmware
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
$

> Also if you add this directory to GUILE_LOAD_PATH, you could use
> (my-guix-packages) module in any guile code, particularly in your 
> system
> config

Downloaded quiliro-os.scm and placed it in /home/quiliro/guix

> So add the following to your ~/.bash_profile:
> 
>   export GUIX_PACKAGE_PATH=/any/directory/you/want
>   export GUILE_LOAD_PATH=/any/directory/you/want

Did that.

This is the output of reconfiguring the whole system:

# guix system reconfigure /home/quiliro/guix/quiliro-os.scm
guix system: error: failed to load 'quilro-os.scm':
ice-9/boot-9.scm:2867:6: In procedure resolve-interface:
ice-9/boot-9.scm:2867:6: no code for module (my-guix-packages)
#

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-04 18:30                 ` Quilro Ordonez
@ 2016-05-04 21:33                   ` Alex Kost
  2016-05-04 23:08                     ` Quilro Ordonez
  2016-05-04 23:13                     ` Quilro Ordonez
  0 siblings, 2 replies; 24+ messages in thread
From: Alex Kost @ 2016-05-04 21:33 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: lxo, 23409

Quilro Ordonez (2016-05-04 21:30 +0300) wrote:

> Thank you very much for your help Alex. Below is my report.
>
> El 2016-05-04 04:10, Alex Kost escribió:
>> you can create
>> "/any/directory/you/want/my-guix-packages.scm" file
>
> Downloaded the file and saved it on directory
> /home/quiliro/guix/packages
>
>> After that the following command should build the package:
>>
>>   $ GUIX_PACKAGE_PATH=/any/directory/you/want guix build
>> openfwwf-firmware
>
> This is the output:
>
> $ GUIX_PACKAGE_PATH=/home/quiliro/guix/packages guix build
> openfwwf-firmware
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
> $

Great, so as "guix build openfwwf-firmware" succeeds now, you can return
to answering Ludovic's message about modifying
"/sys/module/firmware_class/parameters/path".

>> Also if you add this directory to GUILE_LOAD_PATH, you could use
>> (my-guix-packages) module in any guile code, particularly in your
>> system
>> config
>
> Downloaded quiliro-os.scm and placed it in /home/quiliro/guix
>
>> So add the following to your ~/.bash_profile:
>>
>>   export GUIX_PACKAGE_PATH=/any/directory/you/want
>>   export GUILE_LOAD_PATH=/any/directory/you/want
>
> Did that.
>
> This is the output of reconfiguring the whole system:
>
> # guix system reconfigure /home/quiliro/guix/quiliro-os.scm
> guix system: error: failed to load 'quilro-os.scm':
> ice-9/boot-9.scm:2867:6: In procedure resolve-interface:
> ice-9/boot-9.scm:2867:6: no code for module (my-guix-packages)

Ahem, did you try "echo $GUILE_LOAD_PATH" before this?  I bet it will be
empty, because you export this variable as user, but run "guix system"
command as root.

-- 
Alex

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-04 21:33                   ` Alex Kost
@ 2016-05-04 23:08                     ` Quilro Ordonez
  2016-05-04 23:13                     ` Quilro Ordonez
  1 sibling, 0 replies; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-04 23:08 UTC (permalink / raw)
  To: Alex Kost; +Cc: lxo, 23409

El 2016-05-04 16:33, Alex Kost escribió:
> Quilro Ordonez (2016-05-04 21:30 +0300) wrote:
>> $ GUIX_PACKAGE_PATH=/home/quiliro/guix/packages guix build
>> openfwwf-firmware
>> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
>> $
> 
> Great, so as "guix build openfwwf-firmware" succeeds now, you can 
> return
> to answering Ludovic's message about modifying
> "/sys/module/firmware_class/parameters/path".

No error:

# export GUIX_PACKAGE_PATH=/home/quiliro/guix/packages
# echo -n $(guix build openfwwf-firmware)/lib/firmware > \
       /sys/module/firmware_class/parameters/path
#

>> This is the output of reconfiguring the whole system:
>> 
>> # guix system reconfigure /home/quiliro/guix/quiliro-os.scm
>> guix system: error: failed to load 'quilro-os.scm':
>> ice-9/boot-9.scm:2867:6: In procedure resolve-interface:
>> ice-9/boot-9.scm:2867:6: no code for module (my-guix-packages)
> 
> Ahem, did you try "echo $GUILE_LOAD_PATH" before this?  I bet it will 
> be
> empty, because you export this variable as user, but run "guix system"
> command as root.

No errors:

# guix system reconfigure guix/quilro-os.scm
;;; compiling /home/quiliro/guix/packages/my-guix-packages.scm
;;; compiled 
/root/.cache/guile/ccache/2.0-LE-8-2.0/home/quiliro/guix/packages/my-guix-packages.scm.go
substitute: 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/a40j8b6k3wlbxqbn7n9n3sfcmr92x8g7-grub.cfg.drv
/gnu/store/xv88rlnb9q1gk9vp7z5ih2dwf6rjd0kd-system
/gnu/store/vk1z6naajhbigs0965xqbx9h9mnw2n52-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.
# echo $GUILE_LOAD_PATH
/home/quiliro/guix/packages
#

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-04 21:33                   ` Alex Kost
  2016-05-04 23:08                     ` Quilro Ordonez
@ 2016-05-04 23:13                     ` Quilro Ordonez
  2016-05-05  8:42                       ` Alex Kost
  1 sibling, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-04 23:13 UTC (permalink / raw)
  To: 23409; +Cc: lxo

Same errors in dmesg.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-04 23:13                     ` Quilro Ordonez
@ 2016-05-05  8:42                       ` Alex Kost
  2016-05-11 19:01                         ` Quilro Ordonez
  0 siblings, 1 reply; 24+ messages in thread
From: Alex Kost @ 2016-05-05  8:42 UTC (permalink / raw)
  To: 23409; +Cc: Quilro Ordonez, lxo

Quilro Ordonez (2016-05-05 02:13 +0300) wrote:

> Same errors in dmesg.

If you mean after system reconfiguring, then it is expected, because
nothing has changed, you just moved package definitions from you system
config to another file, so that "guix build" and other commands could
see these packages.

Or do you mean after modifying
"/sys/module/firmware_class/parameters/path" and "insmod"-ing that
firmware?

Here is an excerpt of Ludo's message.  Please report after doing these
steps.

Ludovic Courtès (2016-05-03 11:01 +0300) wrote:

> 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?
>
> Also, can you show the output of:
>
>   find $(guix build b43-firmware-whatever)/lib/firmware
>
> ?
>
> It should contain “b43-open/ucode5.fw”.

-- 
Alex

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-05  8:42                       ` Alex Kost
@ 2016-05-11 19:01                         ` Quilro Ordonez
       [not found]                           ` <87oa8bzjqg.fsf@gmail.com>
  2016-05-13 13:25                           ` Ludovic Courtès
  0 siblings, 2 replies; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-11 19:01 UTC (permalink / raw)
  To: 23409; +Cc: lxo

Hello:

This is my first oportunity to use my laptop with telecomunications. 
Below I comment with my reports. Thank you for your patience.

El 2016-05-05 03:42, Alex Kost escribió:
> Quilro Ordonez (2016-05-05 02:13 +0300) wrote:
> 
>> Same errors in dmesg.
> 
> If you mean after system reconfiguring, then it is expected, because
> nothing has changed, you just moved package definitions from you system
> config to another file, so that "guix build" and other commands could
> see these packages.
> 
> Or do you mean after modifying
> "/sys/module/firmware_class/parameters/path" and "insmod"-ing that
> firmware?

Sorry, I didn't test that yet. I did it now. The output is below the 
respective part of Ludo's message.

> Here is an excerpt of Ludo's message.  Please report after doing these
> steps.
> 
> Ludovic Courtès (2016-05-03 11:01 +0300) wrote:
> 
>> 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?

Here it is:

$ sudo bash
# export GUIX_PACKAGE_PATH=/home/quiliro/guix/packages
# echo -n $(guix build openfwwf-firmware) > 
/sys/module/firmware_class/parameters/path
substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... 100.0%
# cat /sys/module/firmware_class/parameters/path
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
# insmod b43-open
insmod: ERROR: could not load module b43-open: No such file or directory
# echo -n $(guix build openfwwf-firmware)/lib/firmware > 
/sys/module/firmware_class/parameters/path
# cat /sys/module/firmware_class/parameters/path
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/lib/firmware
o# insmod b43-open
insmod: ERROR: could not load module b43-open: No such file or directory
#

>> Also, can you show the output of:
>> 
>>   find $(guix build b43-firmware-whatever)/lib/firmware
>> 
>> ?
>> 
>> It should contain “b43-open/ucode5.fw”.

# find $(guix build b43-open)/lib/firmware
guix build: error: b43-open: unknown package
find: ‘/lib/firmware’: No existe el fichero o el directorio
# find $(guix build openfwwf-firmware)/lib/firmware
find: 
‘/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/lib/firmware’: 
No existe el fichero o el directorio
# find $(guix build openfwwf-firmware)
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/b0g0initvals5.fw
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/b0g0bsinitvals5.fw
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/ucode5.fw
#

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
       [not found]                           ` <87oa8bzjqg.fsf@gmail.com>
@ 2016-05-12 16:11                             ` Quilro Ordonez
  0 siblings, 0 replies; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-12 16:11 UTC (permalink / raw)
  To: 23409; +Cc: lxo

Thank you for your help Alex. Below is my report.

El 2016-05-12 04:52, Alex Kost escribió:
> Quilro Ordonez (2016-05-11 22:01 +0300) wrote:
> 
>> El 2016-05-05 03:42, Alex Kost escribió:
>>> Ludovic Courtès (2016-05-03 11:01 +0300) wrote:
>>> 
>>>> 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?
>> 
>> Here it is:
>> 
>> $ sudo bash
>> # export GUIX_PACKAGE_PATH=/home/quiliro/guix/packages
>> # echo -n $(guix build openfwwf-firmware) >
>> /sys/module/firmware_class/parameters/path
>> substitute: updating list of substitutes from
>> 'https://mirror.hydra.gnu.org'... 100.0%
>> substitute: updating list of substitutes from
>> 'https://mirror.hydra.gnu.org'... 100.0%
>> substitute: updating list of substitutes from
>> 'https://mirror.hydra.gnu.org'... 100.0%
>> substitute: updating list of substitutes from
>> 'https://mirror.hydra.gnu.org'... 100.0%
>> # cat /sys/module/firmware_class/parameters/path
>> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
>> # insmod b43-open
>> insmod: ERROR: could not load module b43-open: No such file or 
>> directory
>> # echo -n $(guix build openfwwf-firmware)/lib/firmware >
>> /sys/module/firmware_class/parameters/path
>> # cat /sys/module/firmware_class/parameters/path
>> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/lib/firmware
>> o# insmod b43-open
>> insmod: ERROR: could not load module b43-open: No such file or 
>> directory
> 
> I have no idea what I suggest but did you try:
> 
>   # insmod
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open

# insmod 
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open
insmod: ERROR: could not insert module 
/gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open: 
Is a directory
#

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-11 19:01                         ` Quilro Ordonez
       [not found]                           ` <87oa8bzjqg.fsf@gmail.com>
@ 2016-05-13 13:25                           ` Ludovic Courtès
  2016-05-13 21:15                             ` Quilro Ordonez
  1 sibling, 1 reply; 24+ messages in thread
From: Ludovic Courtès @ 2016-05-13 13:25 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: lxo, 23409

Hi,

Quilro Ordonez <quiliro@riseup.net> skribis:

> El 2016-05-05 03:42, Alex Kost escribió:

[...]

>> Here is an excerpt of Ludo's message.  Please report after doing these
>> steps.
>>
>> Ludovic Courtès (2016-05-03 11:01 +0300) wrote:
>>
>>> 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?
>
> Here it is:
>
> $ sudo bash
> # export GUIX_PACKAGE_PATH=/home/quiliro/guix/packages
> # echo -n $(guix build openfwwf-firmware) >
> /sys/module/firmware_class/parameters/path
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> # cat /sys/module/firmware_class/parameters/path
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
> # insmod b43-open
> insmod: ERROR: could not load module b43-open: No such file or directory

I had to double-check the module name, and it’s in fact called “b43”:

--8<---------------cut here---------------start------------->8---
$ find $LINUX_MODULE_DIRECTORY -name b43\*ko
/run/booted-system/kernel/lib/modules/4.5.2-gnu/kernel/drivers/net/wireless/broadcom/b43/b43.ko
/run/booted-system/kernel/lib/modules/4.5.2-gnu/kernel/drivers/net/wireless/broadcom/b43legacy/b43legacy.ko
--8<---------------cut here---------------end--------------->8---

Furthermore, you’ll need to use ’modprobe’ rather than ‘insmod’ (sorry
about that!).

> # find $(guix build openfwwf-firmware)
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/b0g0initvals5.fw
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/b0g0bsinitvals5.fw
> /gnu/store/xcxhd2r2h3iz0721vn6c5wfqkd0r4xc0-openfwwf-firmware-5.2/b43-open/ucode5.fw

Oh so this lacks “lib/firmware” (eventually we should fix this
openfwwf-firmware package to have the .fw files under lib/firmware;
Eric? :-)).

So, to recap, you should try (again as root):

  echo -n $(guix build openfwwf-firmware)/b43-open \
        > /sys/module/firmware_class/parameters/path
  modprobe b43
  dmesg | tail

Could you try and report back?

Thanks for your patience!

Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-13 13:25                           ` Ludovic Courtès
@ 2016-05-13 21:15                             ` Quilro Ordonez
  2016-05-14 16:17                               ` Alex Kost
  0 siblings, 1 reply; 24+ messages in thread
From: Quilro Ordonez @ 2016-05-13 21:15 UTC (permalink / raw)
  To: ludo; +Cc: lxo, 23409

Hi,

El 2016-05-13 08:25, ludo@gnu.org escribió:
> I had to double-check the module name, and it’s in fact called “b43”:
> 
> --8<---------------cut here---------------start------------->8---
> $ find $LINUX_MODULE_DIRECTORY -name b43\*ko
> /run/booted-system/kernel/lib/modules/4.5.2-gnu/kernel/drivers/net/wireless/broadcom/b43/b43.ko
> /run/booted-system/kernel/lib/modules/4.5.2-gnu/kernel/drivers/net/wireless/broadcom/b43legacy/b43legacy.ko
> --8<---------------cut here---------------end--------------->8---

Yes. I get that same result.

> So, to recap, you should try (again as root):
> 
>   echo -n $(guix build openfwwf-firmware)/b43-open \
>         > /sys/module/firmware_class/parameters/path
>   modprobe b43
>   dmesg | tail
> 
> Could you try and report back?

# echo -n $(guix build openfwwf-firmware)/b43-open 
/sys/module/firmware_class/parameters/path
guix build: error: openfwwf-firmware: unknown package
/b43-open /sys/module/firmware_class/parameters/path
# rmmod b43
# modprobe b43
# dmesg | tail
[   20.409663] Console: switching to colour frame buffer device 160x50
[   20.411395] nouveau 0000:00:05.0: fb0: nouveaufb frame buffer device
[   20.420052] [drm] Initialized nouveau 1.3.1 20120801 for 0000:00:05.0 
on minor 0
[   24.935207] input: HDA NVidia Front Headphone as 
/devices/pci0000:00/0000:00:10.1/sound/card0/input10
[   40.788264] NET: Registered protocol family 4
[   40.994977] NET: Registered protocol family 3
[   41.137842] NET: Registered protocol family 5
[  974.864509] b43-wlan ERROR: Dual-core devices are not supported
[  974.864521] b43: probe of ssb0:0 failed with error -524
[  974.864536] Broadcom 43xx driver loaded [ Features: PNL ]
#

> Thanks for your patience!

Thank YOU for the freedom....

I will be traveling to a far away community in the jungle this weekend. 
So I will be available with telecommunications for about 11 more hours. 
After that I will be able to answer only in about 66 hours.

Quiliro

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-13 21:15                             ` Quilro Ordonez
@ 2016-05-14 16:17                               ` Alex Kost
  0 siblings, 0 replies; 24+ messages in thread
From: Alex Kost @ 2016-05-14 16:17 UTC (permalink / raw)
  To: Quilro Ordonez; +Cc: quiliro, lxo, 23409

Quilro Ordonez (2016-05-14 00:15 +0300) wrote:

[...]
>> So, to recap, you should try (again as root):
>>
>>   echo -n $(guix build openfwwf-firmware)/b43-open \
>>         > /sys/module/firmware_class/parameters/path
>>   modprobe b43
>>   dmesg | tail
>>
>> Could you try and report back?
>
> # echo -n $(guix build openfwwf-firmware)/b43-open
> /sys/module/firmware_class/parameters/path
> guix build: error: openfwwf-firmware: unknown package

I thought we passed this stage.  You reported that this package was
built successfully [1].  Please don't forget that you need to adjust
GUIX_PACKAGE_PATH, otherwise "guix build" wouldn't know where to find
your packages.

[1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23409#37

-- 
Alex

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-02 13:55   ` Eric Bavier
  2016-05-03  8:01     ` Ludovic Courtès
@ 2016-11-02 22:19     ` Ludovic Courtès
  2017-01-11 22:29       ` Ludovic Courtès
  1 sibling, 1 reply; 24+ messages in thread
From: Ludovic Courtès @ 2016-11-02 22:19 UTC (permalink / raw)
  To: Eric Bavier; +Cc: Quilro Ordonez, quiliro, 23409

Eric Bavier <ericbavier@openmailbox.org> skribis:

> On Sun, 01 May 2016 15:19:34 +0200
> ludo@gnu.org (Ludovic Courtès) wrote:
>
>> Quilro Ordonez <quiliro@riseup.net> 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.
>
>> 
>> I assume you used the firmware packages that Leo copied.  Could you get
>> its author to submit it?  :-)
>
> That would be me :)  But I don't have the hardware to test it out on,
> and qemu doesn't offer emulation of the broadcomm cards.

Eric, do you know if the firmware package you wrote got more testing?
It’s been mentioned several times on IRC over time.

TIA.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-01 13:19 ` Ludovic Courtès
  2016-05-02 13:55   ` Eric Bavier
@ 2016-11-04  0:43   ` Quiliro Ordonez
  2016-11-04  0:46   ` Quiliro Ordonez
  2 siblings, 0 replies; 24+ messages in thread
From: Quiliro Ordonez @ 2016-11-04  0:43 UTC (permalink / raw)
  To: 23409

El 2016-05-01 08:19, ludo@gnu.org escribió:
> Quilro Ordonez <quiliro@riseup.net> 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?
> 
> I assume you used the firmware packages that Leo copied.  Could you get
> its author to submit it?  :-)
> 
> What’s your GuixSD OS config like?  You must make sure to list the
> firmware packages in the ‘firmware’ field, as noted at:
> 
> 
> https://www.gnu.org/software/guix/manual/html_node/operating_002dsystem-Reference.html#index-firmware
> 
> Is this part OK?

I no longer Have that computer. I was not able to use GuixSD because I 
was not able to configure the system correctly.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-05-01 13:19 ` Ludovic Courtès
  2016-05-02 13:55   ` Eric Bavier
  2016-11-04  0:43   ` Quiliro Ordonez
@ 2016-11-04  0:46   ` Quiliro Ordonez
  2 siblings, 0 replies; 24+ messages in thread
From: Quiliro Ordonez @ 2016-11-04  0:46 UTC (permalink / raw)
  To: ludo; +Cc: quiliro, 23409

I wonder why this email is arriving today.

El 2016-05-01 08:19, ludo@gnu.org escribió:
> Quilro Ordonez <quiliro@riseup.net> 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?
> 
> I assume you used the firmware packages that Leo copied.  Could you get
> its author to submit it?  :-)
> 
> What’s your GuixSD OS config like?  You must make sure to list the
> firmware packages in the ‘firmware’ field, as noted at:
> 
> 
> https://www.gnu.org/software/guix/manual/html_node/operating_002dsystem-Reference.html#index-firmware
> 
> Is this part OK?
> 
> Thanks,
> Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#23409: unable to load free firmware
  2016-11-02 22:19     ` Ludovic Courtès
@ 2017-01-11 22:29       ` Ludovic Courtès
  0 siblings, 0 replies; 24+ messages in thread
From: Ludovic Courtès @ 2017-01-11 22:29 UTC (permalink / raw)
  To: Eric Bavier; +Cc: Quilro Ordonez, quiliro, 23409-done

ludo@gnu.org (Ludovic Courtès) skribis:

> Eric Bavier <ericbavier@openmailbox.org> skribis:
>
>> On Sun, 01 May 2016 15:19:34 +0200
>> ludo@gnu.org (Ludovic Courtès) wrote:
>>
>>> Quilro Ordonez <quiliro@riseup.net> 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.
>>
>>> 
>>> I assume you used the firmware packages that Leo copied.  Could you get
>>> its author to submit it?  :-)
>>
>> That would be me :)  But I don't have the hardware to test it out on,
>> and qemu doesn't offer emulation of the broadcomm cards.
>
> Eric, do you know if the firmware package you wrote got more testing?
> It’s been mentioned several times on IRC over time.

This was done in commit 52db41aff8771518f99eb1f9b63b814b568f7a4a back in
Nov. 2016.  Closing!

Ludo’.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-01-11 22:31 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-30 21:06 bug#23409: unable to load free firmware Quilro Ordonez
2016-04-30 22:43 ` Leo Famulari
2016-05-01 13:19 ` Ludovic Courtès
2016-05-02 13:55   ` Eric Bavier
2016-05-03  8:01     ` Ludovic Courtès
2016-05-03 20:10       ` Quilro Ordonez
2016-05-03 20:45         ` Ludovic Courtès
2016-05-03 21:17           ` Quilro Ordonez
2016-05-03 21:21             ` Quilro Ordonez
2016-05-04  9:10               ` Alex Kost
2016-05-04 18:30                 ` Quilro Ordonez
2016-05-04 21:33                   ` Alex Kost
2016-05-04 23:08                     ` Quilro Ordonez
2016-05-04 23:13                     ` Quilro Ordonez
2016-05-05  8:42                       ` Alex Kost
2016-05-11 19:01                         ` Quilro Ordonez
     [not found]                           ` <87oa8bzjqg.fsf@gmail.com>
2016-05-12 16:11                             ` Quilro Ordonez
2016-05-13 13:25                           ` Ludovic Courtès
2016-05-13 21:15                             ` Quilro Ordonez
2016-05-14 16:17                               ` Alex Kost
2016-11-02 22:19     ` Ludovic Courtès
2017-01-11 22:29       ` Ludovic Courtès
2016-11-04  0:43   ` Quiliro Ordonez
2016-11-04  0:46   ` Quiliro Ordonez

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).