Author Topic: Final try at sync and internet access  (Read 14861 times)

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #15 on: December 20, 2003, 06:41:39 pm »
Quote
C:]ipconfig /all

Ethernet adapter Local Area Connection 21:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : SL Series (NDIS 5)
        Physical Address. . . . . . . . . : 40-00-02-00-00-01
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.129.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DHCP Server . . . . . . . . . . . : 192.168.129.201
        Primary WINS Server . . . . . . . : 192.168.129.201

After replying to this just above, I thought it might help to see the entire ipconfig from my pc.  The reason is that I have a DSL modem so there are two components on the normal network connection config.  The DSL connection has a differnet ip assigned than the network connection thing.  Which should be used.

Windows IP Configuration

        Host Name . . . . . . . . . . . . : regular
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : NVIDIA nForce MCP Networking Contro
ler
        Physical Address. . . . . . . . . : 00-50-8D-51-22-68
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        Autoconfiguration IP Address. . . : 169.254.142.154
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . :

PPP adapter sympatico:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 65.92.13.181
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 65.92.13.181
        DNS Servers . . . . . . . . . . . : 207.236.176.27
                                            206.47.244.42
        NetBIOS over Tcpip. . . . . . . . : Disabled

Ethernet adapter Local Area Connection 7:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : SL series Ver3 (NDIS 5)
        Physical Address. . . . . . . . . : 40-00-02-00-00-01
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.129.200
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : 209.226.175.223
                                            198.235.216.134

Again, thanks for the help

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #16 on: December 20, 2003, 06:44:18 pm »
I\'ve also made a few other changes as per another how-to
I created two files
/etc/hotplug/routeadd.sh
#!/bin/sh
route add default gw 192.168.0.1

/etc/hotplug/routedel.sh
#!/bin/sh
route del default

Added the following line at the end of the usbd_net_if_up() function in /etc/hotplug/usbd.func:
 /etc/hotplug/routeadd.sh

Add the following line at the end of the usbd_net_if_down() function in /etc/hotplug/usbd.func:
 /etc/hotplug/routedel.sh

Anonymous

  • Guest
Final try at sync and internet access
« Reply #17 on: December 20, 2003, 06:53:14 pm »
Read about samba servers. They run on my zaurus.
http://us1.samba.org/samba/docs/man/nmbd.8.html
http://us1.samba.org/samba/docs/man/smbd.8.html

Quote
you have the zaurus NDIS adapter set to dhcp on your windows box.
That is probably why nmbd and smbd are not running on your zaurus. I\'m not sure.

Quote
log.nmb: Samba name server ZAURUS is now a local master browser for workgroup BYANDLARGE on subnet 192.168.129.201
My suggestion is to use DHCP.

Anonymous

  • Guest
Final try at sync and internet access
« Reply #18 on: December 20, 2003, 07:03:17 pm »
Code: [Select]
root       498   291  1  qtsamba -qcop /tmp/qcop-msg-qtsamba

root       532     1  0  /usr/sbin/dhcpd -cf /etc/hotplug/dhcpcd.conf -lf /var/state/dhcp/dhcpd-u

root       543     1  0  smbd -D -l /dev/null

root       550     1  0  nmbd -D -l /dev/null

More about samba on the zaurus

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #19 on: December 20, 2003, 07:06:28 pm »
Ahhh - thanks oreo.  I just ran nmbd and smbd and then did a sync and it worked.  Very cool.  Of course I am also using DHCP now.  Time to fiddle and see what actually did it.

I\'ll have to add these to my  ??   .profile  ??

Would this be the best place to add these?  Also, is there something else about the fact that these program were not running?  for instance could I have not installed something?


Now I just need to get tcp/ip working

Anonymous

  • Guest
Final try at sync and internet access
« Reply #20 on: December 20, 2003, 07:19:52 pm »
I searched for nmbd and smbd.
/home/etc/rc.d/init.d/samba

#!/bin/sh

case $1 in
\'start\')
                if [ -f /var/lock/subsys/authenticate ] ; then
#                       echo samba locked. ]] /var/samba.log
                        exit 0;
                fi
                if [ -f /var/lock/samba/forbid ] ; then
                        rm -f /var/lock/samba/forbid
                        exit 0;
                fi
                hostname `cat /etc/HOSTNAME`
                echo \"Starting smbd...\"
                smbd -D -l /dev/null
                echo \"Starting nmbd...\"
                nmbd -D -l /dev/null
                ;;
\'stop\')
                echo \"Stopping smbd and nmbd...\"
                PID=`cat /var/lock/samba/smbd.pid`
                kill $PID
                PID=`cat /var/lock/samba/nmbd.pid`
                kill $PID
                rm -f /var/lock/samba/smbd.pid
                rm -f /var/lock/samba/nmbd.pid
                ;;
*)
                echo \"usage: smb {start|stop}\"
                ;;
esac
#

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #21 on: December 20, 2003, 07:22:59 pm »
Interesting - had to be using dhcp - when i changed it back to hard ip address it failed again.

Now I\'ve got to go back over what I\'ve done so I know how to get this working if I ever change roms.

Anonymous

  • Guest
Final try at sync and internet access
« Reply #22 on: December 20, 2003, 07:35:10 pm »
samba start

look at:
/home/etc/hotplug/net.agent
/home/etc/hotplug/usbd.func

Anonymous

  • Guest
Final try at sync and internet access
« Reply #23 on: December 20, 2003, 11:45:19 pm »
In summary,
These processes start when the powered zaurus is placed on the cradle connected to the active USB port of a Windows XP PC and the usbd0 interface starts up.

Code: [Select]
root       346     2  0 03:55 qtsamba -qcop /tmp/qcop-msg-qtsamba

root       378     1  0 03:55 /usr/sbin/dhcpd -cf /etc/hotplug/dhcpcd.conf -lf /var/state/dhcp/dhcpd-u

root       383     1  0 03:55 smbd -D -l /dev/null

root       385     1  0 03:55 nmbd -D -l /dev/null


smbd and nmbd are started in /home/etc/rc.d/init.d/samba
where samba start is a call from /home/etc/hotplug/net.agent
Code: [Select]
/etc/rc.d/init.d/samba start

echo Start samba. >> /var/samba.log


dhcpd starts in /home/etc/hotplug/usbd.func
Code: [Select]
/usr/sbin/dhcpd -cf $dhcpd_conf -lf $dhcpd_leases -pf $dhcpd_pid usbd0 > /dev/null 2>&1
---------------------------------------------------
Quote
I\'ll have to add these to my ?? .profile ?? Would this be the best place to add these? Also, is there something else about the fact that these program were not running?
These events start when the usbd0 interface starts with the factory rom. No changes are needed. I think there is value in going back to the default system files, using DHCP and setting the workgroup. The samba files should start when usbd0 starts.

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #24 on: December 21, 2003, 08:47:45 am »
Hmm, interesting.  I may have broken the startup of nmbd and smbd when I was doing the various mods to get this stuff working.

I\'m going to spend some time today figuring out what I did and then trying to apply only those bits that I think will make my sync work.  (NAND backup first of course)  I\'m thinking that my internet access problem might be similar to the sync solution.  If I use DHCP on the SL NDIS network adapter, perhaps I need to use an ip address in the same range for the zaurus.  Too bad PC link doesn\'t use dhcp.  A lot of instructions I saw seem to be from people behind routers that use dhcp and give out addresses in the 192.168.0.x range so maybe thats why the default ip address works for them.

I feel I\'m getting closer.  Thanks guys.

Anonymous

  • Guest
Final try at sync and internet access
« Reply #25 on: December 21, 2003, 11:03:11 am »
In summary continued,

In Windows XP these ports open and remain open when interface usbd0 starts.
svchost.exe 192.168.129.1 520 UDP
svchost.exe 192.168.129.1 1900 UDP
svchost.exe 192.168.129.1 123 UDP
system 192.168.129.1 137 UDP
system 192.168.129.1 138 UDP
system 192.168.129.1 139 UDP

When usbd0 stops, only this port remains open and stays open all the time. Must be that the Sharp drivers use the fixed address 192.168.129.1
svchost.exe 192.168.129.1 520 UDP

SL Series (NDIS 5) Network Adapter
C:WINDOWSSystem32DRIVERSslz1nd5.sys

SL Series (WDM) Universal Serial Bus controller
C:WINDOWSSystem32DRIVERSslz1cr.sys
C:WINDOWSSystem32DRIVERSslz1unic.sys
C:WINDOWSSystem32DRIVERSslz1wh.sys

Quote
I\'m thinking that my internet access problem might be similar to the sync solution. If I use DHCP on the SL NDIS network adapter, perhaps I need to use an ip address in the same range for the zaurus.
Yes. The USB address is 192.168.129.201. The zaurus server assigns 192.168.129.1 to the PC USB port.

On the zaurus in PC Link I use
Hostname zaurus
USB IP 195.168.129.201
USB - TCP (advanced)

On the PC in Zaurus Manager I use
Connections USB - TCP (advanced)
Hostname (for TCP/IP) zaurus
Host IP (for TCP/IP) 192.168.129.1
Passcode Settings Remember Passcode

I do use a router but I use fixed network IP addresses, not DHCP for the network. However, the network addresses are in the same subnet as the USB port (and of course the same workgroup). The SL NDIS IP address, I guess, comes from the zaurus server.

Anonymous

  • Guest
Final try at sync and internet access
« Reply #26 on: December 21, 2003, 11:08:21 am »
typo:
USB IP 195.168.129.201 should be
USB IP 192.168.129.201

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #27 on: December 21, 2003, 12:31:33 pm »
Quote
On the zaurus in PC Link I use  
Hostname zaurus  
USB IP 195.168.129.201  
USB - TCP (advanced)  

On the PC in Zaurus Manager I use  
Connections USB - TCP (advanced)  
Hostname (for TCP/IP) zaurus  
Host IP (for TCP/IP) 192.168.129.1  
Passcode Settings Remember Passcode

Hold on a minute.  You are setting the ip for the zaurus to 192.168.129.201 on the zaurus but 192.168.129.1 in zaurus manager.  I thought that those should both be the same and that in zaurus manager you are basically telling the zaurus manager what ip the zaurus is configured at.  What is the thinking there?

Anonymous

  • Guest
Final try at sync and internet access
« Reply #28 on: December 21, 2003, 12:32:31 pm »
another typo:
Host IP (for TCP/IP) 192.168.129.1 should be
Host IP (for TCP/IP) 192.168.129.201

Anonymous

  • Guest
Final try at sync and internet access
« Reply #29 on: December 21, 2003, 12:46:09 pm »
Process LocalIP LocalPort State Protocol
System 192.168.129.1 139 LISTEN TCP
A TCP port, not UDP. Sorry for the typo mistakes.