3.3在./config/config.help增加帮助或者说是描述文本
CONFIG_USER_HELLO
This program print hello on screen.
3.4修改../user/Makefile增加
dir_$(CONFIG_USER_HELLO) += app
3.5编译
$make distclean or make clean
$make menuconfig or make xconfig
在Kernel/Library/Defaults selection->customize vendor/user setting
然后exit->do you wish to save your new kernel configuration->yes
5.0随便那个目录建立led.c如下
/*******************************************************
* File Name: led.c
* Description: led's blink
* Author:panasonic.lin@163.com
* Date:2009-12-29
*******************************************************/
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
/*define port configuration register and port data register address*/
#define PCONC (*(volatile unsigned *)0x01D20010)
#define PDATC (*(volatile unsigned *)0x01D20014)
/*LED0<->GPC1=bit[3:2] not used*/
/*LED1<->GPC2=bit[5:4] had used in uClinux-dist20050311/linux-2.4.x/arch/armnommu/mach-S3C44B0X/leds.c*/
/*LED2<->GPC3=bit[7:6] had used in uClinux-dist20050311/linux-2.4.x/arch/armnommu/mach-S3C44B0X/leds.c*/
#define LED0_CON (0x01<<2)
#define LED1_CON (0x01<<4)
#define LED2_CON (0x01<<6)