http://wiki.webos-internals.org/api.php?action=feedcontributions&user=Brybry&feedformat=atomWebOS Internals - User contributions [en]2024-03-29T11:31:48ZUser contributionsMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=User_talk:Brybry&diff=21535User talk:Brybry2012-02-02T04:10:46Z<p>Brybry: Created page with "== Building Kismet for Touchpad == ('''Warning:''' This is very raw and I haven't even tried it twice to verify that it works. Some of these commands need sudo. Do everything at ..."</p>
<hr />
<div>== Building Kismet for Touchpad ==<br />
('''Warning:''' This is very raw and I haven't even tried it twice to verify that it works. Some of these commands need sudo. Do everything at your own risk.)<br />
<br />
<br />
First we checkout optware from NSLU2 (which includes a toolchain and build targets)<br />
<pre><br />
$ cd /srv<br />
$ svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware<br />
</pre><br />
<br />
Then we need to set our target and setup our toolchain<br />
<pre><br />
$ cd optware; make cs08q1armel-target<br />
$ cd cs08q1armel; make directories toolchain ipkg-utils<br />
</pre><br />
<br />
<br />
Now we need to set up the Kismet mk-file to point to a recent build of kismet<br />
<br />
Open <tt>make/kismet.mk</tt> with your favorite text editor.<br />
<br />
Below are the changes I made, it needs to be cleaned up and probably unset KISMET_PATCHES instead of commenting things out.<br />
<source lang="diff"><br />
24c24,25<br />
< KISMET_VERSION=2007-01-R1b<br />
---<br />
> #KISMET_VERSION=2007-01-R1b<br />
> KISMET_VERSION=2011-03-R2<br />
97c98,99<br />
< kismet-source: $(DL_DIR)/$(KISMET_SOURCE) $(KISMET_PATCHES)<br />
---<br />
> #kismet-source: $(DL_DIR)/$(KISMET_SOURCE) $(KISMET_PATCHES)<br />
> kismet-source: $(DL_DIR)/$(KISMET_SOURCE)<br />
117c119,120<br />
< $(KISMET_BUILD_DIR)/.configured: $(DL_DIR)/$(KISMET_SOURCE) $(KISMET_PATCHES) make/kismet.mk<br />
---<br />
> #$(KISMET_BUILD_DIR)/.configured: $(DL_DIR)/$(KISMET_SOURCE) $(KISMET_PATCHES) make/kismet.mk<br />
> $(KISMET_BUILD_DIR)/.configured: $(DL_DIR)/$(KISMET_SOURCE) make/kismet.mk<br />
121,124c124,127<br />
< if test -n "$(KISMET_PATCHES)" ; \<br />
< then cat $(KISMET_PATCHES) | \<br />
< patch -d $(BUILD_DIR)/$(KISMET_DIR) -p1 ; \<br />
< fi<br />
---<br />
> # if test -n "$(KISMET_PATCHES)" ; \<br />
> # then cat $(KISMET_PATCHES) | \<br />
> # patch -d $(BUILD_DIR)/$(KISMET_DIR) -p1 ; \<br />
> # fi<br />
155c158<br />
< $(MAKE) -C $(@D) LIBS=-lm<br />
---<br />
> $(MAKE) -C $(@D) LIBS="-lm -ldl"<br />
</source><br />
<br />
Next we make kismet and create the ipk<br />
<pre><br />
$ cd /srv/optware/cs08q1armel<br />
$ make kismet kismet-ipk<br />
</pre><br />
<br />
Now if everything went well you should have an ipk in your target build directory that can be installed using ipkg-opt.<br />
<br />
'''Three things you'll probably run into:'''<br />
* First either curses or pcap will error out saying it couldn't create a file because of a bin directory not existing. You'll have to go into the staging directory and create that directory and run make again.<br />
<br />
*Second you might run into errors (<tt>undefined reference to `dlclose'</tt> while making kismet. Try <tt>LIBS="-lm -ldl" make kismet</tt> in that case. At worst you'll have to edit a kismet makefile but I don't believe I had to.<br />
<br />
* Third the config files may or may not actually get included in the ipk. If not copy those from <tt>builds/kismet/conf</tt> to <tt>/opt/etc/kismet</tt> on your device (and probably edit them to set gps to false)<br />
<br />
<br />
== Building Compat-Wireless for Touchpad ==<br />
Coming soon?</div>Brybry