Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    N900 as a Wifi Hotspot, part 2

    Reply
    Page 15 of 41 | Prev | 5   13     14   15   16     17   25 | Next | Last
    meepha12 | # 141 | 2010-05-29, 00:53 | Report

    /home/user # /usr/sbin/mobilehotspot_backend start ; echo$?DEBUG: executing uname -r
    DEBUG: executing uname -r
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/nf_conntrack.ko
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/nf_defrag_ipv4.ko
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/nf_conntrack_ipv4.ko
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/nf_nat.ko
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/iptable_nat.ko
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28.10power37/ipt_MASQUERADE.ko
    ERROR:dbus.proxies:Introspect error on :1.86:/com/nokia/icd2: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unsupported interface or method
    icd2_state_listener got args:

    (dbus.String(u''), dbus.UInt32(0L), dbus.String(u''), dbus.String(u'WLAN_INFRA'), dbus.UInt32(83886080L), dbus.ByteArray('4c0d54c3-f934-40ef-9477-7b41415a8804\x00'), dbus.String(u''), dbus.UInt32(2L))
    state['icd']:

    {'old_connection_type': 'WLAN_INFRA', 'old_connection_name': '4c0d54c3-f934-40ef-9477-7b41415a8804'}
    DEBUG: executing ifconfig wlan0 down
    DEBUG: executing iwconfig wlan0 mode ad-hoc
    DEBUG: executing ifconfig wlan0 up
    DEBUG: executing iwconfig wlan0 essid "MobileHotSpot"
    DEBUG: executing ifconfig wlan0 10.23.136.1 netmask 255.255.255.0 up
    DEBUG: executing /usr/sbin/dnsmasq -i wlan0 -a 10.23.136.1 -I lo -z -x /var/run/dnsmasq.wlan0.pid --dhcp-range=10.23.136.10,10.23.136.100,6h --dhcp-option=3,10.23.136.1 --dhcp-option=6,10.23.136.1
    DEBUG: executing iptables --flush
    DEBUG: executing iptables --flush -t nat
    DEBUG: executing iptables -P FORWARD ACCEPT
    DEBUG: executing iptables -P INPUT ACCEPT
    DEBUG: executing iptables -P OUTPUT ACCEPT
    DEBUG: executing iptables --table nat --append POSTROUTING --out-interface gprs0 -j MASQUERADE
    /bin/sh: echo0DEBUG:: not found

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rambo | # 142 | 2010-05-29, 19:59 | Report

    The backend start looks good, do you get IP address from the DHCP server on the N900 ? Can you ping 10.23.136.1 (if you don't get IP address via DHCP try setting one manually use address 10.23.136.5)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    CutterSlade | # 143 | 2010-05-29, 20:46 | Report

    Had meepha12's problem too. After starting the backend from terminal it works now! Thanks for the great work!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    call-151 | # 144 | 2010-05-31, 13:02 | Report

    Thanks for the work done on turning the N900 into a WIFI gateway.

    I am having difficulties in getting this to work. Have upgraded to PR 1.2, and executed the following:
    # /usr/sbin/mobilehotspot_backend start
    then i used the Gui to start and the error message is "hotpsot failed to start".

    Debug log as follows:
    uname -r -> 2.6.28.10power37

    Log file from running the backend is as follows:
    Code:
    ERROR:dbus.proxies:Introspect error on :1.85:/com/nokia/icd2: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unsupported interface or method
    DEBUG: executing uname -r
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing lsmod
    DEBUG: executing ifconfig wlan0 down
    DEBUG: executing iwconfig wlan0 mode ad-hoc
    DEBUG: executing ifconfig wlan0 up
    DEBUG: executing iwconfig wlan0 essid "Pinwheel"
    DEBUG: executing ifconfig wlan0 10.89.55.1 netmask 255.255.255.0 up
    DEBUG: executing /usr/sbin/dnsmasq -i wlan0 -a 10.89.55.1 -I lo -z -x /var/run/dnsmasq.wlan0.pid --dhcp-range=10.89.55.10,10.89.55.100,6h --dhcp-option=3,10.89.55.1 --dhcp-option=6,10.89.55.1
    DEBUG: executing iptables --flush
    DEBUG: executing iptables --flush -t nat
    DEBUG: executing iptables -P FORWARD ACCEPT
    DEBUG: executing iptables -P INPUT ACCEPT
    DEBUG: executing iptables -P OUTPUT ACCEPT
    DEBUG: executing iptables --table nat --append POSTROUTING --out-interface gprs0 -j MASQUERA
    I have also tried the backend fix suggested by Flynx on #34 but to no avail.

    There is also no response when i ping 10.89.55.1

    Any suggestion on the next step to try and get this working?

    Thank you.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rambo | # 145 | 2010-05-31, 20:32 | Report

    Originally Posted by call-151 View Post
    Thanks for the work done on turning the N900 into a WIFI gateway.

    Log file from running the backend is as follows:
    The log looks truncated, can you try again. Also check the exit code ("echo $?" right after the start command)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Jerome | # 146 | 2010-06-01, 05:54 | Report

    A big thank you from here: I installed on PR 1.2 and it works perfectly.

    On the installation, I first installed the enhanced kernel and then installed the hotspot. I am rather extra cautious when tinkering with the kernel.

    On "works perfectly", I'd like to point out that the wep key needs to be numeric. When I first tried an alphanumeric key, the hotspot did not start. It may be normal, I just point it out because some user may be confused.

    But it appears to use much less power than joiku and be faster (although I have only tried it with one client... yet). Obviously, if one runs linux, the right way to do routing is in the kernel and not in user land...


    If you have a paypal account, I would be pleased to send you 9€ (the price of joikuspot)...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rambo | # 147 | 2010-06-01, 06:44 | Report

    Originally Posted by Jerome View Post
    On "works perfectly", I'd like to point out that the wep key needs to be numeric. When I first tried an alphanumeric key, the hotspot did not start. It may be normal, I just point it out because some user may be confused.
    Probably coincidence (there are some timing issues in bringing up the interfaces and starting the dnsmasq etc, if interface is extra-slow to come up start might fail), the key can be (at least from iwconfig POV) any (correct lenght) sequence of bytes (the automatic padding to correct lenght is probably more confusing to user; I'll add some note banner when I have the time).

    So try again with alpha key.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    venkat_i22 | # 148 | 2010-06-01, 07:00 | Report

    $ sudo /usr/sbin/mobilehotspot_backend start ; echo $?
    DEBUG: executing uname -r
    DEBUG: executing lsmod
    DEBUG: executing insmod /lib/modules/2.6.28-omap1/nf_conntrack.ko
    DEBUG: Command output: insmod: can't read '/lib/modules/2.6.28-omap1/nf_conntrack.ko': No such file or directory
    Traceback (most recent call last):
    File "/usr/sbin/mobilehotspot_backend", line 14, in <module>
    sys.exit(backend.cli())
    File "/opt/mobilehotspot/libs/backend.py", line 395, in cli
    backend.start()
    File "/opt/mobilehotspot/libs/backend.py", line 131, in start
    self.start_insert_modules()
    File "/opt/mobilehotspot/libs/backend.py", line 141, in start_insert_modules
    self.state['kernel']['loaded_modules'][modulename] = self.test_insert_module(modulename)
    File "/opt/mobilehotspot/libs/backend.py", line 371, in test_insert_module
    helpers.exec_cmd('insmod ' + self.module_directory + '/' + module + '.ko')
    File "/opt/mobilehotspot/libs/helpers.py", line 12, in exec_cmd
    raise Exception("Command '" + cmd + "' returned with code " + str(return_code) + " (" + str(expect_code) + " expected)")
    Exception: Command 'insmod /lib/modules/2.6.28-omap1/nf_conntrack.ko' returned with code 256 (0 expected)
    1
    ~ $

    Rambo im getting 'hotspot failed to start' help to rsolve

    Edit | Forward | Quote | Quick Reply | Thanks

     
    eitama | # 149 | 2010-06-01, 07:04 | Report

    Do you have Titan's kernels installed with NAT support?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    venkat_i22 | # 150 | 2010-06-01, 07:09 | Report

    Originally Posted by eitama View Post
    Do you have Titan's kernels installed with NAT support?
    No; I have power-user Linus Kernel

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 15 of 41 | Prev | 5   13     14   15   16     17   25 | Next | Last
vBulletin® Version 3.8.8
Normal Logout