[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Accessing RAM from userspace
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: [microblaze-uclinux] Accessing RAM from userspace
- From: Chris Enrique <microdevel@xxxxxxxxxxxxxx>
- Date: Wed, 7 Oct 2009 10:21:01 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VoBD8E++B/QqEPWMjouwr5WYBM3SfBlM4SPn1N9MYfM=; b=W/tmmKVerDB6aiW8W0LQKpYu6ZAB8XkqXxhlY/gqqgVnCJPbJduIcfVKNvOlOUAXRt cC4lzWfzqe52lcXqUHD0p55hZmc8TWLM2HO1AsSlLJlhsRhIcXy9oCM64DxR5w4okTv9 A6PGTg+llWE7h23Aw+wFkotF08UrjNnsknfGI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MnpJyqkuUGd7e7l1XjVU+QOeP155CV3T0ZTuL68HvfJoQwSMRuO8s+Efh1aSzNSBfK 0uo1SX7NIbGLACaMJMDi83kaGx9IOTTvIGBsdlGtDW04mpdFCp5i5bhloWWEKEOoKtuK 05EepjVJ+Zi61F4LUbGy9zGDVkGm5OnbRDIok=
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxxxxxxxx
Hello,
first of all, i am totally aware that my intention is not state of the art, it's just for testing:
i am trying to access a status register of some modified uart directly from userspace. register is located at : 0xc6400000 (base) 0xc6400020 (high).
is it possible to read the data via some userspace application? it would be a lot easier to have a small testing application than always recompiling kernel with a special driver module and rebooting...
i was trying to achieve my goal by using request_memory_region() function, ioremap and readb functions but when including asm/io.h and linux/ioport.h i get compiling errors (i'm using petalinux v 0.30rc1).
has anybody some experience concerning this subject or can give me some information how to do it ?
thank you very much
chris