<<< Previous topic - Next topic >>> |
|
Author |
Message |
royshu
Joined: 12 Jun 2008 Posts: 6
|
Posted: 03.07.2008, 09:49 Post subject: Fehler bei "Compiling the Kernel" |
|
|
Ich benutze uClinux-dist_DNP5370 von CD.
# make menuconfig
Then enable vendor/kernel customizations:
Kernel/Library/Defaults Selection --->
[*] Customize Kernel Settings
[*] Customize Vendor/User Settings
Device Drivers --->
Character devices --->
[*] Blackfin BF53x ADSP SPI ADC support
# make
dann stellt sich ein Fehler auf:
dnp5370.c >> spi_adc_chip_info << ist hier nicht deklariert (nicht in einer Funktion).
Ich habe den Code in Datei /uClinux-dist_DNP5370/linux-2.6.x/arch/blackfin/mach-bf537/boards/dnp5370.c eingefügt.
Zeile 253
#if defined(CONFIG_SPI_ADC_BF533) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE)
/* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = {
.ctl_reg = 0x1000,
.enable_dma = 1, /* use dma transfer with this chip */
.bits_per_word = 16,
};
#endif
Dann kann ich make Befehl ausführen.
Is das richtig oder ? |
|
Back to top |
|
|
ene
Joined: 25 Jun 2007 Posts: 14
|
Posted: 11.07.2008, 16:29 Post subject: |
|
|
Hallo,
Der DNP/5370 hat keinen SPI Bus nach außen deshalb sind auch keine SPI Gerätespezifikationen in dem Boardfile enthalten. Der SPI Bus wird nur intern auf dem DNP für den seriellen Flash verwendet.
Gruß
ENE |
|
Back to top |
|
|
|