diff options
author | Lorenzo Miori <memoryS60@gmail.com> | 2014-12-31 12:04:44 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-07 17:51:41 +0000 |
commit | 2dd6633d71520599ced688d83a00fc127a2e8d6b (patch) | |
tree | 173cfc901aabdac9f374e1368b0baff182e02c43 | |
parent | 3016d74c5ad456c41850fffeb6d637d4c0fde2fd (diff) | |
download | rockbox-2dd6633d71520599ced688d83a00fc127a2e8d6b.tar.gz rockbox-2dd6633d71520599ced688d83a00fc127a2e8d6b.zip |
ypr0 - ypr1: dynamically move rockbox executable
This trivial patch wants to exploit /tmp filesystem to place
Rockbox executable. Why that? It will be then possible to
easily unlock & umount the storage partition, in order to provide
Rockbox itself a mean for RAW storage access. In turn, this will
allow a Rockbox-handled USB Mass Storage support, as well as other
goodies (storage info is one I can think of).
It takes way less than a second so it doesn't hurt boot time.
Moreover, YPR0/YPR1 targets have plenty (64MB) of RAM, so
the humble half meg executable won't hurt at all.
Change-Id: Ibc9d9a40712e924c8e19cfd7c62189b182f0401a
-rwxr-xr-x | utils/ypr0tools/rockbox.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/ypr0tools/rockbox.sh b/utils/ypr0tools/rockbox.sh index d86aff5d53..af750034fc 100755 --- a/utils/ypr0tools/rockbox.sh +++ b/utils/ypr0tools/rockbox.sh | |||
@@ -64,5 +64,12 @@ mount --bind /mnt/media0/.rockbox /.rockbox | |||
64 | mount --bind /mnt/media0/Playlists /Playlists | 64 | mount --bind /mnt/media0/Playlists /Playlists |
65 | 65 | ||
66 | MAINFILE="/mnt/media0/.rockbox/rockbox" | 66 | MAINFILE="/mnt/media0/.rockbox/rockbox" |
67 | # Attempt to copy the executable in the /tmp directory | ||
68 | # This allows an easier USB Mass Storage Mode to be achieved (file handles) | ||
69 | cp $MAINFILE /tmp/rockbox | ||
70 | if [ $? -eq 0 ] | ||
71 | then | ||
72 | MAINFILE="/tmp/rockbox" | ||
73 | fi | ||
67 | MAINFILE_ARGV='' | 74 | MAINFILE_ARGV='' |
68 | MAINFILE_REDIRECT='>/dev/null 2>&1' | 75 | MAINFILE_REDIRECT='>/dev/null 2>&1' |