arm64: Only check for freebsd,dts-version if we are booted in FDT mode.
Reported by: andrew
This commit is contained in:
parent
63f344024a
commit
6bcba8dac9
@ -1356,16 +1356,18 @@ initarm(struct arm64_bootparams *abp)
|
|||||||
strlcpy(kernelname, env, sizeof(kernelname));
|
strlcpy(kernelname, env, sizeof(kernelname));
|
||||||
|
|
||||||
#ifdef FDT
|
#ifdef FDT
|
||||||
root = OF_finddevice("/");
|
if (arm64_bus_method == ARM64_BUS_FDT) {
|
||||||
if (OF_getprop(root, "freebsd,dts-version", dts_version, sizeof(dts_version)) > 0) {
|
root = OF_finddevice("/");
|
||||||
if (strcmp(LINUX_DTS_VERSION, dts_version) != 0)
|
if (OF_getprop(root, "freebsd,dts-version", dts_version, sizeof(dts_version)) > 0) {
|
||||||
printf("WARNING: DTB version is %s while kernel expects %s, "
|
if (strcmp(LINUX_DTS_VERSION, dts_version) != 0)
|
||||||
"please update the DTB in the ESP\n",
|
printf("WARNING: DTB version is %s while kernel expects %s, "
|
||||||
dts_version,
|
"please update the DTB in the ESP\n",
|
||||||
LINUX_DTS_VERSION);
|
dts_version,
|
||||||
} else {
|
LINUX_DTS_VERSION);
|
||||||
printf("WARNING: Cannot find freebsd,dts-version property, "
|
} else {
|
||||||
"cannot check DTB compliance\n");
|
printf("WARNING: Cannot find freebsd,dts-version property, "
|
||||||
|
"cannot check DTB compliance\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user