Skip to content

Commit

Permalink
Update flash_ifs
Browse files Browse the repository at this point in the history
Working now within toolbox
  • Loading branch information
andy0172 authored Feb 26, 2020
1 parent bd05462 commit 0f47c5e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Phone/Apps/0/default/flash_ifs.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/sh

SDPATH=/net/mmx/fs/sda0/Advanced/IFS/ifsroot.ifs
SDPATH=/net/mmx/fs/sda0/Advanced/IFS/ifs-root.ifs

export PATH=.:/proc/boot:/bin:/usr/bin:/usr/sbin:/sbin:/mnt/app/media/gracenote/bin:/mnt/app/armle/bin:/mnt/app/armle/sbin:/mnt/app/armle/usr/bin:/mnt/app/armle/usr/sbin
export LD_LIBRARY_PATH=/lib:/mnt/app/root/lib-target:/eso/lib:/mnt/app/usr/lib:/mnt/app/armle/lib:/mnt/app/armle/lib/dll:/mnt/app/armle/usr/lib

# we do not want VW-HMI specific libecpp
unset LD_PRELOAD

if test -f "$SDPATH"; then
echo "The unit will now start flashing."
echo "Do NOT power down the unit while flashing."
Expand Down Expand Up @@ -38,13 +41,13 @@ if test -f "$SDPATH"; then
echo "1"
sleep 1
echo "Flashing will now start."
flashunlock
flashmib -a 0x00540000 -d -f /net/mmx/fs/sda0/Advanced/IFS/ifsroot.ifs
flashlock
on -f rcc flashunlock
on -f rcc flashmib -a 0x00540000 -d -f /net/mmx/fs/sda0/Advanced/IFS/ifs-root.ifs
on -f rcc flashlock
sleep 1
echo "Done"
else
echo "ifsroot.ifs not found at sda0/Advanced/IFS/"
echo "ifs-root.ifs not found at sda0/Advanced/IFS/"
exit 0
fi

Expand Down

0 comments on commit 0f47c5e

Please sign in to comment.