The bootcmd setting for mx51evk in l-m-c exceeds max args
Bug #659720 reported by
Shawn Guo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Image Tools |
Fix Released
|
Medium
|
Loïc Minier |
Bug Description
We currently have following line in mx51evk boot.scr created by l-m-c.
setenv bootcmd 'mmcinfo; mmc init; fatload mmc 0:2 0x90000000 uImage; fatload mmc 0:2 0x90800000 uInitrd; bootm 0x90000000 0x98000000'
When sourcing the boot.scr, we will get the following error in u-boot.
** Too many args (max. 16) **
And the last two addresses will get lost, and it gets us the following bootcmd, which gets u-boot booting kernel from address 0.
bootcmd=mmcinfo; mmc init; fatload mmc 0:2 0x90000000 uImage; fatload mmc 0:2 0x90800000 uInitrd; bootm
Changed in linaro-image-tools: | |
status: | New → Fix Released |
importance: | Undecided → Medium |
assignee: | nobody → Loïc Minier (lool) |
To post a comment you must log in.
Actually, we do not need to add anything before the first "fatload". We set the bootcmd in boot.scr, and boot.scr itself is in mmc boot partition. We have to get mmc ready before doing "fatload boot.scr" in u-boot. In another word, when u-boot runs at the command in boot.scr, the mmc must be already initialized.
As mx51evk u-boot implements generic mmc than legacy one, "mmc rescan 0" should be used to initialize mmc instead of "mmc init". See details and patch for mx51evk default env on https:/ /bugs.launchpad .net/u- boot-linaro/ +bug/655461