<bunni>
Is there a normalized way to extract the default environment from a binary, regardless of its version? i.e. 2014.xx U-Boot seems to store default env as "<var>\0<val>" while 2015.xx U-Boot has default env in binary as "<var>=<val>" I'm wondering if there is a tool/script that I havn't found yet that would accommodate that throughout history of U-Boot
mmu_man has joined #u-boot
___nick___ has quit [Ping timeout: 252 seconds]
matthias_bgg has quit [Ping timeout: 272 seconds]
milkylainen_ has joined #u-boot
<bunni>
ah, ignore me. After digging more it looks like the \0 is an artifact of storing the value in a specific way that went against how it normally should be done.
redbrain has quit [Ping timeout: 256 seconds]
<marex>
bunni: the env format is a list of zero-terminated key-value pairs -- foo=bar\0baz=quux\0
<marex>
it's been like that since forever
<bunni>
marex, yeah, I'm seeing that. The issue is with one platform I'm working on, a specific variable is put in to the env at runtime, and its stored in C in a silly way. So it ends up not in the env but ends up looking like I described above in the final binary blob.
ladis has quit [Quit: Leaving]
vagrantc has quit [Quit: leaving]
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
Thorn has quit [Ping timeout: 256 seconds]
Thorn has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sdfgsdfg has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sobkas has quit [Remote host closed the connection]
sobkas has joined #u-boot
sobkas has quit [Remote host closed the connection]