All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] i.Mx6q u-boot stuck
@ 2017-04-10 10:54 Fausto Sessego
  2017-04-10 14:45 ` Fabio Estevam
  0 siblings, 1 reply; 24+ messages in thread
From: Fausto Sessego @ 2017-04-10 10:54 UTC (permalink / raw)
  To: u-boot

Hi,

i have a problem with my custom board.



I created my custom u-boot and, now, i would like load automatically the
kernel by CONFIG_BOOTCOMMAND.



#define CONFIG_BOOTCOMMAND \

    "mmc dev ${mmcdev};"  \

    "if mmc rescan; then "  \

    "echo test1; "  \

    "else echo test2; fi; "



Because i have the "if" condition, i enabled the CONFIG_HUSH_PARSER=y into
deconf file.

Adding this CONFIG, the u-boot stuck



CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 26C
Reset cause: POR
I2C: ready
DRAM: gd->ram_size: 1073741824
DRAM test not implemented!
1 GiB



Whitout the definition CONFIG_HUSH_PARSER=y i have the following result:




CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 28C
Reset cause: POR
I2C: ready
DRAM: gd->ram_size: 1073741824
DRAM test not implemented!
1 GiB

1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Error: FEC address not set.

Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
Unknown command 'fi' - try 'help'

Custimized_board>



Why, if i enable the CONFIG_HUSH_PARSER=y, the u-boot stuck?
------------------------------
*Ing. Fausto Sessego*
*R&D Hardware & Software Engineer*
info
mob
>
*Tecnologie Wireless per la logistica e la sicurezza*
<http://www.infomob.it>
*a:* Parco scientifico e tecnologico della Sardegna, Edificio 1 Loc.
Piscinamanna - 09010 Pula (CA)
<https://www.google.it/maps/place/Sardegna+Ricerche/@38.9899811,8.9280376,17z/data=!3m1!4b1!4m2!3m1!1s0x12e7274e0b4c4191:0x1a9e7f06456bbd3>
*p:* +39 070 92432952
*e:* fausto.sessego at infomob.it
*w:* www.infomob.it

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-05-29  8:37 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 10:54 [U-Boot] i.Mx6q u-boot stuck Fausto Sessego
2017-04-10 14:45 ` Fabio Estevam
2017-04-10 15:29   ` Fausto Sessego
2017-04-10 19:18     ` Fabio Estevam
     [not found]       ` <2007927372.113767.1491854856064@pim.register.it>
2017-04-10 20:14         ` Fabio Estevam
2017-04-11  9:29           ` Fausto Sessego
2017-04-11 10:51             ` Fabio Estevam
2017-04-11 11:20               ` Fausto Sessego
2017-04-11 13:01                 ` Fabio Estevam
2017-05-05 10:50                   ` Fausto Sessego
2017-05-05 11:38                     ` Fabio Estevam
2017-05-05 11:51                       ` Fausto Sessego
2017-05-05 11:56                         ` Fabio Estevam
2017-05-24 16:29                           ` Fausto Sessego
2017-05-24 20:56                             ` Fabio Estevam
2017-05-24 21:00                               ` Fabio Estevam
2017-05-25  8:57                             ` Anatolij Gustschin
2017-05-26 10:39                               ` Fausto Sessego
2017-05-26 12:04                                 ` Lothar Waßmann
2017-05-27 11:00                                   ` Fausto Sessego
2017-05-27 12:50                                     ` Fabio Estevam
2017-05-29  8:37                                       ` Fausto Sessego
2017-05-26 12:36                                 ` Fabio Estevam
2017-05-26 13:12                                   ` Fausto Sessego

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.