-
Hi! We've been building our Yocto-based TX2 flash image on top of Via This state script at some point calls My question is: in what direction should we look trying to find out what is going wrong here? I wasn't able to find any information on this "Bad address" error...what does it mean? We haven't modified anything directly related to the boot loader or Mender. Just rolling our own Mender artifact without the failing script seems like a bad choice, as perhaps at some point we are going to have to update the boot loader as well. I've also Any help is greatly appreciated, thanks in advance! Best regards, Kris |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
"Bad address" is the error string for the |
Beta Was this translation helpful? Give feedback.
-
Hi Matt, Thank you very much for the reply. You were indeed right; the CRC error for the EEPROM read fails. We've been using Here's the relevant snippet of the bootloader update trace:
This fails inside It is curious that the read data seems to be all zeroes (at least in the start of the read). In our own software, we also use the i2C reading of the EEPROM to print the board module number etc. for logging. And this doesn't read zeroes, but valid board data. This led us to test the i2c reading with
Interestingly, after running this
Looking at the differences between how
In our own software, we also write the read address to the EEPROM first. |
Beta Was this translation helpful? Give feedback.
-
That's great! We're glad it's been fixed. |
Beta Was this translation helpful? Give feedback.
-
FWIW: Here's a working bitbake recipe for v1.3.0: DESCRIPTION = "Tegra ID EEPROM tools"
HOMEPAGE = "https://github.com/OE4T/tegra-eeprom-tool"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=22c98979a7dd9812d2455ff5dbc88771"
DEPENDS = "libedit"
SRC_URI = "https://github.com/OE4T/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
SRC_URI[sha256sum] = "d240e71d088532694770dab6f13371ebb0f439efdf4fa10b5194e2011dc6177a"
inherit cmake
RRECOMMENDS_${PN} += "kernel-module-at24"
PACKAGES =+ "${PN}-boardspec"
FILES_${PN}-boardspec = "${bindir}/tegra-boardspec" |
Beta Was this translation helpful? Give feedback.
-
Hey @vinotion Could you please push a PR ? otherwise @madisongh or myself will update the recipe. Thanks |
Beta Was this translation helpful? Give feedback.
Hi Matt,
Thank you very much for the reply. You were indeed right; the CRC error for the EEPROM read fails. We've been using
strace
to track down the code in tegra-boot-tools and tegra-eeprom-tool.Here's the relevant snippet of the bootloader update trace: