NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
RolfNoot has quit [Remote host closed the connection]
RolfNoot has joined #openocd
ahorvat has joined #openocd
ahorvat_ has quit [Ping timeout: 252 seconds]
IoT-Maker has quit [Ping timeout: 276 seconds]
crabbedhaloablut has quit []
w00die has quit [Quit: Client closed]
nerozero has joined #openocd
KindOne has quit [Remote host closed the connection]
KindOne has joined #openocd
gzlb has quit [Ping timeout: 276 seconds]
gzlb has joined #openocd
gzlb has quit [Ping timeout: 246 seconds]
gzlb has joined #openocd
IoT-Maker has joined #openocd
Hawk777 has joined #openocd
<PaulFertser> IoT-Maker: so what does u-boot say about that image you upload?
<PaulFertser> IoT-Maker: probably you're indeed not extracting it from the right offset. You can use u-boot to make a dump of the image from flash that it's not complaining about for comparison.
<IoT-Maker> PaulFertser: it complains ## No elf image at address 0x20000000 or whatever address it is loaded to
<PaulFertser> IoT-Maker: I suggest you try "md" to see how the image starting at 0x20000000 looks.
<IoT-Maker> PaulFertser: i already got a dump and it has the same MD5 sum as the file on the drobo device. I want to understand why it does not load the file to the address i entered
<PaulFertser> IoT-Maker: I mean compare dump of the file that it's able to load to the one you're loading, both taken by u-boot.
<PaulFertser> IoT-Maker: if you're using OpenOCD to load that ELF file for processing by u-boot then you need to specify an offset and treat it as binary.
<PaulFertser> IoT-Maker: because by default OpenOCD parses the ELF and loads loadable sections by itself.
<PaulFertser> That's why "it ignores 0x20000000"
<IoT-Maker> why do i need an offset? U-boot loads it to 0x20000000, why i can't do the same?
<IoT-Maker> ah
<IoT-Maker> i can upload the working vxworks image to wetransfer if anyone want to have a look into it.
Hawk777 has quit [Quit: Leaving.]
<PaulFertser> IoT-Maker: 0x20000000 _is_ offset
<PaulFertser> IoT-Maker: WAIT
<PaulFertser> image_loc_Vx=2000000 this is not 0x20000000
<PaulFertser> This is 0x02000000
<PaulFertser> So you should be uploading raw binary there and then doing "bootvx $image_loc_Vx"
<IoT-Maker> PaulFertser: it loads it to 0x03000000 https://bpa.st/MUFA
<PaulFertser> IoT-Maker: that's because it's treating it as ELF, not binary.
<PaulFertser> IoT-Maker: "load_image /home/<user>/minicom_log/jtag/vxworks 0x02000000 bin" to force binary
gzlb has quit [Quit: WeeChat 4.1.2]
<IoT-Maker> https://bpa.st/LW6A ok, its at 0x02000000 now, it says it loads it but it stuck at some point
<PaulFertser> IoT-Maker: so it least it accepts it now.
<PaulFertser> IoT-Maker: I suggest you try the same trick with the image extracted from flash to have a reference.
<PaulFertser> IoT-Maker: probably the method itself is missing something or probably the new image is not suitable yet.
<PaulFertser> IoT-Maker: I also see bootline when it's booting has extra ;UBOOT-2.33 s=#/romfs/runesa.vxe
<IoT-Maker> I already do this with this file.
<IoT-Maker> I will try td_bootargs_confab; run flashload_g0; bootvx 0x02000000 now
<PaulFertser> IoT-Maker: did you run "td_bootargs_confab" ?
<PaulFertser> " run flashload_g0 " will overwrite whatever you loaded to RAM though
<IoT-Maker> https://bpa.st/2TRQ tried td_bootargs_confab; bootvx 0x02000000 this time
<PaulFertser> IoT-Maker: another idea is to try manually running td_bootargs_confab; run flashload_g0; then halting, uploading to RAM, then resuming and doing bootvx 0x02000000
<PaulFertser> And samething but without halting/uploading/resuming.
crabbedhaloablut has joined #openocd
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #openocd
slobodan has joined #openocd
<IoT-Maker> PaulFertser: It needs to do the whole process. Just loading the vximage now works. But after loading vxworks stuff it has to turn on linux stuff. I guess /romfs/runesa.vxe does some magic.
<PaulFertser> IoT-Maker: so some progress?
<IoT-Maker> I was looking into the firmware file for runesa.vxe. As i wrote before, the firmare file has 2 ELF images. And this command is present in both. What is interesting, the second ELF image uses runesa.vxe and runesa_prev.vxe to copy the images to flash memory, rename it and stuff. I think thats the part of the firmware update process.
<IoT-Maker> PaulFertser: I will do some tests later this day. Thanks for your patience so far.
<PaulFertser> IoT-Maker: best of luck, and I hope you manage to finally update it soon.
<PaulFertser> Looks like you're advancing there
MGF_Fabio has joined #openocd
IoT-Maker has quit [Ping timeout: 246 seconds]
IoT-Maker has joined #openocd
nerozero has quit [Ping timeout: 245 seconds]
IoT-Maker has quit [Ping timeout: 256 seconds]
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #openocd
nerozero has joined #openocd
gzlb has joined #openocd
MGF_Fabio has quit [Ping timeout: 260 seconds]
MGF_Fabio has joined #openocd
MGF_Fabio has quit [Ping timeout: 256 seconds]
MGF_Fabio has joined #openocd
MGF_Fabio has quit [Ping timeout: 264 seconds]
MGF_Fabio has joined #openocd
HelloShi1ty has joined #openocd
HelloShi1ty has quit [Quit: leaving]
MGF_Fabio has quit [Ping timeout: 264 seconds]
MGF_Fabio has joined #openocd
ahorvat_ has joined #openocd
ahorvat has quit [Ping timeout: 276 seconds]
Foxyloxy has joined #openocd
nerozero has quit [Ping timeout: 246 seconds]
Foxyloxy has quit [Ping timeout: 256 seconds]
IoT-Maker has joined #openocd
Foxyloxy has joined #openocd
Foxyloxy_ has joined #openocd
Hawk777 has joined #openocd
Foxyloxy has quit [Ping timeout: 252 seconds]
MGF_Fabio has quit [Remote host closed the connection]
MGF_Fabio has joined #openocd
w00die has joined #openocd
gzlb has quit [Ping timeout: 268 seconds]
w00die has quit [Ping timeout: 250 seconds]
<IoT-Maker> Oh wow, i just loaded the whole firmwarefile to 0x02000000 and did vxload 0x0200022c because the first ELF image in the firmware file has an offset of 0x22c. It startet and stuck with the info: ## Starting vxWorks at 0x01000000 ...
<IoT-Maker> I did that in U-boot and it suck there. I switched over to my openocd shell and did: resume 0x0200022c and it just startet to load vxworks. Thats the log.
<IoT-Maker> To my surprise i ended in a vxworks shell this time!!!
gzlb has joined #openocd
<bencoh> neat \o/
<PaulFertser> IoT-Maker: wow
<PaulFertser> IoT-Maker: sometimes experimenting doing "silly" things really pays off!
<PaulFertser> IoT-Maker: so supposedly you should be able to fully update now by regular means?
<IoT-Maker> I have to figure out how this vxworks stuff works and what commands i need to enable network and drive access. It's my first contact to vxworks.
<IoT-Maker> For the record, i did bootvx not vxload as i wrote in my comment at 19:05:05
w00die has joined #openocd
Hawk777 has quit [Quit: Leaving.]
zjason``` has joined #openocd
zjason`` has quit [Ping timeout: 268 seconds]
RolfNoot has quit [Remote host closed the connection]
RolfNoot has joined #openocd
IoT-Maker has quit [Ping timeout: 268 seconds]
w00die has quit [Quit: Client closed]
crabbedhaloablut has quit []