"tftp: sendto: Network is unreachable" during tftp on a virtual machine. What config should I add to kernel build?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: "tftp: sendto: Network is unreachable" during tftp on a virtual machine. What config should I add to kernel build?

Hello all,

I'm trying to build a minimal kernel where tftp works. 

I'm using busybox for initramfs and I'll be running the kernel on an arm64 virtual machine.

The command for getting file is `tftp -g -r axpu_ldd_kc.ko my_ip_addr`(of course my tftp server is working).

But the response is : 

tftp: sendto: Network is unreachable 

So I added some network stuff in the kernel configuration (linux-5.10.0-rc5) but still doesn't work. 

I can't figure out what more to add just to make tftp work

Could anyone tell me what is missing from the defconfig below? (using e1000 in qemu virtual machine).

(As you can see, I added CONFIG_NF_CONNTRACK_TFTP for which the menuconfig says it's TFTP support. And the .config file has CONFIG_NF_NAT_TFTP set to =y. I show the defconfig because .config is too long)

By the way, the qemu command is this : /home/ckim/ProjX/QEMU/qemu-6.2.0/build-baremetal/aarch64-softmmu/qemu-system-aarch64 -machine ab21q,gic-version=max,secure=off,virtualization=true -cpu max -kernel /home/ckim/ProjX/LinuxDevDrv/kernel-release-RD-INFRA-2020.11.30/arch/arm64/boot/Image -m 2048M -nographic -netdev user,id=net0,tftp=/opt/tftp -device e1000,netdev=net0  -machine iommu=smmuv3 --append "root=/dev/ram init=/init nokaslr earlycon ip=dhcp hugepages=16"

Thanks alot!

Chan Kim

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux