Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

맛만 볼게요

임베디드 os 만들기 - 1 - 기본 환경 구축 본문

임베디드/os

임베디드 os 만들기 - 1 - 기본 환경 구축

여기우리집 2022. 11. 22. 09:05

환경: 윈도우10 + ubuntu 22.04 듀얼 부팅

.. 을 다른 데스크탑에서(윈도우10 wsl + ubuntu20.04) ssh로 접속 후 진행 중

 

책: 도전 임베디드 os 만들기 _ 이만우

 

사용 파일:

qemu, 

arm-linux-gcc-3.3.2(크로스 컴파일러란? 크로스 컴파일러 설치 방법!! (도전 임베디드 OS 만들기) (tistory.com)), 

gumstix_uboot(도전 임베디드 OS 만들기 - qemu, u-boot 설치(Ubuntu 18.04 64bit ver) (tistory.com)), 

ezboot

 

 

 

- qemu 설치

sudo apt-get install -y qemu

sudo apt-get install -y qemu-system

 

- arm-linux-gcc 설치

git clone https://github.com/dnfwlq8054/arm_gcc.git

sudo cp arm-linux-gcc-3.3.2.tar.bz2 /

sudo tar -xvjf arm-linux-gcc-3.3.2.tar.bz2

vim ~/.profile
> ...
> PATH=/usr/local/arm/3.3.2/bin:/usr/local/arm/3.3.2/sbin:"${PATH}" 추가

source ~/.profile

 

- gumstix_uboot 다운로드

git clone https://github.com/dnfwlq8054/u_boot-1.1.4-.git

tar -xvzf gumstix_uboot.tgz

make distclean

make gumstix_config

make all

* u-boot, u-boot.bin 생김 *

 

- ezboot 다운로드

wget http://forum.falinux.com/_zdownload/data/ezboot.x5.v18.tar.gz

tar -xvzf ezboot.x5.v18.tar.gz

 

 

 

- uboot 작동 테스트

qemu-system-arm -M connex -pflash u-boot.bin -nographic

>> error <<
* (device requires (16777216){A)bytes, block backend provides (159232){B}bytes)

**> dd if=/dev/zero of=flash.bin bs=16M count=1

**> dd if=u-boot.bin of=flash.bin bs=16M conv=notrunc

qemu-system-arm -M connex -pflash u-boot.bin -nographic

* OK *

아, 여기서 나가는 방법은 ctrl + a 눌렀다가 빠르게 x를 눌러주면 된다고 함.

 

 

 

드디어..!

너무 험한 길이었따...

 

Comments