Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IPXE + UEFI + Parted Magic (solved)
2016-01-30, 17:53
Post: #1
IPXE + UEFI + Parted Magic (solved)
Hi !
Please show me example how to boot Parted magic

i try that:
kernel http://192.168.0.2/pxe/boot/live/uefi/pmagic/bzImage64 initrd=initrd.img initrd=fu.img initrd=m64.img
initrd http://192.168.0.2/pxe/boot/live/uefi/pmagic/initrd.img
initrd http://192.168.0.2/pxe/boot/live/uefi/pmagic/fu.img
initrd http://192.168.0.2/pxe/boot/live/uefi/pmagic/m64.img
boot

but it is not found PMAGIC_2016_01_06.SQFS

i try fetch=http://192.168.0.2/pxe/boot/live/uefi/pmagic/pmodules/PMAGIC_2016_01_06.SQFS
(not working)
and root=/dev/nfs boot=live netboot=nfs nfsroot=192.168.0.2:/mnt/1TB/pxe/boot/live/uefi/pmagic
with nfs on my server
(not working too)
Quote this message in a reply
2016-01-30, 20:42 (This post was last modified: 2016-01-31 04:52 by MultimediaMan.)
Post: #2
RE: IPXE + UEFI + Parted Magic
I haven't had a chance to test this on a UEFI system, but I dare say your problem is related to not specifying an initrd path:

Code:
#!ipxe
set pmagic-path ${17}/Media-Depot/other/tools/pmagic

cpuid --ext 29 && set arch 64 || set arch 32

initrd ${pmagic-path}/initrd.img ||
initrd ${pmagic-path}/fu.img ||
initrd ${pmagic-path}/m${arch}.img ||
initrd ${pmagic-path}/files.cgz ||
chain ${pmagic-path}/bzImage${arch} initrd=initrd.img,fu.img,m${arch}.img,files.cgz edd=on vga=normal ||

exit

In a UEFI system, it is ~required~ that the initrd= specify which files to access in memory. I may be able to test this later today or tomorrow on a UEFI system, but this works flawlessly on a PCBIOS system.
The PMAGIC_2016_01_06.SQFS is contained within the mx.img file, and the syntax for multiple files in a kernel argument is comma-separated (some will handle multiple "initrd=", but not all).

If you want to Customize Parted Magic:

Code:
#!ipxe
set pmagic-path ${17}/Media-Depot/other/tools/pmagic

cpuid --ext 29 && set arch 64 || set arch 32

initrd ${pmagic-path}/initrd.img ||
initrd ${pmagic-path}/fu.img ||
initrd ${pmagic-path}/m${arch}.img ||
initrd ${pmagic-path}/files.cgz ||
chain ${pmagic-path}/bzImage${arch} initrd=initrd.img,fu.img,m${arch}.img,files.cgz edd=on eject=no firewall=no keymap=us vga=791 rdate=yes monday=3 ntpd=yes timeconfig=US/Central clockfmt=%R  ||

exit


Useful little distro.

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2016-01-31, 15:36
Post: #3
RE: IPXE + UEFI + Parted Magic
when i use:
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/initrd.img
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/fu.img
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/m64.img
chain http://192.168.2.1/pxe/boot/live/uefi/pmagic/bzImage64 initrd=initrd.img,fu.img,m64.img
boot
[Image: 8473573.png]

bui if i try:
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/initrd.img
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/fu.img
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/m64.img
chain http://192.168.2.1/pxe/boot/live/uefi/pmagic/bzImage64 initrd=initrd.img initrd=fu.img initrd=m64.img
boot
[Image: 8467428.png]

then i try add || like that: -> but it not help (result is pic one)
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/initrd.img ||
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/fu.img ||
initrd http://192.168.2.1/pxe/boot/live/uefi/pmagic/m64.img ||
chain http://192.168.2.1/pxe/boot/live/uefi/pmagic/bzImage64 initrd=initrd.img,fu.img,m64.img ||
boot

#i can load PMAGIC_2016_01_06.SQFS via http:
#http://192.168.2.1/pxe/boot/live/uefi/pmagic/pmodules/PMAGIC_2016_01_06.SQFS

i am sorry - i can't find spoiler in that forum
Quote this message in a reply
2016-01-31, 16:28
Post: #4
RE: IPXE + UEFI + Parted Magic
You have to use files.cgz, there is a virtual file structure inside:

files.cgz contains a directory called pmodules, with a /scripts directory and /PMAGIC_2016_01_06.SQFS file.

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2016-01-31, 17:24
Post: #5
RE: IPXE + UEFI + Parted Magic
(2016-01-31 16:28)MultimediaMan Wrote:  You have to use files.cgz, there is a virtual file structure inside:

files.cgz contains a directory called pmodules, with a /scripts directory and /PMAGIC_2016_01_06.SQFS file.
thanks for your help !
i don't have this file, how to create it?
Quote this message in a reply
2016-01-31, 17:32
Post: #6
RE: IPXE + UEFI + Parted Magic
You need to download PXE version of Parted Magic, in the big gzip file is where you will find the files.cgz file.

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2016-02-01, 03:13
Post: #7
RE: IPXE + UEFI + Parted Magic
(2016-01-31 17:32)MultimediaMan Wrote:  You need to download PXE version of Parted Magic, in the big gzip file is where you will find the files.cgz file.
Solved!
we can create a files.cgz with that instruction:
mkdir /tmp/cdrom
mount -oloop pmagic-X.X.iso /tmp/cdrom
sh /tmp/cdrom/boot/pxelinux/pm2pxe.sh

my final config:
:pmagic
cpair 0
cpuid --ext 29 && set arch 64 || set arch 32
initrd http://192.168.0.2/pxe/boot/live/pmagic/initrd.img
initrd http://192.168.0.2/pxe/boot/live/pmagic/fu.img
initrd http://192.168.0.2/pxe/boot/live/pmagic/m${arch}.img
initrd http://192.168.0.2/pxe/boot/live/pmagic/files.cgz
chain http://192.168.0.2/pxe/boot/live/pmagic/bzImage${arch} initrd=initrd.img initrd=fu.img initrd=m${arch}.img initrd=files.cgz
boot
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)