Notices


Reply
Thread Tools
Posts: 15 | Thanked: 2 times | Joined on Nov 2009
#141
/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
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#142
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)
 
CutterSlade's Avatar
Posts: 64 | Thanked: 16 times | Joined on Apr 2010 @ Germany, near Hamburg
#143
Had meepha12's problem too. After starting the backend from terminal it works now! Thanks for the great work!
 
Posts: 1 | Thanked: 0 times | Joined on May 2010
#144
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.
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#145
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)
 
Posts: 477 | Thanked: 118 times | Joined on Dec 2005 @ Munich, Germany
#146
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)...
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#147
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.
 
Posts: 29 | Thanked: 0 times | Joined on Dec 2009 @ India Chennai
#148
$ 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
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#149
Do you have Titan's kernels installed with NAT support?
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 29 | Thanked: 0 times | Joined on Dec 2009 @ India Chennai
#150
Originally Posted by eitama View Post
Do you have Titan's kernels installed with NAT support?
No; I have power-user Linus Kernel
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:16.