This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Monday, October 26, 2015

How to Compile Linux Kernel with Current Configuration


This article is abount recompiling Ubuntu 14.04 kernel using current configuration. Customizing of the kernel is possible after you made copy of current config from /boot/config-`uname -r` to .config as well.
For linux distribution version other than Ubuntu 14.04 TrustyTahr might also applied with several adjustment.

Prepare workspace

$ mkdir -pv /opt/Ubuntu_x64/TrustyTahr/KERNEL
$ cd /opt/Ubuntu_x64/TrustyTahr/KERNEL

Git Current Kernel

https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
$ git clone git://kernel.ubuntu.com/ubuntu/ubuntu-trusty.git


Get Current Kernel

$ export MYKERNEL=linux-image-$(uname -r)
$ apt-get source $MYKERNEL

$ cd cd linux-lts-utopic-3.16.0
$ cp /boot/config-`uname -r` .config

Do customize whatever you want to modify on this kernel source ...
Then,

$ make
$ make modules_install
$ make install




Thursday, October 15, 2015

Raspberry Pi GPIO Programming with C++

How to access your Rapberry Pi GPIO using C++? This brief information will lead you through the easy way to program GPIO port of Raspbery Pi B+ model . There are several c++ class library and/or methods available for you to do a program in C++, ie:
- WiringPi
- Direct Register Access by Hertaville
- Tutorial by VisualGDB
- My choice to use c++ library made by McCauley, on Raspberry-Projects.com, and Library homepage.








This article is not finished yet, ... please wait at the moment....

Friday, October 09, 2015

slimbian - Slim and Minimalist Raspbian

Minimal installation of raspbian.Jessie is out, targetted for full running lite server or embedded application.
  • 100% Official Raspbian compatible.
  • Less than 500MB installed.
  • Small memory footprint ~56MB.
  • ~09 seconds boot up on Raspberry Pi 2.
  • Linux 4.1.7-v7+ armv7l.
  • SSH server enable.
 Please check slimbian here !

Monday, October 05, 2015

Cross Compile WxWidgets/C++ Application for Raspberry Pi

How to Build wxWidgets / C++ for Raspberry Pi Model 2 (ARMv7 Architecture). 


UPDATED:
For ease to install and configure Eclipse-IDE/Toolchain, use following link of ready used installer:

wxWidgets is an awesome C++/GUI library to work with. It can produce very nice desktop interface and has complete class library either for GUI on non GUI. Binary program yields by this library is also small and portable. Statically linking is possible to make the program running independently to any linux distribution.

Raspberry Pi is credit card sized computer, it has small form factor with capability similar to PC of PIII/900MHz with 1GB RAM. Thus, sufficient to running desktop application, as in his case, Raspbian Wheezy.

Here, you will find brief tutorial how to build wxWidgets for Raspbian to run on Raspberry Pi model 2 (ARMv7 processor).

Setup environment to used are:
  • Build system on Ubuntu 14.04 LTS x64
  • buildroot
  • wxWidgets-3.0.2
  • Target: RaspberryPi2 and Raspbian Wheezy

Build Toolchain for ARMv7

To build cross architecture Toolchain we can use awesome build system called buildroot (http://buildroot.uclibc.org/)

$ cd ~
$ mkdir wxWidgets
$ cd ~/wxWidgets
$ git clone git://git.buildroot.net/buildroot
$ cd buildroot
$ make raspberrypi2_defconfig
$ make menuconfig


Adjust some requirement as follow:

    Toolchain
    C library (uClibc) --->
    (X) glibc

    Target packages > Graphic libraries and applications
    [*] X.org X WIndow System --->

    Target packages > Libraries > Graphics
    [X] libgtk2

    [Save]

$ make

Build wxWidgets for ARMv7

Once above toolchain baked and cooked well, then we can start to build and compile wxWidgets and it’s sample application.

$ export PATH=~/wxWidgets/buildroot/output/host/usr/bin:$PATH
$ cd ~/wxWidgets
$ wget http://nchc.dl.sourceforge.net/project/wxwindows/3.0.2/wxWidgets-3.0.2.tar.bz2
$ tar -xzpvf wxWidgets-3.0.2.tar.bz2
$ cd wxWidgets-3.0.2
$ mkdir -p build_rpi2/wx3.0.2u_static
$ cd build_rpi2/wx3.0.2u_static
$ ../../configure --host=arm-linux --with-gtk --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin --with-regex=builtin --with-zlib=builtin --with-expat=builtin LDFLAGS="-static-libgcc -static-libstdc++"
$ make
 


Sit back and relax...... 

Build Sample Application

$ cd samples/minimal
$ make

Copy sample/minimal/minimal to Pi's sdcard and from there try to run: 
$ ./minimal

See the result ................

After adjusting some path as describe on buildroot manual, you can download ready  used Raspberrypi-Toolchain on sourceforge.net. The  toolchain already tested on Ubuntu 14.04 with wxWidgets-3.0.2 as target built. This toolchain can be used for compiling Plain C/C++ for Pi application.