logo

한국어

file-5.18.tar.gz


1. 빌드에 필요한 CentOS x86_64 패키지 설치

#!/bin/sh
###########################################################
#
# 필요한 패키지 설치 (기본)
#
###########################################################
sudo yum -y install arj
sudo yum -y install ftp
sudo yum -y install git
sudo yum -y install lrzsz
sudo yum -y install man
sudo yum -y install mc
sudo yum -y install ntsysv
sudo yum -y install p7zip
sudo yum -y install samba
sudo yum -y install svn
sudo yum -y install telnet
sudo yum -y install unrar
sudo yum -y install vsftpd

###########################################################
#
# EPEL 저장소 설정
#
###########################################################
sudo wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
sudo rm -f epel-release-6-8.noarch.rpm remi-release-6.rpm

###########################################################
#
# 필요한 패키지 설치 (개발)
#
###########################################################
sudo yum -y install bzr
sudo yum -y install ccache
sudo yum -y install glibc.i686
sudo yum -y install hg
sudo yum -y install json-c
sudo yum -y install json-c-devel
sudo yum -y install libgc
sudo yum -y install libstdc++.i686
sudo yum -y install ncurses*
sudo yum -y install python-magic
sudo yum -y install python-matplotlib
sudo yum -y install qemu*
sudo yum -y install tex4ht
sudo yum -y install xz-devel
sudo yum -y install zlib-devel
sudo yum -y install zlib.i686


2. file 유틸리티 빌드 및 설치

Download : ftp://ftp.astron.com/pub/file/ (v5.18만 가능-첨부파일 참조)

#!/bin/sh
sudo rm -f /usr/lib64/libmagic.*
sudo rm -f /usr/lib/libmagic.*
sudo rm -f /usr/share/misc/magic*
sudo rm -f /usr/lib64/python2.6/site-packages/magic.so
./configure --prefix=/usr && sudo make install
cd ~/file-5.18/python && sudo python setup.py build
cd ~/file-5.18/python && sudo python setup.py install
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so.1.0.0
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so.1
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so


3. sdcc(small device c compiler) 빌드 및 설치

cvs -z3 -d:pserver:anonymous@sdcc.cvs.sourceforge.net:/cvsroot/sdcc co sdcc

./configure --prefix=/usr
sudo make install


4. firmware-mod-kit 빌드

firmware-mod-kit는 bin 파일의 분해를 위해 필요.

https://code.google.com/p/firmware-mod-kit/

tar -xvzf fmk_099.tar.gz
cd fmk/src
./configure
make all


번호 제목 날짜 조회 수
28 ipTIME N702BCM file 2018.04.20 171
27 OpenWRT 빌드환경 구축 (Ubuntu) 2018.04.16 92
26 OpenWRT, DD-WRT 국내 지원 모델 2018.04.13 106
25 Buffalo WHR-G300N V2 2016.04.06 162
24 ipTIME N604M 2016.04.06 230
23 SL-R6804 2016.04.06 245
22 TP-LINK TL-WR740N v4.22 2016.04.06 85
21 OpenWRT 이미지 빌드 2014.06.03 74
20 OpenWRT 기본 방화벽 룰셋 2014.06.03 81
19 kernel compile 2014.06.02 19
18 firmware-mod-kit의 펌웨어(bin) 추출과정 설명 2014.05.31 638
17 OpenWRT BuildRoot 중요 디렉토리 및 파일 2014.05.24 116
16 [OpenWRT] gnutls 컴파일 오류 해결방법 2014.05.24 30
15 dts 파일 컴파일 2014.05.23 1184
14 SL-R6804 정보 file 2014.05.23 46
13 MIPS Core군 정리 file 2014.05.19 83
» OpenWRT 빌드환경 구축 (CentOS 6.5 x86_64) file 2014.05.17 91
11 OpenWRT Boot Sequence 2014.05.17 52
10 OpenWRT BuildRoot 빌드 방법 2014.05.17 175
9 [OpenWRT] OpenVPN Server/Client 설정 2014.05.15 183