IPB

Welcome Guest ( Log In | Register )

> cs8900 for arm
猫猫草
post 2007-09-13 12:01:34, Thu
Post #1


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2



as title
Attached File(s)
Attached File  cs8900.rar ( 19.01k ) Number of downloads: 299
 
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
猫猫草
post 2007-09-13 13:22:23, Thu
Post #2


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2




评论
  • 啊bing 你好 我是珠海擎天科技,这段时间和你联系过关于开发板的LINUX问题,我们主要是为中国移动做测试仪表,如你有兴趣可以打我的电话:13702321219 希望你能加入我的团队。
    如你愿意请你留下你的手机号码,或你直接打电话给我

    sunny () 发表于 2007-07-16 19:05:02
  • 你好 按你的方法移植了cs8900 出现一下信息,但是我看到你说可以NFS根目录我怎么不行呢?还有 你这个问题解决了吗?
    RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
    cs89x0:cs89x0_probe(0x0)
    cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrewm@uow.edu.au>
    eth0: cs8900 rev K found at 0xf4000300
    cs89x0: Extended EEPROM checksum bad and no Cirrus EEPROM, relying on command line
    cs89x0 media RJ-45, IRQ 53, programmed I/O, MAC 09:90:99:09:90:99
    cs89x0_probe1() successful
    cs89x0:cs89x0_probe(0x0)
    cs89x0: request_region(0xf4000300, 0x10) failed
    cs89x0: no cs8900 or cs8920 detected. Be sure to disable PnP with SETUP
    最后输出信息是:
    eth0: IRQ 53 is not in our map of allowable IRQs, which is 1c20
    IP-Config: Failed to open eth0
    IP-Config: No network devices available.
    Looking up port of RPC 100003/2 on 192.168.2.2
    portmap: server 192.168.2.2 not responding, timed out
    Root-NFS: Unable to get nfsd port number from server, using default
    Looking up port of RPC 100005/1 on 192.168.2.2
    portmap: server 192.168.2.2 not responding, timed out
    Root-NFS: Unable to get mountd port number from server, using default
    mount: server 192.168.2.2 not responding, timed out
    Root-NFS: Server returned error -5 while mounting /root/tftproot/Rootfs
    VFS: Unable to mount root fs via NFS, trying floppy.
    VFS: Cannot open root device "nfs/" or unknown-block(2,0)
    Please append a correct "root=" boot option
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    不知到是什么原因 谢谢指教


    weibing 回复 sunny 说:
    你查看你的网卡对应的中断。是否和我的一样,我的是IRQ_EINT9,不是就先改一下这个吧。
    (2007-07-13 23:25:39) sunny (zhuhai) 发表于 2007-07-10 20:14:13
  • 版主你好!我按照你的写的方法移植cs8900的驱动到kernel-2.6.20上,kernel运行环境是s3c2410,移植了好久都没移植好,我有问题要请教你,我的QQ-57926287 MSN——xd_0228@163.com
    有时间的话帮我解答一些,谢谢,很着急


    weibing 回复 小冬 说:
    在公司忙着学习wince,linux的运行环境还没建好,暂时看不了linux的代码了:)
    (2007-07-05 23:49:21) 小冬 (辽宁省) 发表于 2007-07-04 10:56:20
  • 大侠我跟了一下,是由于ethif_probe2这个函数调用了cs89x0_probe()两次,所以第二次进去就会失败。有个isa_probes结构包了cs89x0_probe().说到底是__dev_get_by_name函数的问题。在space.c里的。


    weibing 回复 kyoy 说:
    十分感谢,迟些我再看看,现在要负责ce的bootloader,甚是麻烦:)
    (2007-07-01 08:21:39) kyoy () 发表于 2007-06-28 10:19:15
  • 按照大侠写的东东,算是把8900整进2.6.18了。也有request_region的问题,大侠你后来这个问题解了吗?就是mac的问题吗?我换了也不行的


    weibing 回复 kyo 说:
    能用就没理它了:)
    不知你的mac问题是指什么不行?
    (2007-06-27 21:12:02) kyo () 发表于 2007-06-23 14:51:18
  • 大侠你好,我在linux-12.6.15上按照你的办法进行8900的移植,并且#define pSMDK2410_ETH_IO __phys_to_pfn(0x19000000)
    但是却出现这样的问题
    Code: e283200a e3520201 e1a00002 328004f2 (e1c060b0)
    <0>Kernel panic - not syncing: Attempted to kill init!


    weibing 回复 songh717 说:
    你的错误信息也给得太少了吧 smile.gif

    我对比过2.6.14 和2.6.15, map_desc 是从2.6.15开始由unsigned long physical 改为 unsigned long pfn。但查不到具体的版本,你可以看看 include/asm-arm/mach/map.h 的定义。

    另外,你看看struct map_desc smdk2410_iodesc[] 里有没有定义cs8900的地址映射...

    (2007-03-18 23:54:49) songh717 () 发表于 2007-03-18 20:03:34
  • weibing 你好,
    我按照你的patch 修改linux-2.6.18.rc7,
    但是kernel在启动过程中根本就没有加载cs89x0驱动。请问碰到过这是什么问题吗?



    weibing 回复 wt_wang 说:
    还要修改相应的Kconfig 和Makefile文件,这些google一下就可以找到,我就不说了...
    (2007-03-05 14:11:03) wt_wang () 发表于 2007-03-05 11:09:21
  • 我按你的方法移植cs89x0.c 发现宏S3C2410_ADDR(X)不能正确转换虚地址。不得不手工强制smdk2410_iodesc[]中的内容为
    {
    (unsigned long) 0xF4000000,
    /*(unsigned long)S3C24XX_VA_CS8900,*/
    (unsigned long)S3C2410_PA_CS8900,
    (unsigned long)S3C24XX_SZ_CS8900,
    MT_DEVICE}
    请问weibin遇到过类似问题没有? 我的st2410板启动时也有request_region(0xf4000300, 0x10) failed 问题。


    weibing 回复 jjasonbao 说:
    S3C2410_ADDR(X) 在nclude/asm-arm/arch-s3c2410/map.h中定于如下:

    34 #ifndef __ASSEMBLY__
    35 #define S3C2410_ADDR(x) ((void __iomem *)0xF0000000 + (x))
    36 #else
    37 #define S3C2410_ADDR(x) (0xF0000000 + (x))
    38 #endif

    如果你的X不超过0x0FFFFFFF的话,就不存在“不能正确转换虚地址”的问题,还要注意不要与其它设备的地址相冲突。

    region(0xf4000300, 0x10) failed 的提示语句我也存在,但我cat /proc/iomem可以看到io资源已分配给cs8900,如下:

    55000000-550fffff : s3c2410-iis
    f0600000-f06fffff : s3c2410-lcd
    f1300300-f130030f : cs89x0

    注意这一句 +#define request_region(a,s,n) request_mem_region(a,s,n)
    我申请的是request_mem_region,所以用cat /proc/iomem查看,如果是request_region(a,s,n),应该用cat /proc/ioports查看...
    (2007-03-01 11:05:33) jjasonbao () 发表于 2007-03-01 00:15:19
  • cs8900终于搞定!真搞笑,苦苦调试了几天,一无所获。今早relax一下, 到处逛(在网上happy.gif),意外在u-boot的FAQ里看到这个 Ethernet does not work in Linux 。他说是不能获得MAC地址的问题,但我的网卡命名有一个09:90:99:09:90:99的地址!随便改一下,00:90:99:00:90:33, 想不到问题就这样解决...
    [root@RHAS linux-2.6.19.2]# telnet 202.192.33.120 99
    Trying 202.192.33.120...
    Connected to 202.192.33.120 (202.192.33.120).
    Escape character is '^]'.

    bb login: root


    BusyBox v1.4.1 (2007-02-08 00:35:21 CST) Built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    Set search library path int /etc/profile
    Set user path in /etc/profile



    weibing 回复 weibing 说:
    奇怪,难道这样的MAC地址也冲突?唉,老样子,不理,先继续调触摸屏...
    (2007-02-12 11:27:17) [email=""]weibing[/email] () 发表于 2007-02-12 11:22:31
  • 我刚开始时遇到和你完全一样的错误,
    按你的方法patch之后,
    居然
    cs89x0: no cs8900 or cs8920 detected.
    昏迷了~
    uboot驱动是成功的,所以硬件没有问题
    不知道问题出在何处,
    /linux/irq.h加到cs89x0.c里会有错误,
    不加可以编译通过,不知道和这个有无关系...


    weibing 回复 sanicle 说:
    恩, 我这几天都在查这个问题,挂nfs根文件系统一切正常,也可以ping,但其它通信都有问题。 request_region这一句申请io资源失败,cat /proc/iomem可以看到io资源已分配给cs8900... 55000000-550fffff : s3c2410-iis f0600000-f06fffff : s3c2410-lcd f1300300-f130030f : cs89x0 关于编译失败,与你的linux和交叉链版本有关,我用3.4.1的交叉链编译alsa声卡驱动提示一大堆错误,2.95.3没有这些错误,但我的 linux-2.6.19.2不让它编译,说 Sorry, your compiler is too old/not recognized. 实在没办法,我继续测试一下... BTW,你的小窝很不错 happy.gif
    (2007-02-12 09:00:08) sanicle (3mn.net) 发表于 2007-02-12 00:22:19
  • 汗,Linux改变 map_desc 结构的同时也提供一个
    #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE }
    这样的宏。
    {S3C24XX_VA_CS8900IO, S3C2410_PA_CS8900, S3C24XX_SZ_CS8900, S3C24XX_SZ_CS8900, MT_DEVICE} 改为 IODESC_ENT(cs8900) 就搞定了...

    [email=""]weibing[/email] () 发表于 2007-02-07 20:56:35
Go to the top of the page
 
+Quote Post

Posts in this topic
猫猫草   cs8900 for arm   2007-09-13 12:01:34, Thu
猫猫草   << BusyBox v1.4.1 移植 s3c2410 | 首 ...   2007-09-13 13:20:44, Thu
猫猫草   评论 啊bing 你好 我是珠海擎天...   2007-09-13 13:22:23, Thu


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2024-10-17 05:04