[U-Boot] u-boot hangs waiting for serial input

I have compiled an older version of u-boot for ARM versatilepb board and booted in qemu as: qemu-system-arm -M versatilepb -m 128M -nographic -kernel flash.bin
It boots fine, basic commans like `printenv` works. However, issuing `loads` makes the bootloader wait indefinitely. No keypress works. The prompt comes back if the command aborted by pressing Ctrl+C. I am not sure if it is u-boot or qemu is misbehaving. Any suggestion?

Dear Dipanjan,
In message CAEK-7JK-c5+krRCmQZ45J2Nf3HRQtxLb4hvm2sdcrBQ=ErS1dw@mail.gmail.com you wrote:
I have compiled an older version of u-boot for ARM versatilepb board and booted in qemu as: qemu-system-arm -M versatilepb -m 128M -nographic -kernel flash.bin
It boots fine, basic commans like `printenv` works. However, issuing `loads` makes the bootloader wait indefinitely. No keypress works. The prompt comes back if the command aborted by pressing Ctrl+C. I am not sure if it is u-boot or qemu is misbehaving. Any suggestion?
This is the correct, expected behaviour. "loads" starts an S-Revord download over the serial line, so U-Boot is waiting for and readind the input which it expects t be in SREC format.
What did you think "loads" would do?
Best regards,
Wolfgang Denk

Hi Wolfgang,
This is the correct, expected behaviour. "loads" starts an S-Revord download over the serial line, so U-Boot is waiting for and readind the input which it expects t be in SREC format.
What did you think "loads" would do?
It was my fault, sorry for the noise. I was feeding garbage and expecting some error in return. It works for valid SREC
Thanks & Regards, Dipanjan
participants (2)
-
Dipanjan Das
-
Wolfgang Denk