Blog Ronald

Welcome to my Blog

Archive for October, 2008

Compiling gumstix buildroot on Ubuntu 8.04

Posted by T. Ronald S. on October 13, 2008

gumstix

Compiling gumstix buildroot on Ubuntu 8.04

1. These are minimum requirement for ubuntu users:
# sudo aptitude install build-essential libncurses5-dev bison flex texinfo gettext autoconf zlib1g-dev libssl-dev subversion
2. download gumstix buildroot, you can get it from subversion:
# svn co http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot
3. go into directory gumstix-buildroot
# cd path-to/gumstix-buildroot
4. remove default .config file first
# rm .config
5. run make defconfig
# make defconfig

You might be asked to choose the desired target platform during the process, so select the xscale CPU (#11) at 400MHz clock frequency for connex boards (verdex is iwmmxt (#12) with 400MHz or 600MHz)
6. run make
#make

and wait for some time. Then wait for some more time. If the process finishes successfully, your buildroot is done and you are ready to go.
7. After successfully building the default image you can start modifying the buildroot and e.g. add additional packages:
# make menuconfig
# make

8. This compiling will setup gumstix buildroot in host computer which you can customized it to build the linux kernel, in my current gumstix is using linux 6.21. this process also produce 3 images file: rootfs, uImage, and u-boot. you will need these files to reflash your verdex board. please see my next post in how to reflash the verdex board.

9. Usually, to make it easier for me cross compiling code to run application on verdex which is build in host computer, i added path to my environment path for arm-linux compiler: edit /etc/profile and added these two lines.

PATH=PATH:path-to/gumstix-buildroot/build_arm_nofpu/staging_dir/bin
export PATH

Posted in Gumstix | Leave a Comment »

instalasi postgesql 8-3 di ubuntu 8.0.4

Posted by T. Ronald S. on October 13, 2008

berikut langkah-langkah instalasinya:
#sudo apt-get install postgresql-8.3
setelah terinstall, ada 2 file yg perlu di edit:
1. #sudo nano /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = ‘*’
2. #sudo nano /etc/postgresql/8.3/main/pg_hba.conf
ubah: local all all ident sameuser
menjadi: local all all trust
tambahkan:
host all all 0.0.0.0 0.0.0.0 trust

kemudian jangan lupa merestart service nya:
#sudo /etc/init.d/postgesql-8.3 restart
langkah berikutnya adalah mengubah password postgres, lakukan langkah2 berikut:
#sudo -u postgres psql template1

ALTER USER postgres WITH PASSWORD ‘your-password’
\q
kemudian restart lagi servicenya:
#sudo /etc/init.d/postgesql-8.3 restart
untuk software client, saya lebih memilih pgAdmin III

Posted in postgresql | Leave a Comment »