TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Kernel übersetzen

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
/dev/null



Joined: 08 Sep 2006
Posts: 3

PostPosted: 08.09.2006, 22:50    Post subject: Kernel übersetzen Reply with quote

Hallo Allerseits

Ich möchte das rootfs für die Entwicklung über NFS einbinden. Desshalb möchte ich NFS in den Kernel kompillieren. In der aktuellen Konfiguration ist er nur als Modul vorhanden. Nun habe ich versucht die Sourcen von der CD (linux-2.4.27-vrs1-ssv1) mit der toolchain ebenfalls von der CD zu übersetzen.

Das Ergebniss, schon bei "make dep" meint er:

arm-linux-gcc: installation problem, cannot exec `cc1': No such file or directory
cpp: installation problem, cannot exec `cpp': Argument list too long

und dieses cc1 ist in der toolchain auch nirgends zu finden.

Freundliche Grüsse

Andy
Back to top
View user's profile Send private message
/dev/null



Joined: 08 Sep 2006
Posts: 3

PostPosted: 09.09.2006, 19:35    Post subject: Reply with quote

Das erste Prblem mit dem cc1 hat sich erledigt. Ich verwende jetzt eine 3.3.4 toolchain (Das ist die älteste version die in openembedded noch unterstützt wird) Nun habe ich aber folgendes Problem. Dies liegt sicher nicht mehr bei der Toolchain. Hier der volle output:

Code:

NOTE: make -e MAKEFLAGS= include/linux/version.h CC=ccache arm-linux-uclibc-gcc-3.3.4  LD=arm-linux-ucl
ibc-ld
NOTE: make -e MAKEFLAGS= dep CC=ccache arm-linux-uclibc-gcc-3.3.4  LD=arm-linux-uclibc-ld
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
  Making asm-arm/arch -> asm-arm/arch-at91rm9200 symlink
  Making asm-arm/proc -> asm-arm/proc-armv symlink
rm -f include/asm
( cd include ; ln -sf asm-arm asm)
make[1]: Entering directory `/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dn
p9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/arch/arm/tools'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/scripts/mkdep -D__KERNEL__ -I/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-l
inux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARC
H__=4 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -Uarm  -- getconstants.c |\
 sed s,getconstants.o,constants.h, > .depend
make all
make[2]: Entering directory `/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dn
p9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/arch/arm/tools'
awk -f gen-mach-types mach-types > /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/li
nux-dnp9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm-arm/mach-types.h
ccache arm-linux-uclibc-gcc-3.3.4  -D__KERNEL__ -I/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-
linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include -Wall -Wstrict-prototypes
 -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_AR
CH__=4 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -Uarm -S -o constants.h.tmp.1 getco
nstants.c
In file included from /home/azuber/arm/openembedded/stuff/tmp/cross/arm-linux-uclibc/include/linux/auto
conf.h:1,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/config.h:4,
                 from getconstants.c:10:
/home/azuber/arm/openembedded/stuff/tmp/cross/arm-linux-uclibc/include/linux/err_kernel_only.h:1:2: #er
ror Kernel only header included in userspace
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/page.h:98,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/user.h:4,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/elf.h:9,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/processor.h:46,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/prefetch.h:13,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/list.h:6,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/wait.h:14,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/fs.h:12,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h: In function `virt_to_phys':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h:33: error: `AT91_SDRAM_BASE' undeclared (first use in this fun
ction)
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h:33: error: (Each undeclared identifier is reported only once
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h:33: error: for each function it appears in.)
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h: In function `phys_to_virt':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/memory.h:38: error: `AT91_SDRAM_BASE' undeclared (first use in this fun
ction)
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/semaphore.h:10,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/fs.h:200,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:29:65: asm/rwsem.h: No such file or directory
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/semaphore.h:10,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/fs.h:200,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_read':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:46: warning: implicit declaration of function `__down_read'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_read_trylock':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_tr
ylock'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_write':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:68: warning: implicit declaration of function `__down_write'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_write_trylock':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_t
rylock'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `up_read':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:90: warning: implicit declaration of function `__up_read'
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `up_write':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:100: warning: implicit declaration of function `__up_write'
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/fs.h:301,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/ext3_fs_i.h: At top level:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/ext3_fs_i.h:75: error: field `truncate_sem' has incomplete type
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/fs.h:466: error: field `i_alloc_sem' has incomplete type
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/capability.h:17,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/binfmts.h:5,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/fs.h:756: error: field `s_umount' has incomplete type
In file included from getconstants.c:11:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/linux/sched.h:214: error: field `mmap_sem' has incomplete type
In file included from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/asm/pgtable.h:137,
                 from /home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2
.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/include/linux/mm.h:26,
                 from getconstants.c:12:
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/proc/pgtable.h: In function `__mk_pmd':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/proc/pgtable.h:62: error: `AT91_SDRAM_BASE' undeclared (first use in th
is function)
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/proc/pgtable.h: In function `pmd_page':
/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp9200-2.4.27-vrs1-ssv1-r0/lin
ux-2.4.27-vrs1-ssv1/include/asm/proc/pgtable.h:75: error: `AT91_SDRAM_BASE' undeclared (first use in th
is function)
make[2]: *** [constants.h] Error 1
make[2]: Leaving directory `/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp
9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/home/azuber/arm/openembedded/stuff/tmp/work/dnp9200-linux-uclibc/linux-dnp
9200-2.4.27-vrs1-ssv1-r0/linux-2.4.27-vrs1-ssv1/arch/arm/tools'
make: *** [archdep] Error 2
FATAL: oe_runmake failed


Wo könnte da das Problem liegen. Ich habe inzwichen mehrere toolchain probiert. Neuere versionen stolpern über ein short-load-bytes flag.

Bin froh um jeden Tip. die Kernelkonfiguration scheint das Ergebnis nicht zu beeinflusse. Ich verwende die configuraton die auf der CD beim Image ist.

Hat überhaupt schon jemand Erfolg gehabt mit dem übersetzen dieser Kernel-Sourcen?

Freundliche Grüsse

Andy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015