Hi SebastianB,
Good to know!
Thank you for your support.
Cheers,
Andy
Hi SebastianB,
Good to know!
Thank you for your support.
Cheers,
Andy
Hi AlexD,
I spent some time to find out what might have caused the issue.
My findings:
If there is the dot in the directory name (in my case it was 2021.04-r0) in the path leading to the elf file (.) it opens it as a binary file unless .elf extension is present.
So, if you put the u-boot to /tmp/1.1/ directory it will open it as binary, if you put there u-boot.elf it will open it as ELF, on the other hand if you copy the u-boot to /tmp/1/ it will open it as ELF.
I hope it helps, it doesn't seem to depend on the content as much as the directory names, and the elf file name.
P.S. I am running the Ozone in Linux
Cheers,
Andy
Hi there,
I have an ELF file of the u-boot bootloader, that I'd like to debug.
aarch64-poky-linux-readelf -h u-boot
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: AArch64
Version: 0x1
Entry point address: 0x40200000
Start of program headers: 64 (bytes into file)
Start of section headers: 5552136 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 2
Size of section headers: 64 (bytes)
Number of section headers: 27
Section header string table index: 26
Display More
Compiled by aarch64-poky-linux-gcc (GCC) 11.2.0.
When I open it with the Ozone, it prints the following in the console, no errors are seen there, but shows content of the file as an editor that opened a binary file, not the source code expected:
Disabled output of control characters
SEGGER Ozone - The J-Link Debugger V3.38d
J-Link software found at: /opt/SEGGER/Ozone_V338d/Lib/libjlinkarm.so
File.NewProject();
File.NewProject();
File.NewProjectWizard();
Target core support plugin loaded.: /opt/SEGGER/Ozone_V338d/Plugins/Core/CorePluginARM.so
Project.SetDevice ("MIMX8MQ5_A53_0");
Project.SetHostIF ("USB", "");
Project.SetTargetIF ("JTAG");
Project.SetTIFSpeed ("4 MHz");
Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-A53_AArch64.svd");
File path resolved: "$(InstallDir)/Config/CPU/Cortex-A53_AArch64.svd" was found at "/opt/SEGGER/Ozone_V338d/Config/CPU/Cortex-A53_AArch64.svd"
File.Open ("/tmp/u-boot");
Display More
Thank you for your help
Cheers,
Andy