
Hi Gilles and Wolfgang,
Can we implement/add the FTP client protocol code to U-boot sources and customize. if so, how much work activity involved in this ?
Is this just need to write a small ftp-client program file by using TCP stream sockets (as like in Linux) ? Or do we need to write up anything more like TCP/IP network stack..
Right, in the first step you would need to implement a full-blown TCP/IP stack, which would most probably require some other deep-goig changes (keep for example in mind that U-Boot is [intentionally] strictly single-threaded; many implementations don't even support interrupts).
The big question is: why should we do that? U-Boot is a boot loader. If you need OS functionality like a full-blown network stack, than just boot an OS ...
It seems some bootloader or x86 PXE (I do not know where it is implemented) have TCP support. So, that may not be that uncommon after all, and there is maybe even some code to take from these implementations, because they are also most probably single threaded and not using interrupts.
Yes, vxWorks bootloader "Bootrom" has FTP-client support implemented. Which is also single threaded. I hope FTP-client doesn't require Multi-thread program (Only FTP-server may require the Multi-threaded functionality).
Thanks, Madhukar.