is there a way to read ethernet mac address from on board EEPROM on tx1 during flashing.
Currently flash script, reads boradid and boardversion using binary chkbdinfo from bootloader folder.
Is there any script to read mac address? or any other way I can get mac address of ethernet during flashing??
what is the input file in the command above?
when I am giving cvm.bin as input file (found it in flash.sh script, the way boardid is read)
but it is failing.
There is also tegraflash.py file, can we use it outside flash script to read ethernet mac address.
If yes then what is the full command to read it.
I am trying with following command, but it need some extra arguments python tegraflash.py --chip 0x21 --applet nvtboot_recovery.bin --cmd dump eeprom
Should the board be in recovery mode to run tegraflash.py script.
I just went through the whole script and notice that this command is being bypassed on tx1 usecase. That is why you cannot find cvm.bin during the flash process.
Could you tell us why you need to enable this during flash? I can help discuss this issue with internal team.
Hello Wayne,
Could you please let me know how the below command could be used.
““tegraflash_internal.py” → tegraflash_dump_eeprom”?
When i run tegraflash.py command I get below screen, meaning one of the options passed is not correct
user@ubuntu:~/tx1_28.2/Linux_for_Tegra/bootloader$ python tegraflash.py --chip 0x21 --applet nvtboot_recovery.bin --cmd dump eeprom boardinfo cvm.bin
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
Usage: dump [options]
Following types can be dumped
ram [ ] [file] : Dumps the complete ram if start offset and
size are not specified.
ptm [file] : Dumps only the PTM traces.
custinfo [file] : Dumps customer information
ptm & custinfo Not Valid for t186
eeprom <eeprom_module> [file] : Dumps the contents of EEPROM
based on module
Is the command I am giving is correct?
Is there a way I can download cvm.bin file from somewhere?
cvm.bin should be generated if using your command. However, somehow we bypass the generation of this file for tx1 only. Thus, cvm.bin is generated during flashing tx2 but not seen in tx1 usecase.
And sorry that I didn’t notice your usecase is on tx1 in first glance of this thread.
If you want to look into where it is bypassed, please find the file “tegraflash_internal.py” under bootloader and take a look at the function “tegraflash_dump_eeprom”.
I cannot decide whether we can disable the bypass and need to discuss with internal team, so please give us more info about why you need to dump this info during flash.
Hi Wayne,
Thank you for the binaries and the patch files. I could dump wlan IP correctly but ethernet address looks to be incorrect. (note the difference in endianness)
Read Eth MAC address (eth_mac=$(./chkbdinfo -g cvm.bin)
Flash the image (sudo ./flash.sh jetson-tx1 mmcblk0p1)
What we observed is the step 3 fails saying
Error: probing the target board failed.
Make sure the target board is connected through
micro-B USB port and is in recovery mode.
On the TX1 serial port we see
[0007.844] Enabled early print
[0007.847] [TegraBoot] (version 00.00.2014.50-mobile-3222e3f6)
[0007.852] Processing in recovery mode
[0007.856] A02 Bootrom Patch rev = 63
[0007.859] Power-up reason: pmc por
[0007.862] Established communication link with host
[0008.871] NvTbootI2cWrite(): error code 0x00045100 Error while starting write transaction
[0008.879] NvTbootI2cDeviceRead(): error code 0x00045001 Error while sending the offset to slave
[0008.888] NvTbootI2c: Read failed for slave 0xac, offset 0x00 with error code 0x00045001
I would like to know is it possible to run the tegraflash.py command and further flash the TX1 module together?
We could place the TX1 module again in recovery and run the flash command successfully.
If you look into the log during flash, it should have something like “./tegraflash.py …”, please try to add --cmd “dump eeprom boardinfo cvm.bin” into it.