맛만 볼게요
임베디드 os 만들기 - 1 - 기본 환경 구축 본문
환경: 윈도우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를 눌러주면 된다고 함.
드디어..!
너무 험한 길이었따...
'임베디드 > os' 카테고리의 다른 글
ubuntu 16.04 + 페타리눅스 2017.2 - ffmpeg 추가 및 프로젝트 빌드 (0) | 2022.12.05 |
---|---|
ubuntu 16.04 + 페타리눅스 2017.2 - 빌드 환경 구성 (0) | 2022.12.05 |
Comments