LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-20-2019, 10:57 AM   #1
efriel_linux
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Rep: Reputation: Disabled
Unhappy How to automatically update U-boot environment variables using uEnv.txt via TFTPBOOT?


I have a uEnv.txt file sitting on a TFTP server and whenever the zybo board downloads the file I have to manually input the "env import" command to update the variables from the recently downloaded file. Is there a way to automate this process within the uenv.txt file?

Command to tftpboot to download uEnv.txt:
Code:
tftp_boot = tftpboot uEnv.txt
bootcmd = run tftp_boot

Contents of uEnv.txt:
Code:
autoload=yes
netstart=0x04000000
bootargs_config=setenv ipaddr 192.168.1.10; setenv serverip 192.168.1.5; setenv bootargs console=ttyPS0,115200
boot_image=image.ub
load_image=tftpboot ${netstart} ${serverip}:${boot_image}; bootm ${netstart}
uenvcmd=run ${load_image}
 
  


Reply

Tags
embedded, hardware, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
u-boot not reading uEnv.txt file from SDCard on Beaglebone black olaoni Linux - Embedded & Single-board computer 1 12-21-2017 08:30 PM
cut first 10 lines of file master.txt and paste in ab1.txt and so on yogeshkumkar Programming 4 08-31-2011 07:23 AM
Copy the contents of a txt file to other txt files (with similar names) by cp command Aquarius_Girl Linux - Newbie 7 07-03-2010 12:54 AM
cat onelinefile.txt >> newfile.txt; cat twofile.txt >> newfile.txt keep newline? tmcguinness Programming 4 02-12-2009 06:38 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration