TQ210——TFTP bare board program download

Publisher:第二眼帅哥Latest update time:2020-12-08 Source: elecfansKeywords:TQ210 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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
*******************************************************************/


Keywords:TQ210 Reference address:TQ210——TFTP bare board program download

Previous article:TQ210 - Light up the LED
Next article:TQ210 - File System

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号