Thursday, January 28, 2010

writting Helloworld example for Maemo 5 and run it on SDK and N900

here is the steps i did to write the famous Helloworld first example for maemo 5
compile it and test it in the SDK and finally compile it to run in N900
The original post is here

1- install Maemo 5 SDK from here
2- open terminal and run
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
3- open another terminal and run
/scratchbox/login
this is where you do all the coming steps
4- you should be working in the home
[sbox-FREMANTLE_ARMEL: ~] >pwd
/home/user
5-[sbox-FREMANTLE_ARMEL: ~] >vi helloworld.c
and add the following code:
#include  /* printf */
int main(int argc, char** argv) {
printf("Hello world\n");
return 0;
}

6- to test the code in the SDK you need to compile for PC this is done by
[sbox-FREMANTLE_ARMEL: ~] >sb-menu
choose "select" then "FREMANTLE_X86" then "OK"
7- [sbox-FREMANTLE_X86: ~] > gcc -Wall -g helloworld.c -o helloworld
8- [sbox-FREMANTLE_X86: ~] > ./helloworld
it will give you
Hello world

9- Now lets compile it for N900
10-[sbox-FREMANTLE_ARMEL: ~] >sb-menu
choose "select" then "FREMANTLE_ARMEL" then "OK"
if it complains from running process choose "killall" and try again
11-[sbox-FREMANTLE_X86: ~] > gcc -Wall -g helloworld.c -o helloworld
12- connect N900 as storage
13- copy the file helloworld to the N900
14- disconnect the N900 from the PC
15- open shell
16- type root
17- move the helloworld to the home of the root
18- add execute to the Helloworld file (chmod +x helloworld)
19- run it (./helloworld) you should get
Hello world

and that it i finished the first example

N900 battery not charging after completely discharge

i noticed that if i leave my N900 battery to discharge completely
then i try to charge it, it may not charge
a friend of mine faced this too and i found that people in internet faced the same problem

here is what you can do

- leave it connected to wall charge for some time (10-15 minutes) then try to start it again
- disconnect the charger, then remove the battery for a minute or two, reinsert the battery, connect the charge and try to start it

so my recommendation

never discharge N900 battery completely

Tuesday, January 26, 2010

installing and tesgting Maemo 5 SDK

Here is how i installed Maemo 5 SDK in Ubuntu
the main documentation is here

1- Installing the X-server
sudo apt-get install xserver-xephyr
2- Installing the SDK

i used the GUI installed method
wget http://repository.maemo.org/stable/5.0/maemo-sdk-install-wizard_5.0.py
chmod a+x maemo-sdk-install-wizard_5.0.py
sudo ./maemo-sdk-install-wizard_5.0.py

3- Starting the SDK
- open terminal and run
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
- open another terminal and run
/scratchbox/login


if you got error regarding permissions, just log off then log in again

4- Testing the SDK
use the test here



Tuesday, January 5, 2010

facebook messages about BINSSERVICESONLINE .INFO

Hello,
i keep getting messages from friends about this web site
BINSSERVICESONLINE .INFO
it seems either a spam or a virus

here is a sample of two messages
"hey what's up? was just chatting with Abdulla and they asked me if you know about BINSSERVICESONLINE .INFO or not"

"Abdallah mentioned you might be interested in this BINSSERVICESSTORE .INFO"

if anyone have more info please add it here

thank you