overriding kernel command line in boot.scr is painful
Bug #750431 reported by
John Rigby
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro U-Boot |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
It would be nice if it were possible to override the command line in boot.scr before booting. Right now the script sets the command line (bootargs) and then invokes boot unconditionaly. This gives the user no chance to see what the command line is nor the ability to change it before booting.
Not really sure what the right way to fix this is or if this is something that should wait until next cycle.
Changed in u-boot-linaro: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Three possible fixes:
First the work around to current problem:
pop the sd card and put it on your host, assume it gets mounted on /media/boot
strings /media/ boot/boot. scr > boot.txt #note boot.txt in/boot/media lacks the final boot that is in boot.scr? boot/boot. scr
edit boot.txt
mkimage -A arm -T script -C none \
-n "linaro boot script" \
-d boot.txt
/media/
done!
The second possiblity is for the script in boot.scr (created by l-m-c) to make each portion of bootargs conditional and look for some env variable in u-boot for the setting before setting it to some hard coded value. This way each part could be overriden in uboot.
The third is to make the final boot in boot.scr conditional so you could stop and look at the final bootargs and possibly change it before booting.