2009/11/29

buildroot

REF:  http://opencsl.openfoundry.org/Lab01_intro.rst.html

1. Get the latest Buildroot ... I do in this way...
svn co svn://uclibc.org/trunk/buildroot
:
At revision 26250
2. make menuconfig
(a) Target Architecture ==> (X) arm
(b) Toolchain ==> [*] Enable RPC
(c) Target filesystem options ==> [ ] ext2 root filesystem
(d) Kernel -> Kernel type ==> (X) none
3. make
:
extra/scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: error: previous declaration of ‘getline’ was here
make[1]: *** [extra/scripts/unifdef] Error 1
make[1]: Leaving directory `/home2/yenping/buildroot/toolchain_build_arm/uClibc-0.9.30.1′
make: *** [/home/yenping/buildroot/toolchain_build_arm/uClibc-0.9.30.1/.configured] Error 2
 
 
3. vi ./toolchain_build_arm/uClibc-0.9.30.1/extra/scripts/unifdef.c
find all getline() , and replace as getline2()
there shall be 3 getline() to be replaced...
4. make
Just leave and have a break, because it may take times... :)  
 
5. vi ~/.bashrc and add below line
export PATH=~/buildroot/build_arm/staging_dir/usr/bin:$PATH
 
6. source ~/.bashrc
To be continued 

2009/11/23

gconf-sanity-check-2 exited with status 256

Terrible !!!

This morning, my Ubuntu 9.10 box message box showed 'gconf-sanity-check-2 exited with status 256' , and then I could not login my box anymore !!! But it's lucky, I could login as root.  Try to look for answers from google, but none of them worked !
[1] sudo chmod 755 /etc/gconf/*
[2] sudo chmod -Rc yenping:yenping /home/yenping

However, case [1] gave me some ideas, and I found permissions of /tmp becomes 755.
After below command, it works for me :)
[3] sudo chmod 777 /tmp

But I still have no more idea about that ~ confused !
Just keep records !

2009/11/14

Ubuntu 9.10, One Graphic Card for Dual Monitors

Ubuntu 9.10 x86_64 on Intel Q8490 + Nvidia GeForce 9400GT ...
the TwinView ...



[SYSTEM] - [MANAGEMENT] - [NVIDIA X Server Settings]


[O] X Server Information














[O] GPU 0 - (GeForce 9400 GT)














[O] X Server Display Configuration




















Found NEX T4211N disabled (in fact, it shall be CHIMEI DTL-742E400, 42" LCD TV connected via HDMI)

Select Model: NEX T4211N
and click [Configure...]











 
Then choose [TwinView]





















Set Resolution to 1920x1080,
and click [Apply] .

Then it works fine for me :)

[O] X Screen 0














It's interesting that screen captured will be ...
Left side on my CHIMEI CMV222H, and the RIGHT side on CHIMEI DTL-742E500


2009/11/06

OpenOffice 3.1.1 Installation

1. Download latest openoffice tar ball from http://download.openoffice.org/other.html

2. Extract tar ball to somewhere

3. cd somewhere/DEBS
4. sudo dpkg - i *.deb
5. cd desktop-integration
6. sudo dpkg - i *.deb

7. If something wrong with unexpected error and trying to recover Untitle 1 document again and again, just do 'rm ~/.openoffice.org', and re-install openoffice.


After that, everything works fine for me :)

ref: http://user.services.openoffice.org/en/forum/viewtopic.php?f=16&t=24322&start=0