[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#595805: ITP: devmem2 -- Simple program to read/write from/to any hardware address

On Mon, Sep 06, 2010 at 09:37:33PM +0200, Michael Opdenacker wrote:
> Package: wnpp
> Severity: wishlist
> Owner: Michael Opdenacker <michael.opdenacker@free-electrons.com>
> * Package name    : devmem2
>   Version         : 1.0.0
>   Upstream Author : Jan-Derk Bakker <jdb@lartmaker.nl>
> * URL             : http://www.lartmaker.nl/lartware/port/devmem2.c 
> * License         : GPLv2 or later
>   Programming Lang: C
>   Description     : Simple program to read/write from/to any hardware address
> devmem2 can be used to access physical addresses 
> in your system, when allowed by the kernel.
> It releaves you from having to access
> /dev/mem by yourself with a C program, and
> allows for quick experiments with the hardware
> from the command line, before implementing a
> real device driver.

This is simply a really small wrapper around /dev/mem.  Whether it is a
worthwhile enough tool to maintain as a package, I have no opinion.  But
I would like to point out that it is not portable.  It assumes a 4k page
size and that sizeof(unsigned long) == 4.  We have numerous
architectures on which one or both of those are not true.  That doesn't
even take into consideration that poking around in /dev/mem is almost
always the wrong thing.

brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature

Reply to: