https://github.com/dweinstein/linux-modmem
https://github.com/dweinstein/linux-modmem
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dweinstein/linux-modmem
- Owner: dweinstein
- Created: 2013-04-04T14:03:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-04T14:14:22.000Z (almost 13 years ago)
- Last Synced: 2025-07-23T18:52:56.621Z (6 months ago)
- Language: C++
- Size: 113 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
linux-modmem
============
This code is a subset from Allan Cruse's Virtualization class http://www.cs.usfca.edu/~cruse/cs686s07/
but it is generally useful for hacking on Linux devices.
* Build the kernel-module-builder.
```
g++ -o mmake mmake.cpp
```
* Build the kernel module component
```
./mmake dram
```
* As root create the device node.
```
mknod /dev/dram c 85 0
chmod a+rw /dev/dram
```
* Insert the kernel module into the running system
```
insmod dram.ko
```
* Build the userspace process that will be used to look at the dram device.
```
$ g++ -o fileview fileview.cpp
```
* Run the userspace process
```
# ./fileview /dev/dram
```