我想使用 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;