Kernel 2.4.XX compilation - Embedded

This is a discussion on Kernel 2.4.XX compilation - Embedded ; 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 ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Kernel 2.4.XX compilation

  1. Kernel 2.4.XX compilation

    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.


  2. Re: Kernel 2.4.XX compilation

    Hey, I have another error when I want to include DMA support:

    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:
    > 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.



  3. Re: Kernel 2.4.XX compilation

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1


    Ivan Wagner wrote:
    > 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)


    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

    > sh-sci.c:1881: initializer element is not constant
    > sh-sci.c:1881: (near initialization for `kgdbcons.unblank')


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

    > 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


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


    > 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?


    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-----


  4. Re: Kernel 2.4.XX compilation

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1


    Ivan Wagner wrote:
    > Hey, I have another error when I want to include DMA support:
    >
    > 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)


    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-----


  5. Re: Kernel 2.4.XX compilation

    I have no clue on what else is missing.

    Should I post my .config file?

    Let me know,

    Ivan


    Lew Pitcher wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    >
    > Ivan Wagner wrote:
    > > Hey, I have another error when I want to include DMA support:
    > >
    > > 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)

    >
    > 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-----



+ Reply to Thread