Re: dfu-util problems

2008-07-15 Thread Jayesh Salvi
Thanks man. That's awesome script.

For newbies: In addition to above script you should also update
/etc/resolve.conf to reflect the contents of your host machine. Without that
hostname to IP resolution will fails and 'opkg update' won't work.

Jayesh

On Sun, Jul 13, 2008 at 7:27 AM, Eildert Groeneveld <[EMAIL PROTECTED]> wrote:

> On Sunday 13 July 2008, joseph schlesinger wrote:
> > Running it as root does not work, nor does passing a --device
> > parameter.  I should mention that I've also tried a number of different
> > linux host machines and usb ports on each.  Could it be a defective
> phone?
>
> This is what I need to run as root and the everything works fine:
> root(eno,freerunner)# cat upom
> #!/bin/sh
> /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
> /sbin/route add -host 192.168.0.202/32 dev usb0
>
> /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -F
> iptables -A INPUT -s 192.168.0.202 -i usb0  -d 192.168.0.200   -j ACCEPT
> iptables -A INPUT  -s 192.168.0.200  -i eth+  -d 192.168.0.202  -j ACCEPT
> iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.0.202  -j ACCEPT
> iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.2.0/24  -j
> ACCEPT
>
> iptables -A FORWARD -s 192.168.0.202 -i usb0 -d 192.168.2.0/24 -o eth+
> -j
> ACCEPT
> iptables -A FORWARD -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -o usb0  -j
> ACCEPT
>
> iptables -A OUTPUT -d 192.168.2.0/24 -o eth+   -j ACCEPT
> iptables -A OUTPUT -d 192.168.0.202 -o usb0  -j ACCEPT
> iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
> root(eno,freerunner)# 
>
>
> courtesy I-dont-remember
>
> Eildert
>
> --
> Eildert Groeneveld
> ===
> Institute of Farm Animal Genetics
> Mariensee 31535 Neustadt Germany
> Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
> e-mail: [EMAIL PROTECTED] http://vce.tzv.fal.de/index.pl
> http://www.tzv.fal.de/~eg/ 
> http://apiis.tzv.fal.de/index.pl
> ===
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-13 Thread joseph schlesinger
Nice script, thank you.  It works perfectly for setting up networking 
and sharing the host internet connection. But dfu-utils still doesn't work.

Eildert Groeneveld wrote:
> On Sunday 13 July 2008, joseph schlesinger wrote:
>   
>> Running it as root does not work, nor does passing a --device
>> parameter.  I should mention that I've also tried a number of different
>> linux host machines and usb ports on each.  Could it be a defective phone?
>> 
>
> This is what I need to run as root and the everything works fine:
> root(eno,freerunner)# cat upom
> #!/bin/sh
> /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
> /sbin/route add -host 192.168.0.202/32 dev usb0
>
> /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -F
> iptables -A INPUT -s 192.168.0.202 -i usb0  -d 192.168.0.200   -j ACCEPT
> iptables -A INPUT  -s 192.168.0.200  -i eth+  -d 192.168.0.202  -j ACCEPT
> iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.0.202  -j ACCEPT
> iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.2.0/24  -j ACCEPT
>
> iptables -A FORWARD -s 192.168.0.202 -i usb0 -d 192.168.2.0/24 -o eth+   -j 
> ACCEPT
> iptables -A FORWARD -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -o usb0  -j 
> ACCEPT
>
> iptables -A OUTPUT -d 192.168.2.0/24 -o eth+   -j ACCEPT
> iptables -A OUTPUT -d 192.168.0.202 -o usb0  -j ACCEPT
> iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
> root(eno,freerunner)#
>
>
> courtesy I-dont-remember
>
> Eildert
>
>   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-13 Thread Eildert Groeneveld
On Sunday 13 July 2008, joseph schlesinger wrote:
> Running it as root does not work, nor does passing a --device
> parameter.  I should mention that I've also tried a number of different
> linux host machines and usb ports on each.  Could it be a defective phone?

This is what I need to run as root and the everything works fine:
root(eno,freerunner)# cat upom
#!/bin/sh
/sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
/sbin/route add -host 192.168.0.202/32 dev usb0

/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -A INPUT -s 192.168.0.202 -i usb0  -d 192.168.0.200   -j ACCEPT
iptables -A INPUT  -s 192.168.0.200  -i eth+  -d 192.168.0.202  -j ACCEPT
iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.0.202  -j ACCEPT
iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.2.0/24  -j ACCEPT

iptables -A FORWARD -s 192.168.0.202 -i usb0 -d 192.168.2.0/24 -o eth+   -j 
ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -o usb0  -j 
ACCEPT

iptables -A OUTPUT -d 192.168.2.0/24 -o eth+   -j ACCEPT
iptables -A OUTPUT -d 192.168.0.202 -o usb0  -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
root(eno,freerunner)#


courtesy I-dont-remember

Eildert

-- 
Eildert Groeneveld
===
Institute of Farm Animal Genetics
Mariensee 31535 Neustadt Germany
Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
e-mail: [EMAIL PROTECTED] http://vce.tzv.fal.de/index.pl
http://www.tzv.fal.de/~eg/ http://apiis.tzv.fal.de/index.pl
===

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-13 Thread joseph schlesinger
Running it as root does not work, nor does passing a --device 
parameter.  I should mention that I've also tried a number of different 
linux host machines and usb ports on each.  Could it be a defective phone?

Marcel wrote:
> Did you try that as root?
> dfu-util should complain about not being able to claim the usb device (or 
> similar...) if you're required to be root.
>
> -Marcel
>
> Am Sonntag 13 Juli 2008 07:10:29 schrieb joseph schlesinger:
>   
>> I haven't been able to flash my FR after booting either into NAND or
>> NOR.  I can ssh into the phone via USB per the wiki instructions, but
>> dfu-util does not find the phone.  dfu-util --list returns.  Mounting
>> the usbfs as suggested in the instructions for the Neo1973
>>  doesn't help either.
>> Any advise would be greatly appreciated.
>>
>> ___
>> Openmoko community mailing list
>> community@lists.openmoko.org
>> http://lists.openmoko.org/mailman/listinfo/community
>> 

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-13 Thread Marcel
Did you try that as root?
dfu-util should complain about not being able to claim the usb device (or 
similar...) if you're required to be root.

-Marcel

Am Sonntag 13 Juli 2008 07:10:29 schrieb joseph schlesinger:
> I haven't been able to flash my FR after booting either into NAND or
> NOR.  I can ssh into the phone via USB per the wiki instructions, but
> dfu-util does not find the phone.  dfu-util --list returns.  Mounting
> the usbfs as suggested in the instructions for the Neo1973
>  doesn't help either.
> Any advise would be greatly appreciated.
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-12 Thread xiangfu
to use the dfu-util
first of all you should at DFU-MODE
press AUX then press POWER, hold this two button for a few second.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: dfu-util problems

2008-07-12 Thread xiangfu
Hi
did you use this :

dfu-util --device 0x1457:0x5119 -a kernel -R -D ./kernerl.bin

if you don't special the --device 
make sure there only FR connect you PC with USB.
hope this help you

joseph schlesinger wrote:
> I haven't been able to flash my FR after booting either into NAND or 
> NOR.  I can ssh into the phone via USB per the wiki instructions, but 
> dfu-util does not find the phone.  dfu-util --list returns.  Mounting 
> the usbfs as suggested in the instructions for the Neo1973 
>  doesn't help either.
> Any advise would be greatly appreciated.
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


dfu-util problems

2008-07-12 Thread joseph schlesinger
I haven't been able to flash my FR after booting either into NAND or 
NOR.  I can ssh into the phone via USB per the wiki instructions, but 
dfu-util does not find the phone.  dfu-util --list returns.  Mounting 
the usbfs as suggested in the instructions for the Neo1973 
 doesn't help either.
Any advise would be greatly appreciated.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community