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.pswp.cn/news/274282.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/274282.shtml
英文地址,請注明出處:http://en.pswp.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.作為人,我們擁有超級大國; 這是感知的力量。 俗話說,生活…