Hi Artem,
On 05/12/2012 02:05 AM, Artem Bityutskiy wrote:
On Thu, 2012-05-10 at 16:55 +1000, g...@snapgear.com wrote:
From: Greg Ungerer<g...@uclinux.org>
The uclinux.c mapping driver uses ioremap_nocache() to map its physical
mapping address to a system virtual address. Problem is that the region
it is mapping is not device memory. It is ordinary system RAM. On most
non-MMU systems this doesn't matter, and the mapping is always a 1:1
translation of the address.
But if we want to use the uclinux.c mapping driver on real MMU enabled
systems we should be using phys_to_virt() for the translation, since that
is really what we are doing. So change it to do that.
Signed-off-by: Greg Ungerer<g...@uclinux.org>
How can I compile-test this? Please, suggest a defconfig which compiles.
I created one but it does not build:
dedekind@blue:~/git/l2-mtd$ make ARCH=m68k CROSS_COMPILE=m68k-linux-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/m68k/kernel/time.o
arch/m68k/kernel/time.c:90:5: error: redefinition of 'arch_gettimeoffset'
include/linux/time.h:145:19: note: previous definition of 'arch_gettimeoffset'
was here
make[1]: *** [arch/m68k/kernel/time.o] Error 1
make: *** [arch/m68k/kernel] Error 2
It is attached.
Nothing attached?
In any case I would suggest:
make ARCH=m68k CROSS_COMPILE=m68k-linux- m5208evb_defconfig
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close, FAX: +61 7 3891 3630
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev