우분투 7.10 을 사용하는 도중 usb to serial 을 사용하게 되었다.
하지만 /dev/ttyUSB* 파일이 어디에도 없었던것.
한참을 헤맨 뒤에 방법을 찾았다.
brltty 패키지와 충돌이 있어서 그런것.
해당 패키지를 삭제하니 문제가 해결되었다.
우분투 7.10 을 사용하는 도중 usb to serial 을 사용하게 되었다.
하지만 /dev/ttyUSB* 파일이 어디에도 없었던것.
한참을 헤맨 뒤에 방법을 찾았다.
brltty 패키지와 충돌이 있어서 그런것.
해당 패키지를 삭제하니 문제가 해결되었다.
1. Unpack Qtopia...
tar xfz qtopia-free-1.7.x.tar.gz
cd qtopia-1.7.x
export QPEDIR=$PWD
cd ..
2. Install Qt/Embedded...
tar xfz qt-embedded-2.3.x.tar.gz
cd qt-2.3.x
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
./configure -qconfig qpe -qvfb -depths 4,8,16,32
make sub-src
cd ..
You may also want to use the configure options
-system-jpeg and -gif for jpeg and gif support.
3. Install Qt/X11 2.3.2... Note that you must use
2.3.x, not 3.x, as this step is done to provide Qt 2
tools.
tar xfz qt-x11-2.3.2.tar.gz
cd qt-2.3.2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure
make
make -C tools/qvfb
mv tools/qvfb/qvfb bin
cp bin/uic $QTEDIR/bin
cd ..
You may also pass other configure options such
as -no-opengl or -no-xft as suitable to your
environment. Use ./configure -help for more
information. You may also want to build Qt Designer
(in tools/designer/).
4. Build Qtopia...
cd qtopia-1.7.x
export QTDIR=$QTEDIR
export QPEDIR=$PWD
export PATH=$QPEDIR/bin:$PATH
cd src
./configure
make
cd ../..
....하지만 실행 중 다음과 같은 오류가 발생할 수 있다.In file included from kernel/qt_x11.h:76,이는 freetype 관련 파일을 찾지 못해 생기는 현상이다. redhat9 이라면 다음과 같이 하면 문제를 해결할 수 있다.
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:35:31:
freetype/freetype.h: No such file or directory
In file included from kernel/qt_x11.h:76,
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error
before `;' token
/usr/X11R6/include/X11/Xft/Xft.h:86: 'FT_UInt' is used
as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:93: 'FT_UInt' is used
as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:354: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier
omitted for parameter `
FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error
before `,' token
/usr/X11R6/include/X11/Xft/Xft.h:418: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error
before `*' token
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/home/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/home/qt-2.3.2'
make: *** [init] Error 2
cd /usr/include
ln -s freetype2/freetype freetype
bootp란 호스트 PC에서 타겟 보드에 IP를 유동적으로 할당할 수 있는 프로토콜이다.
네트워킹에 기본이 되는 IP를 먼저 할당함으로써 tftp, nfs, 웹 서버 포팅 등이 가능하게 된다.
설치는 해당 rpm파일을 다운받은 후, 다음과 같이 입력하면 된다.
rpm -Uvh bootp-2.4.3-7.i386.rpm
rpm이 성공적으로 설치가 완료되면 다음과 같은 설정파일을 생성해준다.
/etc/bootptab
empos:
ht=1:
ha=0x000BA8000011:
ip=192.168.10.165:
sm=255.255.255.0
/etc/xinetd.d/bootp
service bootps
{
socket_type = dgram
flags = REUSE NAMEINARGS
protocol = udp
wait = yes
user = root
server = /usr/sbin/bootpd
server_args = -s
disable = no
}
그런다음 Bootloader에서 bootp 명령을 실행하면 된다.
단, 이 명령을 시작하기전 호스트 PC와 타겟보드 사이에는 크로스 케이블로 연결이 되어있어야 한다.
처음에는 이를 알지못하여 한창 헤메었다….