mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
armv8: Support loading 32-bit OS which is not in the form of FIT
As only FIT image is supported now, this patch is to support loading 32-bit uImage, dtb and rootfs separately. Signed-off-by: Alison Wang <alison.wang@nxp.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
57da153e88
commit
4ac0a32e24
@ -785,7 +785,8 @@ static inline int image_check_type(const image_header_t *hdr, uint8_t type)
|
|||||||
}
|
}
|
||||||
static inline int image_check_arch(const image_header_t *hdr, uint8_t arch)
|
static inline int image_check_arch(const image_header_t *hdr, uint8_t arch)
|
||||||
{
|
{
|
||||||
return (image_get_arch(hdr) == arch);
|
return (image_get_arch(hdr) == arch) ||
|
||||||
|
(image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64);
|
||||||
}
|
}
|
||||||
static inline int image_check_os(const image_header_t *hdr, uint8_t os)
|
static inline int image_check_os(const image_header_t *hdr, uint8_t os)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user