linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* This question may be simple for you, but it doesn't let me sleeping.
@ 2002-02-13  6:32 John Zhou
  2003-08-28  9:53 ` how to use busybox to make a ramdisk? John Zhou
  0 siblings, 1 reply; 5+ messages in thread
From: John Zhou @ 2002-02-13  6:32 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: wd


Dear all,

This question may be simple for you, but it doesn't let me sleeping.

I have linux2.4.1 from Lineo runing on ppc8250, IMMR = 0xF0000000, in my driver function, I can directly access 0xF00xxxxx( internal memory area on PPC's chip), why? I think , in device driver, we also use logical memory, when accessing physical address, it should first map this address to be accessed by hardware. Is it right?

Another, I write a character driver to operate I2C device. When passing a logical address pointer to BD's address pointer that allocated by function kmalloc().  I can't correctly operate I2C device, But when I used free memory located in IMM ( 0xF00037C0 ~ 0xF00037F0  ) and directly pass this address to BD's buffer pointer, I can correctly operate I2C device. I also try to use function __pa() and virt_to_phys()  to map logical address to physical address, The driver still can't work OK.

Any comments and suggestions are appreciated!

John Zhou

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-29 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3F4F70E5.7070202@kegel.com>
2003-08-29 18:55 ` how to use busybox to make a ramdisk? Wolfgang Denk
2002-02-13  6:32 This question may be simple for you, but it doesn't let me sleeping John Zhou
2003-08-28  9:53 ` how to use busybox to make a ramdisk? John Zhou
2003-08-29 16:42   ` Brian Padalino
2003-08-29 14:50     ` Dan Kegel
2003-08-29 14:52       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).