overriding kernel command line in boot.scr is painful

Bug #750431 reported by John Rigby
10
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.

Revision history for this message
John Rigby (jcrigby) wrote :

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?
edit boot.txt
mkimage -A arm -T script -C none \
-n "linaro boot script" \
-d boot.txt
/media/boot/boot.scr

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.

Changed in u-boot-linaro:
importance: Undecided → Wishlist
Revision history for this message
John Rigby (jcrigby) wrote :

the preEnv.txt support added in 2012.02 provides a good work around for the difficulties of boot.scr

Changed in u-boot-linaro:
importance: Wishlist → Undecided
importance: Undecided → Wishlist
status: New → Won't Fix
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.