OK6410A development board (three) 2 u-boot-2018.09 ethernet analysis

Publisher:GoldenEclipseLatest update time:2022-09-26 Source: csdnKeywords:OK6410A Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

u-boot-2018.09 (source code based on https://download.csdn.net/download/Golden_Chen/11998917) Current status

1. Check the available IP addresses in the current LAN

$ nmap -sP 10.10.11.*

2. Set u-boot ip related variables

setenv gatewayip 10.10.11.254

setenv ipaddr 10.10.11.120

setenv serverip 10.10.11.57

setenv netmask 255.255.255.0

3. Ping LAN host

OK6410 # ping 10.10.11.57

Unknown command 'ping' - try 'help'

4. Configure CMD_PING, compile and burn, and then set u-boot ip related variables

5. Ping LAN host

OK6410 # ping 10.10.11.57

No ethernet found.

ping failed; host 10.10.11.57 is not alive


Modification Points

1.

Add in board/samsung/smdk6410/smdk6410.c

int board_eth_init(bd_t *bis)

{

return   dm9000_initialize(bis);

}


2.

Configuring CONFIG_NET_RANDOM_ETHADDR


Network configuration status

In:    serial

Out:   lcd

Err:   serial

dm9000

Warning: dm9000 (eth0) using random MAC address - 4e:71:07:ae:b3:0f


Hit any key to stop autoboot:  0 



OK6410 # ping 10.10.11.57

dm9000 i/o: 0x18000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: aa:76:44:eb:4c:9b

operating at 100M full duplex mode

Using dm9000 device

host 10.10.11.57 is alive


DM9000 Driver


include/configs/smdk6410.h


/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */        

#define CONFIG_DRIVER_DM9000                                                        

#define CONFIG_DM9000_BASE (0x18000300) /*XM0CSN1*/                                 

#define DM9000_IO (CONFIG_DM9000_BASE)                                              

#define DM9000_DATA (CONFIG_DM9000_BASE+0x4) /*ADDR2*/                                                                                                      

#define CONFIG_ETHADDR      00:40:5c:26:0a:5b                                       

#define CONFIG_NETMASK      255.255.255.0                                           

#define CONFIG_IPADDR       192.168.1.20                                            

#define CONFIG_SERVERIP     192.168.1.10                                            

#define CONFIG_GATEWAYIP    192.168.1.1

Keywords:OK6410A Reference address:OK6410A development board (three) 2 u-boot-2018.09 ethernet analysis

Previous article:OK6410A development board (V) 2 OK6410A u-boot-2021.01 ethernet SRAM interface
Next article:OK6410A development board (three) 2 u-boot-1.1.6 ethernet analysis

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号