LinuxMCE Forums

General => Users => Topic started by: colinjones on September 05, 2007, 11:31:54 am

Title: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 05, 2007, 11:31:54 am
I have bought a Nokia 770 to use as an Orbiter and tried to follow the wiki links, etc to install the software, but it is far from self explanitory, esp for a Linux noob!! I managed to upgrade to 2007 Hackers Edition and install an XTerm and Dropbear, but 1) editing the gainroot file with vi is all but impossible in Xterm because there is no way to move the cursor around, and 2) the flasher3.0 command doesn't work, nor does ssh (was that supposed to come with dropbear?). So no way to become root that I can work out.

Also, to add complexity(!) I don't have anyway of connecting to the Internet - but copying the .deb files to the media card via USB then using the install from file option seemed to allow me to install the libraries and code for xterm and dropbear.

Has anybody got a step-by-step guide that can help out? At this point I am frustrated by the fact that the instructions seem simple enough, but there are enough gaps of "assumed knowledge" that prevent me from getting over that final line! I just want to get the orbiter up and running and be happy that I haven't wasted all that money on an expensive paperweight!!

Any help would be greatly appreciated..

Col.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: Zaerc on September 05, 2007, 12:08:06 pm
1) editing the gainroot file with vi is all but impossible in Xterm because there is no way to move the cursor around,

In "command mode" use: h-j-k-l
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 05, 2007, 02:29:19 pm
Command Mode?
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: Zaerc on September 05, 2007, 02:49:48 pm
Command Mode?
Yes.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 05, 2007, 02:59:10 pm
I was asking for you to explain what "command mode" is and how I get into it from xterm - can't see any options for it anywhere...
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: Zaerc on September 05, 2007, 04:15:35 pm
I was asking for you to explain what "command mode" is and how I get into it from xterm - can't see any options for it anywhere...

That's what I was affraid off, have a look at the first result returned by google when seaching for vi: Mastering the VI editor (http://www.eng.hawaii.edu/Tutor/vi.html).

Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on September 05, 2007, 06:14:04 pm
You can find some step by step guide here - http://smart-home-blog.com/writes/nokia770-as-plutohome-orbiter-os2006 (http://smart-home-blog.com/writes/nokia770-as-plutohome-orbiter-os2006). It's suite for OS2006, OS2007 Hacker Edition and OS2007 for N800. If you will have some troubles just let me know by posting replay here or on via Smart Home blog.

You should install xterm and ssh (I don't use Dropbear), activate red pill mode and install the rest package from repository and pluto-nokia project page on the Maemo garage. I suggest to use application installer and download packages from Internet (you can find some free access point in the cafe, school or somewhere else). Because some dependences are included into maemo repository.

To activate RD mode using flasher run that command:
Code: [Select]
./flasher3.0 –enable-rd-mode -RIt should work if you managed to flash your device.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 01:39:04 am
Thanks nite_man, that was the page I was following - but as I say in my first post:

the ./flasher3.0 command does not work (the shell indicates that the command/file doesn't exist). I have definitely updated to 2007 Hackers - the interface changed completely (although the version number on the web site was still 2006, the build number was higher than the standard build number and it specifically said it was 2007 Hackers Edition for the 770)

ssh doesn't work - I didn't install an ssh package, but when I follow the links from that page, it doesn't actually say you need to install ssh, it says you need to install dropbear, and then goes on to say use ssh - which is why I was assuming that ssh was included as part of the dropbear package.... obviously incorrectly! But it does highlight that the instructions are NOT very good. I am a Linux noob - but I'm not an IT moron - I have been working in deep technical roles (mainly server and networking infrastructure) for 20 years, and I couldn't fill in the Linux gaps that I'm not familiar, so a non-technical person has no hope!

So my main questions now are 1) how do I activate RD mode as the flasher command doesn't work, 2) once I have worked out the vi command mode with Zaerc's help pointing me to the instructions, can I just update the gainroot script and then not need to use the flasher command, 3) how do I activate Red Pill mode, 4) is there any chance that I do not have the right version of xterm and that is preventing access to the flasher command (eg, using a different shell, it looks just like a basic Bourne Shell) - I saw that there was a version with build 50 for i386 only, the latest build I found for ARM was 48...??

Sorry about all the questions, just trying to get it all straight in my mind...

Col.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 06, 2007, 02:12:38 am
the ./flasher3.0 command does not work (the shell indicates that the command/file doesn't exist). I have definitely updated to 2007 Hackers - the interface changed completely (although the version number on the web site was still 2006, the build number was higher than the standard build number and it specifically said it was 2007 Hackers Edition for the 770)

OMG, try downloading the program! Do some damn research youself

ssh doesn't work - I didn't install an ssh package, but when I follow the links from that page, it doesn't actually say you need to install ssh, it says you need to install dropbear, and then goes on to say use ssh - which is why I was assuming that ssh was included as part of the dropbear package.... obviously incorrectly! But it does highlight that the instructions are NOT very good. I am a Linux noob - but I'm not an IT moron - I have been working in deep technical roles (mainly server and networking infrastructure) for 20 years, and I couldn't fill in the Linux gaps that I'm not familiar, so a non-technical person has no hope!

Dropbear is a thin ssh server/client. Again a little research, for the love of God!

Try looking at maemo's website!
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 03:12:33 am
Dopey - this was unnecessary. I did research it, went to Maemo web site, and went round and round in circles. It is not clear - the instructions say to use flasher as if it is a built in command, it doesn't indicate that you need to download and install it first - I assumed it was a custom command for the Nokia and so built in, it never occurred to me to look for it elsewhere, I just thought I was doing something wrong on my Nokia. I spent over 3 hours last night reading through articles on several different sites including maemo and smarthomeblog but was still very confused, and nothing except the original re-flashing to 2007 HE worked.

I am aware that dropbear is an ssh server/client - but the instructions said to use the ssh command, which didn't work even after I had installed dropbear. I wasn't sure whether I was reading instructions for different methods (different secure shell programs) or that dropbear itself implements the ssh program. Seems the former, so I will try finding a simple ssh package to install instead.

So I was reaching out and asking for some pointers - there is no need to be so unfriendly. If you have nothing to add, or are not willing to help because I am asking "stupid" questions, then don't post at all. I am following several other threads at the moment dealing with trying to ensure the LMCE community grows (esp. the dev) and doesn't just die like Pluto. Posts like this are not encouraging or inviting to new community members trying to get help, esp if they are newbies ... seems contrary to some of the sentiments you yourself have posted elsewhere... If you want to flame me, I have a tough skin, but please do it directly with a message rather than a post.

I have no hard feelings.

Colin
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 06, 2007, 03:42:23 am
I'm only that negative when people ask questions already answered. I'm very helpful to those who appear to want to help themselves. It doesn't matter how "stupid" the question is. I intended for the message to be public.

I found Maemo's website to be pretty self explanatory as to how to get the flasher working, flash things, enable r&d, and enable red pill mode. All of those things have comprehensive howto's.

Dropbear has the ssh command. Ssh isn't strictly necessary for this install, but rather it will help you gain root privileges and give you remote access. There is a howto on this at Maemo's website.

Now, I know the Orbiter can be difficult to install. If you look at my posts on the subject and you'll see I had some difficulty as well. You basically have to force the thing. If you have specific questions about that I and others would be more than happy to help.

To install it, enable red pill mode, install the depandancies one by one. Note that some dependancies depend on other dependancies, so you should check for problems before install by clicking details when it prompts you if you really want to install it. Once that's done copy the fonts over. then install the orbiter package. You can then open the orbiter  in Xterm by issuing the command in smart home blog.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 04:13:44 am
Dopey - got it (and yes I know you are helpful, I have read many of your posts, which is why I was surprised by the response). I am working through some stuff now.

FYI - one of the things that confused me, but now I am getting sorted, was where the flasher executes. I looked at the command line (./flasher3.0) and it was obviously a Unix command, so I ASSumed that it was a Nokia (built in) command I had to execute on the Nokia device itself. Once I found the downloads for it I noticed that there were versions for alsorts of architectures and OSs, but not ARM... then it dawned on me that you are supposed to execute it on the computer that is connected to it via USB not on the Nokia itself! Obvious once you realise - that forward slash in the command line threw me, but I realise now that it is simply because there isn't a Wintel version of flasher... I downloaded it to my Wintel laptop, browsed to my LMCE core and copied it over, now just setting permissions, and will give it all a go...
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 05:29:01 am
OK Dopey - next question! I have got gainroot working in R&D mode, and have copied across several packages to the media card (Internet not an option at this stage for the Nokia) and successfully installed some of them. The mysqlclient deb link on the web site doesn't work so I downloaded a later one (15) from sourceforge and installed that. Now when trying to install libhid it has a dependancy on libusb - but I cannot find any binary versions of this for ARM, only the source code. I would like to avoid compiling if possible as the last time I tried this on Unix was many years ago! Either way, I am trying to anyway - I copied all the source to the media card and tried running configure (per http://www.arduino.cc/playground/Bootloader/Ubuntu) but it says permission denied, so I have tried copying the source to a folder directly under / ... ie off the media card. Now when I try, it says that configure is not found... but it is definitely there. It permissions are -rwxr-xr-x

If anyone knows what I am doing wrong, or better yet, has a binary version of libusb, I would be greatly appreciative!
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 06, 2007, 05:46:31 am
Don't try to compile anything in the device itself. In order to compile things for the Nokia you will need to create a scratchbox on a Linux computer. Don't worry though, you don't need to do this.

I had the same problem with that dependency. Two things, you have to enable red pill mode before you can install it and you need to install it from the Bora (I believe, but could be mistral) repository. You can manually download the deb from the repository and then copy over to the memory card, which is what I had to do even though I had an internet connection. You can manually download packages from http://repository.maemo.org/pool/ (http://repository.maemo.org/pool/).
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 06:26:48 am
Perfect, Dopey! Thanks for your help on this - I have now downloaded and installed every library except libgle. That doesn't appear to be in any of the repositories, and very little mention from google searches except dev versions and source.... I am going to continue anyway, and hope that someone has a copy that they can point to. I searched maemo directly, too, by the way - doesn't seem to know this library and keeps saying "are you sure you didn't mean libglade"

Col.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 06, 2007, 07:50:13 am
I honestly don't remember that dependency either. It could just be a typo. Has any of the packages complained that it needed it when you were trying to install? All the packages that I used were either in the garage or in the repository.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 06, 2007, 08:00:07 am
None of the libraries complained, maybe it the orbiter package will when I try to install that - have had to go out for a while so won't be able to check for some hours. The Wiki page mentions the same lib but that could just be a cut and paste dup of the same typo. Apparently it seems to be something to do with OpenGL Extrusions (cylinders and the like) which seems overkill for an orbiter - maybe it uses them to do the button shadings? Anyway, I will post back when I know the answer.

Col
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 06, 2007, 08:25:37 am
There are OpenGL dependencies, but not because it actually needs them. It's just something that has yet to be fully stripped out of the build for the Nokia 770/800. OpenGL is heavily used in the standard orbiter, so it takes work to strip it back out. I don't have libglu installed on mine, however... Of course I haven't got mine to stabilize yet... It runs but it crashes at times.

These are the packages I manually downloaded and installed (not all that are needed as I had an internet connection):
libhid0_0.2.12-1-nokia770_armel
libhttpfetcher1_1.0.1-3-nokia770_armel
libmysqlclient12_4.0.24-10sarge2_armel
libsdl-gfx1.2_2.0.9-4_armel
libsdl-sge_020904-5_armel
libusb-0.1-4_0.1.10a-9.sarge.1osso1_armel
libxmu6_1.0.1-3_armel
libxt6_1.0.0-3osso3_armel
mysql-common_4.0.24-10-nokia_all
linuxmceorbiter-1.1-02_armel
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 07, 2007, 01:55:50 am
damn it! Everything is installed OK, but once I started the Orbiter I realised that it only seems to allow connections through WLAN (which I don't have) not through Bluetooth - has anybody managed to get around this?
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: dopey on September 07, 2007, 04:07:42 am
I haven't tried, but all the orbiter looks for is a stable connection to the core, so if you do setup a bluetooth network connection it should work. Setting up that connection, however, will, probably be a bit of a pain. Check this out: http://maemo.org/community/wiki/HOWTO-BluetoothNetworking (http://maemo.org/community/wiki/HOWTO-BluetoothNetworking)
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on September 07, 2007, 08:33:11 am
It's impossible with Nokia770 to use Bluetooth. It supposes to have WLAN only (or theoretically LAN over USB). Bluetooth is used by mobiles phones with Symbian 60 1st edition, windows mobile 2005 (I guess) and Treo. But they run Mobile Orbiter which is completely different than SDL one for Linux.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 07, 2007, 09:09:53 am
nite_man

I think dopey is right - look at the link he gave, it is quite explicit that you can set up a PANU->NAP IP connection which will present as a (virtual) interface, from that point it is just a matter of routing. The instuctions given on that page omit the bit about insmod'ing the bnep.ko module which allows the pand command to work. Now that I have put that in, I can use the commands....

only problem is, something is preventing them seeing each other - or at least the commands execute but a connection does not get set up, no errors, nothing... stumped again!
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on September 07, 2007, 09:24:03 am
Well, if you can let's test it. It seems working approach.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: colinjones on September 07, 2007, 09:48:25 am
Problem is, I am WAY out of my depth here!

Update: using a specific connect command rather than "search and connect" and the --nodetach option on the Nokia gave me a bit more feedback:

pand -r PANU --service NAP --connect xx:xx:xx:xx:xx:xx --nodetach

I got BT daemon v 3.7.... blah blah\ connecting to.... xx:xx:xx:xx:xx\ connect to xx:xx:xx failed. Connection refused.

So I used the --nodetach on the NAP side as well and it said that Bind failed, address already in use. I search the ps list for another instance of pand and killed it with kill -9, then tried again. This time it started with the BT logo, only 3.9 on the LMCE machine, and is sitting there waiting for a connection (apparently!)

Now when I try from the Nokia it reports that the host is down. When I go back to the onscreen orbiter, it is in the process of detecting the device as one of the 3 devices you mentioned. I just called it a Windows Smartphone 2005 to get past that point, and then the Nokia prompts if you want to download the .cab file the LMCE is trying to send. This times out, as we obviously don't want to receive it. But at that point the Nokia pand command fails again....


Title: Re: Setting up Nokia 770 as an orbiter???
Post by: alphapenguin on December 15, 2007, 07:09:21 am
Hi all, I've been following this post as well as others, and am having a dog of a time trying to get the orbitor installed on my N800. The main problem I have is I dont understand what "dependenses" are needed. If I just download the ones stated via the LINUXMCE wiki, when i install the
"linuxmceorbiter-0704-03_armel.deb"
it says i am missing some dependencies.

I also have a hard time figuring out the files from the maemo garage.
 https://garage.maemo.org/frs/?group_id=162

they have files listed for the respective OS2005-2008, so I would have thought all the needed files would be under each OS version, but it doesnt seem that way.  Does anyone have a clear cut answer here? It seems that a lot of you have been able to get it to work, so I must be missing something big here. After spending about 3 days on this, I figure i'd give a shot at asking. Thanks for any help that you can give.

Alex
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on December 17, 2007, 08:55:17 am
Hi Alex,

To install LMCE Orbiter on your Nokia N800 you need following dependencies:
    * libsdl-gfx1.2
    * libsdl-image1.2
    * libsdl-sge
    * libsdl1.2
    * libsdl-ttf2.0-0
    * libxmu6
    * libhttpfetcher1
    * libice6
    * libsm6
    * libhid0
    * libxt6
    * libmysqlclient12
    * mysql-common

Note, that some of them come in base Nokia's OS (for example, libice6).  Also, by some reason there is no libmysqlclient12 package in the Maemo extras repository fro bore. You can download it from the project page (see section dependencies for OS2006. They are the same for OS2007) - https://garage.maemo.org/frs/?group_id=162 (https://garage.maemo.org/frs/?group_id=162)

After that, install the latest LMCE Orbiter package - https://garage.maemo.org/frs/download.php/2073/linuxmceorbiter-0704-03_armel.deb (https://garage.maemo.org/frs/download.php/2073/linuxmceorbiter-0704-03_armel.deb)

Also, if you have N800 it might be better to flash it by OS2008. The dependencies are already built. And the Orbiter package will be released this week.

For more information, please, visit the new LMCE Orbiter page - http://pluto-nokia.garage.maemo.org/index.html (http://pluto-nokia.garage.maemo.org/index.html)
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: Matthew on December 17, 2007, 09:32:03 am
Hi Alex,

To install LMCE Orbiter on your Nokia N800 you need following dependencies:
    * libsdl-gfx1.2
    * libsdl-image1.2
    * libsdl-sge
    * libsdl1.2
    * libsdl-ttf2.0-0
    * libxmu6
    * libhttpfetcher1
    * libice6
    * libsm6
    * libhid0
    * libxt6
    * libmysqlclient12
    * mysql-common

Note, that some of them come in base Nokia's OS (for example, libice6).  Also, by some reason there is no libmysqlclient12 package in the Maemo extras repository fro bore. You can download it from the project page (see section dependencies for OS2006. They are the same for OS2007) - https://garage.maemo.org/frs/?group_id=162 (https://garage.maemo.org/frs/?group_id=162)

After that, install the latest LMCE Orbiter package - https://garage.maemo.org/frs/download.php/2073/linuxmceorbiter-0704-03_armel.deb (https://garage.maemo.org/frs/download.php/2073/linuxmceorbiter-0704-03_armel.deb)

Also, if you have N800 it might be better to flash it by OS2008. The dependencies are already built. And the Orbiter package will be released this week.

For more information, please, visit the new LMCE Orbiter page - http://pluto-nokia.garage.maemo.org/index.html (http://pluto-nokia.garage.maemo.org/index.html)

I have added a wiki article "Building Orbiter for the Nokia 800" (http://wiki.linuxmce.org/index.php/Orbiter) by reformatting your instructions.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on December 17, 2007, 11:11:40 am
Thanks, it should be helpful.
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: alphapenguin on December 22, 2007, 02:20:07 am
Thanks for the reply! I was able to get it to work, but now that I updated to OS2008, here we go again:-)
Lets see if I can get this to work before I come crawling back (or does it work yet for 2008?)

Thanks again, you guys are awesome
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on December 22, 2007, 09:25:56 am
Thanks for the reply! I was able to get it to work, but now that I updated to OS2008, here we go again:-)
Lets see if I can get this to work before I come crawling back (or does it work yet for 2008?)

Thanks again, you guys are awesome

I'm preparing the package for OS2008 but maemo has some problems with its repositories. So, I cannot test it before release. Moreover, I'm gonna to build the Orbiter for coming 0710 as well. So, stay tune :)
Title: Re: Setting up Nokia 770 as an orbiter???
Post by: nite_man on December 26, 2007, 04:15:31 pm
Thanks for the reply! I was able to get it to work, but now that I updated to OS2008, here we go again:-)
Lets see if I can get this to work before I come crawling back (or does it work yet for 2008?)

Thanks again, you guys are awesome

The package for OS2008 is available on the maemo garage - https://garage.maemo.org/frs/download.php/2956/lmceorbiter-os2008-0704-01_armel.deb (https://garage.maemo.org/frs/download.php/2956/lmceorbiter-os2008-0704-01_armel.deb)