Re: [U-Boot-Users] Reading memory into environment variable

2008-07-04 Thread Detlev Zundel
Hi Martin, I wish to read the kernel command line parameters in from a disk file located e.g. on a FAT file system. My current idea is to implement it like this: 1. Read disk file into RAM 2. Implement custom mem2env command to read memory into environment variable, with destination

Re: [U-Boot-Users] Reading memory into environment variable

2008-07-04 Thread Alessandro Rubini
1. Read disk file into RAM 2. Implement custom mem2env command to read memory into environment variable, with destination variable as ${bootargs} I've done the same (on u-boot-1.2.0) to read an upgrade script from a network file or usb pen. I called the command setenvram (bad choice, Wolfgang

Re: [U-Boot-Users] Reading memory into environment variable

2008-07-04 Thread mcj00_rubbish
Thanks for the help! Using a proper U-Boot payload script would also be my preferred way, as suggested by Detlev. However, this isn't my choice to make, it's an accepted way of doing it already at my company :( This patch looks about exactly like what I need. In fact I am using U-Boot 1.2.0, so