search results for 'porting'

  1. 2006/12/14 linux 2.6.x porting #2
  2. 2006/12/14 linux 2.6.x porting
add issue

device driver -> block device -> loopback device -> initrd

file system -> NFS uncheck

그외 불필요한거 삭제 ->MTD, 기타 등등
그래야 zImage 용량이 줄어든다 크허허허허허허허

===================================================================================

linux kernel porting sequence

- modify machine code
$(kerneldir)/arch/arm/boot/compressed/head-xscale.S 수정

mainstone을 기준으로 변경한다 -> mainstone은 100번이 넘기 때문에 mov로 안되고 ldr로 해야 한다

- Makefile 수정
ARCH := arm
CROSS_COMPILE := arm-linux-

- $(kdir)/include/asm/arch-pxa/debug-macro.S
orr   \rx, \rx, 0x00100000 -> 0x00700000     @ FFUART-> STUART

-$(kdir)/include/asm-arm/arch-pxa/uncompressed.h
#define   FFUART -> STUART

-$(kdir)/arch/arm/kernel/setup.c
#define MEM_SIZE (16*1024*1024) -> (128*1024*1024)

- $(kdir)/arch/arm/mach-pxa/mainstone.c
memory mapping 수정
io_desc memory map을 참조하여 수정

- kernel configuration
boot command
="root=/dev/ram0 initrd=0xa0400000,5M ramdisk=12288 console=ttyS2,115200 mem=128M rw"

- make mainstone_defconfig
이후 불필요한 device driver 삭제 -> kernel zImage 용량을 줄이기 위해

- file system
ext2 file system
ext2 file system extend

이정도만 고치면 될듯 ㅡㅡㅋ

===================================================================================