
임베디드 장치의 파일 시스템을 생성하기 위해 genimage 도구를 사용하고 싶지만 사용하고 싶을 때 기본적으로 Ubuntu 18.04에 설치되지 않은 것 같습니다. genimage: not found
그러면 여기에 어떻게 설치할 수 있는지 아는 사람이 있습니까?
답변1
#!/bin/bash
# download and create genimage by nagel
#update ubuntu
sudo apt install -y autoconf
sudo apt install -y gcc
sudo apt-get install -y make
sudo apt-get install -y genext2fs
sudo apt-get update -y
sudo apt-get install -y libconfuse-dev
rm -rf download
git clone https://github.com/pengutronix/genimage.git download
pushd download
./autogen.sh
./configure CFLAGS='-g -O0' --prefix=/usr
make
popd
if [ -e download/genimage ]
then
cp download/genimage .
rm -rf download
echo "creation of genimage successful"
else
echo "creation of genimage failed"
fi;