instantinfrastructure / edison-src

Edison BSP - https://communities.intel.com/docs/DOC-23242
10 stars 8 forks source link

postBuild.sh not working #6

Open rtvs16 opened 7 years ago

rtvs16 commented 7 years ago

Hello, I started playing with Edison board and I was able to create an image. When I tried preparing the flash using postBuild.sh I had the next error

` stat: cannot stat '/edison/build/tmp/deploy/images/edison/edison-image-edison.ext4': No such file or directory

./postBuild.sh: line 30: / 1048576: syntax error: operand expected (error token is "/ 1048576") EDISON_ROOTFS_MB = 1536, IMAGE_SIZE_MB = ./postBuild.sh: line 35: [: 1536: unary operator expected ` Later I realized that I need libqt4-core and libqt4-gui. I install them under Ubuntu 16 using the new name libqtcore4 and libqtgui4. Same error.

Going deeper, I changed line 9 as follows

if [ $# -eq 0 ]; then build_dir=$top_repo_dir/out/linux64/build else build_dir=$1 fi

Apparently the updated scripts from meta-intel-edison add extra directories. It is a patch that might not work in other systems, but just wanted to share how I make the script works and helps others.