Hello,
I get the newest kernel from
git clone git://newgolddream.dyndns.info/
because I hoped to get rid of my problems, when I activate the cache
on my SH7750R based board.
When I compiled it without Cache (CONFIG_CACHE_OFF activated):
I get the following error:
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/sh/kernel/built-in.o:(__ksymtab+0xa8): undefined reference to
`__udivsi3_i4i'
arch/sh/kernel/built-in.o:(__ksymtab+0xb0): undefined reference to
`__sdivsi3_i4i'
mm/built-in.o: In function `access_process_vm':
(.text+0x129a8): undefined reference to `copy_to_user_page'
mm/built-in.o: In function `access_process_vm':
(.text+0x129b8): undefined reference to `copy_from_user_page'
make: *** [.tmp_vmlinux1] Fehler 1
hs@Zeus:~/Entwicklung/sh4/linux-sh-20071110>
with CONFIG_CACHE_WRITETHROUGH=y I get
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/sh/kernel/built-in.o:(__ksymtab+0xd0): undefined reference to
`__udivsi3_i4i'
arch/sh/kernel/built-in.o:(__ksymtab+0xd8): undefined reference to
`__sdivsi3_i4i'
make: *** [.tmp_vmlinux1] Fehler 1
hs@Zeus:~/Entwicklung/sh4/linux-sh-20071110>
making the following changes:
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c
index 04365f6..b1c759f 100644
--- a/arch/sh/kernel/sh_ksyms.c
+++ b/arch/sh/kernel/sh_ksyms.c
@@ -110,8 +110,6 @@ DECLARE_EXPORT(__movstr);
DECLARE_EXPORT(__movmem_i4_even);
DECLARE_EXPORT(__movmem_i4_odd);
DECLARE_EXPORT(__movmemSI12_i4);
-DECLARE_EXPORT(__sdivsi3_i4i);
-DECLARE_EXPORT(__udivsi3_i4i);
#if (__GNUC_MINOR__ == 2 || defined(__GNUC_STM_RELEASE__))
/*
@@ -119,6 +117,8 @@ DECLARE_EXPORT(__udivsi3_i4i);
* compiler which include backported patches.
*/
DECLARE_EXPORT(__udiv_qrnnd_16);
+DECLARE_EXPORT(__sdivsi3_i4i);
+DECLARE_EXPORT(__udivsi3_i4i);
#endif
#else /* GCC 3.x */
DECLARE_EXPORT(__movstr_i4_even);
and it compiles clean (with CONFIG_CACHE_WRITETHROUGH=y)...
but I am not sure if this is correct.
I use gcc:
hs@Zeus:~/Entwicklung/sh4/linux-sh-20071110> sh4-linux-gcc --version
sh-linux-gcc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
Copyright (C) 2006 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE
ZWECKE.
Nevertheless, with caches activated, Linux doesnt boot ... I am
searching for this ...
bye
Heiko
|