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
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Studying the road to electric motor drive
- Help with op amp output sine wave signal analysis
- How to use Klipper99se?
- Q: What determines the amplifier power supply voltage range? What are the mainstream power supply ranges?
- GigaDevice GD Series System Solution Evaluation
- Learn about IO-Link and its five advantages
- 【RT-Thread Reading Notes】Reflections on RT-Thread Chapters 9-12
- 【NXP Rapid IoT Review】+ Familiar with the hardware
- 【Qinheng RISC-V core CH582】BLE lighting
- EEWORLD University ---- Altium Designer 4-layer smart car complete PCB design video tutorial