
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:
- Read disk file into RAM
- Implement custom "mem2env" command to read memory into environment
variable, with destination variable as ${bootargs}
As far as I can see, I am not reinventing any wheels by doing this, but does anyone know a better way?
I've seen the dbox guys doing something similar, although IIRC that solution wasn't quite generic and was hacked into board specific code.
Thinking about it some more, if you can use mkimage somewhere in userspace, you could create a script file, load that to ram and execute it. This is very generic and not limited to setting environment variables.
Thinking about that some more, maybe we could teach "autoscr" also to run commands from a memory address without it being wrapped with mkimage. This is also very generic but prone to errors...
Cheers Detlev