[PATCH] image: fix select_ramdisk for raw initrd
Art Nikpal
email2tema at gmail.com
Sat Oct 16 07:24:07 CEST 2021
Hi Simon
plz ignore this patch
proper solution problem there >
https://patchwork.ozlabs.org/project/uboot/patch/20211016051915.4157293-1-art@khadas.com/
On Fri, Oct 15, 2021 at 6:15 PM Artem Lapkin <email2tema at gmail.com> wrote:
>
> Problem
>
> We have unbootable raw initrd images because, select_ramdisk for raw
> initrd images ignore submited select addr and setup rd_datap value to 0
>
> Solution: setup rd_datap value from select
>
> Signed-off-by: Artem Lapkin <art at khadas.com>
> ---
> common/image-board.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/image-board.c b/common/image-board.c
> index e7660352e9..e3c6ea806a 100644
> --- a/common/image-board.c
> +++ b/common/image-board.c
> @@ -439,7 +439,7 @@ static int select_ramdisk(bootm_headers_t *images, const char *select, u8 arch,
> end = strchr(select, ':');
> if (end) {
> *rd_lenp = hextoul(++end, NULL);
> - *rd_datap = rd_addr;
> + *rd_datap = hextoul(select, NULL);
> processed = true;
> }
> }
> --
> 2.25.1
>
More information about the U-Boot
mailing list