9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Playing with wifi
@ 2024-12-26 11:55 Thomas Nemeth
  2024-12-26 13:29 ` Rodrigo G. López
  2024-12-27 14:34 ` Stuart Morrow
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Nemeth @ 2024-12-26 11:55 UTC (permalink / raw)
  To: 9front

    Hello !

    A long post ? I love telling stories :)
    tl;dr : is there a Plan9 equivalent to chown? Is chown really my
    problem ?

    I've put my hands on an old Asus Eeebox B202 (similar HW as eeepc)
    and installed 9front on it instead of my raspi that had problems
    with its micro-sd card and since it would have been the same with
    another one... I left it as-is for other tinkerings.

    So I'm back playing with 9front. Of course the 1st thing I wanted
    to do is to make its wifi work.

    Since the bootlog told me:
    #l1: file does not exist: '/lib/firmware/ral-rt2860
    I went to the hardware section of the FQA.

    The FQA says that my hardware is
    supported provided I install its firmware in /lib/firmware.

3.2.3.2.3.3 - rt2860

Ralink Technology PCI/PCI-Express wireless adapters require firmware from 
http://firmware.openbsd.org/firmware/*/ral-firmware*.tgz to be present on 
attach in /lib/firmware or /boot. See the aboveiwlsection

    Hum I scripted a download of all OpenBSD firmwares from that URL
    and didn't find anything :)
    Hopefully the "aboveiwlsection" (sic) points to 9front git repo for
    firmwares... And mine was there \o/

    % git/clone git://$url
    % cp firmware/ral-* /lib/firmware
    % reboot

    Still the same error message in the bootlog :(
    "file does not exist" ? wtf I just put it there and I can see it
    with lc.

    I found a similar problem exposed on reddit. I needed to recompile
    the kernel and reinstall it on 9fat. Okay. Why not. Maybe the
    compilation process will integrate code specific to my hw making it
    work. Done it. Nice it boots !

    But... The firmware still doesn't get loaded.
    "#l1: permission denied: '/lib/firmware/ral-rt2860'

    Well... permission problems occur...
    % chmod a+r /lib/firmware/*
    % chmod g+w /lib/firmware/*
    % reboot

    Ouch. Still the same... An ownership problem ?

    % ls -l /lib/firmware
    --rw-rw-r-- M 30 glenda sys 8192 Dec 26 09:21 /lib/firmware/ral-rt2860

    Maybe it needs to be owned by sys ?
    % chown sys /lib/firmware/*
    ... chown: directory entry not found.
    
    Ah. Too bad. Looking at unix2plan9 for commands translation...
    Not found :(

    Thanks to all that read me until here :)

Thomas.



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

* Re: [9front] Playing with wifi
  2024-12-26 11:55 [9front] Playing with wifi Thomas Nemeth
@ 2024-12-26 13:29 ` Rodrigo G. López
  2024-12-26 14:17   ` Thomas Nemeth
  2024-12-27 14:34 ` Stuart Morrow
  1 sibling, 1 reply; 5+ messages in thread
From: Rodrigo G. López @ 2024-12-26 13:29 UTC (permalink / raw)
  To: 9front

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

hi thomas,

did you rebuild and copy the kernel after doing the chmods? i saw you did it before, but i only see reboots thereafter.

the firmwares need to be on the paqfs(4), which is built during that process.


-rodri

On December 26, 2024 11:55:17 AM UTC, Thomas Nemeth <tnemeth@free.fr> wrote:
>    Hello !
>
>    A long post ? I love telling stories :)
>    tl;dr : is there a Plan9 equivalent to chown? Is chown really my
>    problem ?
>
>    I've put my hands on an old Asus Eeebox B202 (similar HW as eeepc)
>    and installed 9front on it instead of my raspi that had problems
>    with its micro-sd card and since it would have been the same with
>    another one... I left it as-is for other tinkerings.
>
>    So I'm back playing with 9front. Of course the 1st thing I wanted
>    to do is to make its wifi work.
>
>    Since the bootlog told me:
>    #l1: file does not exist: '/lib/firmware/ral-rt2860
>    I went to the hardware section of the FQA.
>
>    The FQA says that my hardware is
>    supported provided I install its firmware in /lib/firmware.
>
>3.2.3.2.3.3 - rt2860
>
>Ralink Technology PCI/PCI-Express wireless adapters require firmware from 
>http://firmware.openbsd.org/firmware/*/ral-firmware*.tgz to be present on 
>attach in /lib/firmware or /boot. See the aboveiwlsection
>
>    Hum I scripted a download of all OpenBSD firmwares from that URL
>    and didn't find anything :)
>    Hopefully the "aboveiwlsection" (sic) points to 9front git repo for
>    firmwares... And mine was there \o/
>
>    % git/clone git://$url
>    % cp firmware/ral-* /lib/firmware
>    % reboot
>
>    Still the same error message in the bootlog :(
>    "file does not exist" ? wtf I just put it there and I can see it
>    with lc.
>
>    I found a similar problem exposed on reddit. I needed to recompile
>    the kernel and reinstall it on 9fat. Okay. Why not. Maybe the
>    compilation process will integrate code specific to my hw making it
>    work. Done it. Nice it boots !
>
>    But... The firmware still doesn't get loaded.
>    "#l1: permission denied: '/lib/firmware/ral-rt2860'
>
>    Well... permission problems occur...
>    % chmod a+r /lib/firmware/*
>    % chmod g+w /lib/firmware/*
>    % reboot
>
>    Ouch. Still the same... An ownership problem ?
>
>    % ls -l /lib/firmware
>    --rw-rw-r-- M 30 glenda sys 8192 Dec 26 09:21 /lib/firmware/ral-rt2860
>
>    Maybe it needs to be owned by sys ?
>    % chown sys /lib/firmware/*
>    ... chown: directory entry not found.
>    
>    Ah. Too bad. Looking at unix2plan9 for commands translation...
>    Not found :(
>
>    Thanks to all that read me until here :)
>
>Thomas.
>
>

[-- Attachment #2: Type: text/html, Size: 3213 bytes --]

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

* Re: [9front] Playing with wifi
  2024-12-26 13:29 ` Rodrigo G. López
@ 2024-12-26 14:17   ` Thomas Nemeth
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Nemeth @ 2024-12-26 14:17 UTC (permalink / raw)
  To: 9front

Le jeudi 26 décembre 2024, 14:29:24 CET Rodrigo G. López a écrit :
> hi thomas,

    hi rodri !


> did you rebuild and copy the kernel after doing the chmods? i saw you
> did it before, but i only see reboots thereafter.

    No I didn't. I assumed the permissions where checked at access
    time. And indeed, after recompiling the kernel again (now that
    permissions should be ok), the driver seems to be loading the
    firmware !
    "#l1: rt2860: 10Mbps port ..."

    After configuring with aux/wpa it works ! \o/ Thank you so much.
    Now I suppose I have to put the nic configuration command in
    my lib/profile because only ether0 wants to be automatically
    configured at boot time.

    Thanks again :)



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

* Re: [9front] Playing with wifi
  2024-12-26 11:55 [9front] Playing with wifi Thomas Nemeth
  2024-12-26 13:29 ` Rodrigo G. López
@ 2024-12-27 14:34 ` Stuart Morrow
  2024-12-27 15:31   ` Thomas Nemeth
  1 sibling, 1 reply; 5+ messages in thread
From: Stuart Morrow @ 2024-12-27 14:34 UTC (permalink / raw)
  To: 9front

chgrp

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

* Re: [9front] Playing with wifi
  2024-12-27 14:34 ` Stuart Morrow
@ 2024-12-27 15:31   ` Thomas Nemeth
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Nemeth @ 2024-12-27 15:31 UTC (permalink / raw)
  To: 9front

Le vendredi 27 décembre 2024, 15:34:18 CET Stuart Morrow a écrit :
> chgrp

    Thanks !





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

end of thread, other threads:[~2024-12-27 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-26 11:55 [9front] Playing with wifi Thomas Nemeth
2024-12-26 13:29 ` Rodrigo G. López
2024-12-26 14:17   ` Thomas Nemeth
2024-12-27 14:34 ` Stuart Morrow
2024-12-27 15:31   ` Thomas Nemeth

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 NNTP newsgroup(s).