Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Kernel 2.4.XX compilation
- 09-17-2006
- Ivan Wagner
September 17, 2006, 3:14 pm

Dear all,
I'm trying to compile kernel version 2.4.XX for SuperH architecture
(Hico.S3 board) but I get some errors while finishing compilation:
sh-sci.c:1881: unknown field `wait_key' specified in initializer
sh-sci.c:1881: `serial_console_wait_key' undeclared here (not in a
function)
sh-sci.c:1881: initializer element is not constant
sh-sci.c:1881: (near initialization for `kgdbcons.unblank')
sh-sci.c:395: warning: `sci_init_pins_sci' defined but not used
sh-sci.c:362: warning: `kgdb_break_interrupt' defined but not used
make[3]: *** [sh-sci.o] Error 1
make[3]: Leaving directory
`/home/ivw/shlinux-20050128/linux/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/home/ivw/shlinux-20050128/linux/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/home/ivw/shlinux-20050128/linux/drivers'
make: *** [_dir_drivers] Error 2
Can someone help me out and tell me what's all about it?
Best regards,
Ivan.
I'm trying to compile kernel version 2.4.XX for SuperH architecture
(Hico.S3 board) but I get some errors while finishing compilation:
sh-sci.c:1881: unknown field `wait_key' specified in initializer
sh-sci.c:1881: `serial_console_wait_key' undeclared here (not in a
function)
sh-sci.c:1881: initializer element is not constant
sh-sci.c:1881: (near initialization for `kgdbcons.unblank')
sh-sci.c:395: warning: `sci_init_pins_sci' defined but not used
sh-sci.c:362: warning: `kgdb_break_interrupt' defined but not used
make[3]: *** [sh-sci.o] Error 1
make[3]: Leaving directory
`/home/ivw/shlinux-20050128/linux/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/home/ivw/shlinux-20050128/linux/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/home/ivw/shlinux-20050128/linux/drivers'
make: *** [_dir_drivers] Error 2
Can someone help me out and tell me what's all about it?
Best regards,
Ivan.

Re: Kernel 2.4.XX compilation
sh3-linux-gcc -D__KERNEL__ -I/home/ivw/shlinux-20050128/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -ml -m3 -pipe -nostdinc -iwithprefix
include -DKBUILD_BASENAME=rtc -c -o rtc.o rtc.c
sh3-linux-gcc -D__KERNEL__ -I/home/ivw/shlinux-20050128/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -ml -m3 -pipe -nostdinc -iwithprefix
include -DKBUILD_BASENAME=dma -DEXPORT_SYMTAB -c dma.c
dma.c: In function `setup_dma':
dma.c:55: `INTC_IPRE' undeclared (first use in this function)
dma.c:55: (Each undeclared identifier is reported only once
dma.c:55: for each function it appears in.)
make[1]: *** [dma.o] Error 1
make[1]: Leaving directory
`/home/ivw/shlinux-20050128/linux/arch/sh/kernel'
make: *** [_dir_arch/sh/kernel] Error 2
The SH7727 (SH3-DSP) actually has a DMAC I don't understand what that
error means...
Ivan Wagner wrote:


Re: Kernel 2.4.XX compilation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ivan Wagner wrote:

OK, now you are missing the manifest constant INTC_IPRE which is
defined in
include/asm-sh/irq.h and include/asm-sh/irq-sh7300.h.
What option didn't you select this time?
[snip]
- --
Lew Pitcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12
iD8DBQFFDpFTagVFX4UWr64RAoK2AKDKales4/RJIr1ZLVuV1w5KLf5O1wCeI7Pl
ygOKHLWeuXf4dS2ocaft98o=
=+Fjn
-----END PGP SIGNATURE-----
Hash: SHA1
Ivan Wagner wrote:

OK, now you are missing the manifest constant INTC_IPRE which is
defined in
include/asm-sh/irq.h and include/asm-sh/irq-sh7300.h.
What option didn't you select this time?
[snip]
- --
Lew Pitcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12
iD8DBQFFDpFTagVFX4UWr64RAoK2AKDKales4/RJIr1ZLVuV1w5KLf5O1wCeI7Pl
ygOKHLWeuXf4dS2ocaft98o=
=+Fjn
-----END PGP SIGNATURE-----

Re: Kernel 2.4.XX compilation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ivan Wagner wrote:

This error is the critical one. It appears that sh-sci.c requires
that you include into your Linux build the components that defines the
serial_console_wait_key() function .
serial_console_wait_key() is defined in drivers/char/serial_tx3912.c
and also in drivers/char/au1x00-serial.c (along with the config.c for
a couple of the various supported architectures). I guess that you will
have to select the appropriate driver and use it in your build

This refers to the fact that serial_console_wait_key() is undefined, so
the structure initialization
wait_key:serial_console_wait_key
fails

Just warnings that the programmer allocated two variables but didnt use
them. These don't affect the success or failure of the compile.

All in all, you didnt select everything required to build your Linux
system. Go back to config/menuconfig/xconfig and select the option that
provides the serial console support. Then try the make again
HTH
- --
Lew Pitcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12
iD8DBQFFDpChagVFX4UWr64RAnQKAKDzANFF/vqXmUXygH0tgkydJ6UvsACgm9g4
wlbmkzngizfrVmzvRx6znGg=
=WB62
-----END PGP SIGNATURE-----
Hash: SHA1
Ivan Wagner wrote:

This error is the critical one. It appears that sh-sci.c requires
that you include into your Linux build the components that defines the
serial_console_wait_key() function .
serial_console_wait_key() is defined in drivers/char/serial_tx3912.c
and also in drivers/char/au1x00-serial.c (along with the config.c for
a couple of the various supported architectures). I guess that you will
have to select the appropriate driver and use it in your build

This refers to the fact that serial_console_wait_key() is undefined, so
the structure initialization
wait_key:serial_console_wait_key
fails

Just warnings that the programmer allocated two variables but didnt use
them. These don't affect the success or failure of the compile.

All in all, you didnt select everything required to build your Linux
system. Go back to config/menuconfig/xconfig and select the option that
provides the serial console support. Then try the make again
HTH
- --
Lew Pitcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12
iD8DBQFFDpChagVFX4UWr64RAnQKAKDzANFF/vqXmUXygH0tgkydJ6UvsACgm9g4
wlbmkzngizfrVmzvRx6znGg=
=WB62
-----END PGP SIGNATURE-----
Site Timeline
- » Kernel torture & stress test suite
- — Next thread in » Embedded Linux
-
- » ARM board cost
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Processor choice
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Low Noise Direct Coupled Preamp
- — The site's Last Updated Thread. Posted in » Electronics Design
-