Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant: Successive builds without reboot fail to write boot code to image. #751

Closed
JonahBraun opened this issue Sep 4, 2017 · 0 comments

Comments

@JonahBraun
Copy link
Contributor

When building with Vagrant, the first build produces a working image. A second build however will fail to write boot code to the image. That is, in the second image file, at 0x2000 there is nothing but 0s while the first image file contains code.

Workaround: After restarting Vagrant, the next build will produce a working image.

Steps to reproduce:

git clone https://github.com/armbian/build.git
cd build

# Change virtual box name so it plays nicely with existing installations.
sed 's/Armbian Builder/Armbian Bug Test/' Vagrantfile > newVagrant
mv newVagrant Vagrantfile

# as a separate bug, output directory must exist and currently does not
mkdir -p output

vagrant up

vagrant ssh -c 'cd armbian && sudo ./compile.sh\
  BRANCH=default BOARD=pine64so KERNEL_ONLY=no RELEASE=xenial\
  KERNEL_CONFIGURE=no BUILD_DESKTOP=no PROGRESS_DISPLAY=plain'
mv output/images/*img image_1.works.img

vagrant ssh -c 'cd armbian && sudo ./compile.sh\
  BRANCH=default BOARD=pine64so KERNEL_ONLY=no RELEASE=xenial\
  KERNEL_CONFIGURE=no BUILD_DESKTOP=no PROGRESS_DISPLAY=plain'
mv output/images/*img image_2.fail.img

vagrant halt
vagrant up

vagrant ssh -c 'cd armbian && sudo ./compile.sh\
  BRANCH=default BOARD=pine64so KERNEL_ONLY=no RELEASE=xenial\
  KERNEL_CONFIGURE=no BUILD_DESKTOP=no PROGRESS_DISPLAY=plain'
mv output/images/*img image_3.works.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants