diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2025-02-13 16:03:38 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
| commit | 9fe5de685133040139fd97e073228c46638b6dc5 (patch) | |
| tree | a94c061eea2b4d37041f77bfe0c1f66ceaae791d | |
| parent | d348c846e0afd266decdd5e450681fc2f079ad66 (diff) | |
| download | meta-xilinx-9fe5de685133040139fd97e073228c46638b6dc5.tar.gz | |
qemu-system-aarch64-multiarch: Use boot_files to dump images
Use boot_files to dump images all the images and remove bh, plm and
pcm_cdo dump options.
Also add print messages for plm and pmc_cdo load address which helps
for debugging.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/files/qemu-system-aarch64-multiarch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/files/qemu-system-aarch64-multiarch b/meta-xilinx-core/recipes-devtools/qemu/files/qemu-system-aarch64-multiarch index cc5ac483..24b90848 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/files/qemu-system-aarch64-multiarch +++ b/meta-xilinx-core/recipes-devtools/qemu/files/qemu-system-aarch64-multiarch | |||
| @@ -128,9 +128,7 @@ if bootbin_arg: | |||
| 128 | shutil.copyfile(bootbin_arg, f'{mach_path}/boot.bin') | 128 | shutil.copyfile(bootbin_arg, f'{mach_path}/boot.bin') |
| 129 | 129 | ||
| 130 | bootgen_command = [f'{binpath}/bootgen', '-arch', 'versal', '-dump', 'boot.bin'] | 130 | bootgen_command = [f'{binpath}/bootgen', '-arch', 'versal', '-dump', 'boot.bin'] |
| 131 | subprocess.run(bootgen_command + ['bh'], check=True, cwd=mach_path, stdout=subprocess.DEVNULL) | 131 | subprocess.run(bootgen_command + ['boot_files'], check=True, cwd=mach_path, stdout=subprocess.DEVNULL) |
| 132 | subprocess.run(bootgen_command + ['plm'], check=True, cwd=mach_path, stdout=subprocess.DEVNULL) | ||
| 133 | subprocess.run(bootgen_command + ['pmc_cdo'], check=True, cwd=mach_path, stdout=subprocess.DEVNULL) | ||
| 134 | 132 | ||
| 135 | bootgen_command = f"{binpath}/bootgen -arch versal -read {bootbin_arg}" | 133 | bootgen_command = f"{binpath}/bootgen -arch versal -read {bootbin_arg}" |
| 136 | result = subprocess.check_output(bootgen_command.split()) | 134 | result = subprocess.check_output(bootgen_command.split()) |
| @@ -144,6 +142,9 @@ if bootbin_arg: | |||
| 144 | 142 | ||
| 145 | plm_load_addr = re.search(r"exec_addr_lo \(0x10\) : (0x\w*)\s*", plm_line).group(1) | 143 | plm_load_addr = re.search(r"exec_addr_lo \(0x10\) : (0x\w*)\s*", plm_line).group(1) |
| 146 | pmc_load_addr = re.search(r"pmccdo_load_addr \(0x20\) : (0x\w*)", pmc_line).group(1) | 144 | pmc_load_addr = re.search(r"pmccdo_load_addr \(0x20\) : (0x\w*)", pmc_line).group(1) |
| 145 | print(f"qemu-system-aarch64-multiarch: INFO: Using QSPI/OSPI bootbin file\n") | ||
| 146 | print(f"qemu-system-aarch64-multiarch: INFO: bootbin file dump PLM load addr: {plm_load_addr}\n") | ||
| 147 | print(f"qemu-system-aarch64-multiarch: INFO: bootbin file dump PMC load addr: {pmc_load_addr}\n") | ||
| 147 | 148 | ||
| 148 | PLM_args.append(f"-device loader,file={mach_path}/boot_bh.bin,addr=0xF201E000,force-raw=on") | 149 | PLM_args.append(f"-device loader,file={mach_path}/boot_bh.bin,addr=0xF201E000,force-raw=on") |
| 149 | PLM_args.append(f"-device loader,file={mach_path}/pmc_cdo.bin,addr={pmc_load_addr},force-raw=on") | 150 | PLM_args.append(f"-device loader,file={mach_path}/pmc_cdo.bin,addr={pmc_load_addr},force-raw=on") |
