Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2019 NXP |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <errno.h> |
| 8 | #include <image.h> |
Simon Glass | 0f2af88 | 2020-05-10 11:40:05 -0600 | [diff] [blame] | 9 | #include <log.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 10 | #include <asm/global_data.h> |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 11 | #include <linux/libfdt.h> |
| 12 | #include <spl.h> |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 13 | #include <asm/mach-imx/image.h> |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 14 | #include <asm/arch/sys_proto.h> |
| 15 | |
| 16 | DECLARE_GLOBAL_DATA_PTR; |
| 17 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 18 | /* Caller need ensure the offset and size to align with page size */ |
| 19 | ulong spl_romapi_raw_seekable_read(u32 offset, u32 size, void *buf) |
| 20 | { |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 21 | int ret; |
| 22 | |
| 23 | debug("%s 0x%x, size 0x%x\n", __func__, offset, size); |
| 24 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 25 | ret = rom_api_download_image(buf, offset, size); |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 26 | |
| 27 | if (ret == ROM_API_OKAY) |
| 28 | return size; |
| 29 | |
| 30 | printf("%s Failure when load 0x%x, size 0x%x\n", __func__, offset, size); |
| 31 | |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | ulong __weak spl_romapi_get_uboot_base(u32 image_offset, u32 rom_bt_dev) |
| 36 | { |
Marek Vasut | 8510756 | 2022-03-09 17:09:45 +0100 | [diff] [blame] | 37 | return image_offset + |
| 38 | (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8000); |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 39 | } |
| 40 | |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 41 | static int is_boot_from_stream_device(u32 boot) |
| 42 | { |
| 43 | u32 interface; |
| 44 | |
| 45 | interface = boot >> 16; |
| 46 | if (interface >= BT_DEV_TYPE_USB) |
| 47 | return 1; |
| 48 | |
| 49 | if (interface == BT_DEV_TYPE_MMC && (boot & 1)) |
| 50 | return 1; |
| 51 | |
| 52 | return 0; |
| 53 | } |
| 54 | |
| 55 | static ulong spl_romapi_read_seekable(struct spl_load_info *load, |
| 56 | ulong sector, ulong count, |
| 57 | void *buf) |
| 58 | { |
| 59 | u32 pagesize = *(u32 *)load->priv; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 60 | ulong byte = count * pagesize; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 61 | u32 offset; |
| 62 | |
| 63 | offset = sector * pagesize; |
| 64 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 65 | return spl_romapi_raw_seekable_read(offset, byte, buf) / pagesize; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | static int spl_romapi_load_image_seekable(struct spl_image_info *spl_image, |
| 69 | struct spl_boot_device *bootdev, |
| 70 | u32 rom_bt_dev) |
| 71 | { |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 72 | int ret; |
| 73 | u32 offset; |
| 74 | u32 pagesize, size; |
Simon Glass | bb7d3bb | 2022-09-06 20:26:52 -0600 | [diff] [blame] | 75 | struct legacy_img_hdr *header; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 76 | u32 image_offset; |
| 77 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 78 | ret = rom_api_query_boot_infor(QUERY_IVT_OFF, &offset); |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 79 | if (ret != ROM_API_OKAY) |
| 80 | goto err; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 81 | |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 82 | ret = rom_api_query_boot_infor(QUERY_PAGE_SZ, &pagesize); |
| 83 | if (ret != ROM_API_OKAY) |
| 84 | goto err; |
| 85 | |
| 86 | ret = rom_api_query_boot_infor(QUERY_IMG_OFF, &image_offset); |
| 87 | if (ret != ROM_API_OKAY) |
| 88 | goto err; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 89 | |
Simon Glass | bb7d3bb | 2022-09-06 20:26:52 -0600 | [diff] [blame] | 90 | header = (struct legacy_img_hdr *)(CONFIG_SPL_IMX_ROMAPI_LOADADDR); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 91 | |
| 92 | printf("image offset 0x%x, pagesize 0x%x, ivt offset 0x%x\n", |
| 93 | image_offset, pagesize, offset); |
| 94 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 95 | offset = spl_romapi_get_uboot_base(image_offset, rom_bt_dev); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 96 | |
Simon Glass | bb7d3bb | 2022-09-06 20:26:52 -0600 | [diff] [blame] | 97 | size = ALIGN(sizeof(struct legacy_img_hdr), pagesize); |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 98 | ret = rom_api_download_image((u8 *)header, offset, size); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 99 | |
| 100 | if (ret != ROM_API_OKAY) { |
| 101 | printf("ROMAPI: download failure offset 0x%x size 0x%x\n", |
| 102 | offset, size); |
| 103 | return -1; |
| 104 | } |
| 105 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 106 | if (IS_ENABLED(CONFIG_SPL_LOAD_FIT) && image_get_magic(header) == FDT_MAGIC) { |
| 107 | struct spl_load_info load; |
| 108 | |
| 109 | memset(&load, 0, sizeof(load)); |
| 110 | load.bl_len = pagesize; |
| 111 | load.read = spl_romapi_read_seekable; |
| 112 | load.priv = &pagesize; |
| 113 | return spl_load_simple_fit(spl_image, &load, offset / pagesize, header); |
| 114 | } else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) { |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 115 | struct spl_load_info load; |
| 116 | |
| 117 | memset(&load, 0, sizeof(load)); |
| 118 | load.bl_len = pagesize; |
| 119 | load.read = spl_romapi_read_seekable; |
| 120 | load.priv = &pagesize; |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 121 | |
| 122 | ret = spl_load_imx_container(spl_image, &load, offset / pagesize); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 123 | } else { |
| 124 | /* TODO */ |
| 125 | puts("Can't support legacy image\n"); |
| 126 | return -1; |
| 127 | } |
| 128 | |
| 129 | return 0; |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 130 | |
| 131 | err: |
| 132 | puts("ROMAPI: Failure query boot infor pagesize/offset\n"); |
| 133 | return -1; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, |
| 137 | ulong count, void *buf) |
| 138 | { |
| 139 | memcpy(buf, (void *)(sector), count); |
| 140 | |
| 141 | if (load->priv) { |
| 142 | ulong *p = (ulong *)load->priv; |
| 143 | ulong total = sector + count; |
| 144 | |
| 145 | if (total > *p) |
| 146 | *p = total; |
| 147 | } |
| 148 | |
| 149 | return count; |
| 150 | } |
| 151 | |
| 152 | static ulong get_fit_image_size(void *fit) |
| 153 | { |
| 154 | struct spl_image_info spl_image; |
| 155 | struct spl_load_info spl_load_info; |
| 156 | ulong last = (ulong)fit; |
| 157 | |
| 158 | memset(&spl_load_info, 0, sizeof(spl_load_info)); |
| 159 | spl_load_info.bl_len = 1; |
| 160 | spl_load_info.read = spl_ram_load_read; |
| 161 | spl_load_info.priv = &last; |
| 162 | |
| 163 | spl_load_simple_fit(&spl_image, &spl_load_info, |
| 164 | (uintptr_t)fit, fit); |
| 165 | |
| 166 | return last - (ulong)fit; |
| 167 | } |
| 168 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 169 | static u8 *search_fit_header(u8 *p, int size) |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 170 | { |
| 171 | int i; |
| 172 | |
| 173 | for (i = 0; i < size; i += 4) |
| 174 | if (genimg_get_format(p + i) == IMAGE_FORMAT_FIT) |
| 175 | return p + i; |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 176 | |
| 177 | return NULL; |
| 178 | } |
| 179 | |
| 180 | static u8 *search_container_header(u8 *p, int size) |
| 181 | { |
| 182 | int i = 0; |
| 183 | u8 *hdr; |
| 184 | |
| 185 | for (i = 0; i < size; i += 4) { |
| 186 | hdr = p + i; |
| 187 | if (*(hdr + 3) == 0x87 && *hdr == 0 && (*(hdr + 1) != 0 || *(hdr + 2) != 0)) |
| 188 | return p + i; |
| 189 | } |
| 190 | |
| 191 | return NULL; |
| 192 | } |
| 193 | |
| 194 | static u8 *search_img_header(u8 *p, int size) |
| 195 | { |
| 196 | if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) |
| 197 | return search_fit_header(p, size); |
| 198 | else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) |
| 199 | return search_container_header(p, size); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 200 | |
| 201 | return NULL; |
| 202 | } |
| 203 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 204 | static u32 img_header_size(void) |
| 205 | { |
| 206 | if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) |
| 207 | return sizeof(struct fdt_header); |
| 208 | else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) |
| 209 | return sizeof(struct container_hdr); |
| 210 | |
| 211 | return 0; |
| 212 | } |
| 213 | |
| 214 | static int img_info_size(void *img_hdr) |
| 215 | { |
| 216 | #ifdef CONFIG_SPL_LOAD_FIT |
| 217 | return fit_get_size(img_hdr); |
| 218 | #elif defined CONFIG_SPL_LOAD_IMX_CONTAINER |
| 219 | struct container_hdr *container = img_hdr; |
| 220 | |
| 221 | return (container->length_lsb + (container->length_msb << 8)); |
| 222 | #else |
| 223 | return 0; |
| 224 | #endif |
| 225 | } |
| 226 | |
| 227 | static int img_total_size(void *img_hdr) |
| 228 | { |
| 229 | if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) { |
| 230 | return get_fit_image_size(img_hdr); |
| 231 | } else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) { |
| 232 | int total = get_container_size((ulong)img_hdr, NULL); |
| 233 | |
| 234 | if (total < 0) { |
| 235 | printf("invalid container image\n"); |
| 236 | return 0; |
| 237 | } |
| 238 | |
| 239 | return total; |
| 240 | } |
| 241 | |
| 242 | return 0; |
| 243 | } |
| 244 | |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 245 | static int spl_romapi_load_image_stream(struct spl_image_info *spl_image, |
| 246 | struct spl_boot_device *bootdev) |
| 247 | { |
| 248 | struct spl_load_info load; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 249 | u32 pagesize, pg; |
| 250 | int ret; |
| 251 | int i = 0; |
| 252 | u8 *p = (u8 *)CONFIG_SPL_IMX_ROMAPI_LOADADDR; |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 253 | u8 *phdr = NULL; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 254 | int imagesize; |
| 255 | int total; |
| 256 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 257 | ret = rom_api_query_boot_infor(QUERY_PAGE_SZ, &pagesize); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 258 | |
| 259 | if (ret != ROM_API_OKAY) |
| 260 | puts("failure at query_boot_info\n"); |
| 261 | |
| 262 | pg = pagesize; |
| 263 | if (pg < 1024) |
| 264 | pg = 1024; |
| 265 | |
| 266 | for (i = 0; i < 640; i++) { |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 267 | ret = rom_api_download_image(p, 0, pg); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 268 | |
| 269 | if (ret != ROM_API_OKAY) { |
| 270 | puts("Steam(USB) download failure\n"); |
| 271 | return -1; |
| 272 | } |
| 273 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 274 | phdr = search_img_header(p, pg); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 275 | p += pg; |
| 276 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 277 | if (phdr) |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 278 | break; |
| 279 | } |
| 280 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 281 | if (!phdr) { |
| 282 | puts("Can't found uboot image in 640K range\n"); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 283 | return -1; |
| 284 | } |
| 285 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 286 | if (p - phdr < img_header_size()) { |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 287 | ret = rom_api_download_image(p, 0, pg); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 288 | |
| 289 | if (ret != ROM_API_OKAY) { |
| 290 | puts("Steam(USB) download failure\n"); |
| 291 | return -1; |
| 292 | } |
| 293 | |
| 294 | p += pg; |
| 295 | } |
| 296 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 297 | imagesize = img_info_size(phdr); |
Marcel Ziswiler | ff110e3 | 2022-07-20 09:27:55 +0200 | [diff] [blame] | 298 | printf("Find img info 0x%p, size %d\n", phdr, imagesize); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 299 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 300 | if (p - phdr < imagesize) { |
| 301 | imagesize -= p - phdr; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 302 | /*need pagesize hear after ROM fix USB problme*/ |
| 303 | imagesize += pg - 1; |
| 304 | imagesize /= pg; |
| 305 | imagesize *= pg; |
| 306 | |
| 307 | printf("Need continue download %d\n", imagesize); |
| 308 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 309 | ret = rom_api_download_image(p, 0, imagesize); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 310 | |
| 311 | p += imagesize; |
| 312 | |
| 313 | if (ret != ROM_API_OKAY) { |
| 314 | printf("Failure download %d\n", imagesize); |
| 315 | return -1; |
| 316 | } |
| 317 | } |
| 318 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 319 | total = img_total_size(phdr); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 320 | total += 3; |
| 321 | total &= ~0x3; |
| 322 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 323 | imagesize = total - (p - phdr); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 324 | |
| 325 | imagesize += pagesize - 1; |
| 326 | imagesize /= pagesize; |
| 327 | imagesize *= pagesize; |
| 328 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 329 | printf("Download %d, Total size %d\n", imagesize, total); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 330 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 331 | ret = rom_api_download_image(p, 0, imagesize); |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 332 | if (ret != ROM_API_OKAY) |
| 333 | printf("ROM download failure %d\n", imagesize); |
| 334 | |
| 335 | memset(&load, 0, sizeof(load)); |
| 336 | load.bl_len = 1; |
| 337 | load.read = spl_ram_load_read; |
| 338 | |
Ye Li | 7a71c61 | 2021-08-07 16:00:39 +0800 | [diff] [blame] | 339 | if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) |
| 340 | return spl_load_simple_fit(spl_image, &load, (ulong)phdr, phdr); |
| 341 | else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) |
| 342 | return spl_load_imx_container(spl_image, &load, (ulong)phdr); |
| 343 | |
| 344 | return -1; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 345 | } |
| 346 | |
| 347 | int board_return_to_bootrom(struct spl_image_info *spl_image, |
| 348 | struct spl_boot_device *bootdev) |
| 349 | { |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 350 | int ret; |
Ye Li | 504514b | 2023-02-03 18:21:47 +0800 | [diff] [blame] | 351 | u32 boot, bstage; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 352 | |
Rasmus Villemoes | 9bfb1ba | 2022-06-20 10:53:20 +0200 | [diff] [blame] | 353 | ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 354 | if (ret != ROM_API_OKAY) |
| 355 | goto err; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 356 | |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 357 | ret = rom_api_query_boot_infor(QUERY_BT_STAGE, &bstage); |
| 358 | if (ret != ROM_API_OKAY) |
| 359 | goto err; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 360 | |
Ye Li | 504514b | 2023-02-03 18:21:47 +0800 | [diff] [blame] | 361 | printf("Boot Stage: "); |
| 362 | |
| 363 | switch (bstage) { |
| 364 | case BT_STAGE_PRIMARY: |
| 365 | printf("Primary boot\n"); |
| 366 | break; |
| 367 | case BT_STAGE_SECONDARY: |
| 368 | printf("Secondary boot\n"); |
| 369 | break; |
| 370 | case BT_STAGE_RECOVERY: |
| 371 | printf("Recovery boot\n"); |
| 372 | break; |
| 373 | case BT_STAGE_USB: |
| 374 | printf("USB boot\n"); |
| 375 | break; |
| 376 | default: |
Peng Fan | b7052db | 2023-04-28 12:08:08 +0800 | [diff] [blame] | 377 | printf("Unknown (0x%x)\n", bstage); |
Ye Li | 504514b | 2023-02-03 18:21:47 +0800 | [diff] [blame] | 378 | } |
| 379 | |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 380 | if (is_boot_from_stream_device(boot)) |
| 381 | return spl_romapi_load_image_stream(spl_image, bootdev); |
| 382 | |
| 383 | return spl_romapi_load_image_seekable(spl_image, bootdev, boot); |
Marek Vasut | 0063916 | 2023-07-02 03:03:51 +0200 | [diff] [blame] | 384 | err: |
| 385 | puts("ROMAPI: failure at query_boot_info\n"); |
| 386 | return -1; |
Peng Fan | 3698679 | 2019-09-16 03:09:31 +0000 | [diff] [blame] | 387 | } |