'2009/05/11'에 해당되는 글 2건

  1. 2009/05/11 [펌]dhcpd 설정 1
  2. 2009/05/11 glibc, libpcap, openssl 크로스 컴파일 정리

http://www.linuxquestions.org/questions/linux-networking-3/dhcpd-tftp-config-help-please-57870/
Here's my setup:
PXE Boot:
MotherBoard: Intel 815i
eth0: 3Com 35905b
PXE ver: 2.0

DHCP Server:
SuSE 7.3
192.168.202.100

TFTP Server:
Red Hat 9.0
192.168.200.57

/ect/dhcpd.conf:
option netbios-name-servers 192.168.200.31;
option time-servers timserv.testnet.mydomain.com;
option domain-name-servers 192.168.200.31;
option domain-name "testnet.mydomain.com";
option broadcast-address 192.168.202.255;
option subnet-mask 255.255.255.0;
option routers 192.168.202.5;
ddns-update-style none;
allow booting;
allow bootp;
subnet 192.168.202.0 netmask 255.255.255.0 {
}
group {
host stg20 {
ddns-updates off;
hardware ethernet 00:01:02:23:31:EB;
next-server 192.168.200.57;
filename "pxelinux.0";
fixed-address 192.168.202.120;
}
}

/etc/xinit.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -l -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser
TAG dhcpd
vmware에 제너럴리눅스로 컴퓨터 만든후
centos 5.3설치 후 arm툴체인 깔고

glibc컴파일 -펌
기본 디렉토리에서 컴파일이 안된다.
glibc를 컴파일 할 때 glibc말고 glibc와 같이 있는 linuxthread 패키지도 같이 받아서 그것 먼저 configure하고 glibc를 configure해야한다.
다른 디렉토리를 만들고 해당 디렉토리에서 소스코드가 있는 디렉토리에 있는 configure를 실행한다.
그러면 Makefile이 생성되고 이후의 방법은 같다.

../glibc-2.3.2/configure --host=arm-linux --prefix=/usr/loca/arm-linux --enable-add-ons=linuxthreads --build=i386-pc-linux-gnu


libpcap 컴파일- 펌
ac_cv_linux_vers=2 ./configure --host=arm-linux CC=arm-linux-gcc --build=i386-pc-linux-gnu --with-pcap=linux
make


openssl - 잡지 마소 펌
① www.openssl.org에서 소스를 다운받아 압축을 해제한다.
② ./Configure linux-elf-arm --prefix=/usr/local/SSL --openssldir=/usr/ local/SSL/OPENSSL no-threads no-zlib no-asm
③ Makefile에서 CC를 크로스 컴파일러(ex. arm-linux-gcc)로 변경한다. Makefile이 여러 개인데 모두 변경해 주어야 한다.
④ apps 디렉토리 안에 있는 makefile에서 LIBSSL에 ‘-ldl’을 추가시킨다. 또 test 디렉토리의 makefile에 LIBCRYPTO에 ‘-ldl’을 추가시킨다.
⑤ make; make install을 통해서 컴파일한다.
⑥ arm-linux-gcc -print-search-dirs로 라이브러리 검색 디렉토리 목록을 찾은 후 액세스 가능한 디렉토리에 생성된 라이브러리 파일 2개와 pkgconfig 디렉토리를 복사한다.
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser