Сборка образов прошивки: различия между версиями

Строка 66: Строка 66:
apt-get update
apt-get update
apt-get install -y kpartx zip device-tree-compiler u-boot-tools=2016.11+dfsg1-4 libfdt1 binutils
apt-get install -y kpartx zip device-tree-compiler u-boot-tools=2016.11+dfsg1-4 libfdt1 binutils
echo Remove exist rootfs for re-create
rm -rf /rootfs/$WBDEV_TARGET
mount -t devtmpfs none /dev
mount -t devtmpfs none /dev
rm -rf ./output/rootfs_wb6x
#echo "Remove exist rootfs for re-create (if need)"
 
#rm -rf /rootfs/$WBDEV_TARGET
#bash -x ./rootfs/create_rootfs.sh 6x
#rm -rf ./output/rootfs_wb6x
ROOTFS=./output/rootfs_wb6x /root/rootfs/create_rootfs.sh 6x
export ROOTFS=./output/rootfs_wb6x
 
echo "Create new clean rootfs"
echo Create new clean rootfs
rm -rf $ROOTFS
ROOTFS=./output/rootfs_wb6x ./image/create_images.sh 6x
/root/rootfs/create_rootfs.sh 6x
#./image/create_images.sh 6x
echo "Create .fit image"
./image/create_images.sh 6x
echo "correct rights"
chmod a+rw -R ./output/images/
rm tmp.sh
rm tmp.sh
EOFcommand
EOFcommand
wb_editors
890

правок