Bug #1698
set_startup -l may cause corruption when re-building
| Status: | Closed | Start date: | 2016-05-29 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | - | |||
| Target version: | - |
Description
A user had a BeagleRT/BeagleRT file of size 0. When trying to make it again, they would get the "Text file busy" message.
It turned out that the while 1 loop in set_startup.sh -l prevented the file from being accessible. Also, a while 1 with a file of size 0 means that the board took several minutes to boot and bring up the ssh client (because it was busy running the while loop).
To be noted that the 0-bytes file was not generated from "make" on the BBB, but from build_pd_heavy.sh, which should in theory quit the screen before everything else.
Either way, at the very least, we need to while sleep 1; instead of while 1
Associated revisions
Makefile syncs buffer to disk after building. Closes #1698
History
#1
Updated by Giulio Moro over 9 years ago
this may be related to the fact that when logging to disk, it requires ctr-\ to quit
#2
Updated by Giulio Moro over 9 years ago
or maybe simply the fact that the file system is not synced before the board is powered off.
Golden rule: after building, make sure you
$ sync
so that the buffers are flushed to disk
#3
Updated by Giulio Moro over 9 years ago
All of this has been done (in separate commits).
closed 4edf9a840a2a
#4
Updated by Giulio Moro over 9 years ago
- Status changed from New to Closed