olli991 / mib-std2-pq-zr-toolbox

Toolbox for MIB STD2 PQ/ZR Technisat/Preh units.
https://discord.gg/YU3rjatWjT
MIT License
439 stars 74 forks source link

CP patching issues with 01xx firmware #142

Closed olli991 closed 1 year ago

olli991 commented 1 year ago

Hi, I'm publishing files dumped as in the instructions and I'm asking for help, because "standard" unit patching does not work :/

Thank you in advance for your help (: MST2_EU_VW_ZR_P0140T.zip

Originally posted in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1184562496

olli991 commented 1 year ago

Hi, I'm publishing files dumped as in the instructions and I'm asking for help, because "standard" unit patching does not work :/

Thank you in advance for your help (: MST2_EU_VW_ZR_P0140T.zip

Someone badly patched your unit. Restore stock SWAP from stock 140 vesion by using Manual SW download option and then patch again.

Originally posted by @lprot in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186102809

olli991 commented 1 year ago

Dear All, tried to install toolbox but i am getting unknown file size detected when trying to cp off. unit runs >>>MST2_EU_VW_ZR_P0131T [](url support.zip )

Added to https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

I did perfrom upgrade from MST2_EU_VW_ZR_P0131T to MST2_EU_VW_ZR_P0140T which worked just fine i then after thried to install toolbox which also looked fine When i tried to set CP off then the unit is in continious boot loop VW logo- bluemotion Logo off and again..... Any idea how i can restore unit?

Welcome to the club of owners of the 140T version, only I updated from the 138T version and already twice (even last night again) I restored the software according to the instructions (it only looks so hard, but it is really simple, you only need to buy a 3.3V encoder , even the VW dealer did not want to reinstall because the 138T and 140T software was issued with an error, this is what I heard at the VW dealer)

https://mibwiki.one/doc/technisat-pqzr-recovery-via-emergency-download-ssc0H3OtBI

Also after trying to patch CP, which as you can see in my and your example in these units, leads to loops, so in this topic I try to figure out how to straighten it all out with the creators of the TOOLBOX, today the sixth approach ...

Originally posted in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186140030

olli991 commented 1 year ago

Hi, I'm publishing files dumped as in the instructions and I'm asking for help, because "standard" unit patching does not work :/ Thank you in advance for your help (: MST2_EU_VW_ZR_P0140T.zip

Someone badly patched your unit. Restore stock SWAP from stock 140 vesion by using Manual SW download option and then patch again.

Thank you for the information, I also suspected something was wrong. I know that for you the statements "using Manual SW download option" are something banal, but I would like to ask for more detailed tips, i.e. whether restoring SW from MANUAL DOWNLOAD involves downloading pure software 140 / preparing the card and updating or restoring the default version of the system from the installed currently software?

Originally posted by in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186140988

olli991 commented 1 year ago

MST2_EU_SK_PQ_P0138T.zip Succesfully pached and activated mirrorlink , but after i pached CP i got boot looping and i have to do emergency update to restore the unit ( Below is picture at the finish of paching CP )

Added sanity check to https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

Installed this version of toolbox and same problem, after patch CP i get boot looping and i have to do emergency update)

I beleive it is fixed in the https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip There was a typo in reset param. Fixed now.

In this TOOLBOX you fixed issue when after patching CP unit starts to loop over again? Can i also use it on 140T software?

Originally posted in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186142026

olli991 commented 1 year ago

Dear All, tried to install toolbox but i am getting unknown file size detected when trying to cp off. unit runs MST2_EU_VW_ZR_P0131T [](url support.zip )

Added to https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

I did perfrom upgrade from MST2_EU_VW_ZR_P0131T to MST2_EU_VW_ZR_P0140T which worked just fine i then after thried to install toolbox which also looked fine When i tried to set CP off then the unit is in continious boot loop VW logo- bluemotion Logo off and again..... Any idea how i can restore unit?

https://mibwiki.one/doc/technisat-pqzr-recovery-via-emergency-download-ssc0H3OtBI

As I assume that you got reboot loop after using the latest version we can admit that something wrong is happening after patching CP on 01xx units. But you can try to analyse yourself if you are interested: https://github.com/olli991/mib-std2-pq-zr-toolbox/blob/64b17f9317ab6a2a5ea661dc031fb6af5f9376d1/cpu/onlineservices/1/default/tsd/etc/persistence/esd/scripts/patch_cp.sh

Originally posted by @lprot in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186164169

olli991 commented 1 year ago

Hello again, After the last CP patch attempt and fall into a boot loop, on your advice I got the system back to P0140T (emergency download), installed the newest TOOLBOX and made 2/3 patches (SWDL / SWAP) again. I'm attaching my new SUPPORT data dump and can I ask for a "look" of a specialist and for any advice what is the probability that after applying CP patch (3/3) I will have to recover the system through EMERGENCY DOWNLOAD? again (:

support-MST2_EU_VW_ZR_P0140T.zip

Thank You!

I thought that update 1.1.2 was dictated by my next attempt to patch CP for the third time, so first I updated the TOOLBOX, and then turned on CP patching for sure ... Unfortunately, it will probably have to be withdrawn because it did not fix CP patching in ALL 01xx firmware because the third time I restart my firmware (0140T) through emergency downoad ... Someone, help?

IMG_20220718_212208

Originally posted in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1186341181

olli991 commented 1 year ago

I thought that update 1.1.2 was dictated by my next attempt to patch CP for the third time, so first I updated the TOOLBOX, and then turned on CP patching for sure ... Unfortunately, it will probably have to be withdrawn because it did not fix CP patching in ALL 01xx firmware because the third time I restart my firmware (0140T) through emergency downoad ... Someone, help?

Added sanity checks for 1xx in https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip Now it should not create a bootloop situation anymore. Can you check it out please?

Originally posted by @lprot in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1190993513

olli991 commented 1 year ago

I'm downloading and in 1-2h i'll try to do it on my fresh EMERGENCY DOWNLOAD firmware, again... We will see if I will have to do ED for the fourth time (: fingers cross...

Well, I tried... It's not too bad, but it hasn't happened yet ... I haven't done a reboot, so I don't know if it can also get into a loop after a failed attempt? What now? Help?

IMG_20220721_165657

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1191334571

olli991 commented 1 year ago

j5startup_size=$(ls -l /net/J5/tsd/bin/system/startup_main | awk '{print $5}' 2>/dev/null)

they shouldn't be...

j5startup_size=$(ls -l /net/J5/tsd/bin/system/startup | awk '{print $5}' 2>/dev/null) ???

... also you should to try remove this fragment:

if [[ "$size" == "1852137" || "$size" == "1851273" || "$size" == "1850369" || "$size" == "1850393" ]]; then
    echo "else" >>/net/imx6/tsd/bin/system/startup_main
    echo "   /tsd/bin/system/wd_procterm.sh 'tsd.mibstd2.main.root' J5e.MCP 0 "'"main.root crash"' >>/net/imx6/tsd/bin/system/startup_main
fi

in my opinion this is the reason "bootloop" sw01 ... although I would like to see log.txt from putty

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1191958380

olli991 commented 1 year ago

Well, I tried... It's not too bad, but it hasn't happened yet ... I haven't done a reboot, so I don't know if it can also get into a loop after a failed attempt? What now? Help?

Please install update and try again https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

Unfortunately, this time also the message as below ...

IMG_20220722_101400

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192308622

olli991 commented 1 year ago

Well, I tried... It's not too bad, but it hasn't happened yet ... I haven't done a reboot, so I don't know if it can also get into a loop after a failed attempt? What now? Help?

Please install update and try again https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

Unfortunately, this time also the message as below ...

@to0nk Applied some changes https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

@yox2019 we need that else because on 1xx the startup looks like:

      on -p 20 /tsd/bin/root/tsd.mibstd2.main.root -file=/tsd/etc/system/main.conf -reset=/net/imx6/tsd/var/root/reset.count.main
      RET=$?
      if [ $RET -eq 0 ] ; then
         echo "main.root terminated -> calling shutdown script"

         # source it to avoid spawning a new shell
         . /tsd/bin/system/shutdown

         echo "shutdown finished!"
      elif [ $RET -eq 42 ] ; then
         echo "MP42 set to low! -> Boot Stopped."
      else
         /tsd/bin/system/wd_procterm.sh 'tsd.mibstd2.main.root' J5e.MCP 0 "main.root crash"
      fi

Originally posted by @lprot in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192319012

olli991 commented 1 year ago

@Iprot ... I understand, only that this fragment is about "emergency" and actually in startup_main it is out of context, so it can cause problems but I might be wrong, if everything is ok then fine, if it is "bootloop" again try to delete it ... just your concept, my suggestion :)

... I mean this one: /tsd/bin/system/wd_procterm.sh 'tsd.mibstd2.main.root' J5e.MCP 0 "main.root crash"

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192396351

olli991 commented 1 year ago

Well, I tried... It's not too bad, but it hasn't happened yet ... I haven't done a reboot, so I don't know if it can also get into a loop after a failed attempt? What now? Help?

Please install update and try again https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

Unfortunately, this time also the message as below ...

@to0nk Applied some changes https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip

@yox2019 we need that else because on 1xx the startup looks like:

      on -p 20 /tsd/bin/root/tsd.mibstd2.main.root -file=/tsd/etc/system/main.conf -reset=/net/imx6/tsd/var/root/reset.count.main
      RET=$?
      if [ $RET -eq 0 ] ; then
         echo "main.root terminated -> calling shutdown script"

         # source it to avoid spawning a new shell
         . /tsd/bin/system/shutdown

         echo "shutdown finished!"
      elif [ $RET -eq 42 ] ; then
         echo "MP42 set to low! -> Boot Stopped."
      else
         /tsd/bin/system/wd_procterm.sh 'tsd.mibstd2.main.root' J5e.MCP 0 "main.root crash"
      fi

Well, unfortunately ... For the fourth time I am starting the EMERGENCY DOWNLOAD ... Thanks for arranging the Friday evening (: but if someone had an idea that effectively patch CP on my unit, I will try to do it (:

IMG_20220722_204447

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192846237

olli991 commented 1 year ago

@to0nk all fine but why didn't you include log.txt (during bootlop) which I asked for? ... if you want help, give something from yourself, not everyone has a unit with sw 01 ... that's why without logs it is difficult to diagnose the problem, although I gave some suggestions for the author

"Thanks for arranging the Friday evening (:" ...you know what ? you can always go to the dealer and remove the cp, respect someone's spare time

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192922162

olli991 commented 1 year ago

Hmmm ... You know, I did not think that your post was directed to me, the more so because there was no tag, from my post there were already two others and I thought that, as Iprot does, it marks the discussion addressed to me, between posts you can see three different threads ... Now I know that I have to use TOOLBOX from your post, because the last one downloaded was the one from Iprot.

So again ... I have a clean system already uploaded, now I have to apply the TOOLBOX to all 3 patches and then let you know? What period / activity do you need the putty log for? It's hard to keep up with the topic as there are no references to entries / people. Sry ...

P. S. "Thanks for arranging the Friday evening (:" that was a JOKE! I count with that I will have to restore the system, THATS WHY I DID IT ON FRIDAY EVENING, and not on the day when I use the car ... I suggest looking for a sense of humor ... did you not notice that by "experiments" on my MIB2 the project improvement / development is growing? . I don't know if it's an association of old bastards or pretentious nerds complaining about everything ... If you dont want to develop this project I can go to dealer, just inform me.

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192941377

olli991 commented 1 year ago

I don't know if it's an association of old bastards or pretentious nerds complaining about everything ... If you dont want to develop this project I can go to dealer, just inform me.

is it for me? ...listen my friend, if you really want to support this project, have an idea and send the logs, putty has the option to save the log.txt, I can't change the content of the script, but maybe the author will take into account my comments, so wait or if you know how to do it, do it yourself ... all that is needed is the putty log during bootloop from boot / reset

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192955006

olli991 commented 1 year ago

@to0nk ...please install it, then after applying "cp patch" and before restarting, connect the unit to putty, set log.txt and then restart the unit mib-std2-pq-zr-toolbox-test.zip

... the second "patch" folder contains the script I changed patch_cp.zip

------Edit Important!!!-------------

one more important thing before applying "cp_patch"

... after installing TOOLBOX activate "permanent console access" first ... then restart the unit and do what I wrote above please i.e. add a cp_patch and make logs.

... now, if the unit goes into "bootloop" again DO NOT USE EMERGENCY !!! ... just connect to putty press "ENTER" and copy and paste this command: mount -t qnx6 -o remount, rw /dev/hd0t177/ &&rm /tsd/bin/system/startup_main and press "ENTER" and restart the unit

... after that the unit will be like before "patching" cp :)

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1192977766

olli991 commented 1 year ago

use this one: " Applied some changes https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip "

... abracadabra :)))) thanks for the notification, this version works for you at @to0nk not hmmm.... ... we are waiting for the log.txt from @to0nk

@yox2019 Because KamboSoup's unit is fw359.

@to0nk it will be much more easy and productive if you:

  1. enable permanent console access in Toolbox Network menu
  2. in case of the bootloop just connect by the console via quadlock and run rm /net/imx6/tsd/bin/system/startup_main then bootloop will stop

Originally posted by @lprot in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193090607

olli991 commented 1 year ago

Because KamboSoup's unit is fw359.

@lprot I already have a "reel" in my head :))) ad.2 "rm /net/imx6/tsd/bin/system/startup_main" ...this command will not work, because the system must be read / write first also you do not need to enter the full path, because after activating the console you are already on imx6, so again:

mount -t qnx6 -o remount, rw /dev/hd0t177/ &&rm /tsd/bin/system/startup_main

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193097380

olli991 commented 1 year ago

@to0nk ...please install it, then after applying "cp patch" and before restarting, connect the unit to putty, set log.txt and then restart the unit mib-std2-pq-zr-toolbox-test.zip

... the second "patch" folder contains the script I changed patch_cp.zip

------Edit Important!!!-------------

one more important thing before applying "cp_patch"

... after installing TOOLBOX activate "permanent console access" first ... then restart the unit and do what I wrote above please i.e. add a cp_patch and make logs.

... now, if the unit goes into "bootloop" again DO NOT USE EMERGENCY !!! ... just connect to putty press "ENTER" and copy and paste this command: mount -t qnx6 -o remount, rw /dev/hd0t177/ &&rm /tsd/bin/system/startup_main and press "ENTER" and restart the unit

... after that the unit will be like before "patching" cp :)

Well, now we can experiment, only for your entry I have two things:

  1. I have to install the TOOLBOX first from the link provided by you AND REPLACE "patch_cp" in it before applying the patch? Because I do not understand why you provided a link to the entire TOOLBOX, and then to only one file that you changed without adding it to the installation at the link provided by you?

  2. You must forgive me for delay, but only after I "get rid of" the children I will start patching, the results will be published around 18:00 / 19:00

P.S. As I can see above, everyone pops up with their corrections, let me follow one because this way it gets confused whether I should use this or that command, I am one intermediate computer scientist and you are people sitting on the subject, so give a little breath (:

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193126319

olli991 commented 1 year ago

@to0nk no.... just install "mib-std2-pq-zr-toolbox-test.zip" from the link provided, scrypt is already changed there

... the second folder "patch_cp.zip" is only to compare what has been changed

... don't forget first: " 1.enable permanent console access in Toolbox Network menu" and in case of problems "bootloop" use this command please:

mount -t qnx6 -o remount, rw /dev/hd0t177/ &&rm /tsd/bin/system/startup_main

just copy this command from this post and paste it into putty terminal then hit "Enter" and restart unit

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193132952

olli991 commented 1 year ago

@to0nk no.... just install "mib-std2-pq-zr-toolbox-test.zip" from the link provided, scrypt is already changed there

... the second folder "patch_cp.zip" is only to compare what has been changed

... don't forget first: " 1.enable permanent console access in Toolbox Network menu" and in case of problems "bootloop" use this command please:

mount -t qnx6 -o remount, rw /dev/hd0t177/ &&rm /tsd/bin/system/startup_main

just copy this command from this post and paste it into putty terminal then hit "Enter" and restart unit

Well, I managed to jump out a moment before the children's dinner, I did as you ordered, installation / activation of the console and CP patch ... And it entered the loop again, but I also got a recipe from you for this problem, but unfortunately I have to surprise you , after entering and confirming the code, I received a comment -> "there is no such directory" and the loop repeats ... Of course, I connect the log from the very beginning of putting putty on, please let me know if I should start an EMERGENCY DOWNLOAD, because tomorrow I have a trip with the children and i will not sing in the car without a radio (:

putty.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193152214

olli991 commented 1 year ago

@to0nk ok did you applied only "cp" patch or "swap" and "swdl" as well ? ... sorry there was "typo" error in this command... this one is ok :

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&rm /tsd/bin/system/startup_main

was missing "space" after: mount -t qnx6 -o remount, rw /dev/hd0t177...

put this command again please

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193156350

olli991 commented 1 year ago

@to0nk ok did you applied only "cp" patch or "swap" and "swdl" as well ? ... sorry there was "typo" error in this command... this one is ok :

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&rm /tsd/bin/system/startup_main

was missing "space" after: mount -t qnx6 -o remount, rw /dev/hd0t177...

put this command again please

As I wrote, installing the TOOLBOX, activating the console and ONLY CP patch. Was I supposed to do it differently? I try to do exactly what you write about the rest of the patches you did not mention (: Now the kids are eating, after dinner I will go to enter the corrected command and what to do next?

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193157350

olli991 commented 1 year ago

@to0nk ... do me a favor: sd card in the left slot and enter this command instead of the previous one, then send the file "startup_main" which will be saved on the sd card:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /media/mp000

it would be good if you had putty with the login option attached to make sure the command worked

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193158280

olli991 commented 1 year ago

@to0nk ... do me a favor: sd card in the left slot and enter this command instead of the previous one, then send the file "startup_main" which will be saved on the sd card:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /media/mp000

it would be good if you had putty with the login option attached to make sure the command worked

I will surprise you ... The code you entered did not create the file on the SD card, BUT it fixed the loop error .... The radio started normally, I attach the log + proof of repair .... What next?

putty-1.log IMG_20220723_204841

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193172677

olli991 commented 1 year ago

strange :) sd card was on left slot (sd1) ? since you have an active console, give the command: ls -l /tsd/var and send the screenshot

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193173448

olli991 commented 1 year ago

strange :) sd card was on left slot (sd1) ? since you have an active console, give the command: ls -l /tsd/var and send the screenshot

Yes, card in the left reader, first from navi, first from gearbox (: log with the command you gave below putty-2.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193179483

olli991 commented 1 year ago

ok that is "startup_main" is making a problem, it's a pity you didn't keep it, see also in / media / mp000, so give:

cd /media/mp000 ls -l

after that I'll give you a link to another patch to disable "cp"

P.S besides, I can see that the unit does not work as it should, probably a problem with emmc, e.g. "Unable to access / net / imx6 / tmp / main-core-dir"

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193181185

olli991 commented 1 year ago

ok that is "startup_main" is making a problem, it's a pity you didn't keep it, see also in / media / mp000, so give:

cd /media/mp000 ls -l

after that I'll give you a link to another patch to disable "cp"

Ok, but I have one technical question before that, how to make the comment line stop because the data is still overflowing and typing commands is quite tedious (:

And about your P. S. :"besides, I can see that the unit does not work as it should, probably a problem with emmc, e.g. "Unable to access / net / imx6 / tmp / main-core-dir"" can it be fixt? By me mby? (:

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193182013

olli991 commented 1 year ago

unfortunately you can't :))) just type the command and hit enter and don't worry about the logs on the screen

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193182262

And about your P. S. :"besides, I can see that the unit does not work as it should, probably a problem with emmc, e.g. "Unable to access / net / imx6 / tmp / main-core-dir"" can it be fixt? By me mby? (:

to be honest it is an old unit, if it does not work well, the best way is to exchange it for at least sw 02 ... unless you want to have fun with emmc, but in my opinion it's not worth it :)

but when it works, make a copy of "emmc" yourself with the toolbox

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193182737

olli991 commented 1 year ago

ok that is "startup_main" is making a problem, it's a pity you didn't keep it, see also in / media / mp000, so give:

cd /media/mp000 ls -l

after that I'll give you a link to another patch to disable "cp"

P.S besides, I can see that the unit does not work as it should, probably a problem with emmc, e.g. "Unable to access / net / imx6 / tmp / main-core-dir"

Here is the log

putty-3.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193183701

olli991 commented 1 year ago

ok last try :) try to install / upgrade this "toolbox" version ... if there is a problem again, you know what command to enter :) mib-std2-pq-zr-toolbox-test222.zip

after restoring the radio to normal state (in case of failure) install this patch to remove "cp" ... you install in the same way as toolbox

https://mega.nz/file/8UsmBBYR#OSbiY2brgn7rSj2lE8hOJs6hTpvFWo9WQwLV8MHup4o

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193183943

olli991 commented 1 year ago

And about your P. S. :"besides, I can see that the unit does not work as it should, probably a problem with emmc, e.g. "Unable to access / net / imx6 / tmp / main-core-dir"" can it be fixt? By me mby? (:

to be honest it is an old unit, if it does not work well, the best way is to exchange it for at least sw 02 ... unless you want to have fun with emmc, but in my opinion it's not worth it :)

but when it works, make a copy of "emmc" yourself with the toolbox

Following this path, everything we do now is not worth it with this unit, but the point of view depends on the point of sitting, for me, after switching from Passat B6 to B8 a year ago, it was something great, especially since it was a gift (not quite free) from the person to whom I gave a job and a chance and took advantage of it, and because he had contacts, he pulled me such a car, so I try to make everything work, and when I can do it on my own, I change what I can (:

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193184524

olli991 commented 1 year ago

and when I can do it on my own, I change what I can (:

no problem :) you have to buy a new emmc and replace of course make new partitions for sw 01 ... and emergency will do the rest :)

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193185450

olli991 commented 1 year ago

and when I can do it on my own, I change what I can (:

no problem :) you have to buy a new emmc and replace of course make new partitions for sw 01 ... and emergency will do the rest :)

As I wrote before, the fact that I am an IT specialist does not mean that I am familiar with this subject, probably for you what is hidden under these words "make new partitions for sw 01 ... and emergency will do the rest :)" is simple, but for me it is like "it's one small step for man one giant leap for mankind " you know ... Landing on the moon. There is an instruction for this, or if you or someone who reads this an have unnecessary moment and wants to, write what it looks like, and I believe that I will succeed (:

P. S. I update TOOLBOX, but forgot to ask, patch only CP or can I / must I patch all 3?

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193188717

olli991 commented 1 year ago

only cp pls

P.s ... let's stick to the topic of this thread, as for your questions, check mibwiki or ask on a telegram to the group

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193189414

olli991 commented 1 year ago

only cp pls

P.s ... let's stick to the topic of this thread, as for your questions, check mibwiki or ask on a telegram to the group

In the loop ... Again ... Sorry about my equipment

P. S. Ok, but can you give me more specyfic of this making SW partition, about what must i ask? Name of the procedur mby? Thank YOU!

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193190762

olli991 commented 1 year ago

In the loop ... Again ... Sorry about my equipment

ok put then this command:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /tsd/var

when the unit returns to normal, put the sd card into "sd1" and type:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&cp /tsd/var/startup_main /media/mp000/ and send the file from sd card

and the last thing: cp /tsd/var/main.conf /media/mp000/ and send the file ... ofc sd card in "sd1" slot

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193190983

olli991 commented 1 year ago

In the loop ... Again ... Sorry about my equipment

ok put then this command:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /tsd/var

when the unit returns to normal, put the sd card into "sd1" and type:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&cp /tsd/var/startup_main /media/mp000/ and send the file from sd card

and the last thing: cp /tsd/var/main.conf /media/mp000/ and send the file ... ofc sd card in "sd1" slot

Unfortunately, there is another problem ... When I put an empty card in the slot, the first on the left, navi restarts three times until it stops, but it does not see any reader, when I put (after restart) the navi card into slot 1, it sees it and works, when I pull out and put in an empty one, the system restarts three times again and I can't use the command ... I pin the log putty.

putty-4.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193193341

olli991 commented 1 year ago

type this command without sd cad inserted:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /tsd/var

and when the unit will back to normal put the other commands with sd card inserted

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193194354

olli991 commented 1 year ago

type this command without sd cad inserted:

mount -t qnx6 -o remount, rw /dev/hd0t177 / &&mv /tsd/bin/system/startup_main /tsd/var

and when the unit will back to normal put the other commands with sd card inserted

The files you ask (i packed two in one): Files_SD.zip

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193195886

olli991 commented 1 year ago

ok put the files on sd card and "sd1" then:

  1. mount -t qnx6 -o remount, rw /dev/hd0t177 /

  2. cp /media/mp000/startup_main /tsd/bin/system/ &&chmod 777 /tsd/bin/system/startup_main (Enter)

then:

  1. cp /media/mp000/main.conf /tsd/var/ (Enter)

and restart unit Files_SD-test.zip

P.S only one sd card in unit please remove the another

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193198071

olli991 commented 1 year ago

ok put the files on sd card and "sd1" then:

  1. mount -t qnx6 -o remount, rw /dev/hd0t177 /
  2. cp /media/mp000/startup_main /tsd/bin/system/ &&chmod 777 /tsd/bin/system/startup_main (Enter)

then:

  1. cp /media/mp000/main.conf /tsd/var/ (Enter)

and restart unit Files_SD-test.zip

P.S only one sd card in unit please remove the another

I'm not sure if it worked, but navi has reset three times ... I pin the log, but I have to fly now because my wife's eyes if they could kill, I'd be dead for half an hour, thank you for your help until now, I'm away tomorrow. if you can, we'll come back to the topic on Monday, thank you again!

putty-5.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193200914

olli991 commented 1 year ago

unfortunately no,,, homework not done :)))) so a new task once again:

  1. Copy the files "main.conf" and "startup_main" to the sd card

2, Take out all the sd cards from the unit ... then put only the sd card with the files into "sd1"

  1. Enter the commands:

mount -t qnx6 -o remount, rw /dev/hd0t177 / (press enter)

cp /media/mp000/startup_main /tsd/bin/system/ (press enter)

chmod 777 /tsd/bin/system/startup_main (press enter)

cp /media/mp000/main.conf /tsd/var/ (press enter)

  1. Restart unit

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193207440

olli991 commented 1 year ago

unfortunately no,,, homework not done :)))) so a new task once again:

  1. Copy the files "main.conf" and "startup_main" to the sd card

2, Take out all the sd cards from the unit ... then put only the sd card with the files into "sd1"

  1. Enter the commands:

mount -t qnx6 -o remount, rw /dev/hd0t177 / (press enter)

cp /media/mp000/startup_main /tsd/bin/system/ (press enter)

chmod 777 /tsd/bin/system/startup_main (press enter)

cp /media/mp000/main.conf /tsd/var/ (press enter)

  1. Restart unit

Good morning, Unfortunately I couldn't stay yesterday. I just wanted to write small info, because I see that in the last entries you repeated that there should be only one card in the readers, so if it helps, I only have the one on which I transfer files and one original with navi, so there could not be a situation that two readers were busy because navi always to the reader on the left, and there, according to your instructions, I had a card with transferred files or a TOOLBOX

P. S. I can see that I was wrong about lost sense of humor here, you sure have it .... "homework" good (: but there are important things, more important and the wife (: I hope we'll get back to the topic, thank you for your patience and best regards.

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193267480

olli991 commented 1 year ago

@lprot ... I will write my theory if I will be unavailable :)))

... in my opinion (and provided logs) unit with sw01 ... does not see the file "main,conf" in the location "-file=/tsd/var..." in "startup_main" look:

  1. log without "startup_main" as you can see all services contained in "main.conf" are started:

Zrzut ekranu (1082)

  1. log with created "startup_main" no service from "main.conf" does not start and unit goes into "bootloop"

Zrzut ekranu (1080)

In my opinion this is because the "/tsd/var" location is not available during "early boot" for sw01

see "startup" J5, which is executed first for sw 02 ... or higher, unit immediately links with "/tsd /var"

Zrzut ekranu (1078)

now see "startup" J5 for sw01 ... do you understand?

Zrzut ekranu (1079)

So that's why I gave the full path "/net/imx6/tsd/var" instead of "/tsd/var" in the above-mentioned files Files_SD-test.zip

Of course you need to check it all in practice, so you have to wait for our friend ;) maybe you can change the location for "main.conf" and "audiomanager ..." eg for "/ tsd"? ... I don't know so many of my considerations, maybe you or someone else will have an idea :)))

P.S here is an example script that creates the above-mentioned files, you can check if there is any error there (as long as this change works at all)

patch_cp_test.zip

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1193277021

olli991 commented 1 year ago

unfortunately no,,, homework not done :)))) so a new task once again:

  1. Copy the files "main.conf" and "startup_main" to the sd card

2, Take out all the sd cards from the unit ... then put only the sd card with the files into "sd1"

  1. Enter the commands:

mount -t qnx6 -o remount, rw /dev/hd0t177 / (press enter)

cp /media/mp000/startup_main /tsd/bin/system/ (press enter)

chmod 777 /tsd/bin/system/startup_main (press enter)

cp /media/mp000/main.conf /tsd/var/ (press enter)

  1. Restart unit

Hello again (: I did what you wrote, files on the SD card and the left reader + 4 commands, but I'm not sure how to see the effect, because if they worked, in the console I was not able to catch it, so I attach the log from this operation below and wait for steps what next? CP Patch?

Small info about how did I entered these 4 commands in two ways (you will see in the log):

  1. I unmounted the navi card from the left slot and inserted the card with files from you, the radio reset 3 times and stabilized then I entered the commands, but I noticed when I wanted to unmount it with "unmount SD" option, that navi can not see the card in the 1st slot because I could not unmount it, so in the second way I did so:
  2. I put the SD card from navi to the left slot, and the empty one to the second slot, after entering the navi menu, it showed both slots taken, so I unmounted the card with navi maps from the left slot, I took an empty card from the right slot (widout unmounting it), I uploaded files from you on SD card and put it in the left slot (the one from which I unmounted the sd with navi) and navi saw that the card was inserted, navi did not reset, then I entered 4 commands and restarted navi.

putty-6.log

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1194577580

olli991 commented 1 year ago

@to0nk ... unfortunately ... but you enter / copy the commands incorrectly and you have not changed anything, and thus nothing can be verified, for example: imx6: / # wmount -t qnx6 -o remount, rw / dev / hd0t177 ... why "wmount" instead of "mount"?

if this command fails, the rest of the commands also will not work, unfortunately ... or: cp /media/mp000/main.conf / tsd / var / 341wqz ... instead of / tsd / var?

... you should copy all commands to a text file and check if there are any "typos"

... ok install / upgrade these toolbox versions and do "cp_off" and logs please

P.S do not execute any commands anymore, just to be sure uninstall the current version of the toolbox and install the one I gave please :)))) mib-std2-pq-zr-toolbox-test3.zip

Originally posted by @yox2019 in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1195067930

olli991 commented 1 year ago

@to0nk ... unfortunately ... but you enter / copy the commands incorrectly and you have not changed anything, and thus nothing can be verified, for example: imx6: / # wmount -t qnx6 -o remount, rw / dev / hd0t177 ... why "wmount" instead of "mount"?

if this command fails, the rest of the commands also will not work, unfortunately ... or: cp /media/mp000/main.conf / tsd / var / 341wqz ... instead of / tsd / var?

... you should copy all commands to a text file and check if there are any "typos"

... ok install / upgrade these toolbox versions and do "cp_off" and logs please

P.S do not execute any commands anymore, just to be sure uninstall the current version of the toolbox and install the one I gave please :)))) mib-std2-pq-zr-toolbox-test3.zip

Nooooo! Sorry, but it's really hard to catch in the console when you're sitting in the car, the laptop in the passenger seat, you type / paste / copy stretched over the gearbox in the garage light ... It's like jumping on the head from a block into a movable pool the size of a bathtub ... And this console line rolling all the time, you can get apoplexy (: So now without commands, for sure? maybe I will try again? I do not want that due to my lack of diligence I will not do / repair something ...

P.S. In my free time, I thought that the internet is reaching my car in my car and if there was such a need, we could set up for a specific day and time and I could provide you with a desktop via Google Remote Desktop, if there was such a need ...

Originally posted by @ghost in https://github.com/olli991/mib-std2-pq-zr-toolbox/issues/93#issuecomment-1195195318