LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 10-03-2020, 09:02 AM   #1
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Rep: Reputation: Disabled
PXE boot from a Raspberry Pi


I am trying to rescue an old laptop with no working cdrom and no usb-boot-support by setting up a tftp server to boot Linux Mint 20 from a Raspberry Pi running archlinux arm.

What i have so far:
  • A dhcp-server through NetworkManagers dnsmasq-feature.
  • A directory /srv/tftp owned by user/group 'dnsmasq' and 644-Privileges
  • A copy of https://mirrors.edge.kernel.org/pub/...ux-6.03.tar.gz from wich i extracted pxelinux.0 to /srv/tftp
  • A linuxmint-20-xfce-64Bit.iso mounted on /srv/tftp/image
  • A dropin-file for dnsmasq '30-tftp.conf'
    Code:
    enable-tftp
    tftp-root=/srv/tftp
    tftp-boot=/srv/tftp/pxelinux.0

  • and a file /srv/tftp/pxelinux.cfg/default that contains:
    Code:
    MENU LABEL mint
    LINUX image/casper/vmlinuz
    INITRD image/casper/initrd.lz
    APPEND file=mint/preseed/linuxmint.seed boot=casper acpi=off fetch=tftp://10.0.0.1/image/casper/filesystem.squashfs quiet splash --
So far i get a DHCP Lease and a Timeout when trying to boot (The Boot-Screen says "PXE-E32: TFTP open timeout")
I mostly followed thisToturial allthough i tried to keep it a bit simpler regarding the boot-menu and its features. I feel like i am not totally wrong with the steps above but something is missing for sure. Can someobe please give an opinion?

Last edited by platypo; 10-03-2020 at 09:05 AM.
 
Old 10-04-2020, 05:04 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
Maybe these will help...

https://www.raspberrypi.org/document...et_tutorial.md

https://linuxconfig.org/how-to-confi...xe-boot-server

https://docs.j7k6.org/raspberry-pi-pxe-server/
 
1 members found this post helpful.
Old 10-04-2020, 07:04 AM   #3
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Guide.

Code:
dhcp-boot
You have this.

Code:
tftp-boot
Not sure if that is the whole thing but it would be a good start.

Last edited by jmgibson1981; 10-04-2020 at 07:14 AM.
 
Old 10-05-2020, 04:34 AM   #4
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Thanks for the hints. I have gotten somewhat further into the matter and was able to boot into a menu. Still being unable to load the kernel files from the server i suppose it is because i forgot to mount the image-file with -o uid/gid=981 (dnsmasq). Anyhow, i might soon be able to ask more specific questions than the entry post.
Quote:
Originally Posted by jmgibson1981 View Post
Guide.

Code:
dhcp-boot
You have this.

Code:
tftp-boot
Not sure if that is the whole thing but it would be a good start.
Thats good advice, thanks.
Right now the first problem after an update is that i cannot mount iso-files at all anymore (unknown filesystem type 'iso9660') so i'll have to make myself familiar with kernel modules or try a different approach.

Last edited by platypo; 10-05-2020 at 04:48 AM.
 
Old 10-05-2020, 07:13 AM   #5
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
I think i'm making progress. After extracting vmlinuz, initrd.lz, filesystem.squashfs and custom.seed the files are being loaded from the server via pxe-boot.

Unfortunately i get a Kernelpanic (CPU: 0 PID: 1 Comm: init Not tainted 4.15.0-60-generic #67-Ubuntu) and i don't know yet wether this is due to incompatible architecture/hardware or my tftp-setup (i know very little about the boot process). If it's the first this thread could be marked as solved.

Last edited by platypo; 10-05-2020 at 07:16 AM.
 
Old 10-06-2020, 04:35 AM   #6
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Update: i could boot the laptop with the alpinelinux-netboot-files on the tftp-server pretty easy so this thread is solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] efi pxe 0 for IPv4/efi pxe 0 for IPv6 upon trying to install on a no OS pc diveceroc Linux - Newbie 2 08-18-2019 01:49 PM
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 12:03 PM
pxe-server - client getting pxe-t01 error gwsj Linux - Networking 4 07-13-2016 07:22 PM
issue with uefi pxe boot on rhel 6.5 as pxe server geekmaxwell Linux - Networking 3 04-02-2014 02:27 PM
pxe boot "PXE-T01 file not found" ssharma_02 Linux - Networking 16 05-18-2011 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration