wpasupplicant udeb - Debian

This is a discussion on wpasupplicant udeb - Debian ; Hello, I' after some advice as to how to submit a patch for wpasuppliant-udeb. Looking at (for example) openssl, it has the udeb stuff in the main package. With wpasupplicant, we need a separate conf file so that we don't ...

+ Reply to Thread
Results 1 to 13 of 13

Thread: wpasupplicant udeb

  1. wpasupplicant udeb

    Hello,
    I' after some advice as to how to submit a patch for
    wpasuppliant-udeb. Looking at (for example) openssl, it has the udeb
    stuff in the main package. With wpasupplicant, we need a separate conf
    file so that we don't include unnecessary drivers, clients and EAP
    code. I can supply a patch that will build the udeb for testing
    purposes, but I suspect that this isn't what the d-i team wants so I
    need some advice on how to move forward on this. I have managed to get
    the udeb size down to 82K and the binary to 162K. Is this suitable to be
    able to be included in the installer? Please CC me, as my mail server is
    having connectivity issues, and this address isn't subscribed.

    Cheers

    Glenn


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  2. Re: wpasupplicant udeb

    On Thursday 22 May 2008 15:25:13 Glenn wrote:
    > I' after some advice as to how to submit a patch for
    > wpasuppliant-udeb. Looking at (for example) openssl, it has the udeb
    > stuff in the main package. With wpasupplicant, we need a separate conf
    > file so that we don't include unnecessary drivers, clients and EAP
    > code. I can supply a patch that will build the udeb for testing
    > purposes, but I suspect that this isn't what the d-i team wants so I
    > need some advice on how to move forward on this. I have managed to get
    > the udeb size down to 82K and the binary to 162K. Is this suitable to be
    > able to be included in the installer? Please CC me, as my mail server is
    > having connectivity issues, and this address isn't subscribed.


    That sounds pretty good.

    Please just mail the patch to the debian-boot list for review and
    discussion.

    We should discuss and finalize the patch here before it is filed against the
    source package. If we need to involve the wpasupplicant maintainer in that
    discussion, we could possibly file the bug now, but then with an explicit
    note that it should not be implemented and uploaded before it has been
    finalized.

    Cheers,
    FJP


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  3. Re: wpasupplicant udeb

    Ok, here it is. Its based on debians svn release of wpasupplicant as it
    has a patch which allows us to build without EAP. It will still build
    the deb and clients at the moment, which as stated earlier, some sort of
    seperate config needs to be made for the udeb.

    Please CC me.

    Cheers

    Glenn


  4. Re: wpasupplicant udeb

    On Fri, May 23, 2008 at 04:09:48PM +0800, Glenn wrote:
    > It will still build the deb and clients at the moment, which as stated
    > earlier, some sort of seperate config needs to be made for the udeb.


    If you can provide a patch doing so for review, it would be great.

    You might want to have a look at busybox which also use a "config" file
    for its build system and have several different configuration for its
    binary packages.

    Cheers,
    --
    Jérémy Bobbio .''`.
    lunar@debian.org : :Ⓐ : # apt-get install anarchism
    `. `'`
    `-

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFIN83C2PUjs9fQ72URAiXaAJ913bXJILnRnfGpMXjw1g 6n4TD8LgCff5SU
    ASAojq8zSkN0hHApBrl1iRY=
    =jLsv
    -----END PGP SIGNATURE-----


  5. Re: wpasupplicant udeb

    Jrmy Bobbio wrote:
    > On Fri, May 23, 2008 at 04:09:48PM +0800, Glenn wrote:
    >
    >> It will still build the deb and clients at the moment, which as stated
    >> earlier, some sort of seperate config needs to be made for the udeb.
    >>

    >
    > If you can provide a patch doing so for review, it would be great.
    >
    > You might want to have a look at busybox which also use a "config" file
    > for its build system and have several different configuration for its
    > binary packages.
    >
    > Cheers,
    >

    I'll fire off an email to the wpasupplicant list before I start doing
    patches for the package. This patch was meant just for testing purposes,
    which is what I thought Frans wanted. I'll get back with any questions
    or concerns that may arise from this.

    Cheers

    Glenn


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  6. Re: wpasupplicant udeb

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Jrmy Bobbio wrote:
    > On Fri, May 23, 2008 at 04:09:48PM +0800, Glenn wrote:
    >> It will still build the deb and clients at the moment, which as stated
    >> earlier, some sort of seperate config needs to be made for the udeb.

    >
    > If you can provide a patch doing so for review, it would be great.
    >
    > You might want to have a look at busybox which also use a "config" file
    > for its build system and have several different configuration for its
    > binary packages.
    >
    > Cheers,

    After talking with one of the wpasupplicant maintainers, he has kindly
    agreed to help get an acceptable patch for a wpasupplicant udeb.
    CC'ing him in on this thread. Hopefully we should have a patch
    together in the next few days.

    Cheers

    Glenn
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFIOXiHV8GyuTwyskMRAkb2AJ9gqJWThe5sSnDipCPCoY rRhQe+1QCfVIJQ
    EDil13798f36mwRUrcc57XI=
    =tK38
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  7. Re: wpasupplicant udeb

    On Monday 26 May 2008 00:32:39 Glenn Saberton wrote:
    > Jrmy Bobbio wrote:
    > > On Fri, May 23, 2008 at 04:09:48PM +0800, Glenn wrote:
    > >> It will still build the deb and clients at the moment, which as stated
    > >> earlier, some sort of seperate config needs to be made for the udeb.

    > >
    > > If you can provide a patch doing so for review, it would be great.
    > >
    > > You might want to have a look at busybox which also use a "config" file
    > > for its build system and have several different configuration for its
    > > binary packages.
    > >
    > > Cheers,

    > After talking with one of the wpasupplicant maintainers, he has kindly
    > agreed to help get an acceptable patch for a wpasupplicant udeb.
    > CC'ing him in on this thread. Hopefully we should have a patch
    > together in the next few days.


    Attached is an initial patch against current state of wpasupplicant package
    in version control. Glenn and I haven't nailed down the exact build
    configuration of wpa_supplicant that will be used, but we'd really like some
    feedback about the packaging changes at this time.

    Also, do you think compiling in support for debug messages about association
    is something that would be useful to have in the debian-installer environment
    for occasions when manual troubleshooting is required? A fair amount of binary
    size can be shaved off without it, but unsure if that is wise.

    Thanks, Kel.
    ---
    --- a/debian/control
    +++ b/debian/control
    @@ -38,3 +38,16 @@
    to connect to. It also provides a method for browsing 802.11 SSID scan
    results, an event history log of messages generated by wpa_supplicant,
    and a method to add or edit wpa_supplicant networks.
    +
    +Package: wpasupplicant-udeb
    +Section: debian-installer
    +Architecture: any
    +XC-Package-Type: udeb
    +Depends: ${shlibsepends}, dhcp-client-udeb | dhcp3-client-udeb | pump-udeb, ethernet-card-detection
    +Description: Client support for WPA and WPA2 (IEEE 802.11i)
    + WPA and WPA2 are methods for securing wireless networks, the former
    + using IEEE 802.1X, and the latter using IEEE 802.11i. This software
    + provides key negotiation with the WPA Authenticator, and controls
    + association with IEEE 802.11i networks.
    + .
    + This is a udeb of wpasupplicant for use by the Debian installer.
    --- /dev/null
    +++ b/debian/config/udeb
    @@ -0,0 +1,12 @@
    +# Debian Installer's wpa_supplicant build time configuration
    +CONFIG_DRIVER_WEXT=y
    +CONFIG_BACKEND=file
    +#CONFIG_NO_STDOUT_DEBUG=y
    +CONFIG_DEBUG_FILE=y
    +CONFIG_NO_AES_EXTRAS=y
    +CONFIG_NO_CONFIG_WRITE=y
    +CONFIG_NO_CONFIG_BLOBS=y
    +CONFIG_MAIN=main
    +CONFIG_OS=unix
    +CONFIG_ELOOP=eloop
    +CONFIG_L2_PACKET=linux
    --- a/debian/rules
    +++ b/debian/rules
    @@ -9,6 +9,7 @@
    WPAGUI=wpa_gui-qt4

    CFLAGS = -Wall -g
    +UDEB_CFLAGS = -Wall -g -Os
    LDFLAGS = -Wl,--as-needed

    ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    @@ -62,6 +63,13 @@
    dh_testroot
    dh_clean -k
    dh_installdirs
    + dh_install
    +
    + # udeb for debian installer
    + $(MAKE) -C wpa_supplicant clean; $(RM) wpa_supplicant/.config
    + cp -v debian/config/udeb wpa_supplicant/.config
    + CFLAGS="$(UDEB_CFLAGS)" $(MAKE) -C wpa_supplicant wpa_supplicant
    + dh_install -pwpasupplicant-udeb wpa_supplicant/wpa_supplicant sbin/

    # ifupdown
    install --mode=755 -D debian/ifupdown/ifupdown.sh \
    @@ -94,7 +102,6 @@
    dh_installchangelogs wpa_supplicant/ChangeLog
    dh_installdocs
    dh_installexamples
    - dh_install
    dh_installlogrotate --package=wpasupplicant --name=wpa_action
    dh_installlogrotate --package=wpasupplicant --name=wpa_supplicant
    dh_installinit --package=wpasupplicant --name=wpa-ifupdown --no-start-- start 15 0 6 .
    ---


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  8. Re: wpasupplicant udeb

    Il giorno ven, 23/05/2008 alle 16.09 +0800, Glenn ha scritto:
    > Ok, here it is. Its based on debians svn release of wpasupplicant as it
    > has a patch which allows us to build without EAP. It will still build
    > the deb and clients at the moment, which as stated earlier, some sort of
    > seperate config needs to be made for the udeb.


    Glenn,
    why did you comment out the madwifi driver?
     # Driver interface for madwifi driver
    -CONFIG_DRIVER_MADWIFI=y
    +#CONFIG_DRIVER_MADWIFI=y
    # Change include directories to match with the local setup
    -CFLAGS += -I../debian/madwifi-headers
    +#CFLAGS += -I../debian/madwifi-headers

    IIRC eeePC installer needs madwifi.

    Bye
    Stefano

    --
    Stefano Canepa aka sc: sc@linux.it - http://www.stefanocanepa.it
    Three great virtues of a programmer: laziness, impatience and hubris.
    Le tre grandi virtù di un programmatore: pigrizia, impazienza e
    arroganza. (Larry Wall)

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQBIOcjhl8XQY46MbvERAsrfAJ0dI4cgRXBMyvSQY/CZUlrMCyz3ZACfQ81Q
    6kMFzdgNqQuq9PGWlJn+FBQ=
    =aCKa
    -----END PGP SIGNATURE-----


  9. Re: wpasupplicant udeb

    On Sunday 25 May 2008, Stefano Canepa wrote:
    > why did you comment out the madwifi driver?
    >  # Driver interface for madwifi driver
    > -CONFIG_DRIVER_MADWIFI=y
    > +#CONFIG_DRIVER_MADWIFI=y
    > # Change include directories to match with the local setup
    > -CFLAGS += -I../debian/madwifi-headers
    > +#CFLAGS += -I../debian/madwifi-headers
    >
    > IIRC eeePC installer needs madwifi.


    No, it needs the replacement of madwifi, which is ath5k. madwifi is a
    non-free out-of-tree driver which we cannot support in D-I anyway.

    Cheers,
    FJP

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQBIOcxTgm/Kwh6ICoQRAldeAJ4ph6YuG6Nvz69/8ml2aeWl73G11QCfVi/r
    lFAACZPS9AG+1R9Bgr0vQJ0=
    =5esq
    -----END PGP SIGNATURE-----


  10. Re: wpasupplicant udeb

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Frans Pop wrote:
    > On Sunday 25 May 2008, Stefano Canepa wrote:
    >> why did you comment out the madwifi driver?
    >>  # Driver interface for madwifi driver
    >> -CONFIG_DRIVER_MADWIFI=y
    >> +#CONFIG_DRIVER_MADWIFI=y
    >> # Change include directories to match with the local setup
    >> -CFLAGS += -I../debian/madwifi-headers
    >> +#CFLAGS += -I../debian/madwifi-headers
    >>
    >> IIRC eeePC installer needs madwifi.

    >
    > No, it needs the replacement of madwifi, which is ath5k. madwifi is a
    > non-free out-of-tree driver which we cannot support in D-I anyway.
    >
    > Cheers,
    > FJP


    Beside that, madwifi actually uses wext. The old madwifi backend hasn't
    been recommended for a long time, and afaik is still there because of
    ubuntu.

    Cheers

    Glenn
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFIOgUuV8GyuTwyskMRArX/AJ932TotAsPzXgsQ41kvKy2P0hZcPwCfeuvQ
    N/MnGDPewusvuBu9sY246Js=
    =H/d1
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  11. Re: wpasupplicant udeb

    On Sunday 25 May 2008, Kel Modderman wrote:
    > Also, do you think compiling in support for debug messages about
    > association is something that would be useful to have in the
    > debian-installer environment for occasions when manual troubleshooting is
    > required? A fair amount of binary size can be shaved off without it, but
    > unsure if that is wise.


    How much difference does it make exactly?
    Where do these messages end up? In the syslog or somewhere else?
    Can you give an example of these mesages?


    Regarding the patch:
    +Depends: ${shlibsepends}, dhcp-client-udeb | dhcp3-client-udeb |
    pump-udeb, ethernet-card-detection

    Given that wpa-supplicant is only used from within netcfg which already has
    these dependencies, I would say that this can be simplified to:
    +Depends: ${shlibsepends}


    Other than that the patch looks nice and clean.
    Where is the source repository? I tried to apply the patch to the current
    version in unstable, but that failed miserably...

    Cheers,
    FJP

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQBIOpUegm/Kwh6ICoQRAnb7AJ9syDqqh0vSTF29nhK1Z3qqVyrr7wCfWEZk
    DZnc20ZMx7ZTLUs6ybVBq7I=
    =bY4J
    -----END PGP SIGNATURE-----


  12. Re: wpasupplicant udeb

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Frans Pop wrote:
    > On Sunday 25 May 2008, Kel Modderman wrote:
    >> Also, do you think compiling in support for debug messages about
    >> association is something that would be useful to have in the
    >> debian-installer environment for occasions when manual troubleshooting is
    >> required? A fair amount of binary size can be shaved off without it, but
    >> unsure if that is wise.

    >
    > How much difference does it make exactly?
    > Where do these messages end up? In the syslog or somewhere else?
    > Can you give an example of these mesages?
    >
    >
    > Regarding the patch:
    > +Depends: ${shlibsepends}, dhcp-client-udeb | dhcp3-client-udeb |
    > pump-udeb, ethernet-card-detection
    >
    > Given that wpa-supplicant is only used from within netcfg which already has
    > these dependencies, I would say that this can be simplified to:
    > +Depends: ${shlibsepends}
    >
    >
    > Other than that the patch looks nice and clean.
    > Where is the source repository? I tried to apply the patch to the current
    > version in unstable, but that failed miserably...
    >
    > Cheers,
    > FJP

    Due to needing to disable EAP, and Kel helping with the patch, you need
    the pkg-wpa subversion available on svn.debian.org. Hopefully this will
    get sorted upstream, but for now Kel has made a patch and also moved
    config files around in preperation for the udeb.
    git-svn clone svn://svn.debian.org/pkg-wpa/wpasupplicant/trunk/
    Latest revision is 1168 if you only want that.

    Cheers

    Glenn

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFIOpwpV8GyuTwyskMRAt1sAJ97fhI4gV5qsC0YMoZCLu KjZS++egCfTQfK
    pEuqomTAVntvZBkDfJRsPfg=
    =A9f3
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  13. Re: wpasupplicant udeb

    On Monday 26 May 2008 20:46:43 Frans Pop wrote:
    > On Sunday 25 May 2008, Kel Modderman wrote:
    > > Also, do you think compiling in support for debug messages about
    > > association is something that would be useful to have in the
    > > debian-installer environment for occasions when manual troubleshooting is
    > > required? A fair amount of binary size can be shaved off without it, but
    > > unsure if that is wise.

    >
    > How much difference does it make exactly?


    To quote the upstream documentation:

    # Remove debugging code that is printing out debug message to stdout.
    # This can be used to reduce the size of the wpa_supplicant considerably
    # if debugging code is not needed. The size reduction can be around 35%
    # (e.g., 90 kB).
    #CONFIG_NO_STDOUT_DEBUG=y

    > Where do these messages end up? In the syslog or somewhere else?


    stdout or to file when the "-f " command line option is used.

    > Can you give an example of these mesages?


    There are different message priorities controlled by the -q and -d command line
    arguments. Each -d argument given to wpa_supplicant increases verbosity output.
    By default the wpa_supplicant daemon prints major events and errors to stdout.

    ---
    Trying to associate with 00:13:10:41:7e:1f (SSID='kelnet' freq=2412 MHz)
    Associated with 00:13:10:41:7e:1f
    WPA: Key negotiation completed with 00:13:10:41:7e:1f [PTK=TKIP GTK=TKIP]
    CTRL-EVENT-CONNECTED - Connection to 00:13:10:41:7e:1f completed (auth) [id=6 id_str=kelnet]
    ---

    Increasing the debug will yield information about wpa_supplicant state machine,
    actions and reasons for making actions, and dumps of data being processed.
    These can have timestamps too. An example would be too large and uninteresting
    to post to this list.

    The debugging may not be useful per default, but it could just be worth keeping
    so that there is an attack vector for people reporting problems about using a
    wpa enabled netcfg, so that they be able to manually invoke wpa_supplicant on
    another terminal to capture output for analysis (eg. to find out why
    association to desired access point failed). It just depends if this need is
    valid and able to offset the desire for very small binary size.

    >
    >
    > Regarding the patch:
    > +Depends: ${shlibsepends}, dhcp-client-udeb | dhcp3-client-udeb |
    > pump-udeb, ethernet-card-detection
    >
    > Given that wpa-supplicant is only used from within netcfg which already has
    > these dependencies, I would say that this can be simplified to:
    > +Depends: ${shlibsepends}


    Thanks, will do that.

    >
    >
    > Other than that the patch looks nice and clean.
    > Where is the source repository? I tried to apply the patch to the current
    > version in unstable, but that failed miserably...


    A recent bug required shuffle around, and provision of arch specific build
    configuration handling.

    Vcs-Svn: svn://svn.debian.org/pkg-wpa/wpasupplicant/trunk
    Vcs-Browser: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/

    Thanks, Kel.


    --
    To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread