Hi Team,

Please ignore my earlier help request "mtd-osx.patch make error (chetan nain)". It turned out that i had not done a 'apt-get install build-tools" prior. My bad :).

However, onto the issue i have been facing from a long time. I am trying to build the buildroot with microwindows. The OS is Xubuntu and i have tried building microwin with a number of revisions 1533 onwards. Trying with 1541 now.

However, whenever i have tried to do so, i consistently get the following errors:

************************************
make[2]: Leaving directory `/root/gumstix-buildroot/build_arm_nofpu/microwin/src/drivers'
Compiling engine/devopen.c ...
Compiling engine/devdraw.c ...
Compiling nanox/nxdraw.c ...
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/engine/devopen.c:18:20: error: device.h: No such file or directory
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/engine/devopen.c:19:18: error: swap.h: No such file or directory
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/engine/devopen.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gr_foreground'
*************************************

These errors consistently repeat themselves as such:

*************************************
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/engine/devopen.c:171: error: expected ')' before 'psd'
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/engine/devopen.c:184: error: expected ')' before 'psd'
make[2]: *** [/root/gumstix-buildroot/build_arm_nofpu/microwin/src/obj/engine/devopen.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/root/gumstix-buildroot/build_arm_nofpu/microwin/src/obj/engine/devdraw.o] Error 1
make[2]: Leaving directory `/root/gumstix-buildroot/build_arm_nofpu/microwin/src/mwin'
make[1]: *** [subdir-/root/gumstix-buildroot/build_arm_nofpu/microwin/src/mwin] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling nanox/nxtransform.c ...
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxdraw.c:8:20: error: nano-X.h: No such file or directory
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxdraw.c:9:20: error: nxdraw.h: No such file or directory
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxdraw.c:12: error: expected ')' before 'id'

/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxutil.c:11:20: error: nano-X.h: No such file or directory
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxutil.c:12:20: error: device.h: No such file or directory
*********************************************

And finally fails with:

*********************************************
/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox/nxutil.c:264: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GrNewRegionFromPixmap'
make[2]: *** [/root/gumstix-buildroot/build_arm_nofpu/microwin/src/obj/nanox/nxtransform.o] Error 1
make[2]: *** [/root/gumstix-buildroot/build_arm_nofpu/microwin/src/obj/nanox/nxutil.o] Error 1
make[2]: Leaving directory `/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox'
make[1]: *** [subdir-/root/gumstix-buildroot/build_arm_nofpu/microwin/src/nanox] Error 2
make[1]: Leaving directory `/root/gumstix-buildroot/build_arm_nofpu/microwin/src'
make: *** [/root/gumstix-buildroot/build_arm_nofpu/microwin/src/bin/nano-X] Error 2
**********************************************

As far as i checked in the source tree for microwin in buildroot, the header files are present. I am a burning newbie at this, and really have no more idea on how to proceed.

I am at a loss here.

Thanks in advance.


*********************************************



On 10/14/07, gumstix-users-request@lists.sourceforge.net <gumstix-users-request@lists.sourceforge.net> wrote:
Send gumstix-users mailing list submissions to
        gumstix-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
         https://lists.sourceforge.net/lists/listinfo/gumstix-users
or, via email, send a message with subject or body 'help' to
         gumstix-users-request@lists.sourceforge.net

You can reach the person managing the list at
        gumstix-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gumstix-users digest..."


Today's Topics:

   1. Wiki page for net-wifi-microusd (Dave Hylands)
   2. Need help getting audio working (timcrawford@comcast.net)
   3. mtd-osx.patch make error (chetan nain)


----------------------------------------------------------------------

Message: 1
Date: Sun, 14 Oct 2007 00:25:46 -0700
From: "Dave Hylands" <dhylands@gmail.com>
Subject: [Gumstix-users] Wiki page for net-wifi-microusd
To: "General mailing list for gumstix users."
        <gumstix-users@lists.sourceforge.net>
Message-ID:
        < c32efac40710140025h3ef8a364w4230172e6266f5e0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I started a net-wifi-microusd page:
< http://docswiki.gumstix.com/Net-wifi-microusd>

which describes what I did to create my version of buildroot.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/



------------------------------

Message: 2
Date: Sun, 14 Oct 2007 09:07:39 +0000
From: timcrawford@comcast.net
Subject: [Gumstix-users] Need help getting audio working
To: gumstix-users@lists.sourceforge.net
Message-ID:
        < 101420070907.18649.4711DC5B0003CC0E000048D922007456720B9D0100990E9D0C03079B@comcast.net>


Hi all,

I can not get my autiostixII working.  I have tried modprobing all the snd* drivers
It seems the mixer is not working.  Any suggestions?

tim


# lsmod
Module                  Size  Used by
snd_soc_gumstix         1764  0
snd_soc_ac97            2688  1 snd_soc_gumstix
snd_soc_pxa2xx_ac97     6244  2 snd_soc_gumstix,snd_soc_ac97
snd_soc_pxa2xx          4416  1 snd_soc_gumstix
snd_soc_core           26560  2 snd_soc_ac97,snd_soc_pxa2xx
snd_ac97_codec        102892  1 snd_soc_ac97
ac97_bus                1856  2 snd_soc_core,snd_ac97_codec
ipv6                  259744  12
mcf25                 198480  0
cfio                    5056  1 mcf25
pxa2xx_cs               2980  0
pxa2xx_core            10400  1 pxa2xx_cs
pcmcia                 25384  1 cfio
firmware_class          7552  1 pcmcia
pcmcia_core            31184  4 mcf25,cfio,pxa2xx_core,pcmcia
af_packet              17608  2
smc91x                 16680  0
mii                     4736  1 smc91x
gumstix_smc91x          2816  1 smc91x
snd_pcm_oss            39104  0
snd_pcm                67301  4 snd_soc_pxa2xx,snd_soc_core,snd_ac97_codec,snd_pcm_oss
snd_timer              20548  1 snd_pcm
snd_page_alloc          5928  1 snd_pcm
snd_mixer_oss          14752  1 snd_pcm_oss
snd                    46804  6 snd_soc_core,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
nls_iso8859_1           3872  1
nls_cp437               5536  1
vfat                   10112  1
fat                    46492  1 vfat
nls_base                6752  4 nls_iso8859_1,nls_cp437,vfat,fat
soundcore               6628  1 snd
pxamci                  6336  0
mmc_block               6792  2
mmc_core               22324  2 pxamci,mmc_block
unix                   24308  18
# aumix -v100
aumix:  error opening mixer
# bplay /mnt/mmc/1-01-Hotel-California.wav
bplay: /dev/dsp: No such file or directory
# uname -a
Linux gumstix 2.6.21gum #1 PREEMPT Wed Sep 26 00:40:43 PDT 2007 armv5tel unknown
#



------------------------------

Message: 3
Date: Sun, 14 Oct 2007 05:14:15 -0400
From: "chetan nain" < chetan.nain@gmail.com>
Subject: [Gumstix-users] mtd-osx.patch make error
To: gumstix-users@lists.sourceforge.net
Message-ID:
        <19fb04960710140214u67037941lb999b16397dc9e8f@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Guys,

I am trying to build my buildroot and tried with different snv revisions
(1531 through 1541). I am using xubuntu. However, the make always fails with
the following error:

zcat /root/gumstix-buildroot/dl/mtd- utils-1.0.0.tar.gz | tar -C
/root/gumstix-buildroot/build_arm_nofpu   -xf -
toolchain/patch-kernel.sh /root/gumstix-buildroot/build_arm_nofpu/mtd-
utils-1.0.0 package/mtd \*.patch

Applying mtd-osx.patch using plaintext:
toolchain/patch-kernel.sh: 45: patch: not found
Patch failed!  Please fix mtd-osx.patch!
make: *** [/root/gumstix-buildroot/build_arm_nofpu/mtd-utils-1.0.0/Makefile]
Error 1

This is really strange, since, at my work PC, when i tried building on the
same OS and same revisions, i did not get this error (although those errors
were related to dependency errors with microwin).

I am at my wits end here. Any help is greatly appreciated.

cheers,
Chetan

On 10/14/07, gumstix-users-request@lists.sourceforge.net <
gumstix-users-request@lists.sourceforge.net > wrote:
>
> Send gumstix-users mailing list submissions to
>         gumstix-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.sourceforge.net/lists/listinfo/gumstix-users
> or, via email, send a message with subject or body 'help' to
>         gumstix-users-request@lists.sourceforge.net
>
> You can reach the person managing the list at
>         gumstix-users-owner@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gumstix-users digest..."
>
>
> Today's Topics:
>
>    1. Re: shared librarys for player on gumstix (Chad George)
>    2. Re: avr_gcc build problem (Paul Licato)
>    3. Re: shared librarys? (John Cummins)
>    4. Re: shared librarys? (Dave Hylands)
>    5. A bridge too far? (Mark Hargrove)
>    6. Use GPSstix to set system time with NTP (Pete Morici)
>    7. Re: Wifi on netwifimicrosd-vx (Julien Lebot)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 13 Oct 2007 14:34:22 -0400
> From: "Chad George" <chad@mgproductscnc.com>
> Subject: Re: [Gumstix-users] shared librarys for player on gumstix
> To: "General mailing list for gumstix users."
>         <gumstix-users@lists.sourceforge.net>
> Message-ID:
>         < a61d26bb0710131134p36d516c0xc740f1385e9a9ee7@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> John, here is a link to the relevant discussion about fixing shared
> libraries.
>
> http://www.nabble.com/is-ldd-working--t4466702.html
>
> I haven't duplicated this myself (yet) and I haven't seen anyone say
> they have submitted a patch to fix it. But they claim to have done it
> and my own research on the problem was heading in the same direction.
>
> -Chad
>
>
> On 10/13/07, Dave Hylands < dhylands@gmail.com> wrote:
> > Hi John,
> >
> > On 10/13/07, John Cummins <jrpcummins@yahoo.com> wrote:
> > > I can compile player on my desktop and scp it to gumstix but when I
> try to
> > > run it
> > > on gumstix I get
> > >
> > > # ./player create.cfg
> > > ./player: can't load library 'libstdc++.so.6'
> >
> > > Questions
> > > 1) can anyone confirm/disprove my diagnosis?
> >
> > I can't tell from a configure parameters whether a given library will
> > be shared or not, only from looking at the compiler command line. I
> > know that if you pass in -static to g++/gcc when compiling and when
> > linking, then you'll get a statically linked executable.
> >
> > The C++ hello world program went from a measly 7K to 2.9Mb.
> >
> > > 2) Is there a way to turn off shared in buildroot?
> >
> > buildroot supports both shared and dynamic. You just need to pass in
> > the correct flags.
> >
> > > I would prefer to use static library's and avoid the complications of
> > > shared on
> > > gumstix.  Chad George reports that some one has fixed shared libs on
> > > gumstix.
> > > I have not been able to find this. so
> >
> > > 3)Could someone give a pointer to getting shared libs running on
> gumstix
> >
> > Just make sure that -static is passed to both the compiler and linker
> > portions and you should be good to go.
> >
> > > 4)gumstix reboots often when i'm scp ing files to it, any ideas?
> >
> > This is usually a power issue. What boards do you have? and what are
> > you using as a power supply?
> >
> > --
> > Dave Hylands
> > Vancouver, BC, Canada
> > http://www.DaveHylands.com/
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > gumstix-users mailing list
> > gumstix-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gumstix-users
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 13 Oct 2007 22:18:08 +0000 (UTC)
> From: Paul Licato <plicato@gmail.com>
> Subject: Re: [Gumstix-users] avr_gcc build problem
> To: gumstix-users@lists.sourceforge.net
> Message-ID: <loom.20071013T221121-220@post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
>
> OK, I can compile the robostix examples now.  First, I forgot to
> change test.all/build.test per the wiki.  But it still failed as before:
>
> + find .
> + xargs file
> + grep executable
> + grep ELF
> + cut -f 1 -d :
> + xargs strip --strip-unneeded
> + find+ xargs+ grep shared object
> + grep ELF
> .
> file
> + cut -f 1 -d :
> + xargs strip --strip-unneeded
> ./build.test: 58: Syntax error: "(" unexpected
>
> Therefore, it's the build test that's failing... avr-gcc had compiled
> fine.
> After installing gawk (it was missing), I was able to compile the Robostix
> examples.
>
> Thanks
> Paul
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 13 Oct 2007 15:48:46 -0700 (PDT)
> From: John Cummins < jrpcummins@yahoo.com>
> Subject: Re: [Gumstix-users] shared librarys?
> To: gumstix-users@lists.sourceforge.net,
>         playerstage-users@lists.sourceforge.net
> Message-ID: <371025.7370.qm@web35806.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Dave, thanks for your helpful comments
>
> I could not get player to compile completely statically. Finally, I
> copied  libstdc++.so.6
> to  /lib on the gumstix  and every thing worked.  So I guess  shared  libs
> work on the gumstix. I can't remember  why I thought  they wouldn't!
>
> On the rebooting problem when scp'ing. I was using the 5v wall power
> supply I got from gumstix.  My configuration is :-
>             WifiSix
>            Gumstix Connex
>             Robostix
> with the wall power going to Robostix.
> Your comment recalled to me that continually rebooting was the sign that I
> needed to replace the battery's  when I  was  using a battery pack. So I
> fixed the problem by whenever I needed to scp connect the 5v battery to the
> WifiStix in addition to the wall supply on Robostix. So far it has worked
> with no problems.
>
> John Cummins
>
>
>
> ---------------------------------
> Tonight's top picks. What will you watch tonight? Preview the hottest
> shows on Yahoo! TV.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Sat, 13 Oct 2007 15:55:25 -0700
> From: "Dave Hylands" < dhylands@gmail.com>
> Subject: Re: [Gumstix-users] shared librarys?
> To: "General mailing list for gumstix users."
>         < gumstix-users@lists.sourceforge.net>
> Message-ID:
>         <c32efac40710131555y31ce7363i8c4a617f92ce33b2@mail.gmail.com >
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi John,
>
> > I could not get player to compile completely statically. Finally, I
> copied
> > libstdc++.so.6
> > to  /lib on the gumstix  and every thing worked.  So I
> guess  shared  libs
> > work on the gumstix. I can't remember  why I thought  they wouldn't!
> >
> > On the rebooting problem when scp'ing. I was using the 5v wall power
> supply
> > I got from gumstix.  My configuration is :-
> >           WifiSix
> >           Gumstix Connex
> >           Robostix
> > with the wall power going to Robostix.
> > Your comment recalled to me that continually rebooting was the sign that
> I
> > needed to replace the battery's  when I  was  using a battery pack. So I
> > fixed the problem by whenever I needed to scp connect the 5v battery to
> the
> > WifiStix in addition to the wall supply on Robostix. So far it has
> worked
> > with no problems.
>
> Yeah - that's the right solution. The robostix has a 500ma regulator
> on it, and the wifisitx/gumstix combination draws more than 500ma when
> the wifistix is transmitting, so it caused the robostix regulator to
> overheat and shutdown, thus resetting the gumstix.
>
> Powering both the wifistix and the robostix gets around the problem.
> There is also a solution over here as well:
> <http://pubs.gumstix.com/documents/robostix_power.pdf >
>
> Connecting V_BATT to V_ROBOBATT does essentially the same thing as
> powering both the robostix and the wifistix.
>
> --
> Dave Hylands
> Vancouver, BC, Canada
> http://www.DaveHylands.com/
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sat, 13 Oct 2007 22:38:44 -0600
> From: "Mark Hargrove" < mark@thehargroves.com>
> Subject: [Gumstix-users] A bridge too far?
> To: "'General mailing list for gumstix users.'"
>         < gumstix-users@lists.sourceforge.net>
> Message-ID: <20071014043842.C6A8818D0032@mail.thehargroves.com>
> Content-Type: text/plain; charset="us-ascii"
>
> My ultimate objective with my gumstix project is sort of a dumb one -- I
> want to simply run a browser on the Samsung LCD touchscreen and be able to
> interact with a webserver that I run at home.  This is  part of a home
> automation project -- I need a tiny, touchscreen controllable system that
> can talk on my wireless network at home.  I got pretty excited when the
> verdex/netwifi-microSD/consoleLCD-vx all came together -- it seemed like
> the
> perfect combo.
>
> I wondering now if I've made a mistake.  At best, I'm an enlightened
> amateur
> when it comes to kernel building for Linux, and while I'm able to
> successfully follow in the footsteps of others of you with way more
> knowledge, I'm finally starting to appreciate that I may have bitten off
> more than can chew with the gumstix.  To get to my final result, I still
> need to
>
> -- get WPA wireless networking running  (I hate the idea of exposing my
> home
> wifi network with WEP)
> -- get a windowing system capable of running a browser installed and
> running
> on the gumstix
> -- get the touchscreen working (the LCD already works)
> -- get a browser running on the gumstix
>
> At this stage, I haven't a clue how to proceed with any of these tasks.
> >From mailing list traffic it seems that WPA wifi isn't working for
> anybody
> yet, and I haven't seen any posts about a windowing system for the verdex
> MB.  Are there any small enough to fit?
>
> Anyway:  I'd appreciate advice from the group -- is the gumstix not really
> a
> good platform for a non-kernel hacker type?
>
> -M.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 6
> Date: Sun, 14 Oct 2007 00:39:03 -0400
> From: "Pete Morici" < pvmorici@gmail.com>
> Subject: [Gumstix-users] Use GPSstix to set system time with NTP
> To: gumstix-users@lists.sourceforge.net
> Message-ID:
>         <5c9632b60710132139r2a3e2f4co86ade7f8f584a6ce@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Does anyone know how to configure NTP to set the system time from the
> GPS output?
>
> The wiki says it is possible but the NTP documentation is anything but
> straight forward on this matter.  The Gumstix wiki is kind of sparse
> on the subject as well...
>
>
> http://docwiki.gumstix.org/Frequently_asked_questions/GPSstix_and_Audiostix2#What_can_I_do_with_the_GPS_data_on_the_gumstix.3F
>
> Thanks,
> -Pete
>
>
>
> ------------------------------
>
> Message: 7
> Date: Sun, 14 Oct 2007 14:41:19 +0800
> From: Julien Lebot < 30579108@student.murdoch.edu.au>
> Subject: Re: [Gumstix-users] Wifi on netwifimicrosd-vx
> To: gumstix-users@lists.sourceforge.net
> Message-ID:
>         <20071014144119.g24dtbfmyicc8k08@wwwstudent.murdoch.edu.au>
> Content-Type: text/plain;       charset=ISO-8859-1;     format="flowed"
>
> Quoting Dave Hylands <dhylands@gmail.com>:
>
> > Hi Julien,
> >
> > On 10/13/07, Julien Lebot < 30579108@student.murdoch.edu.au> wrote:
> >> Dave,
> >>
> >> could you post/send me your kernel .config file please ? It looks like
> >> I'm missing something in my configuration so my kernel keeps panicing.
> >
> > Sure - it's over here:
> > <http://www.DaveHylands.com/gumstix-wiki/verdex-1533-wifi/kernel.config >
> >
> > I also put the patch files I used there as well.
> >
>
> Thanks Dave, it works like a charm.
>
> I have got the wireless to work and with WPA, for those interested I
> used wpa_supplicant:
> wpa_supplicant -B -Dmarvell -imwlan0 -c/etc/wpa-supplicant.conf
>
> and my wpa-supplicant.conf:
>
> # /var/run/wpa_supplicant is the recommended directory
> # for sockets and by default, wpa_cli will use it when trying
> # to connect with wpa_supplicant.
> # default, wpa_cli will use it when trying to connect with wpa_supplicant.
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
>
> # IEEE 802.1X/EAPOL version
> # version (2).
> eapol_version=1
> ap_scan=1
> fast_reauth=1
>
> network={
> ssid="somessid"
> scan_ssid=1
> proto=WPA
> key_mgmt=WPA-PSK
> pairwise=TKIP
> psk="very_secret_passphrase"
> }
>
> finally in /etc/network/interfaces:
>
> auto mwlan0
> iface mwlan0 inet dhcp
>     wpa-driver marvell
>     wpa-ssid somessid
>     wpa-key-mgmt WPA-PSK
>     wpa-psk "very_secret_passphrase"
>
> But this one seems not to do anything.
>
> Hope this help,
> J.
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
>
> ------------------------------
>
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
> End of gumstix-users Digest, Vol 18, Issue 92
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

------------------------------

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


End of gumstix-users Digest, Vol 18, Issue 93
*********************************************