make image script (u-boot용 커널 이미지 생성)

Posted at 2008/04/08 15:00 // in Tips // by Daniel

$ cat make_image.sh
#!/bin/sh
TARGET_IMAGE=MPkernel`grep "EXTRAVERSION =" Makefile | awk '{print $3}'`         # ---->  MPkernel이름에 Makefile에 있는 버전정보를 붙인다.
TARGET_IMAGE=${TARGET_IMAGE}-`date +%m-%d`   # ---> 추가로 날짜를 붙인다.
mkimage -A arm -T kernel -C none -a 0x7fc0 -e 0x8000 -n MPCore -d arch/arm/boot/Image ${TARGET_IMAGE} && echo resulting image name = ${TARGET_IMAGE}


$ ./make_image.sh
Image Name:   MPCore
Created:      Tue Apr  8 14:54:37 2008
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2549424 Bytes = 2489.67 kB = 2.43 MB
Load Address: 0x00007FC0
Entry Point:  0x00008000
resulting image name = MPkernel-arm1-perfctr-04-08


실행하면 위와같이 생성된다.

개인적으로 나중에 보려고 올림.

크리에이티브 커먼즈 라이센스
Creative Commons License

emdebian setup

Posted at 2008/03/22 13:36 // in Tips // by Daniel

http://wiki.debian.org/EmdebianToolchain

gpg --recv-key 0x97BB3B58
gpg -a --export 0x97BB3B58 > emdebian.key
apt-key add emdebian.key
apt-get update

--------------------
vi sources.list
--> add
################################
# EmDebian Toolchain [i386 and AMD64]
# Etch
# deb http://www.emdebian.org/debian/ stable main
# Sid
deb http://www.emdebian.org/debian/ unstable main
# Lenny
# deb http://www.emdebian.org/debian/ testing main

------------------------------

apt-cache search armel

apt-get install libc6-armel-cross libc6-dev-armel-cross
apt-get install binutils-arm-linux-gnueabi
apt-get install dpkg-cross
(inserted ubuntu cdrom)

apt-get -s install libgomp1 (for dependency.. but not worked)
apt-get install gcc-4.2-arm-linux-gnueabi
-> gcc-4.2-arm-linux-gnueabi: Depends: libgomp1 (>= 4.2.2-3) but 4.2.1-5ubuntu4 is to be installed

added sources.list
##########################333
# debian
deb http://ftp.kr.debian.org/debian/ testing main
deb-src http://ftp.kr.debian.org/debian/ testing main

크리에이티브 커먼즈 라이센스
Creative Commons License