diff options
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c index 0be09e5c63..20c4807bde 100644 --- a/common/image.c +++ b/common/image.c @@ -1069,6 +1069,17 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, return 1; } } +/// TODO ... Check Why .................. +#if defined(CONFIG_ARCH_ASPEED) + /* + * We need to copy the ramdisk to SRAM to let Linux boot + */ + if (rd_data) { + memmove ((void *)rd_load, (uchar *)rd_data, rd_len); + rd_data = rd_load; + } +#endif /* CONFIG_ASPEED */ + } else if (images->legacy_hdr_valid && image_check_type(&images->legacy_hdr_os_copy, IH_TYPE_MULTI)) { |