Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153771347
D26725.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
D26725.diff
View Options
Index: head/sys/arm/arm/machdep.c
===================================================================
--- head/sys/arm/arm/machdep.c
+++ head/sys/arm/arm/machdep.c
@@ -1111,6 +1111,8 @@
char *env;
void *kmdp;
int err_devmap, mem_regions_sz;
+ phandle_t root;
+ char dts_version[255];
#ifdef EFI
struct efi_map_header *efihdr;
#endif
@@ -1272,6 +1274,18 @@
err_devmap);
platform_late_init();
+
+ root = OF_finddevice("/");
+ if (OF_getprop(root, "freebsd,dts-version", dts_version, sizeof(dts_version)) > 0) {
+ if (strcmp(LINUX_DTS_VERSION, dts_version) != 0)
+ printf("WARNING: DTB version is %s while kernel expects %s, "
+ "please update the DTB in the ESP\n",
+ dts_version,
+ LINUX_DTS_VERSION);
+ } else {
+ printf("WARNING: Cannot find freebsd,dts-version property, "
+ "cannot check DTB compliance\n");
+ }
/*
* We must now clean the cache again....
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 24, 2:34 PM (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32080518
Default Alt Text
D26725.diff (913 B)
Attached To
Mode
D26725: arm: Check dtb version against the one we're expecting to find.
Attached
Detach File
Event Timeline
Log In to Comment