인디노트

Ubuntu VM 에 OpenWRT 컴파일 해 보기 본문

개발 플랫폼 및 언어/OpenWRT

Ubuntu VM 에 OpenWRT 컴파일 해 보기

인디개발자 2024. 3. 18. 08:29

sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \
python3-distutils rsync unzip zlib1g-dev file wget



# Download and update the sources
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull
 
# Select a specific code revision
git branch -a
git tag
git checkout v23.05.0
 
# Update the feeds
./scripts/feeds update -a
./scripts/feeds install -a
 
# Configure the firmware image
make menuconfig
 
# Optional: configure the kernel (usually not required)
# Don't, unless have a strong reason to
make -j$(nproc) kernel_menuconfig
 
# Build the firmware image
make -j$(nproc) defconfig download clean world

root 권한으로 하면 안됨
$ make -j8

Your BIOS Boot Partition is under 1 MiB, please increase its size..
sed -i 's/256/1024/g' target/linux/x86/image/Makefile


make[5]: *** [Makefile:154: /home/kgy/Downloads/openwrt/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-x86-64-generic-ext4-combined.vmdk] Error 1
x86_64-softmmu 설정
qemu-utils 패키지에 속하는 qemu-img를 설치하고 sudo apt-get -y install qemu-utils를 실행하여 설치합니다.



*** Ouch! ***
Python's ensurepip module is not found.
It's normally part of the Python standard library, maybe your distribution packages it separately?
Either install ensurepip, or alleviate the need for it in the first place by installing pip and setuptools for '/home/kgy/Downloads/openwrt/staging_dir/host/bin/python3'.
(Hint: Debian puts ensurepip in its python3-venv package.)
ERROR: python venv creation failed

sudo apt install python3-venv


반응형
Comments