Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#1
Hello everybody,

For my thesis I have to make the nokia N800 compatible with the Tmote Mini SDIO card for an indoor positioning system.

The SDIO card is to big for the door to close, I read here that it can easily be altered on the n800 so that it doesn't need to be closed. I however did not find what has to be altered. Does anybody know?

Another problem:
I can't seem to connect the N800 with my pc (ubuntu 8.04, I also tried 7.04).
As usb storage device it is working fine, but if I want to connect with usb networking I get these errors when I do ifup usb0:

usb0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
usb0: ERROR while getting interface flags: No such device
usb0: ERROR while getting interface flags: No such device
Failed to bring up usb0.

I followed the guide here: http://maemo.org/development/documen..._connectivity/

I found a post online of someone who has the same problem here: http://www.gossamer-threads.com/list...iew_flat#38947 but there is no solution there...

Anybody has an idea?

If not: Is it possible to get ssh acces to the N800 using bluetooth? I can pair the n800 with my laptop but I don't know what to do next then...

Thank you!
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#2
The N800 does not support SDIO.
__________________
Ryan Abel
 
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#3
The omap chip in the N800 has sdio capabilities, there just is no driver for this specific card, It's my job to make them... First thing I have to figure out is how to let the n800 read cards while the door is not closed.
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#4
Originally Posted by Jenrossey View Post
The omap chip in the N800 has sdio capabilities, there just is no driver for this specific card, It's my job to make them... First thing I have to figure out is how to let the n800 read cards while the door is not closed.
The latch-closed detection mechanism is magnetic. Either override it in software or glue/tape a small magnet to the detector.

I say again, though, the N800 does not support SDIO.
__________________
Ryan Abel
 
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#5
Is the latch-closed detection mechanism on the external sd slot also mechanic? I can see the magnet on the internal sd slot but it would be more usefull to use the external one...
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#6
It is just a matter of commenting out few (two?) lines in omap mmc driver to check for cards periodically even if door is openened. Anyone capable of writing SDIO driver finds it in no time ;-)

Edit: I've tested this only on 770 with mmcplus (i.e. full size, not mmcmobile) card but the kernel code is same for N800 too.

BTW, the kernel version Nokia uses has no SDIO stack and mmc code is still in old style. Later there was massive reorgnization and SDIO stack addition so you either need to use newer kernel (=no wi-fi and other breakage) or backport new mmc stack to 2.6.21 (see the difference 2.6.21 vs 2.6.23). SDIO was added in 2.6.24.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-09-17 at 11:10.
 
Posts: 4 | Thanked: 0 times | Joined on Sep 2008
#7
Ok, I solved the usb connection problems:

Instead of adding the lines that this site says (http://maemo.org/development/documen..._connectivity/), I added the following to /etc/network/interfaces

allow-hotplug usb0

mapping hotplug
script grep
map usb0

iface usb0 inet static
address 192.168.2.14
netmask 255.255.255.0
broadcast 192.168.20.255
up echo 1 > /proc/sys/net/ipv4/ip_forward
up iptables -P FORWARD ACCEPT
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.20.0/24
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#8
Originally Posted by fanoush View Post
It is just a matter of commenting out few (two?) lines in omap mmc driver to check for cards periodically even if door is openened.
Had a look at current code in kernel-source-diablo 2.6.21-200829maemo1 and the relevant lines are
Code:
        /*                                                                                                                                                   
         * If no cards are inserted, we postpone polling until                                                                                               
         * the cover has been closed.                                                                                                                        
         */                                                                                                                                                  
        if (list_empty(&slot->mmc->cards))                                                                                                                   
                return;
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-09-17 at 20:02.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:27.