嵌入式爱好者

查看: 8384|回复: 21

飞凌OK6410使用GPC4~GPC7的中断驱动程序,各位大虾,看看有什么问题吗

[复制链接]
jjk-8 该用户已被删除
发表于 2011-9-5 17:23:48 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

jjk-8 该用户已被删除
 楼主| 发表于 2011-9-5 17:25:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-5 17:26:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-6 13:47:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

1

主题

3670

帖子

4181

积分

发表于 2011-9-6 14:31:26 | 显示全部楼层
内核配置中有加入这个驱动吗?
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-6 14:52:29 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-6 14:53:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jordan1568 该用户已被删除
发表于 2011-9-6 16:26:28 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jordan1568 该用户已被删除
发表于 2011-9-7 14:56:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-9 10:21:32 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-9 10:22:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

29

主题

9048

帖子

5593

积分

发表于 2011-9-9 13:08:45 | 显示全部楼层
上次在电话中给楼主提供了一些参考,楼主有没有什么进展呢?
该会员没有填写今日想说内容.
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-13 09:42:47 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
jordan1568 该用户已被删除
发表于 2011-9-13 11:02:07 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

1

主题

3

帖子

46

积分

FCU11xx通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证FCU1301通行证FCU1201通行证

发表于 2011-9-14 19:54:49 | 显示全部楼层
我也有和楼上一样的问题,为什么加入自己编写的驱动,然后重新编译uboot和内核并加载到开发板后,开发板无法启动,整天报ECC校验错误。
请问楼主怎么调试的
方便留个QQ联系方式不?
说明:开发板OK6410,我参考飞凌的leds驱动程序源码编写了一个驱动程序,使用GPC0~GPC3驱动外置的3个指示灯和1个蜂鸣器。编译环境:cross4.2.2,内核源码linux2.6.36,uboot1.6.0。已经在内核 make menuconfig选上了该选的配置。

1

主题

3

帖子

46

积分

FCU11xx通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证FCU1301通行证FCU1201通行证

发表于 2011-9-14 19:55:47 | 显示全部楼层
飞凌-fatfish 能给点建议么,为什么自己编译的内核加载后不能启动,发生校验错误。

1

主题

3

帖子

46

积分

FCU11xx通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证FCU1301通行证FCU1201通行证

发表于 2011-9-14 22:03:32 | 显示全部楼层
NAND read: device 0 offset 0x100000, size 0x500000

s3c-nand: 1 bit(s) error detected, corrected successfully

5242880 bytes read: OK

Boot with zImage


Starting kernel ...


Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36.2 (root@zhu-virtual-machine) (gcc version 4.2.2) #368 Wed Sep 14 21:46:07 CST 2011
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: SMDK6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x5f5f9000
s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x5edf9000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 233540k/233540k available, 28604k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff600000 - 0xffe00000   (   8 MB)
    vmalloc : 0xd0800000 - 0xe0000000   ( 248 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc0032000   ( 168 kB)
      .text : 0xc0032000 - 0xc0689000   (6492 kB)
      .data : 0xc06ea000 - 0xc0734be0   ( 299 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:246
VIC @f4000000: id 0x00041192, vendor 0x41
VIC @f4010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 530.84 BogoMIPS (lpj=2654208)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized

Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 456
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
S3C_LCD clock got enabled :: 133.000 Mhz
LCD TYPE :: LTE480WV will be initialized
Window[0] - FB1: map_video_memory: clear ff600000:0007f800
            FB1: map_video_memory: dma=5e980000 cpu=ff600000 size=0007f800
Window[0] - FB2: map_video_memory: clear ff63fc00:0003fc00
            FB2: map_video_memory: dma=5e9bfc00 cpu=ff63fc00 size=0003fc00
Console: switching to colour frame buffer device 60x34
fb0: s3cfb frame buffer device
Window[1] - FB1: map_video_memory: clear ff700000:0007f800
            FB1: map_video_memory: dma=5ea00000 cpu=ff700000 size=0007f800
Window[1] - FB2: map_video_memory: clear ff73fc00:0003fc00
            FB2: map_video_memory: dma=5ea3fc00 cpu=ff73fc00 size=0003fc00
fb1: s3cfb frame buffer device
Window[2] - FB1: map_video_memory: clear ff680000:0003fc00
            FB1: map_video_memory: dma=5ea80000 cpu=ff680000 size=0003fc00
fb2: s3cfb frame buffer device
Window[3] - FB1: map_video_memory: clear ff780000:0003fc00
            FB1: map_video_memory: dma=5eac0000 cpu=ff780000 size=0003fc00
fb3: s3cfb frame buffer device
jkq debug VIDCON0 is 353
leds        initialized
pwm        initialized
my_ok6410_leds        My Leds initialized
s3c6400-uart.0: s3c2410_serial0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: s3c2410_serial1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: s3c2410_serial2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: s3c2410_serial3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
S3C NAND Driver, (c) 2008 Samsung Electronics
select s3c_nand_oob_mlc_128
S3C NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
Creating 4 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Bootloader"
0x000000100000-0x000000600000 : "Kernel"
0x000000600000-0x000007e00000 : "User"
0x000007e00000-0x000080000000 : "File System"
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered

pl2303 1-1:1.0: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (24000000 Hz)
s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004120, 3=80808080
enter s3c64xx_setup_sdhci1_cfg_gpio
mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: AC97 HiFi <-> s3c-ac97 mapping ok
s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004120, 3=80808080
ALSA device list:
  #0: SMDK (WM9713)
TCP cubic registered
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
s3c-rtc s3c64xx-rtc: hctosys: invalid date/time
mtd->size = 80000 blocks = 7800000
cheaking bad block...............
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: 3 bit(s) error detected, corrected successfully
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
下面和上面一样,一堆ECC校验错误

1

主题

3

帖子

46

积分

FCU11xx通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证FCU1301通行证FCU1201通行证

发表于 2011-9-14 22:06:49 | 显示全部楼层
在linux-2.6.36目录 关闭ECC校验
文件:drivers/mtd/nand/s3c2410.c
函数:s3c2410_nand_init_chip
        1. /*chip->ecc.mode = NAND_ECC_SOFT; */&nbsp;&nbsp;chip->ecc.mode = NAND_ECC_NONE;
然后编译内核,还是会出现上述ECC校验错误,请高手指点

1

主题

3

帖子

46

积分

FCU11xx通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证FCU1301通行证FCU1201通行证

发表于 2011-9-15 09:19:46 | 显示全部楼层
顶起来,请高手们指点啊
jjk-8 该用户已被删除
 楼主| 发表于 2011-9-16 10:37:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-30 03:20

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表