Re: [U-Boot] start a second kernel/filesystem if first one is corrupted

Dear Arno Steffen,
please keep the mailing list on Cc:
In message 804f0d21001140252v164b7df0p1d1e94f3d3160c8@mail.gmail.com you wrote:
Although I add hush to my config file #define CONFIG_HUSH_PARSER 1 /* use "hush" command parser */
and it compiles hush.c to hush.o I get
Unknown command 'if'
...
OMAP3 # echo foo || echo bar foo || echo bar
This means you do NOT have hush support in your image. Check your config file again, make sure you really rebuild the U-Boot image (run "make mrproper" first), and make sure you are really booting the new image.
My uboot is a 2008.10 (Mistral/TI EVM board)
...
The line: #define CONFIG_HUSH_PARSER 1 /* use "hush" command parser */ I put into /include/configs/omap3_evm.h
Are you sure omap3_evm.h is the right config file for your board?
--0016e6d99ace5450a2047d1dafbe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Please never post HTML!!!
Best regards,
Wolfgang Denk

2010/1/14 Wolfgang Denk wd@denx.de
Dear Arno Steffen,
please keep the mailing list on Cc:
In message 804f0d21001140252v164b7df0p1d1e94f3d3160c8@mail.gmail.com you wrote:
Although I add hush to my config file #define CONFIG_HUSH_PARSER 1 /* use "hush" command parser */
and it compiles hush.c to hush.o I get
Unknown command 'if'
...
OMAP3 # echo foo || echo bar foo || echo bar
This means you do NOT have hush support in your image. Check your config file again, make sure you really rebuild the U-Boot image (run "make mrproper" first), and make sure you are really booting the new image.
My uboot is a 2008.10 (Mistral/TI EVM board)
...
The line: #define CONFIG_HUSH_PARSER 1 /* use "hush" command parser */ I put into /include/configs/omap3_evm.h
Are you sure omap3_evm.h is the right config file for your board?
--0016e6d99ace5450a2047d1dafbe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Please never post HTML!!!
Best regards,
Wolfgang Denk
Sorry. I have to get used to googlemail first. My former mail doesn't handle replys in a proper way.
I recompiled after clean everything. I could see hash.o is inside libcommon.a. I just add the make lines of hush and libcommon (see below) I also checked the compile date of the flashed uboot. So I have no idea what is missed to get it working. Best regards Arno
arm-none-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/opt/src/uboot-02.01.02.09/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7a -mno-thumb-interwork -march=armv7-a -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -c -o hush.o hush.c ... arm-none-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/opt/src/uboot-02.01.02.09/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7a -mno-thumb-interwork -march=armv7-a -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -c -o xyzModem.o xyzModem.c arm-none-linux-gnueabi-ar crv libcommon.a circbuf.o cmd_autoscript.o cmd_bdinfo.o cmd_boot.o cmd_bootm.o cmd_console.o cmd_i2c.o cmd_itest.o cmd_jffs2.o cmd_load.o cmd_mem.o cmd_misc.o cmd_nand.o cmd_net.o cmd_nvedit.o cmd_onenand.o cmd_pcmcia.o command.o console.o devices.o dlmalloc.o env_common.o env_embedded.o env_nand.o env_onenand.o exports.o flash.o hush.o image.o kgdb.o main.o memsize.o s_record.o serial.o xyzModem.o ... make[1]: Leaving directory `/opt/src/uboot-02.01.02.09/board/omap3/spv' UNDEF_SYM=`arm-none-linux-gnueabi-objdump -x board/omap3/spv/libspv.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a cpu/arm_cortexa8/libarm_cortexa8.a cpu/arm_cortexa8/omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | \ sed -n -e 's/.*(__u_boot_cmd_.*)/-u\1/p'|sort|uniq`;\ cd /opt/src/uboot-02.01.02.09 && arm-none-linux-gnueabi-ld -Bstatic -T /opt/src/uboot-02.01.02.09/board/omap3/spv/u-boot.lds -Ttext 0x80e80000 $UNDEF_SYM cpu/arm_cortexa8/start.o \ --start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a cpu/arm_cortexa8/libarm_cortexa8.a cpu/arm_cortexa8/omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/omap3/spv/libspv.a --end-group -L /opt/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3 -lgcc \ -Map u-boot.map -o u-boot
participants (2)
-
Arno Steffen
-
Wolfgang Denk