CarTechnoloGY
Changing adjustblock - Printable Version

+- CarTechnoloGY (https://cartechnology.co.uk)
+-- Forum: Discussions All about Software and Hardware (https://cartechnology.co.uk/forumdisplay.php?fid=310)
+--- Forum: Automotive Help & Discussions / Software and Hardware (https://cartechnology.co.uk/forumdisplay.php?fid=40)
+---- Forum: BMW - Mini - Rolls Royce (https://cartechnology.co.uk/forumdisplay.php?fid=61)
+---- Thread: Changing adjustblock (/showthread.php?tid=59517)

Pages: 1 2 3 4 5 6 7


RE: Changing adjustblock - RomeyRome - 17-01-2023

(17-01-2023, 21:17 PM) zero9 Wrote:  
Code:
 Mandatory non-exclusive options:

   --ipc      Defines IPC device full path id. Usage example:
              a) --ipc=/dev/ipc/ipc10 for real IPC device id
              b) --ipc=simu:/var/fifo1;/var/fifo2 for IPC simulation mode using FIFO
 Mandatory mutually exclusive options:
  Actions section:
   --append   Defines append action. Must not have option value. Valid only for --flash partition type.
   --erase    Defines erase action. Must not have option value. Valid for any partition type.
   --load     Defines loading from file and writing to partition action. Valid for any partition type.
              Requires --path option value to be passed.
   --dump     Defines reading from partition and dumping to file action. Valid for any partition type.
              Requires --path option value to be passed.
   --stinfo   Defines storage info getting, printing and dumping to file as binary action.
              Requires --path option value to be passed.
              No option from partition types section can be used with this option.
  Partition types section:
   --flash    Defines action on FLASH partition.
              Cannot be used with neither --load nor --stinfo option.
              If used without --partindex option partition index set to Zero by default.
   --eeprom   Defines action on EEPROM partition.
              Cannot be used with neither --append nor --stinfo option.
              If used without --partindex option partition index set to Zero by default.
   --adjust   Defines action on ADJUST block.
              Cannot be used with neither --append nor --stinfo option.
              If used without --partindex option partition index set to Zero by default.
 Mandatory action specific options:
   --path        Specifies full path to file handled as source or destination
                 depending on given action. Must have option value.
                 Valid only for --append, --load, --dump, --stinfo.
                 For --append, --load this option is mandatory. For the rest of actions
                 if option not given, unique file path is generated in the following
                 format according to action type:
                 a) "sysetV850io_{0}_{1}_{2}_{3}.bin" - for --dump action
                    where {0} - action type symbolic interpretation,
                          {1} - partition type symbolic interpretation,
                          {2} - partition index symbolic interpretation,
                          {3} - unique time stamp symbolic interpretation;
                 b) "sysetV850io_stinfo_{0}.bin" - for --stinfo action
                    where {0} - unique time stamp symbolic interpretation.

Right. --erase and write result in cbErrno: 15



Code:
hu-jacinto:/net/hu-omap/mnt/share/tmp> ./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --load --adjust --path=/net/hu-omap/mnt/share/tmp/sysetV850io_dump_adjust_0_2000229798.bin

sysetV850io: load: timeout: 10000
sysetV850io: load: storage: adjust, index: 0, offset: 0
sysetV850io: load: buffer: 0x20dd00, bufferSize: 2036
sysetV850io:io: load: failed load 2036 bytes from '/net/hu-omap/mnt/share/tmp/sysetV850io_dump_adjust_0_2000229798.bin' to adjust:0 with offset 0, cbErrno: 15
sysetV850io: argv[1] --ipc=/net/hu-jacinto/dev/ipc/ipc10
sysetV850io: argv[2] --load
sysetV850io: argv[3] --adjust



hu-jacinto:/net/hu-omap/mnt/share/tmp> ./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --erase --adjust                                                                           

sysetV850io: erase: timeout: 10000
sysetV850io: erase: storage: adjust, index: 0
sysetV850io:io: erase: failed erase adjust:0, cbErrno: 15
sysetV850io: argv[1] --ipc=/net/hu-jacinto/dev/ipc/ipc10
sysetV850io: argv[2] --erase
sysetV850io: argv[3] --adjust



RE: Changing adjustblock - walkernight88 - 17-01-2023

Try to write less bytes (let's say 128 bytes) :P It's a bug tho, but you'll figure it out.
Btw, prepare yourself to get black screen. Always have a backup. And don't erase, pointless, just use load, it overwrites the bytes.


RE: Changing adjustblock - sameur10 - 17-01-2023

(17-01-2023, 21:03 PM) RomeyRome Wrote:  
(17-01-2023, 17:49 PM)sameur10 Wrote:  Hi
how u can extract adjustblock ? here u go 
extract sysetV850io and copy sysetV850io to unit

Chmod with 755
then type this command :
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --dump --adjust

it will create a file sysetV850io_dump_adjust_0_xxxxxx...bin , enjoy

Thank you! Very helpful.
I guess the next obvious question is - how do you write it back? --erase and --load error out with cbErrno: 15
Hi
to erase u need to like that
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --erase --adjust --partindex=1
then 
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --erase --adjust --partindex=0

to write :
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --load --path=/location of file/file.bin --adjust --partindex=0
then
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --load --path=/location of file/file.bin --adjust --partindex=1

becarefull checksum of adjustblok need to be corrected if modified 

hope is helpfull


RE: Changing adjustblock - walkernight88 - 17-01-2023

If you need checksum correction for adjblock, post the file here, I'll calculate it for you.


RE: Changing adjustblock - RomeyRome - 17-01-2023

(17-01-2023, 22:14 PM)walkernight88 Wrote:  If you need checksum correction for adjblock, post the file here, I'll calculate it for you.

Hey! Thanks! Still haven't been able to write it back, but I'm sure I'll get there eventually.

I have 2 evos I rotate in/out of my car. This one is on the bench right now.

(17-01-2023, 22:08 PM)sameur10 Wrote:  
(17-01-2023, 21:03 PM) RomeyRome Wrote:  
(17-01-2023, 17:49 PM)sameur10 Wrote:  Hi
how u can extract adjustblock ? here u go 
extract sysetV850io and copy sysetV850io to unit

Chmod with 755
then type this command :
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --dump --adjust

it will create a file sysetV850io_dump_adjust_0_xxxxxx...bin , enjoy

Thank you! Very helpful.
I guess the next obvious question is - how do you write it back? --erase and --load error out with cbErrno: 15
Hi
to erase u need to like that
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --erase --adjust --partindex=1
then 
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --erase --adjust --partindex=0

to write :
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --load --path=/location of file/file.bin --adjust --partindex=0
then
./sysetV850io --ipc=/net/hu-jacinto/dev/ipc/ipc10 --load --path=/location of file/file.bin --adjust --partindex=1

becarefull checksum of adjustblok need to be corrected if modified 

hope is helpfull

Thank you. I tried it with partindex before posting with no luck. Get the same cbErrno: 15

(17-01-2023, 22:00 PM)walkernight88 Wrote:  Try to write less bytes (let's say 128 bytes) :P It's a bug tho, but you'll figure it out.
Btw, prepare yourself to get black screen. Always have a backup. And don't erase, pointless, just use load, it overwrites the bytes.

But it says --size & --partoffset only works on eeprom & flash...


RE: Changing adjustblock - walkernight88 - 17-01-2023


(17-01-2023, 22:00 PM)walkernight88 Wrote:  Try to write less bytes (let's say 128 bytes) :P It's a bug tho, but you'll figure it out.
Btw, prepare yourself to get black screen. Always have a backup. And don't erase, pointless, just use load, it overwrites the bytes.

"But it says --size & --partoffset only works on eeprom & flash..."

Make the bin smaller. If you feed a smaller bin it will overwrite the size of the bin. Anyway, here's the corrected one smile


RE: Changing adjustblock - tcp443 - 18-01-2023

hi. if you hutool then this can done easily. it can extract adjust block and you can modify via gui and upload back. or if you can get someone with hutool they can assist you too.


RE: Changing adjustblock - RomeyRome - 18-01-2023

(17-01-2023, 22:52 PM)walkernight88 Wrote:  
(17-01-2023, 22:00 PM)walkernight88 Wrote:  Try to write less bytes (let's say 128 bytes) :P It's a bug tho, but you'll figure it out.
Btw, prepare yourself to get black screen. Always have a backup. And don't erase, pointless, just use load, it overwrites the bytes.

"But it says --size & --partoffset only works on eeprom & flash..."

Make the bin smaller. If you feed a smaller bin it will overwrite the size of the bin. Anyway, here's the corrected one smile

Thank you!
I could only erase partindex=1, then write to partindex=1. Could not do anything with partindex=0, but my changes seem to be in effect after writing to partindex=1.


RE: Changing adjustblock - walkernight88 - 18-01-2023

(18-01-2023, 03:48 AM)RomeyRome Wrote:  
(17-01-2023, 22:52 PM)walkernight88 Wrote:  
(17-01-2023, 22:00 PM)walkernight88 Wrote:  Try to write less bytes (let's say 128 bytes) :P It's a bug tho, but you'll figure it out.
Btw, prepare yourself to get black screen. Always have a backup. And don't erase, pointless, just use load, it overwrites the bytes.

"But it says --size & --partoffset only works on eeprom & flash..."

Make the bin smaller. If you feed a smaller bin it will overwrite the size of the bin. Anyway, here's the corrected one smile

Thank you!
I could only erase partindex=1, then write to partindex=1. Could not do anything with partindex=0, but my changes seem to be in effect after writing to partindex=1.

I guess your endgoal is to add the GPS to the headunit. Let me know how it goes. As i saw from your adjblock you're trying with the whole chip, not with the G7 one.


RE: Changing adjustblock - RomeyRome - 18-01-2023

(18-01-2023, 08:52 AM)walkernight88 Wrote:  I guess your endgoal is to add the GPS to the headunit. Let me know how it goes. As i saw from your adjblock you're trying with the whole chip, not with the G7 one.

Yep. Have a variety of LEA-* modules. LEA-M8S wouldn't even let the evo turn on. Put the most common LEA-6R on at the moment. powered on at least.

The eeprom chip needs to be replaced, and I'm still not entirely sure why, or why it has to be new. I'm not sure if I'm supposed to clone the current one, or it'll write to it whatever it needs. I think it has some write-once functionality on certain blocks based on the datasheet, so maybe that's why it needs to be replaced... That's the next thing to swap.

What do you mean by "the G7 one"?