2004 to 2020 Mazda 3 Forum and Mazdaspeed 3 Forums banner
1 - 9 of 9 Posts

·
Registered
Joined
·
10 Posts
Discussion Starter · #1 ·
Good day! I have a trouble when install MZD Tweak.
Firmware 504. Car - Cx-5 2017. After dismantling the front panel and connecting to the device, I was able to patch it.

I used 2 commands:
1. cp -r /tmp/mnt/sd*/* /tmp/mnt/data_persist/dev/bin/
Code:
pastebin.com/8bgJZWLq
sorry. cant put link
2. chmod +x /tmp/mnt/data_persist/dev/bin/autorun
Code:
!/bin/sh
# dry run example : run.sh
DIR=$(dirname $(readlink -f $0))
/jci/tools/jci-dialog --title="SUCCESS" --text="AUTORUN ACTIVATED!\n${DIR}" --ok-label='OK' --no-cancel
After a successful patch, I collected everything back.
Now if there is a run.sh file on the USB flash drive, the following message is displayed on the monitor after reboot:
Code:
SUCCESS
AUTORUN ACTIVATED!
/tmp/mnt/sda1
OK
I compiled the distribution with the help of mazdatweak and copied it to my USB flash drive. And rename tweak.sh to run.sh
Code:
 Directory of E:\

04/30/2018  01:51 PM    <DIR>          config
04/30/2018  01:51 PM    <DIR>          config_org
04/30/2018  01:51 PM            32,405 cmu_dataretrieval.up
04/30/2018  01:51 PM               286 dataRetrieval_config.txt
04/30/2018  01:51 PM                 1 jci-autoupdate
04/30/2018  03:11 PM               838 MZD_LOG.md
04/30/2018  01:51 PM            25,754 run.sh
After rebooting the device, the following text appears
Code:
ERROR!
Mount point not found,have to reboot again
and after 5 sec device rebooted.
I was trying out different USB flash drives (1,4,8,16gb) with fat32

Tell me please, what am I doing wrong?
 

·
Pretty Cool Dude
Joined
·
329 Posts
When you ran `cp -r /tmp/mnt/sd*/* /tmp/mnt/data_persist/dev/bin/, what was the content of your flash drive (what did you copy over). Your `/tmp/mnt/data_persist/dev/bin/` folder should have the autorun file, 99-execute-run-sh-from-sdcard-and-usb-at-startup.autorun file, and a few ##-XXX folders. Also make sure there is a folder called `00-run-tweaks-from-usb`. This will let you run tweaks from flash drive without having to rename it to run.sh.
 

·
Pretty Cool Dude
Joined
·
329 Posts
Why did you rename tweak.sh to run.sh?
There was a script in the Autorun/ID7 Recovery that lets you run scripts from flashdrive (run.sh file) if the run.sh file exists. It is good for quickly running custom tweaks but for the tweaks from MZD AIO Tool, you wont need to rename it to run.sh since its already formatted to be ran from car.
 

·
Registered
Joined
·
10 Posts
Discussion Starter · #6 · (Edited)
When you ran `cp -r /tmp/mnt/sd*/* /tmp/mnt/data_persist/dev/bin/, what was the content of your flash drive (what did you copy over). Your `/tmp/mnt/data_persist/dev/bin/` folder should have the autorun file, 99-execute-run-sh-from-sdcard-and-usb-at-startup.autorun file, and a few ##-XXX folders. Also make sure there is a folder called `00-run-tweaks-from-usb`. This will let you run tweaks from flash drive without having to rename it to run.sh.
When i first run put usb disk i have only 2 file
Code:
https://yadi.sk/d/Sn3iIkXa3N5TmD
Code:
09/20/2017  03:36 PM               851 autorun
09/20/2017  03:36 PM               174 run.sh
There was a script in the Autorun/ID7 Recovery that lets you run scripts from flashdrive (run.sh file) if the run.sh file exists. It is good for quickly running custom tweaks but for the tweaks from MZD AIO Tool, you wont need to rename it to run.sh since its already formatted to be ran from car.
that is, do I need extract to usb flash autorun.v3 and paste it into the car?


Code:
04/30/2018  09:34 PM    <DIR>          .
04/30/2018  09:34 PM    <DIR>          ..
07/03/2017  11:43 PM    <DIR>          00-run-tweaks-from-usb
06/19/2017  10:20 PM    <DIR>          00-start-wifiAP
06/19/2017  04:32 PM    <DIR>          00-update-etc-passwd-if-needed
06/19/2017  02:36 PM    <DIR>          00-update-sshd-config-if-needed
06/18/2017  08:53 PM    <DIR>          01-start-sshd-and-open-firewall
07/04/2017  12:56 AM               454 99-execute-run-sh-from-sdcard-and-usb-at-
startup.autorun
07/04/2017  12:47 AM               704 autorun
               2 File(s)          1,158 bytes


is it possible not to parse the machine again to run the installation of these scripts?

i think i create new script run.sh with next content
cp -r /tmp/mnt/sd*/XX/* /tmp/mnt/data_persist/dev/bin/; chmod +x /tmp/mnt/data_persist/dev/bin/autorun
and extract autorun.v3 to flash.
 

·
Registered
Joined
·
10 Posts
Discussion Starter · #7 ·
i checked 2 files and dont find differents

from 99-execute-run-sh-from-sdcard-and-usb-at-startup.autorun
 

·
Pretty Cool Dude
Joined
·
329 Posts
At a minimum you need `00-run-tweaks-from-usb` folder, `99-execute-run-sh-from-sdcard-and-usb-at-startup.autorun` file, and autorun file inside `/tmp/mnt/data_persist/dev/bin/` folder.

What is the content of your `/tmp/mnt/data_persist/dev/bin/` folder?
 

·
Registered
Joined
·
10 Posts
Discussion Starter · #9 ·
Unfortunately, I have already collected the machine back, and now I can not look through the console file list. And I do not know how to look without a console.
The only way out I have left is launching the file from flash drive via run.sh
Do you think if I create a file run.sh with the following contents:

run.sh
Code:
cp -r /tmp/mnt/sd*/XX/* /tmp/mnt/data_persist/dev/bin/; chmod +x /tmp/mnt/data_persist/dev/bin/autorun
Content of usb drive:
Code:
05/01/2018  11:39 AM    <DIR>          .
05/01/2018  11:39 AM    <DIR>          ..
07/03/2017  11:43 PM    <DIR>          00-run-tweaks-from-usb
07/04/2017  12:56 AM               454 99-execute-run-sh-from-sdcard-and-usb-at-startup.autorun
07/04/2017  12:47 AM               704 autorun
07/04/2017  12:47 AM               200 run.sh
This video explain what i have
https://yadi.sk/i/tKTKTUHZ3V5VZX
 
1 - 9 of 9 Posts
Top