https://github.com/ruhansa079/boardinfo-driver
Linux kernel "boardinfo" driver, that will use the device-tree to determine which "board" it is. /proc/boardinfo
https://github.com/ruhansa079/boardinfo-driver
kernel-driver linux-kernel
Last synced: about 24 hours ago
JSON representation
Linux kernel "boardinfo" driver, that will use the device-tree to determine which "board" it is. /proc/boardinfo
- Host: GitHub
- URL: https://github.com/ruhansa079/boardinfo-driver
- Owner: RuhanSA079
- License: gpl-2.0
- Created: 2025-05-28T10:42:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-23T13:17:04.000Z (11 months ago)
- Last Synced: 2025-07-23T14:42:39.016Z (11 months ago)
- Topics: kernel-driver, linux-kernel
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boardinfo driver
Notes:
This driver is only compatible to the devices using a OF driver (Open Firmware) or device-tree.
It is incompatible with ACPI-based systems (x86/x64 based Intel and AMD systems)
Usage:
In your device-tree file, add the following:
```
boardinfo {
compatible = "custom,boardinfo";
boardname = "YOUR-BOARD-NAME";
};
```
Installation:
In your Linux kernel source, add the following "boardinfo" driver folder, under the "drivers" directory.
Example: `cd linux/ && cd drivers/ && mkdir boardinfo`
Copy the `boardinfo.c Makefile Kconfig` files into the newly created `boardinfo` folder as seen above.
Move one directory up from the `boardinfo` folder, so that you are in the `drivers` folder.
Add the following line to the `Makefile`: `obj-$(CONFIG_BOARDINFO) += boardinfo/`
In the same directory, add the following line to the `Kconfig` file, before the `endmenu` compiler directive: `source "drivers/boardinfo/Kconfig"`
Compile:
Ensure you have the `CONFIG_BOARDINFO=y` setting added into your device's defconfig.
Compile the Linux kernel as normal.