FS_S5PC100 UBOOT-2011.12移植,支持DM9000

在uboot中已经支持了DM9000
驱动代码在drivers/net/目录下的
dm9000x.c  dm9000x.h

 

修改include/configs/smdkc100.h 文件,注释掉SMC911X的支持,添加对DM9000的支持
//#define CONFIG_SMC911X         1       /* we have a SMC9115 on-board   */
//#define CONFIG_SMC911X_16_BIT  1       /* SMC911X_16_BIT Mode          */
//#define CONFIG_SMC911X_BASE    0x98800300      /* SMC911X Drive Base   */
在下面添加DM9000的支持
#define CONFIG_CMD_PING                 1
#define CONFIG_DRIVER_DM9000   1                    /*add by yangshuo*/
#define CONFIG_DM9000_BASE 0x88000300   //comment by yangshuo
#define DM9000_IO CONFIG_DM9000_BASE
#define DM9000_DATA (CONFIG_DM9000_BASE + 4)
#define CONFIG_DM9000_USE_16BIT
#define CONFIG_DM9000_NO_SROM   1
#define CONFIG_ETHADDR  11:22:33:44:55:66
#define CONFIG_IPADDR   192.168.1.200
#define CONFIG_SERVERIP 192.168.1.100
#define CONFIG_GATEWAYIP  192.168.1.1
#define CONFIG_NETMASK  255.255.255.0

 


修改board/samsung/smdkc100/smdkc100.c 文件,添加DM9000的初始化
在board_eth_init(bd_t *bis) 函数中添加
#ifdef CONFIG_DRIVER_DM9000
         rc = dm9000_initialize(bis);
#endif
在当前文件board_init(void) 函数中注释掉
smc9115_pre_init();

 


修改arch/arm/lib/board.c 文件

eth_initialize(gd->bd);
后面添加
eth_init(gd->bd);

 


修改include/net.h 文件
static inline int is_multicast_ether_addr(const u8 *addr)
{
        return (0x01 == addr[0]);
}
不然启动打印
dm9000 i/o: 0x88000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:00:00:00:00:00

 


修改net/eth.c 文件中eth_halt(void) 函数,屏蔽掉一下两句,不然一使用DM9000就断掉网络连接
//      eth_current->halt(eth_current);
//      eth_current->state = ETH_STATE_PASSIVE;

 


编译下载到DDR运行,打印效果
U-Boot 2011.12 (Sep 26 2012 - 19:54:25) for SMDKC100

CPU:    S5PC100@666MHz
Board:  SMDKC100
DRAM:  256 MiB
WARNING: Caches not enabled
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dm9000
dm9000 i/o: 0x88000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 11:22:33:44:55:66
operating at 100M full duplex mode

 


设置一下ipaddr , 不然ping、tftp都无法使用,打印出
SMDKC100 # ping 192.168.4.120
dm9000 i/o: 0x88000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 11:22:33:44:55:66
operating at 100M full duplex mode
Using dm9000 device
ping failed; host 192.168.4.120 is not alive

 

//上面是我根据网上资料改的,可是当我改完后编译的时候又出现下面的问题include/configs/smdkv210.h:error:"+" may not appear in macro parameter list

 

 

转载于:https://www.cnblogs.com/cainiaoaixuexi/archive/2013/04/23/3037173.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/274282.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

为什么ui框架设计成单线程_评估UI设计的备忘单

为什么ui框架设计成单线程Whether you’re evaluating your design proposals or giving feedback to a colleague during a design critique or an informal conversation, you may find this actionable cheat sheet valuable. It’s quick to digest and its questions are …

css 菜单栏悬停_在CSS中构建悬停菜单

css 菜单栏悬停A good menu design is an important part of any website or web app UI. Using only modern HTML and CSS, all kinds of menu combinations can be created to handle whatever user interactions are necessary. In this article, we’ll take a look at how…

一级学科和二级学科_在多学科团队中工作的6个障碍(以及如何解决这些问题)

一级学科和二级学科In a team with different skillsets, one can be hopeful and idealistic about the outcome. The goal is to work as one team, put users first and create awesome experiences. Unfortunately, things don’t always go as planned.在一支具有不同技能…

LBS核心技术解析(引子)

http://www.cnblogs.com/LBSer/archive/2013/04/25/3048754.html 引子: 人们常用“上知天文,下知地理”来形容一个人的博学,人们总是用三要素论“什么时间、什么地点,发生或干了什么事情”来描述一件事情,人们也常常借用“天时、地…

lynda ux_如何建立内部UX团队

lynda uxWritten by Cassandra Naji由卡珊德拉纳吉 ( Cassandra Naji)撰写 The needs of real users are increasingly driving enterprise software design and development. Since 2013, IBM has hired close to 1500 designers and UXers, establishing the largest design…

IE6下div宽高设置

IE6下宽高设置。IE下div 中没有内容时,设置宽高不起作用,必须设置div背景色,并使用滤镜。才能使Div填充目标区域。多用于,其他容器元素使用背景图片,但是背景图片的部分需要其他的事件支持。如跳转。可以使用放置div的…

财务软件开发_财务独立对软件开发人员的重要性

财务软件开发If you read this post, chances that you are a software developer who is seeking financial advice for smart money-saving or investment or early retirement.如果您阅读此文章,则您很可能是一名软件开发人员,正在为精明的省钱或投资…

WIP模块常用表结构

WIP模块常用表结构表名: wip.wip_accounting_classes说明: 离散作业会计科目CLASS_CODE VARCHAR2(10) 帐目ORGANIZATION_ID NUMBER 组织代码CLASS_TYPE NUMBER 帐目类型DESCRIPTION VARCHAR2(240) 描述…

book电子书数据库设计_如何为杀手book的封面设计写出完美的摘要

book电子书数据库设计逐步出版真正的假人 (BOOK PUBLISHING STEP BY STEP FOR REAL DUMMIES) I have spent 18 years in advertising, briefing designers and art directors on various projects — from the simplest typo-only banners to the most complex integrated camp…

5g的负面影响_设计系统的实施是否会对早期概念产生负面影响?

5g的负面影响Athe financial institution where I was recently working the design system was maintained in Sketch libraries and code. A small team working across multiple brands means there is always a question for why we may or may not maintain something. We…

每日英语:Five Really Dumb Money Moves You've Got to Avoid

You know the smartest things to do with your money. But what are the worst moves? What should you avoid?Weirdly enough, they are things that a surprising number of people are still doing─even though they probably know, in their heart of hearts, how fool…

像素/厘米与像素/英寸区别_像素/体素艺术入门指南

像素/厘米与像素/英寸区别Here’s some resources I’ve found helpful so you can start learning pixel or voxel art (as a continuation of this post on 3D resources). Feel free to mention anything I missed in the comments!这是我发现有帮助的一些资源,因…

畅通工程续 最短路

某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起…

Vim中数字自增、自减

(1)ctrl a:数字自动增加1 按下ctrl a: (2)number ctrl a:数字自动增加number 例子:想将20修改成100,按下80 ctrl a: (3)ctrl x…

本土链雷达网_走向本土设计

本土链雷达网I’m old enough to remember when you could pick up any regional graphic design annual, open it, and know exactly which area you were looking at just from the work itself. Tennessee or Texas. Southern California or the Pacific Northwest. New Yor…

pyqt5子窗口跳出主窗口_弹出式窗口与 可用性,转换和跳出率

pyqt5子窗口跳出主窗口Written by Cassandra Naji由卡珊德拉纳吉 ( Cassandra Naji)撰写 They go by many names — modal windows, dialog boxes, modal pop-ups — but whatever you call them, pop-ups have a reputation for being divisive when it comes to usability. …

系统应用iPad设备应用需定制开发的3大理由

这几周朋友几篇文章介绍了改系统应用的文章. 关联文章的地址 iPad设备应用需定制发开的3大理由 通过深入分析iPad设备及iPad应用系统的实际情况,直接将现有的基于PC系统发开的信应用系统,直接迁移到iPad设备上,存在以下几方面的出突问题。也是…

移动硬盘不可用_如何对您的网站执行移动可用性审核

移动硬盘不可用In the wake of 在之后 Mobilegeddon, ensuring a good experience for your mobile users is more important than ever. With Google now giving preference to mobile-friendly sites in the search rankings, now is the time to ensure optimal mobile per…

开源服务器Tornado的初步了解

文章结束给大家来个程序员笑话:[M] 明天看了下Python的一个新web框架,由Facebook开源。不得不说,品牌效应啊,只要是Facebook开源的目项,没有不好用的。Tornado可以说是好用到了极致,从开打官方面页开始懂得…

开发人员安全行为规则_为开发人员改善生活的7条简单规则

开发人员安全行为规则As people, we have a superpower; it is the power of perception. As the famous saying goes, life is 10% what happens to us and 90% how we respond to it.作为人,我们拥有超级大国; 这是感知的力量。 俗话说,生活…