Tuesday, October 16, 2012

Nemo Mobile on CuBox

Finally all the needed stuff for cubox have been merged to Nemo and Mer and I got time to cleanup the adaptation bits a bit as well. So now we have Nemo Mobile running on CuBox, there are some bits and pieces still missing but it can be already used to some extend. Main issue seems to be with the graphics drivers, but anyway here is a short video of it..

Creating your own image

To create an image you need to install Mer SDK and then login to the sdk as guided. Download the .ks file

curl -O  http://sage.kapsi.fi/sagestechblog/cubox/cubox-2012-10-16-armv7hl.ks

And start the image build:

PATH=$PATH:/sbin sudo mic cr raw cubox-2012-10-16-armv7hl.ks --arch=armv7hl

Next thing is to put the image to the microsd card, example guide in nemo wiki. After this is done put the microsd card to the device and that is it.

Nemo Mobile UI on Snowball

I have been working a bit again with the snowball and now I got the Nemo Mobile UI booted on the device. It is still missing some bits and pieces but it is already something that can be easily tested and reproduced.

Here is a quick tutorial how to make an image yourself. First you need to get the Mer Platform SDK to build the images to which there is quite nice installation guide in the Mer wiki pages.

After you have installed the Mer Platform SDK log in and download the .ks file for building the image.

curl -O http://sage.kapsi.fi/sagestechblog/snowball/snowball-2012-10-16-armv7hl.ks

After getting the .ks file you need to modify it a bit, and instructions for that are in the .ks file so you need to do some reading ;).

When .ks file is modified you can build the image with following command:

PATH=$PATH:/sbin sudo mic cr raw snowball-2012-10-16-armv7hl.ks --arch=armv7hl

After image is built you can put the image to microsd card by following for example Mer wiki.

Now you are set for booting the device, have fun. Here is a very short video about the performance.

Thursday, August 2, 2012

Booting Mer on CuBox

So here it is CuBox very small and quite nice piece of hardware made by SolidRun. It includes for example HDMI, 2x USB, 1x eSATA, build in console with microUSB and best of all it is packaged to very nice and small casing. By default Cubox developer platform comes with sd card that has ubuntu installation on it, but when I got the device I had already decided to try to run Mer on the device.

After some time I got the device booted and posted a message in the twitter about that as well and promised an blog post about how everyone else can do the same thing as well, so here it is.

Booting Mer on cubox is relatively easy, what you need to do is to get the image (.raw.bz2 file) I made from http://sage.kapsi.fi/Mer/CuBox/20120801/ and use dd to write the image to the sd card. Guide to image writing can be found from  http://wiki.merproject.com/wiki/Nemo/Installing#Raw_Image_Write

After the image is written to the sdcard enter the sdcard to your CuBox and power it on. Currently the image has a bit limited functionality, however the following features I tested:
- Serial with microUSB
- Ethernet via RJ45 connector
- HDMI with normal fbdev driver without any hardware acceleration
- USB ports ;)

I bet many other features work as well, but for now those were the most interesting ones for me to get the device booting and to network. The image that is available on the URL above boots to full screen xterm.

I will continue working on CuBox in near future and try to get the 3D driver working on it. If you are interested of helping to get this done feel free to come to chat with me to Freenode IRC network on channels #mer and #nemomobile.

Sunday, May 20, 2012

Setting up qt-components "devel environment"

I have been fighting myself a lot about how to start learning QML and contributing to QML/qt-components based application in Nemo Mobile. I tried to use qt-creator some time ago, but that didn't work out as I would have liked it to (read was not so simple that I would have though, as Nemo isn't official target). After discussing with some of the community developers decided to try out to just compile applications manually on my desktop env and then run apps on there and try what my modifications did and later package for the real environment. So here is what I finally did..

First I needed to install qt-development tools for the linux distribution I have currently installed, i.e., openSUSE 12.1. So I needed to install libqt4-devel package:
sudo zypper install libqt4-devel
Then it was time to get the qt-components, which can be found from gitorious. So get them from there and install:
git clone git://gitorious.org/qt-components/qt-components.git
cd qt-components
./configure -meego
make
sudo make install
cd ..
Then it was time to get themes working for the qt-components. For this I installed first the base theme called meegotouch-theme:
git clone git://gitorious.org/meegotouch/meegotouch-theme.git
cd meegotouch-theme
qmake
sudo make install
cd ..
And then I installed the actual theme. For this I used the default theme that is provided also in Nemo Mobile called meego-handset-theme-darko:
git clone https://github.com/jpavelek/meego-handset-theme-darko.git
cd meego-handset-theme-darko
sudo mkdir /usr/share/themes/darko
sudo cp -r meegotouch/ index.theme /usr/share/themes/darko/
sudo cp -r blanco/ /usr/share/themes/
# Blanco has links to meegotouch which we add from darko theme
sudo ln -s darko/meegotouch /usr/share/themes/meegotouch
cd ..

And finally I took one of the qt-components/qml based applications that is in Nemo to try out my configuration
git clone https://github.com/nemomobile/qmlfilemuncher.git
cd qmlfilemuncher
qmake
make
./qmlfilemuncher
After this I had the QML/qt-components application running without any problems. So time to start learning more QML, fixing bugs and implementing features. :) Of course this doesn't include yet all the libraries and API's use in Nemo Mobile, but it is a start.

Friday, May 11, 2012

Tizen Developer Conference Day 3


Similar to the day 2 the third day started with a breakfast at the Atrium level and was in my opinion very good as well. After the breakfast I headed to the street level to get the giweaway present, i.e., Tizen Developer Device that was presented yesterday during the keynote given by the two Tizen TSG members Imad and Jong-Deok.


After getting the device it was of course time to check the content which was pretty basics, the device itself, micro usb cable, charger, which was surprisingly with a euro plug instead of US plug and a converter from euro plug to US wall socket. Also a cleaning "thingy" and 4G USB memory stick with SDK files inside were provided.


After unpacking and booting and testing the device a bit I headed towards the talk rooms to get some more information about the happenings around Tizen.

First talk of the day that I went to listen was "Developer Highlight Presentations: HTML5 Apps Development for Tizen Devices" which was a bit hard to follow probably mainly as the jetlag still prevented me from sleeping enough and I still wasn't awake really. :P

Next went to listen "HTML5 Canvas vs CSS3" presentation which was quite interesting and after the presentation listener had a better understanding about the differences. Also I was interested about the demos shown and how capable CSS3 actually is.


And of course one needs to eat as well, so went for a lunch in the Atrium level a bit after noon. Food was good as usual.


As a last talk I went to listen "Enabling Gordova (aka PhoneGap)" talk by Rene Pourtier.


The final part of the event for me was the Tizen SDK Hands-on session which was very nice session and gave very detailed and quick introduction to the different features of the SDK. The session consisted of three different parts, first part was how to use the SDK itself and how to get started of creating application with a template and how to run the applciation in the emulator. Second part was about how to use the debug functions within the SDK.



 
And the last part was a QA session with the SDK development team. There were many questions from the community about the SDK. However, there was one thing that bothered me and that was one person who kept "asking questions" and talking about many other things also than the Tizen SDK. Much good time from others was wasted with this non SDK related talker.



That was it, the conference is over. I had a lot of fun and got reasonable amount of information about the current status of Tizen and how to start hacking. It was also very nice to see the community and connect to others that are working with similar things. So thanks to Linux Foundation, Intel, Samsung and other sponsors that made this event a success.

Thursday, May 10, 2012

Tizen Developer Conference Day 2

I started my second day at the Tizen Conference by having a quite nice breakfast on the morning with some familiar faces. When enough energy was collected from the provided substances it was time to join to the Ballroom for the first keynote of the day. The first keynote was kept by the members of the Tizen Technical Steering Group members Imad Sousou from Intel and Jong-Deok Choi from Samsung, which was moved to this position from yesterday.


During the keynote there was couple of nice demos shown and some of the tizen features were described. The presentation itself gave very nice picture what is the status of Tizen in the handset type of devices. When the presentation was closing its end the audience got a nice surprise (well, it was sort of told in the registration as well so not really a surprise in the end), which was that every registered attendee would be given a Tizen Developer Device as a giweaway. The device hardware was presented as Dual Core ARM Cortex A9 1.2, 1G of RAM, 16G of Memory, GPS, WiFi, 8mpix camera etc. which was quite nice in the specs.


The device itself looked very much like the devices that the showcase presenters had already shown yesterday and I would guess that the device is the same. Too bad it is a bit bulky design and a bit large thus using it as a everyday device isn't really feasible, which is a bit of lost opportunity in my opinion as there was lot of devices given out for developer that could possibly use the device as everyday device and give much feedback.

After the keynote was over my feelings about Tizen was much more positive and I really was surprised even more that why this presentation was not given as the first one on day 1 as originally scheduled. It would have given much more positive feeling about the Tizen. Only thing that I was really especting in addition to the keynote was QA session with the TSG. Anyway thanks to Imad and Jong-Deok of the nice overview of the Tizen and live demos.

After the TSG it was time for Dr. Nagata from DOCOMO project to give a presentation, which was followed by James Pearce from facebook. After this all the keynotes of the conference were done.


Tech Showcase and lunch followed the series of keynotes and the talks in five different tracks started. I selected which presentations mainly based on my own interest and went to listen the following ones. First Tizen Architecture by Sunil Saxena and Vincent Kwon and as usual with these architecture talks the room was full of people and some of us had to stand.



After the architecture presentation it was time to change room to Bayview. In Bayview I listened to "Engaging Open Source Projects, with a Corporate View" by Thiago Macieira and "Upcoming Technologies: Wayland and oFono" presentations by Jesse Barnes and Marcel Holtmann.

In the beginning of oFono presentation Marcel announced that it has been about 3 years today from the beginning of oFono and they wanted to celebrate their anniversary and cake as well as t-shirts were provided to the audience.


After the Marcel's ~20min presentation about oFono, Jessa talked about Wayland in the same slot, which ended also my visit to the rooms in the "middle floor" and it was time to go back to the Ballroom A again to listen the Orange presentation "Lessons Learnt from Orange in Developing HTML5 Application for Tizen".



When the talk by Orange ended it was time for the evening events and first there were snacks and drinks available in the showroom area where the companies were again showing their work around Tizen. Also another ultrabook lottery was done and one lucky attendee got a brand new device to play with.


After the lottery it was time to move to the buss and towards California Academy of Sciences for the evening event. In the evening event there was food, drinks and live music next to the natural history exhibition and planetarium.








After the evening event it was time for a game of Werewolf hosted by Dawn (thanks for this again) at the hacker lounge.




... and then it was time to start preparing for the third and the last day of the conference....

Tuesday, May 8, 2012

Tizen Developer Conference Day 1

The first day of Tizen Developer Conference is over and I wanted to do a quick recap of the day.. So here is how it went for me with my impressions of the day ..

For me the day started  with a breakfast on the nearby bagel place just around the corner of the hotel. And I must say that the bagel was quite nice and if we wouldn't be given breakfast upcoming days by the conference I could see myself going back to the place.



After having the breakfast we headed towards the hacker lounge and from there around noon Dawn Foster took us to a tour around the city where we saw many nice places and at least I got some very welcome exercise as well. :)




After the walk we went to the ground floor to register where we got tizen backbag that contained some tizen branded items, such as, t-shirt, coffee mug, universal power adapter (same that we got from the MeeGo Conference 2011 but with Tizen logo) and "screwdriver pen".



During the same time with registration the showcase demos were open and companies working with Tizen were demonstrating what they have done with Tizen. The demos were shown mainly with at the time unknown "developer devices" that based on the settings menu was called Fraser and had model GT-I9500 which refers to a samsung product line, e.g. Galaxy Nexus that I posted a demo running Nemo is called GT-I9250.



After the showcase demos the first keynote started and as a surprise to many the keynote was not held by Imad Sousou and Jong-Deok Choi but Jim Zemlin from Linux Foundation.


In the presentation Jim talked a lot about Linux again (anyone recall the Jim's keynote from MeeGo conference 2011 last year?) and didn't concentrate much to Tizen IMO. Also Android and Apple were mentioned so many times that at least to me it didn't feel like I was in the Tizen Developer Conference anymore.
 
Also during the evening it was told to me that the presentation has some familiar features so I did a bit of a research and found couple of similar things from the net. First one is from Embedded Linux Conference 2012 and second one is 2011 Enterprise Users' Meeting Japan (~20:18) last year. Can you see the similarities? :)

After the keynote there was food and drinks sponsored by the Tizen Association...



... and even later in the evening we had very nice session of Werewolf at the hacker lounge thanks to Dawn.

Sunday, April 29, 2012

Attending to the first annual Tizen Developer Conference

The first annual Tizen Developer Conference is starting in about a week and is held in Hyatt Regency at San Francisco, CA on May 7-9, 2012. I hope to see many familiar faces there. The conference schedule can be found from the conference website.

Thursday, April 26, 2012

Guide how to boot Nemo Mobile on Galaxy Nexus GT-i9250

I promised to publish a small guide how to boot Nemo Mobile on your own Galaxy Nexus phone instead of the default android. Here is a small guide how to do so. The process it self is quite simple and should be relatively safe as well, as you do not need to flash anything to try it out (if you don't count the possibly needed unlocking/rooting the phone).

In this guide it is assumed that one has android tools, such as adb and fastboot installed, also Linux is assumed but it should work also on windows with minor modifications.

The phone used was unlocked/rooted before I tried this, so that might also be required for following these instructions.

First thing is to download all the needed files.

mkdir -p /tmp/gt-i9250/
pushd /tmp/gt-i9250/
wget http://sage.kapsi.fi/sagestechblog/gt-i9250/2012-04-26.1/nemo-handset-armv7l-gt-i9250.img.bz2
wget http://sage.kapsi.fi/sagestechblog/gt-i9250/2012-04-26.1/vmlinuz-3.0.8-12.1.Mer-gt-i9250
wget http://sage.kapsi.fi/sagestechblog/gt-i9250/2012-04-26.1/mer-ramdisk.cpio.gz

Then push the rootfs image to the nexus.

# Create directory from which ramdisk reads the images during boot.
adb shell mkdir /sdcard/rootfs-images/
# Push image to the device adb push nemo-handset-armv7l-gt-i9250.img.bz2 /sdcard/rootfs-images/
# Lets uncompress the image before using it.
adb shell bzip2 -d /sdcard/rootfs-images/nemo-handset-armv7l-gt-i9250.img.bz2

After this is done power off your phone and load the kernel and ramdisk with fastboot to your device

sudo -i fastboot boot /tmp/gt-i9250/vmlinuz-3.0.8-12.1.Mer-gt-i9250 /tmp/gt-i9250/mer-ramdisk.cpio.gz
popd

After this the device should boot to the MTF based UX home screen.

What works:
  • USB serial "jig" works, with the right cable.
  • Touchscreen works
  • Xorg starts with standard fbdev (no 3D acceleration)
What doesn't work with this given image:
  • Applications do not start as the -software flag isn't forwarded properly
  • No window manager / application switcher (requires 3D)
  • No 3D acceleration
  • No USB networking
  • No WLAN
  • No Bluetooth
  • ...
Short video of the boot:


Happy hacking everyone.

Friday, April 13, 2012

Booting Nemo on Galaxy Nexus i9250

I have been trying to get Galaxy Nexus (i9250) to boot Nemo Mobile lately and finally got something working. Very big thanks for all of this (again) goes to Thomas (also known as dm8tbr at IRC) for building the cable (Guide) for me so that I could get the console output available and debug the boot process much faster.

Here is some logs
Mer release 0.2011 (Mer)
Kernel 3.0.8-g388ae9a-dirty on an armv7l

localhost login: root
Password:
[root@localhost ~]# cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 10 (v7l)
processor       : 0
BogoMIPS        : 628.60

processor       : 1
BogoMIPS        : 628.60

Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

Hardware        : Tuna
Revision        : 0009
Serial          : 0a3c22af0900f01a
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.0.8-g388ae9a-dirty #32 SMP PREEMPT Fri Apr 13 00:10:54 EEST 2012 armv7l armv7l armv7l GNU/Linux
[root@localhost ~]# cat /etc/mer-release
Mer release 0.2011 (Mer)
BUILD: nemo-handset-armv7l-galaxy_nexux_i9250
[root@localhost ~]#
And here is a picture of the Nemo splash screen on the device \o/


There is still more work needed as e.g. the Xorg isn't starting yet and the bootup is quite unreliable, but this is only the beginning :)

Ps. I will be providing more information soon with guide how to replicate the work that has been done. When I get all the pieces together.