[uClinux-dev] NEC V850E, startup, missing files

Torsten Mohr tmohr at s.netic.de
Sun Aug 21 04:19:19 EDT 2005


Hi,

i'm quite new to this list and have some startup questions,
they may be quite simple, but i did not find it in the FAQs.


I configured and installed the toolchain for target
v850e-unknown-elf.  I'd like to compile ucLinux for an
NEC V850E.

I then downloaded linux-2.6.12 and the uclinux patch and
applied it.

I wrote a small script called "do" for setting variables for make:
############ do ##############
#! /bin/bash

make ARCH=v850 CROSS_COMPILE=v850e-unknown-elf- $*

##############################

./do xconfig worked fine, i did not change any settings, so
"Processor type and features" -> Platform is set to "GDB".

When i now do "./do vmlinux" i get:

include/linux/sched.h:1076: warning: `regparm' attribute directive ignored
include/linux/sched.h:1192: warning: `regparm' attribute directive ignored
In file included from include/linux/kernel_stat.h:5,
                 from arch/v850/kernel/asm-consts.c:13:
include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from arch/v850/kernel/asm-consts.c:13:
include/linux/kernel_stat.h:30: error: `NR_IRQS' undeclared here (not in a 
function)
In file included from include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:6,
                 from arch/v850/kernel/asm-consts.c:15:
include/linux/irq.h:70: error: requested alignment is not a constant
In file included from include/linux/irq.h:74,
                 from include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:6,
                 from arch/v850/kernel/asm-consts.c:15:
include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a 
function)
include/asm/hw_irq.h:53: warning: `regparm' attribute directive ignored
In file included from include/linux/hardirq.h:6,
                 from arch/v850/kernel/asm-consts.c:15:
include/asm/hardirq.h:13: error: requested alignment is not a constant
make[1]: *** [arch/v850/kernel/asm-consts.s] Fehler 1
make: *** [arch/v850/kernel/asm-consts.s] Fehler 2


Is the problem that i need to supply some more files to describe my
targets memory and so on?

I'd like to compile ucLinux for an embedded chip, with external
RAM and Flash (external bus interface used).  The micro will be
an V850 FJ2 (upD70F3239).


Has anybody got an example for that micro?

Shouldn't it have worked without changes for target "gdb"?

To test everything in advance in GDB, what do i need to do for that,
do i need to supply things like:
- a memory layout
- stdin/stdout
- some other hardware substitute, e.g. timers
- other things ???


Best regards,
Torsten.




More information about the uClinux-dev mailing list