Friday, January 9, 2009

HOWTO lock screen as root on Fedora Core 9

The default screen saver, xscreensaver, does not support this feature, so we need "xlockmore".

[ ]# yum install xlockmore
[ ]# yum install xautolock

[ ]# xlock

Wednesday, January 7, 2009

HOWTO Install Kermit on Fedora Core 9

Installation
[ ]# mkdir kermit
[ ]# cd kermit
[ ]# wget ftp://kermit.columbia.edu/kermit/archives/cku211.tar.gz
[ ]# tar zxvf cku211.tar.gz
[ ]# make linux
[ ]# make install

User Manual
[ ]# kermit -l /dev/ttyS0 -b 9600 -c

Reference:
1. http://www.columbia.edu/kermit

Monday, December 29, 2008

HOWTO compile Optware on Fedora Core 9

1. Checkout source code from SVN server
[ ]# mkdir /home/NSLU2-Linux
[ ]# cd /home/NSLU2-Linux
[ ]# svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
[ ]# cd optware

2.1 For Linksys NSLU2 platform:
[ ]# make nslu2-target
[ ]# make

2.2 For ts72xx platform:
[ ]# make ts72xx-target
[ ]# make
-- Failed

Reference:
1. http://trac.nslu2-linux.org/optware
2. http://peter.korsgaard.com/articles/debian-nslu2.php

Friday, December 26, 2008

HOWTO install/upgrade firefox-2 on Fedora Core 6 (FC6)

FC6 uses Firefox 1.5 by default. If you want to use Firefox 2, this blog is for you.

[ ]# wget http://rpms.famillecollet.com/fc6.i386/firefox2-2.0.0.14-1.fc6.remi.i386.rpm
[ ]# rpm -Uvh firefox2-2.0.0.14-1.fc6.remi.i386.rpm

Other RPM source:
firefox2-2.0.0.14-1.fc6.remi.i386.rpm
firefox2-devel-2.0.0.14-1.fc6.remi.i386.rpm

Reference:
1. HOWTO: Install Firefox 2.0 on Fedora Core 6
2. Installing Firefox 2 on Fedora Core 6

SLAB, SLUB, SLOB

SLAB

SLUB

SLOB -- For Embedded System

Working...

Thursday, December 25, 2008

HOWTO compile OpenWrt (Kamikaze) on Fedora Core 9

1. Checkout Kamikaze from https://dev.openwrt.org/
Development branch:
[ ]$ mkdir /home/scott/Kamikaze
[ ]$ cd /home/scott/Kamikaze
[ ]$ svn co https://svn.openwrt.org/openwrt/trunk/
[ ]$ cd trunk

2. Checkout more packages (for Xorg...)

[ ]$ make package/symlinks

3. Enter menuconfig-style menu, enable X.

4. Install some RPMs
[ ]$ rpm -ivh eet-1.0.1-1.fc9.i386.rpm
[ ]$ rpm -ivh evas-0.9.9.043-2.fc9.i386.rpm
[ ]$ rpm -ivh ecore-0.9.9.043-1.fc9.i386.rpm
[ ]$ rpm -ivh embryo-0.9.9.043-1.fc9.i386.rpm
[ ]$ rpm -ivh edje-0.9.9.043-1.fc9.i386.rpm

5. Compile OpenWrt!
[ ]$ make
or
[ ]$ make V=99

6. That's it.

Wednesday, December 24, 2008

CFI-compliant NOR Flash Device Driver

CFI-compliant NOR Flash Device Driver

CPU: ARM
Example: MXIC MX29LV640D T/B (Parallel, Top Boot Flash)

Bootloader: u-boot-2008.10 (tar.bz2)

Description:
You can implement the driver in two different ways. The first one is a standalone driver and the second one is based on CFI (Common Flash Interface).
(1) You have to implement at least four functions in flash.c
flash_init()
flash_print_info()
write_buff()
flash_erase()

(2) Use the common CFI flash driver
You just need to do some patch work about flash chip.

Patch File:
(1) Standalone Device Driver (source code)
(2) CFI (patch file)

Querying the flash information on u-boot
[]# flinfo
Bank # 1: MXIC 29LV640DT FLASH (8 x 8) Size: 8 MB in 135 Sectors
   AMD Legacy command set, Manufacturer ID: 0xC2, Device ID: 0xC9
   Erase timeout: 30000 ms, write timeout: 100 ms

   Sector Start Addresses:
   10000000 ......

CFI Specifications:
1. Common Flash Memory Interface Specification, Release 2.0, AMD, 2001 (Download)
2. Common Flash Interface (CFI) JEDEC Standard, JESD 68.01, 2003 (Download) (2)
3. Common Flash Interface ID Codes, JEP 137B, 2004 (Download) (2)

Reference:
1. JEDEC