kwboot: Marvell Dove UART booting

Pali Rohár pali at kernel.org
Wed Feb 16 00:02:05 CET 2022


Hello!

On Wednesday 22 December 2021 20:08:56 Tony Dinh wrote:
> *** With jumper inserted, serial console connected, start serial console
> 
> # picocom --b 115200 --f n --p n --d 8 /dev/ttyUSB0
> Terminal ready
> 
> *** Hit <Enter> here to get to the prompt and execute "x 0x0E"
> 
> Bootstrap 2.33>
> Bootstrap 2.33>x 0x0E
> 
> *** No more input possible here,  so Control-A-X to exit serial console
> 
> Terminating...
> Thanks for using picocom
> 
> *** Run kwboot
> 
> # kwboot -t -p -B 115200 /dev/ttyUSB0 -D /localdisk/mtd0.t5335z
> Patching image boot signature to UART
> Aligning image header to Xmodem block size
> Waiting 2s and flushing tty
> Sending boot image header (512 bytes)...
>  25 % [....                                                                  ]
> Done
> Sending boot image data (607664 bytes)...
>   0 % [......................................................................]
>   1 % [......................................................................]
>   2 % [......................................................................]
> <snip>
>  95 % [......................................................................]
>  97 % [......................................................................]
>  98 % [..........................................................            ]
> Done
> Finishing transfer
> [Type Ctrl-\ + c to quit]
> 
> *** Hung here! BootROM did not execute the image payload.

I found this github repository https://github.com/rabeeh/u-boot with
Dove version of U-Boot. In its README file is section about UART:
https://github.com/rabeeh/u-boot/blob/master/README.MARVELL#L131-L138
It points to the file with "w" commands which needs to be executed in
bootrom prior doing calling "x" command (which enters into x-modem):
https://github.com/rabeeh/u-boot/blob/master/tools/doimage_dove/uart_init.txt

Could you try to execute all those "w" commands in that other and then
use kwboot if it helps?


More information about the U-Boot mailing list