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

Fixes eewiki flasher #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hlapp
Copy link
Contributor

@hlapp hlapp commented Dec 27, 2015

Some directories that the script tries to unmount aren't mounted, and as a result the script fails prematurely before finishing the eMMC flash.

As a result, using the script to flash the eMMC when booted with the latest image fails. The changes here are the ones needed to make that succeed.

/boot/uboot is not a mounted filesystem for all images and combinations.
umount will fail if it's not, resulting in premature interruption of the
flasher script.
Filesystems mount on subdirectories of /tmp are already unmounted earlier
in the script. /tmp itself is not a mount point in all systems, and if it
isn't, umount will fail when called to unmount it, resulting in premature
termination of the flasher script. Also, it doesn't seem necessary to
unmount /tmp in this script (which doesn't run as init) even if it is a
mounted filesystem.
The -f flag causes the orderly shutdown (via shutdown -h) to be
circumvented, which arguably isn't better for the board than doing
an orderly shutdown, and can also easily result in the LEDs being in
some odd state rather than signaling power off.
@hlapp hlapp changed the title Fix eewiki flasher Fixes eewiki flasher Dec 27, 2015
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

Successfully merging this pull request may close these issues.

1 participant