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

Thursday, December 24, 2009

unpacking my Nokia N900

at last i got my new Nokia N900
since the N95, i did not get interested in any mobile (may by the N97) until i see the review of the new N900
here is the pictures of the unpacking of the package






Wednesday, December 9, 2009

get symbian developer certificate

Now let you go to imobile website at :
Code:
http://isign.imobile.com.cn/
And do this steps.

Step 1: First Register an account.



* Fill in the required fields in register form as screenshot.



With simple register and very fast, and successful.

Step 2 : Apply your imei (*#06#)

After register successful, the system redirect you to this location. Click the green button :



And now you will enter your imei in textbox, then Click button.



System report your apply successful as shown below



Now, you only need waiting...
Then 3 hours, you go back and Login your account



Select the second tab to view the result.
IF you see image like this

1. Download the signtool.zip NOT the signtool2.zip
2. Extract it and run the program
3. Input username into top text box, then click the button beside the username box
4. Drag and drop unsigned program into the box below where it says "SISX"
5. Click the button beside the bottom textbox and select location to output file
6. Click the left hand button just below the large box which has the name of the file eg hellox2.sis that you dragged into it
7. New signed file will be created
8. Click ok and get signed file

Sunday, November 29, 2009

Getting and Building Chrome OS on ubuntu 9.04

Hello,
since google announced the new Chrome-OS, and i'm trying to find time to try it
here is how i get the source and build it
also i'll try to add a vmware image so anyone can try it
all the steps are in here
STEPS for Ubuntu
----------------------
1- Prerequisites
- Download script install-build-deps.sh
- chmod 755 install-build-deps.sh
- ./install-build-deps.sh

2- Getting the Chromium OS Source Code
- Download the tarball chromiumos-0.4.22.8.tar.gz
- mkdir /usr/local/chromiumos
- chown -R username /usr/local/chromiumos
- tar xfzv chromiumos-0.4.22.8.tar.gz /usr/local/chromiumos

3- Build Instructions
- ln -s /usr/local/chromiumos/ ~/chromiumos
- cd ~/chromiumos/src/scripts
- ./make_local_repo.sh (this will take alot of time)
- ./make_chroot.sh (it will download some fonts)
- Download the binary of Chromium here and copy it into ~/chromiumos/src/build/x86/local_assets as chrome-chromeos.zip (you have to create this directory).
- ./enter_chroot.sh
- ( cd ../platform/pam_google && ./enable_localaccount.sh USERNAME )
- ./set_shared_user_password.sh
- ./build_all.sh

4- Using your image

4.1 - create a bootable USB
- ./image_to_usb.sh --from=~/chromiumos/src/build/images/999.999.33309.104530-a1 --to=/dev/sdb1
you will need to adjust the link to image (999.999.33309.104530-a1) and the USB drive (sdb1), also you will need a 4gb usb key
4.2 - Create Vmware image
- ./image_to_vmware.sh --from=~/chromiumos/src/build/images/999.999.33309.104530-a1 --to=~/chromiumos/src/build/images/999.999.33309.104530-a1/chrome.vmdk
you will need to adjust the link to image (999.999.33309.104530-a1), also you will need qemu if you dont have it (sudo apt-get install qemu)

if you dont have Internet access you will not login except if you enabled the local account in these two steps
- ( cd ../platform/pam_google && ./enable_localaccount.sh USERNAME )
- ./set_shared_user_password.sh

till now i could not enable wifi for my card (Intel(R) PRO/Wireless 3945ABG Network Connection)
i'll keep checking and update here