Regarding rndis on linux, or windoze for that matter:
rls -ll .services.net.interface.RNDISFN1
# if this doesn't show the interface, force reconstructing resource tree
restartapp
rls -ll .services.net.interface.RNDISFN1
.services.net.interface.RNDISFN1: (8)
rw--rw--rw---p 0 root root <b> DHCP false
r---r---r----- 0 root root <a> actualAddress "192.168.250.2"
rw--rw--rw--0p 0 root root <a> address "192.168.250.2"
rw--rw--rw--1- 0 root root <b> commit false
rw--rw--rw--0p 0 root root <a> gateway "192.168.250.1"
rw--rw-------- 0 root root <u> mac "02:40:7F:xx:xx:xx"
rw--rw--rw--0p 0 root root <a> netmask "255.255.255.0"
r---r---r----- 0 root root <a> tcpConnects "192.168.250.1"
rset .services.net.interface.RNDISFN1.address 192.168.250.2
rset .services.net.interface.RNDISFN1.gateway 192.168.6.66
rset .services.net.interface.RNDISFN1.commit true
rdump -f \temp\net_gateway.rsc .services.net.interface.RNDISFN1
# inspect .rsc file, and when okay add it to the
move /temp/net_gateway.rsc /FlashFS/system/appcore.d/factory.d/.
restart
For testing purposes the gateway is now set to something different, while
the rest is still at default. Why? Because that way you only have to setup a
default connection between 192.168.250.2 (E4) and 192.168.250.1 (PC), and
you can check if the new setting based on resource has been succesfully
applied or not. I put it in appcore.d right now, but you might want to put network
related stuff in services.d.
If resource based config worked, then you can do a telnet and then "route
print". If you see the 192.168.6.66 test route then it worked. If not, then
not.
Once you get a reliable method (so far it's too flaky) then you can
apply the proper static values you want.
As for usb plug in out in + adding default routes ... no need for all that. You can simply do this:
/etc/udev/rules.d/70-persistent-net.rules#
# Flir E4 met RNDIS
#
# USB device 0x:0x (rndis_host)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:40:7f:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
Then in
/etc/network/interfaces:
auto eth4
iface eth4 inet static
address 192.168.250.1
netmask 255.255.255.0
up arp -i eth4 -s 192.168.250.2 02:40:7f:xx:xx:xx
Obviously change the
xx:xx:xx entries to match your own MAC.
If you want your linux box to route packets for the E4 as well so you can
fuel your paranoia like Taucher, then you'll have to enable forwarding.
Personally I keep this OFF.
If I need ftp forwarded I'll set up a seperate rule for that.
You can also enable DHCP using the above rset method if you feel like it.
SMB should just work. By default there isn't all that much to be had
though. Just the IPC ...
nmblookup -A 192.168.250.2
...
nmblookup IRCAM.... -B 192.168.250.2
querying IRCAM.... on 192.168.250.2
192.168.250.2 IRCAM....<00>
smbclient -L IRCAM....
smbclient '\\IRCAM....\IPC$' 3vlig
And does anyone else get that the battery refuses to charge when it's really
low? Right now it's looooow, so I can start it for maybe 10 seconds and then
it goes poof again. When I show battery stats (hold LEFT + RIGHT cursor) it
shows
Battery: 3%, 13mA ... but no charging (lightning) symbol.
Sound familiar, or do I just have a crappy battery or something?
Oh yeah, and I had some details on flash as well, but can't reach it now
because ... well 3% battery.
And NOT charging, GRRRRR.