[U-Boot] beagle bootcmd not set to CONFIG_BOOTCOMMAND in version2011.03-rc1
Egon Boormans
egon at boormans.org
Wed Mar 16 19:10:20 CET 2011
Dear Mr. Aribaud and Mr. Fleming,
As you're the ARM and MMC specialist, do have an answer to the question
below?
Thanks,
Egon.
-----Oorspronkelijk bericht-----
Van: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
Namens Egon Boormans
Verzonden: Saturday, March 05, 2011 2:58 PM
Aan: u-boot at lists.denx.de
Onderwerp: [U-Boot] beagle bootcmd not set to CONFIG_BOOTCOMMAND in
version2011.03-rc1
Dear u-boot specialists,
I've been working a while now with a beagle Xm board and using u-boot to
boot a linux kernel. Recently I've performed an update to version
u-boot-2011.03-rc1 and found that it's not booting anymore. Attached you'll
find a file containing all the related information.
It looks like the bootcmd doesn't get set to the CONFIG_BOOTCOMMAND value in
the 'include/configs/omap3_beagle.h' file. This value makes it into the
'include/autoconf.mk' file but not into the printenv of the u-boot. If I
change the value of bootcmd (using setenv) to the CONFIG_BOOTCOMMAND value,
and run bootcmd, everything works fine.
Is this issue known already and if so will it be solved in the next release?
Your help is appreciated.
Thanks,
Egon.
u-boot u-boot-2011.03-rc1
--------------------------
include/autoconf.mk
CONFIG_EXTRA_ENV_SETTINGS:
loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}\0
CONFIG_BOOTCOMMAND="if mmc rescan ${mmcdev}; then if run loadbootscript;
then run bootscript; else if run loaduimage; then run mmcboot; else run
nandboot; fi; fi; else run nandboot; fi"
--------------------------
--------------------------
include/configs/omap3_beagle.h
#define CONFIG_EXTRA_ENV_SETTINGS \
"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
"bootscript=echo Running bootscript from mmc ...; " \
"source ${loadaddr}\0" \
#define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \
"if run loadbootscript; then " \
"run bootscript; " \
"else " \
"if run loaduimage; then " \
"run mmcboot; " \
"else run nandboot; " \
"fi; " \
"fi; " \
"else run nandboot; fi"
-----------------------------
--------------------------------
Beagle start log
Texas Instruments X-Loader 1.4.4ss (Jan 30 2011 - 20:35:31)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2011.03-rc1 (Mar 05 2011 - 12:36:06)
OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
In: serial
Out: serial
Err: serial
Beagle xM Rev A
No EEPROM on expansion board
Die ID #6cf600011ff00000015739eb0c00600f
Hit any key to stop autoboot: 0
mmc - MMC sub system
Usage:
mmc read <device num> addr blk# cnt
mmc write <device num> addr blk# cnt
mmc rescan <device num>
mmc part <device num> - lists available partition on mmc
mmc list - lists available devices
Booting from nand ...
NAND read: device 0 offset 0x280000, size 0x400000
4194304 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
OMAP3 beagleboard.org #
-----------------------------------
-----------------------------
OMAP3 beagleboard.org # printenv
baudrate=115200
beaglerev=xMA
bootargs=console=ttyS2,115200n8 mpurate=1000 buddy=none camera=lbcm3m1
vram=12M omapfb.mode=dvi:640x480MR-16 at 60 omapdss.def_disp=dvi
root=/dev/mtdblock4 rw rootfstype=jffs2
bootcmd=if mmc init ${mmcdev}; then if userbutton; then setenv bootscr
user.scr;if run loadbootscript; then run bootscript; else if run loaduimage;
then if run loadramdisk; then run ramboot; else run mmcboot; fi; fi; i
bootdelay=3
bootscr=boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
buddy=none
camera=lbcm3m1
console=ttyS2,115200n8
defaultdisplay=dvi
dieid#=6cf600011ff00000015739eb0c00600f
dvimode=640x480MR-16 at 60
filesize=256C58
loadaddr=0x80200000
loadbootscript=fatload mmc ${mmcdev} ${loadaddr} ${bootscr}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootf}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=1
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=1000
nandargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandro}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr}
280000 400000; bootm ${loadaddr}
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
ramargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${ramroot} rw ramdisk_size=65536}
ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rdaddr=0x81600000
usbtty=cdc_acm
vram=12M
Environment size: 2262/131068 bytes
OMAP3 beagleboard.org #
--------------------------------
-----------------------------------
boot.scr
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list