Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow can i build a tftp server in u-boot?
I use the u-boot run my embedded system in nios2 platform. In the first time,I must use the tftp download my imag file to the sdram, but there are no tftp server in the u-boot.I must operate com...
Altera_Forum
Honored Contributor
20 years agoHi smalllight,
> my english is very poor, I don't discribe my problem clearly. Your english is fine ... and I understand your problem clearly -- I just don't agree with your proposed solution :-) > first, i don't want to use the command line in u-boot. You don't have to ... use the autoboot feature. > second,Maybe,I download the image file in diffrent PC And that is exactly the problem (plus others) that DHCP/BOOTP & TFTP successfully solved many years ago ... and continues to solve today. u-boot fully supports DHCP/BOOTP & TFTP. > in this case, if i want to download my image file, i must use the command line of > u-boot to change the env serverip or i change the ip of my pc to 192.168.168.100 > ,or i will no way to download my image file. Again, I disagree. Regardless, you have at least two choices: 1. get tftpd32: http://tftpd32.jounin.net (http://tftpd32.jounin.net) This is what I recommend. 2. implement a tftp server in u-boot Feel free to implement the tftp server in u-boot -- but realize that you will be re-inventing the wheel ;-) Regards, --Scott