[Nook Color Android Development] macndroid:
I tried to get an ad-hoc connection running using directions under the G1 subforum. This was the post:

xdaforums.com/showpost.php?p=2886271&postcount=13

I figured if the G1 could connect to an ad-hoc, the Nook should be able to. I got part of the way through this and ran into some road-blocks. Some of this is directly copied from the post above - I certainly am not savvy enough to put this all together myself. I had installed busybox before I started doing any of these steps.

First, make sure wifi is disabled on the phone gui.

Next, Set up the ad-hoc network. I used android wifi tether on my HTC G1 to start broadcasting. The SSID was "g1". I set it to use the 192.168.3.0 subnet. No encryption, no access control.

copy /system/etc/wifi/tiwlan.ini to /data/local/bin/tiwlan.ini for easy editing

In tiwlan.ini, look for "WiFiAdhoc = 0".

Change it to the following (set ssid to whatever you use):

WiFiAdhoc = 1

dot11DesiredSSID = g1

dot11DesiredBSSType = 0

After updating tiwlan.ini, enable wifi manually:

adb shell

# insmod /system/etc/wifi/tiwlan_drv.ko

# tiwlan_loader -f /system/etc/wifi/firmware.bin -e /proc/calibration -i /data/local/bin/tiwlan.ini

# ifconfig tiwlan0 192.168.3.99 netmask 255.255.255.0

# ifconfig tiwlan0 up

ifconfig showed the tiwlan0 interface was up.

lo

Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tiwlan0

Link encap:Ethernet HWaddr 08:00:28:7F:57: DB

inet addr:192.168.3.99 Bcast:192.168.3.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

I then discovered I had no iptables binary, so I pulled it off the rooted HTC G1.

adb pull /data/data/android.tether/bin/iptables

adb shell

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

# exit

adb push ./iptables /system/bin/iptables

adb shell

# chmod 755 /system/bin/iptables

# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system

Now, from the OP's post, the iptables rules:

iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

gave this error:

iptables v1.3.7: can't initialize iptables table `filter': iptables who? (do you need to insmod?)

Perhaps iptables or your kernel needs to be upgraded.

when I run modprobe I get: "modprobe: cannot parse modules.dep"

<stopped here>

____________________________________________________

The rest of the commands I didn't bother to run:

iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT

iptables -P FORWARD DROP

iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE  echo 1 > /proc/sys/net/ipv4/ip_forward

If all went well, you now have internet access.

____________________________________________________

I also tried the wpa_supplicant hack from:

xdaforums.com/showthread.php?t=754961&page=1

This didn't work, with either the version 0.5.11 or 0.6.10 of wpa_supplicant. Version 0.5.11 allows the wifi to start but I get a "unable to scan networks" error. The 0.6.10 version won't even start wifi.

Restoring the original wpa_supplicant and setting permissions back to 755 brought the wifi back

Anyone with more skills than I have any ideas?