Re: Fwd: mmap /dev/mem in python

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

 



On Tue, 20 Oct 2009, Brett Graham wrote:

> If I run the following commads:
> devmem2 0x48004a40 w 0x0000038a # select 32kHz clock
> devmem2 0x48004a10 w 0x03007052 # enable iclk for gpt11
> devmem2 0x48004a00 w 0x03007000 # enable fclk for gpt11
> 
> which all run sensibly and alter the registers, then I try to previous
> minimum example on address 0x48088024 (TCLK for gpt11) I get the
> following error:
> Unhandled fault: external abort on non-linefetch (0x1018) at 0x40020024
> Bus error
> 
> What puzzles me is that when I use devmem2 to read or write to the
> same register, everything works fine.

Consider running strace on devmem2 and comparing it to the strace of your 
Python code?  That should show you any differences.  If devmem2 works, 
it's unlikely to be a kernel problem.


- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux