1. Download u-boot.bin directly to the memory and run (use 210USB in DNW to start downloading). Enter the command in DNW to directly view and modify u-boot.bin
2. Download the program you need to download to the memory through tftp.
Download example: tftp 30000000 (specify the program led_on.bin to download to the address 30000000 in the memory. Here you can set any space address larger than 1M (the size of u-boot.bin) to prevent the specified program led_on.bin from overwriting u-boot.bin)
3. Solidify u-boot.bin to nandflash (to prevent the program code from being lost after the development board is powered off)
4. Download the bare board program to the link address through tftp
printenv --- Print environment information
setenv --- Set environment variables
setenv ipaddr 192.168.0.10
setenv serverip 192.168.0.111
setenv ipadr ----- Delete error information
saveenv --- Save environment information
ping --- Test network connection
ping 192.168.0.111
tftp --- Download files from TFTP server
tftp 30000000 u-boot.bin
nand---nandflash operation
nand erase 0 (starting position) 100000 (size) (clear the contents of nandflash space from 0 to 100000)
nand write 30000000 (memory) 0 (nandflash start) 100000 (size)
(write the contents of memory address 30000000 to nandflash space 0-100000)
go---start running at the specified location
go 30000000
set nandflash start
tftp 30000000 led_on.bin
go 30000000
1M=100 0000 bytes
15kb=1 0000 bytes
set uImage environment variables: setenv bootcmd tftp 30008000 uImage;bootm 30008000
/*Note that it is best not to add newlines manually*/
Set the file system environment variable nfs: setenv bootargs console=ttySAC0,115200 root=/dev/nfs rw nfsroot=192.168.1.8:/home/libang/nfs/roof ip=192.168.1.6:::255.255.255.0::eth0:off init=/linuxrc
Modify MACH_TYPE ---- include/configs/TQ210
setenv machid data
/************************************************************************
Solidify u_boot:tftp 30000000 u-boot.bin
nand erase 0 100000
nand write 30000000 0 100000
Solidify Kernel:tftp 30000000 uImage
nand erase 500000 00000
nand write 30000000 500000 500000
Solidify fs: tftp 30000000 rootfs.img
nand erase a00000 1400000
nand write.yaffs 30000000 a00000 1400000 Boot
kernel: setenv read 30000000 500000 500000; bootm 30000000
Boot file system: (nfs) setenv bootargs console=ttySAC0 root=/dev/nfs rw nfsroot=192.168.1.8:/home/libang/nfs/roof/ ip=192.168.1.6:192.168.0.1::255.255.255.0::eth0:off init=/linuxrc
(yaffs2)setenv bootargs console=ttySAC0 root=/dev/mtdblock3 rootfstype=yaffs2 rw init=/linuxrc
*******************************************************************/
Previous article:TQ210 - Light up the LED
Next article:TQ210 - File System
- Popular Resources
- Popular amplifiers
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
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Connecting a stepper motor using the MSP430G2 LaunchPad
- [RVB2601 Creative Application Development] User Experience 03 -- System Timer
- CH224 Preliminary Function Test
- [RVB2601 Creative Application Development] User Experience 07 -- Code Tracking Based on NTP
- [2022 Digi-Key Innovation Design Competition] - Intelligent Animal Identification System Based on Raspberry Pi
- CC2652RB SimpleLink Crystal-less BAW Multi-Protocol 2.4GHz Wireless MCU
- EEWORLD University Hall----[High Precision Laboratory] Interface: 9 USB
- Switching Power Supply SPICE Simulation and Practical Design
- Analyzing the basic steps of FPGA power supply design
- [RVB2601 Creative Application Development] Audio Playback