Re: usb network card

2008-08-02 Thread arne anka
 http://www.etccomputers.co.nz/shop/main/product.asp?pid=622

at least the usb plug won't match -- the fr has a mini usb port.

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| i am i bit at loss with the current state of avaliable updates (server
| glitches, 404, checksums instead of dates and kernel images/modules).
| - what u-boot is recommended

Tomorrow's U-Boot is recommended.  Current U-Boot has 50% chance per
boot of breaking USB device for the session (including in Linux).

| - what kernel

I'm guessing one from September 2008 or so... until then just keep using
best we got which should normally be today's.

| - how did the missing modules depencies working out and the 0b kernel
| images

The broken packages were fixed by Graeme.  What has changed though is
for ethernet over USB now you need a couple of packages recommended by
Thomas B and to run depmod before you reboot into it:

# opkg install kernel-module-g-ether kernel-module-cdc-ether
# depmod

| is it safe to upgrade w/o spending half a day afterwards to get
everything
| up and running again?

Probably no less safe than usual if you know the above.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiUWocACgkQOjLpvpq7dMq3nwCePazRqxtze1HpZvCbrI+BcB7x
sGoAoIc49Zv4XKPFHauNRs7p3DDu93XY
=9T2K
-END PGP SIGNATURE-

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Marek Lindner
On Saturday, 2. August 2008 21:00:55 Andy Green wrote:
 The broken packages were fixed by Graeme.  What has changed though is
 for ethernet over USB now you need a couple of packages recommended by
 Thomas B and to run depmod before you reboot into it:

 # opkg install kernel-module-g-ether kernel-module-cdc-ether
 # depmod

I did not follow the full discussion on the kernel list. Does this mean you 
are not able to connect via Ethernet over USB unless you install these 
packages ?


Marek

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread arne anka
 # opkg install kernel-module-g-ether kernel-module-cdc-ether
 # depmod

 I did not follow the full discussion on the kernel list. Does this mean  
 you
 are not able to connect via Ethernet over USB unless you install these
 packages ?

apparently.
at least that's what i understand and what triggered my questions.

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| # opkg install kernel-module-g-ether kernel-module-cdc-ether
| # depmod
| I did not follow the full discussion on the kernel list. Does this mean
| you
| are not able to connect via Ethernet over USB unless you install these
| packages ?
|
| apparently.
| at least that's what i understand and what triggered my questions.

It is true.

If you missed the boat on installing the packages before reboot into new
kernel, you can shutdown, pop the SD Card, insert to host and put the
packages on SD Card, reinsert and then reboot and install (and run depmod).

Subsequently kernel updates will also pull in the necessary matching
modules, so this is a one-off hassle.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiUYzUACgkQOjLpvpq7dMpZXgCdFU8Wg0f9UIDMbRahnk5aRMhD
WhMAnROibJY3ekQJmncxT74qs6LtFLkC
=rkE4
-END PGP SIGNATURE-

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Marek Lindner
On Saturday, 2. August 2008 21:37:57 Andy Green wrote:
 If you missed the boat on installing the packages before reboot into new
 kernel, you can shutdown, pop the SD Card, insert to host and put the
 packages on SD Card, reinsert and then reboot and install (and run depmod).

 Subsequently kernel updates will also pull in the necessary matching
 modules, so this is a one-off hassle.

That means we have no way of connecting to a running Neo via USB (if wifi does 
not work) ?? Pretty strange ...
The kernel image and the rootfs image are seperate - we have to tell users: 
Install this kernel and that rootfs or your Ethernet over USB does not 
work ?!

Wolfgang thinks about where to find more kernel module candidates:
- battery driver
- SD card driver
- Glamo driver


Marek

PS: Obviously, Wolfgangs is an ironic hint ...

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Qtopia incoming call

2008-08-02 Thread bijoy franco
Hi,



I am using qtopia on  my freerunner.





Sometimes, there are two incoming calls from same number simultaneously and 
both cannot be answered

And sometimes at dialing end, user get to hear that my phone is switched 
off



Even after volume in profile set as maximum, sound is less audible...Can i 
increase the volume in any other ways





Thanks



Bijoy












___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread arne anka
 so this isn't some switch I threw in the dark while snickering.

curse my imagination, igor ...

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Phone not starting .....!!!!!

2008-08-02 Thread bijoy franco
Hi,



Phone not starting. .!


Bijoy











 - Original Message -
 From: bijoy franco
 Sent: 02/08/08 08:36 pm
 To: support, Openmoko, community, openmoko
 Subject: Qtopia incoming call
 
 
 Hi,
 
 
 
 I am using qtopia on  my freerunner.
 
 
 
 
 
 Sometimes, there are two incoming calls from same number simultaneously 
 and both cannot be answered
 
 And sometimes at dialing end, user get to hear that my phone is switched 
 off
 
 
 
 Even after volume in profile set as maximum, sound is less audible...Can 
 i increase the volume in any other ways
 
 
 
 
 
 Thanks
 
 
 
 Bijoy
 
 
 
 
 
 
 
 
 
 
 
 
 
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: Neo Freerunner hangs

2008-08-02 Thread Vimal Joseph
On Fri, Aug 1, 2008 at 5:30 PM, rakshat hooja [EMAIL PROTECTED] wrote:
 Have you tried manually flashing a new kernel and rootfs with dfu-utils?

 manybe try Qtopia or ASU and see if the problem persists


I'v used the scaredycat images

http://buildhost.automated.it/OM2007.2/Openmoko-scaredycat-openmoko-devel-image-glibc-ipk-P1-Snapshot-20080507-om-gta02.rootfs.jffs2

http://buildhost.automated.it/OM2007.2/uImage-2.6.24+git20080507-r0-om-gta02.bin

It works with out any problem when I tried without a sim card. But
with my BSNL Sim, it freezes with the message
glamofb_update_lod_controller spin_lock_irqsave
glamofb_update_lod_controller spin_unlock_irqrestore

I also tried qtopia, it works perfectly. But no result with gps.


regards,

~vimal




-- 
Free Software, Free Society
സ്വതന്ത്ര സോഫ്​റ്റ്​വെയര്‍, സ്വതന്ത്ര സമൂഹം
http://fsfs.hipatia.net
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: USB networking in Ubuntu

2008-08-02 Thread Lynn Nguyen
Isn't the last line supposed to be:

ifconfig usb0 192.168.0.202

and then try:
ping 192.168.0.202

On Sat, Aug 2, 2008 at 11:03 AM, sparky mat [EMAIL PROTECTED] wrote:

 Following the instructions on the wiki, I did the following after
 connecting my  Freerunner

 iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
 sysctl -w net.ipv4.ip_forward=1
 ifconfig usb0 192.168.0.200

 However, I can't SSH in to the Freerunner. I can't even ping it (it
 says 'ping: sendmsg: Operation not permitted' )

 Please note that usb0 shows up when i try 'ifconfig'.


 I am using Ubuntu Hardy 64-bit edition.

 ___
 support mailing list
 support@lists.openmoko.org
 https://lists.openmoko.org/mailman/listinfo/support

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: USB networking in Ubuntu

2008-08-02 Thread sparky mat
On Sat, Aug 2, 2008 at 11:37 PM, Lynn Nguyen [EMAIL PROTECTED] wrote:

 Isn't the last line supposed to be:

 ifconfig usb0 192.168.0.202

 and then try:
 ping 192.168.0.202


nope.. that line sets the IP for usb0.. i.e. the IP at the local end.
192.168.0.202 would be the ip of the Freerunner right?
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: USB networking in Ubuntu

2008-08-02 Thread sparky mat
I am not sure what I did (though it seems like ifconfig usb0
192.168.0.200followed by ifconfig usb0
192.168.0.202) but it works now!! I can ssh in :D ..

Ok.. now for some MASQUERADE-ing

On Sat, Aug 2, 2008 at 11:42 PM, sparky mat [EMAIL PROTECTED] wrote:


 On Sat, Aug 2, 2008 at 11:37 PM, Lynn Nguyen [EMAIL PROTECTED] wrote:

 Isn't the last line supposed to be:

 ifconfig usb0 192.168.0.202

 and then try:
 ping 192.168.0.202


 nope.. that line sets the IP for usb0.. i.e. the IP at the local end.
 192.168.0.202 would be the ip of the Freerunner right?

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: USB networking in Ubuntu

2008-08-02 Thread sparky mat
On Sat, Aug 2, 2008 at 11:45 PM, sparky mat [EMAIL PROTECTED] wrote:

 I am not sure what I did (though it seems like ifconfig usb0 
 192.168.0.200followed by ifconfig usb0
 192.168.0.202) but it works now!! I can ssh in :D ..

 Ok.. now for some MASQUERADE-ing


Stopped working. It's something to do with my iptables. Figuring it out.
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: USB networking in Ubuntu

2008-08-02 Thread sparky mat
Flushed '-t filter'. Added MASQUERADE-ing as per the wiki. It worked.
Finally, my TangoGPS can download maps :P

On Sat, Aug 2, 2008 at 11:50 PM, sparky mat [EMAIL PROTECTED] wrote:

 On Sat, Aug 2, 2008 at 11:45 PM, sparky mat [EMAIL PROTECTED] wrote:

 I am not sure what I did (though it seems like ifconfig usb0
 192.168.0.200 followed by ifconfig usb0 192.168.0.202) but it works now!!
 I can ssh in :D ..

 Ok.. now for some MASQUERADE-ing


 Stopped working. It's something to do with my iptables. Figuring it out.


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Video in qtopia?

2008-08-02 Thread e hanks
Out of sincere frustration I flashed the FR to qtopia. Very nice...
Everything seems to work including importing ALL of my sim contacts. Thumbs
up!

Anyhoo, which music and video file types can be played and do I need to
install anything like codecs?
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


SSH'ing into Qtopia on FR

2008-08-02 Thread e hanks
I'm able to SSH via usb into my FR while it is running Qtopia, but it is
limited access apparently. I'm notreally sure how to deal with it, but
mainly I'm concerned with updating and transferring files.

Advice guys?

thx
radtek
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Marek Lindner
On Saturday, 2. August 2008 22:24:19 Andy Green wrote:
 Packaging issues are out of my scope, or control.

May be but we still should consider this, right ?


 If nobody decided to add REQUIRES to the kernel package for the
 previously monolithic Ethernet over USB modules, then we end up like
 this.  

We can have all available REQUIRED fields activated but that wont help if the 
user just upgrades the kernel via dfu-util ...


 I issued an RFC about it on the kernel list before it was done, 
 so this isn't some switch I threw in the dark while snickering.

Nobody assumed the opposite.


 Why does our packaging fragment the module binaries into a zillion
 individual packages anyway and allow this issue?  Why are the modules,
 intimately tied to the monolithic kernel of the same version, not in the
 same package to guarantee consistency?  We have the space and it will be
 a rare customer who micromanages his package set to the extent of adding
 and removing module packages.

AFAIK we can't solve this by packaging (at the moment). The kernel and rootfs 
live in different partitions and thus can be updated independently.
In general I like your idea but we have to look at what we have now. I think 
we both agree that our current packaging is inherently broken. I would prefer 
to wait with those changes until we can update the kernel and the rootfs at 
the same time.


Marek

PS: I never tried to SSH in a Mass Storage device.  ;-)


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: SSH'ing into Qtopia on FR

2008-08-02 Thread Lorn Potter
e hanks wrote:
 I'm able to SSH via usb into my FR while it is running Qtopia, but it is 
 limited access apparently. I'm notreally sure how to deal with it, but 
 mainly I'm concerned with updating and transferring files.
 
 Advice guys?

ssh should work out of the box with Qtopia.


-- 
Lorn 'ljp' Potter
Software Engineer, Systems Group, Trolltech, a Nokia company

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: Video in qtopia?

2008-08-02 Thread Lorn Potter
e hanks wrote:
 Out of sincere frustration I flashed the FR to qtopia. Very nice... 
 Everything seems to work including importing ALL of my sim contacts. 
 Thumbs up!
 
 Anyhoo, which music and video file types can be played and do I need to 
 install anything like codecs?

You will have to wait until I compile qtopia to use gstreamer. :)
Currently Qtopia on the Neo uses an inhouse mediaengine called cruxus 
which has plugins for mp3 and ogg.

-- 
Lorn 'ljp' Potter
Software Engineer, Systems Group, Trolltech, a Nokia company

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: SSH'ing into Qtopia on FR

2008-08-02 Thread David Garvey
RadTek,

Are you using windoz or linux desktop? I setup my windoz laptop simply by
installing the .inf provided here
http://wiki.openmoko.org/wiki/Neo1973_and_Windows#USB_Ethernet_emulation

once the interface has been created make static ip entry of
192.168.0.200without a default gateway. you should be able to connect
to your FR using
putty ssh or colinux VM. Then I opened up the interface that is accessing
the WAN/internet/web and in the advanced section you will want to share your
this internet interface with the new usb interface.

On Sat, Aug 2, 2008 at 11:53 AM, e hanks [EMAIL PROTECTED] wrote:

 I'm able to SSH via usb into my FR while it is running Qtopia, but it is
 limited access apparently. I'm notreally sure how to deal with it, but
 mainly I'm concerned with updating and transferring files.

 Advice guys?

 thx
 radtek

 ___
 support mailing list
 support@lists.openmoko.org
 https://lists.openmoko.org/mailman/listinfo/support




-- 
David Garvey
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Marek Lindner
On Sunday, 3. August 2008 04:33:11 Andy Green wrote:
 Liek so much else, that's just waiting on someone saying DO IT.  What
 else is it waiting on precisely?

Correct me if I'm wrong:
Our booting process is a bit complicated - we have this dynamic table of bad 
blocks, some uboot partitions, a kernel partition and root fs partition.
It would be nice to have _one_ image for (at least) the kernel and the rootfs. 
Your config change affects a vital part of the debug tools of the system 
because it is easy to break. Simply flash a new kernel (without knowing that 
the ethernet does not work anymore!) and big suprise ...
In the long run it would be even handier to have only one partition for all 
the interesting stuff which affect the boot (I don't know to what extend that 
would be possible). Changing uboot options, getting a new uboot, changing 
images, etc would be much easier ...


 Really?  Well, I guess you never tried mounting what we had before as a
 block device, echoing something into it as a tty, printing to it, as we
 can now either.

Well, that is not exactly the same thing ...


Marek

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread arne anka
 The idea of only one partition is as old as this project. Back then the
 killing factor was the speed of U-Boot mounting the jffs2 partition and
 reading from it.


something like an initrd is out of question?



___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| On Sunday, 3. August 2008 04:33:11 Andy Green wrote:
| Liek so much else, that's just waiting on someone saying DO IT.  What
| else is it waiting on precisely?
|
| Correct me if I'm wrong:
| Our booting process is a bit complicated - we have this dynamic table
of bad
| blocks, some uboot partitions, a kernel partition and root fs partition.

Linux can blow through all this, nand_write is the magic ingredient.
There is NOTHING stopping a single package for monolithic kernel and
modules.

| It would be nice to have _one_ image for (at least) the kernel and the
rootfs.
| Your config change affects a vital part of the debug tools of the system
| because it is easy to break. Simply flash a new kernel (without
knowing that
| the ethernet does not work anymore!) and big suprise ...

Yeah, but that is a packaging issue, not a config change issue.  The
kernel package could easily have gone out with a REQUIRES for the new
module packages pulling them in automatically.  I do not control that.

| In the long run it would be even handier to have only one partition
for all
| the interesting stuff which affect the boot (I don't know to what
extend that
| would be possible). Changing uboot options, getting a new uboot, changing
| images, etc would be much easier ...

In the very long run this will happen.  In the merely long run with
U-Boot it ain't gonna happen.

| Really?  Well, I guess you never tried mounting what we had before as a
| block device, echoing something into it as a tty, printing to it, as we
| can now either.
|
| Well, that is not exactly the same thing ...

Just saying you are not considering the whole picture.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiU0rUACgkQOjLpvpq7dMp4DQCfV8OyOXRb5u2Kz05JAp65t1Na
qzUAnjGF6Qtmyu6i9ZU53lLDuIk6278t
=Lrms
-END PGP SIGNATURE-

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: SSH'ing into Qtopia on FR

2008-08-02 Thread e hanks
Thanks guys. I was already ssh'ing via my ubuntu terminal.  Here's a brief
sample of what I see for the qtopia fs:

[EMAIL PROTECTED]:~$ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
[EMAIL PROTECTED]:~# ls
Applications  Documents Settings  log   packages
[EMAIL PROTECTED]:~# pwd
/home/root
[EMAIL PROTECTED]:~# cd /home
[EMAIL PROTECTED]:/home# ls
root
[EMAIL PROTECTED]:/home# cd ./
[EMAIL PROTECTED]:/home# ls
root
[EMAIL PROTECTED]:/home# cd root
[EMAIL PROTECTED]:~# pwd
/home/root
[EMAIL PROTECTED]:~# ls
Applications  Documents Settings  log   packages
[EMAIL PROTECTED]:~# ls /media
card  hdd   net   realroot
cdmmc1  ram   union
[EMAIL PROTECTED]:~# ls /card
ls: /card: No such file or directory
[EMAIL PROTECTED]:~# ls /media/card
000_0132.jpg
000_0133.jpg
000_0134.jpg
000_0135.jpg
Ennio_Morricone_-_The_Ecstasy_of_Gold.mp3
Ennio_Morricone_-_The_Good_the_Bad_and_the_Ugly.mp3
Ennio_Morricone_-_The_Trio.mp3
Indian Violin.mp3
Metalocalypse 01 The Curse of Dethklok (ws) [Moonsong].avi
qtopia_db.sqlite
ring and bell.mp3
[EMAIL PROTECTED]:~# pwd
/home/root
[EMAIL PROTECTED]:~# ls /usr
bin  gamesinclude  lib  libexec  sbin sharesrc
[EMAIL PROTECTED]:~# ls /usr/games
[EMAIL PROTECTED]:~# ls /usr/share
X11curl   exquisite  locale pixmaps
alsa   dbus-1 file   manscreen
apmd   dict   fonts  mime   tabset
applications   diversity-nav  gnupg  misc   udhcpc
assassin   enlightenment  halninja  usb.ids
avahi  etkimages openmoko   xsessions
base-passwdexposure   info   opkg   zoneinfo
[EMAIL PROTECTED]:~# ls /usr/share/openmoko
scenarios
[EMAIL PROTECTED]:~#

I guess I wasn't navigating very intuitively at first. But now everything is
OK. I was able to scp a file onto the SD card and vim apparently works too.

Got some more ??? but I'll ask in another thread. Thanks.

radtek
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: usb network card

2008-08-02 Thread Robin Paulson
2008/8/2 arne anka [EMAIL PROTECTED]:
 http://www.etccomputers.co.nz/shop/main/product.asp?pid=622

 at least the usb plug won't match -- the fr has a mini usb port.


i was planning on using the relevant cable to connect it to the neo,
as with any usb gadget that the neo would host.

http://wiki.openmoko.org/wiki/Neo1973_USB_host

or am i missing something?

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: gta02, 2007.2: state of upgrades

2008-08-02 Thread William Kenworthy
How about sidestepping the issue and have standard rescue kernel thats
monolithic? - could even be recommended practise to have it on the SD
card ready to go (like a dual boot).  Doesnt need to be the latest, but
have minimal functionality to recover a system.

BillK


 On Sat, 2008-08-02 at 23:14 +0200, Michael 'Mickey' Lauer wrote:
 The idea of only one partition is as old as this project. Back then the 
 killing factor was the speed of U-Boot mounting the jffs2 partition and 
 reading from it.
 
-- 
William Kenworthy [EMAIL PROTECTED]
Home in Perth!

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


SSH session

2008-08-02 Thread e hanks
I was having a problem with not being able to re-connect to my FR after
unplugging the usb. I'd have to reboot my lappy in order to ssh to the FR. I
saw the fix listed on the usb networking page:

http://wiki.openmoko.org/wiki/USB_Networking

Since I use Ubuntu I changed the order of the code as instructed despite the
comments that it doesn't work. It worked for me.

However, I was checking out the suggested code for /etc/network/interfaces
and it is different from what was posted several weeks ago. I had edited the
original /etc/network/interfaces to this:

auto lo
iface lo inet loopback


auto usb0
iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
network 192.168.0.0
   up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 
   up echo 1  /proc/sys/net/ipv4/ip_forward 
   up iptables -P FORWARD ACCEPT 
   down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 





iface eth0 inet dhcp

auto
-
This has worked fine so far AFAIK.

However, the current suggested code for /etc/network/interfaces is:
-

 allow-hotplug usb0
 iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.192
post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.192/26
post-up echo 1  /proc/sys/net/ipv4/ip_forward
post-up iptables -P FORWARD ACCEPT
pre-down iptables -D POSTROUTING -t nat -j MASQUERADE -s
192.168.0.192/26

-

What is the difference between 'auto usb0' and 'allow-hotplug usb0'?
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support