View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Oct 28, 2017 6:28 am Post subject: creating a tftpboot server [solved] |
|
|
Greetings,
I have a x86_64 server and a arm64 board, I want to setup a ftfp server on the x86_64 server so I can use it to boot the arm64 board.
I've taken a look at this: https://wiki.gentoo.org/wiki/Diskless_nodes but I'm not sure what parts of it I need.
I have the arm64 board's kernel image compiled, what I need to setup so I can boot that kernel image?
Thanks. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Last edited by DaggyStyle on Fri Nov 03, 2017 9:31 am; edited 1 time in total |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Sat Oct 28, 2017 2:49 pm Post subject: |
|
|
Hi,
you need at least the dhcp server, the tftp server and the nfs server for the root filesystem.
Then you can choose between pxeboot or etherboot. this is your choice.
greets, bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Sat Oct 28, 2017 3:52 pm Post subject: |
|
|
Dnsmasq is quite easy choice for server side, DHCP/DNS/TFTP/PXE boot in same tool and easy to configure.
I think PXELINUX does not support ARM, so you need to load kernel image directly from TFTP root.
dnsmasq.conf:
Code: |
dhcp-boot=vmlinuz-4.11.0-gentoo
enable-tftp
tftp-root=/var/ftpd
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat Oct 28, 2017 6:50 pm Post subject: |
|
|
DaggyStyle,
What will run on the arm board to fetch the kernel over tftp? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Sat Oct 28, 2017 7:01 pm Post subject: |
|
|
As far as i can see, it should be u-boot which needs to fetch the kernel via tftp.
greets, bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Wed Nov 01, 2017 5:38 pm Post subject: |
|
|
as said below, the board uses u-boot so I want to fetch the kernel via tftp and boot from the root which on the board's card.
do I need dhcp server? I've already have one on my server. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Wed Nov 01, 2017 9:04 pm Post subject: |
|
|
so I can use the Diskless_nodes tutorial minus the dhcp configure? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Thu Nov 02, 2017 5:27 pm Post subject: |
|
|
Yes i believe and also no PXELINUX part.
Code: | allow booting;
next-server "TFTP server ip";
filename "kernel filename"; |
Add these options to dhcpd.conf. Kernel goes to TFTP root directory, AFAIK kernel boot parameters need to be compiled in kernel. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Nov 02, 2017 6:36 pm Post subject: |
|
|
but if I can use existing dhcp, why do I need to define dhcp.conf? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Fri Nov 03, 2017 5:37 am Post subject: |
|
|
The dhcp server need to provide the information for the tftp boot file/server iirc. Otherwise your system will not start as well.
greets, bb
EDITH: maybe this can help you a bit more then the diskless howto: https://rechtzeit.wordpress.com/2013/01/16/tftp-boot-using-u-boot/
It looks like, you just need a working dhcp server for providing an ip and the tftp server. then fire up your system with u-boot and stop the autoboot process and continue with the howto _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Fri Nov 03, 2017 9:30 am Post subject: |
|
|
got it to work but unfortunately, I'm getting an error. it seems that the tftpboot is working so this issue is solved.
to put it simple, I've installed tftp-hpa, modified the conf file, started it, posted the files in the folder and the rest was done via uboot. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|