Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi mountain8848,
> Could we use tftp sever in u-boot ? u-boot implements tftp client only. > How to enable tftp server or tftp client ? Enable the network commands in the CONFIG_COMMANDS macro by adding CFG_CMD_NET. > tftp down the vmlinux.bin to 0x0 of SDRAM, "jump 0x0" I do not recommend doing this ... in most configurations, you'll overwrite the exception trampoline, so you won't even finish the tftp download ... a timer interrupt will occur during the download and you'll jump to a bogus address. The best bet is to just use mkimage with a compressed kernel. Load the kernel somewhere high in sdram, then use bootm ... which will disable interrupts, decompress the kernel to its runtime address, then jump to the entry point. You can configure u-boot to tftpboot the kernel automatically at startup by setting the boot command environment variable. In fact, you can configure u-boot to load an execute a full script (hush parser) that does many things at startup. Regards, --Scott