Skip to content

Commit

Permalink
aspeed: move ramdisk to ram hack
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Stanley <[email protected]>
Signed-off-by: Cédric Le Goater <[email protected]>
  • Loading branch information
shenki authored and legoater committed Oct 22, 2016
1 parent c17a884 commit 4376f4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,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)) {
Expand Down

0 comments on commit 4376f4f

Please sign in to comment.