카테고리

asm (27) bootloader_x86_grub (1) C (92) compile (11) config (76) CPP (13) CSS (1) debugging (7) gimp (1) Go (1) html (1) Java (1) JavaScript (1) kernel (19) LibreOffice (3) Linux system progamming (21) MFC (1) opencv (4) OpenGL (1) PHP (1) Python (4) qemu (29) shell (3) socket (7) troubleshooting (2) ubuntu18.04 (2) windows (1)

2019/01/05

x11 blackbox 윈도우메니지먼트 qemu 설치 테스트

일반 사용타 루트파일 시스템 다운로드
$ cd
$ git clone git://git.buildroot.net/buildroot
$ cd buildroot && make menuconf

커널 설정
Toolchain —>
[X] Enable large file (files > 2 GB) support
[X] Enable WCHAR support
[X] Enable C++ support

Package Selection for the target —>
Graphic libraries and applications (graphic/text) —>
[X] X.org X Window System, X11R7, release 7.5 —>
X Window System server type  —>
[X] Modular X.org

X11R7 Applications —>
[X] setxkbmap        // 선택 사항: us 이외의 다른 키보드 맵 지원
[X] twm
[X] xclock
[X] xinit
[X] xinput        // 선택 사항: 입력 장치 문제 찾기
[X] xkbcomp

X11R7 Drivers —>
[X] xf86-input-evdev
[X] xf86-input-keyboard
[X] xf86-input-mouse
[X] xf86-video-cirrus    // NOTE : qemu 그래픽 보드
[X] xf86-video-fbdev
[X] xf86-video-vesa

(호환성 드라이버 점검.)

[X] Liberation (Free fonts)
[X] xterm

Libraries –>
Text and terminal handling —>
[X] ncurses        // xterm 종속성 확인 , see http://lists.busybox.net/pipermail/buildroot/2011-March/041737.html

Hardware handling —>
[*] udev

Kernel —>
[X] Linux Kernel
Defconfig name : i386

Target filesystem options —>
[X] iso image (optional, only if you want to burn on a CD)
[X] initramfs for initial ramdisk of linux kernel
uncheck others

빌드
$ make

qemu 테스트
$ qemu -kernel output/images/bzImage -m 256

로그인
root/패스워드 없음)
x11  실행
# startx

TODO : qemu 마우스 커서 움직임 버그 존재(hal 패키지 설치)
USB 실제 컴퓨터 부팅시 마우스 잘 동작 함.
입력 장치 값: https://wiki.ubuntu.com/X/Config/Input

하드웨어 프레임 버퍼 활성화.
$ make linux-menuconfig

호환성 모두 포함
Device drivers —>
Graphics support —>
Support for frame buffer devices —>
Check everything

재 빌드 및 테스트
$ make && qemu -kernel output/images/bzImage -m 256

X11 시작
# startx

선택 사항
디버깅 xorg.conf 파일 수정
# X -configure
# mkdir -p /etc/X11
# cp xorg.conf.new /etc/X11/xorg.conf
# vi /etc/X11/xorg.conf

팁 : CTRL-ALT-BACKSPACE X를 죽이려면 xorg.conf 수정
vi xorg.conf
keyboard section :
Option  “XkbOptions” “terminate:ctrl_alt_bksp”

and add in a ServerFlags section :

Section “ServerFlags”
Option          “DontZap”       “false”
EndSection

</optional>

작은 윈도우 매니저머트 추가
$ make menuconfig

Package Selection for the target —>
Graphic libraries and applications (graphic/text) —>
[X] blackbox

참고: blackbox 기본 구성은 bitstream Vera 9 글꼴 사용. 글꼴이 추가되지 않으면 종료 됨.

재 빌드 테스트
$ make && qemu -kernel output/images/bzImage -m 256

바탕 화면 오른쪽 마우스 클릭 Blackbox 메뉴가 생성

rootfs 추가 준비
$ cd <your buildroot home>/output/target

선택 사항 busubox 용 키맵(여기서는 us keymap file, us.kmap) 만들고 복사한다.
$ sudo busybox dumpkmap >etc/us.kmap

부팅 시퀀서 수정
$ nano etc/init.d/rcS
loadkmap </etc/us.kmap

x윈도우 시작
startx

x 윈도우 시작 스크립트 수정
$ nano usr/lib/X11/xinit/xinitrc

주석 처리
#twm &
#xclock -geometry 50×50-1+1 &
#xterm -geometry 80×50+494+51 &
#xterm -geometry 80×20+494-0 &
#exec xterm -geometry 80×66+0+0 -name login

다음 추가
setxkbmap us
xterm &

# 윈도우 메니지먼트
exec blackbox

최종 테스트
$ cd <your buildroot home>
$ make && qemu -kernel output/images/bzImage -m 256

댓글 없음:

댓글 쓰기