Porteus for UEFI PC

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus for UEFI PC

Post#1 by neko » 19 May 2014, 03:59

Porteus for UEFI PC

1. Porteus-EFI-v3.0-x86_64.iso
http://www.mediafire.com/download/2uj45 ... x86_64.iso
md5sum: 9172135702eeb87f8e561dc06a621ba8 Porteus-EFI-v3.0-x86_64.iso

is a Text Mode Porteus ISO for UEFI PC.

The vmlinuz file is from the script that Mr. brokenman supplied.
Refer:
http://forum.porteus.org/viewtopic.php? ... efi#p21729

It has the eMMC(Embedded Multi-Media Card) driver,
so it can be booted from eMMC.

For graphic mode, you must get WMs(window manager) from Porteus site,
and boot this ISO with a WM using 'extramod' cheatcode.


2. ja64.tar (4M)
http://www.mediafire.com/download/7ucpg ... k/ja64.tar
md5sum: 7f37f37eca8d0ea7d2b651fbaccea0dd ja64.tar

is a 'tar' file that gathered with Japanese locale packages.

live/porteus/xfce/003-xfce_ja.xzm
live/porteus/razor/003-razor_ja.xzm
live/porteus/kde/003-kde_ja.xzm
live/porteus/mate/003-mate_ja.xzm
live/porteus/lxde/003-lxde_ja.xzm


3. How to set a bootable USB memory stick.
For example: USB is /dev/sdb

(1) Initialize and format USB
-------------------------------------
# gdisk /dev/sdb
o
y
n
1

+200M
ef00
n
2



w
y

# mkdosfs /dev/sdb1
# mkfs.ext4 /dev/sdb2
-------------------------------------
[internal command of gdisk]
o: initialize GTP format
y: confirmation answer
n: create new partition
1: partition number
: start sector number(default)
+200M: end sector number(partition size is 200M)
ef00: partition type(ESP:EFI System Partition)
n: create new partition
2: partition number
: start sector number(default:continued sector)
: end sector number(default:last sector)
: partition type(default:8300 Linux file system)
w: write end
y: confirmation answer

(2) copy ISO data to USB
-------------------------------------
# mkdir iso usb1
# mount -o loop Porteus-EFI-v3.0-x86_64.iso iso
# mount /dev/sdb1 usb1
# cp -r iso/* usb1/.
-------------------------------------

(3) set WMs(window manager)
get WMs from Porteus site

http://ponce.cc/porteus/x86_64/current/modules/
003-kde.xzm 2014-Mar-07 15:03:19 67.1M application/octet-stream
003-lxde.xzm 2014-Mar-10 23:08:17 20.6M application/octet-stream
003-mate.xzm 2014-Mar-12 17:30:39 65.0M application/octet-stream
003-razor.xzm 2014-Mar-12 17:30:39 72.5M application/octet-stream
003-xfce.xzm 2014-Mar-10 23:08:29 26.1M application/octet-stream

-------------------------------------
# mkdir usb2
# mount /dev/sdb2 usb2
# mkdir -p usb2/live/porteus/xfce
# mkdir -p usb2/live/porteus/razor
# mkdir -p usb2/live/porteus/kde
# mkdir -p usb2/live/porteus/mate
# mkdir -p usb2/live/porteus/lxde
# mv 003-xfce.xzm usb2/live/porteus/xfce/.
# mv 003-razor.xzm usb2/live/porteus/razor/.
# mv 003-kde.xzm usb2/live/porteus/kde/.
# mv 003-mate.xzm usb2/live/porteus/mate/.
# mv 003-lxde.xzm usb2/live/porteus/lxde/.
-------------------------------------

For Japanese, get ja64.tar
-------------------------------------
# cd usb2
# tar -xf ../ja64.tar
-------------------------------------

Thanks.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus for UEFI PC

Post#2 by neko » 18 Aug 2014, 08:41

==== Tool kits for creating EFI Porteus 3.0.1 ====

EFIKernel.3.0.1.tgz (42M)
http://www.mediafire.com/download/4b1zq ... .3.0.1.tgz
md5sum: bda1e45dac6711e9ec57469094ab50aa EFIKernel.3.0.1.tgz

is the tar file that includes the following files/directories.

1. Kernel for EFI PC
vmlinuz32 : for 32bit
vmlinuz64 : for 64bit

2. Base module for EFI PC
000-kernel32.xzm : for 32bit
000-kernel64.xzm : for 64bit

3. Boot interface for EFI PC
EFI : EFI boot directory
dot.disk : check directory

4. Setting tool of USB memory stick for UEFI
EFIPorteus-installer-for-Linux.sh (English version)
EFIPorteus-installer-for-Linux_ja.sh (Japanese version)

5. ".config" diff of kernel build
dot.config.EFI32.diff : 32bit
dot.config.EFI64.diff : 64bit

*) Please refer to
'Porteus Home page' -> INFO -> Tutorials -> Development ->
'Compilation and usage of custom Porteus kernel'
http://www.porteus.org/component/conten ... ernel.html

6. Shell file of Creating EFI ISO
mkEFI-ISO.sh

[usage]
An example is creating EFI Porteus-KDE4-v3.0.1-i486.iso.

Ex.
Set EFIKernel.3.0.1.tgz and Porteus-KDE4-v3.0.1-i486.iso in work director
# tar -xzf EFIKernel.3.0.1.tgz
# ./mkEFI-ISO.sh Porteus-KDE4-v3.0.1-i486.iso

Porteus-KDE4-v3.0.1-i486-EFI.iso
Porteus-KDE4-v3.0.1-i486-EFI.iso.md5
are created.
Last edited by neko on 01 Sep 2014, 09:45, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#3 by fanthom » 18 Aug 2014, 11:52

hi neko,

i will need this info for creating UEFI compatible kiosk ISOs. we may use it for our desktop edition as well.
thank you very much.
Please add [Solved] to your thread title if the solution was found.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#4 by fanthom » 30 Aug 2014, 14:08

excellent tool neko!
due to the informations provided (especially diff of the kernel config) i could boot kiosk into Vbox session with UEFI enabled.
unfortunately i was able to boot only to text mode. the same applies to porteus desktop edition.

does anybody have an idea why Xorg does not work when UEFI is enabled in the Vbox settings?
i assume that porteus desktop edition works ok on a real hardware with Intel/nVidia/AMD GPU card?

thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Porteus for UEFI PC

Post#5 by francois » 30 Aug 2014, 14:58

It seems that you have to install the vboxadditions in command line mode, see second post of Howto installer Ubuntu 11.10 en UEFI dans VirtualBox 4.1.16 (you will have to use google translate):
http://forum.ubuntu-fr.org/viewtopic.php?pid=7189161

If it is not enough, there seems to be a few instructions for UEFI that you can use from the first post. You might need to use google translate.
Last edited by francois on 30 Aug 2014, 20:06, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus for UEFI PC

Post#6 by neko » 30 Aug 2014, 15:04

@fanthom
I am very glad to help a little for you.

Excuse me for my poor experience that does not help your issue. I do not know the 'Virtualbox'.

I searched the Google by keyword "UEFI virtualbox Xorg". There were many hits.
But I could not understand the reason that needs to modify 'X11/xorg.conf' .

Thanks.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#7 by fanthom » 30 Aug 2014, 15:40

@francois
thanks - will have a look on these

@neko
another question:
did you compile bootx64.efi yourself? if yes then could you provide instructions?
asking cause it looks for /.disk/info during boot and i would like to get rid of this.
thanks
Please add [Solved] to your thread title if the solution was found.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus for UEFI PC

Post#8 by neko » 31 Aug 2014, 04:13

@fanthom

'bootx64.efi' was extracted from 'clonezilla-live-2.2.3-10-amd64.iso@/EFI/boot/bootx64.efi'
http://downloads.sourceforge.net/clonez ... -amd64.iso

If this 'bootx64.efi' is used, 'dot.disk' is renamed to '.disk' and that directory may be set in ISO.

Thanks.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#9 by fanthom » 31 Aug 2014, 18:20

i was able to figure everything our and create custom version of grub2.efi (much smaller) which does the job perfectly for kiosk and without the need of /.disk/info file.
thanks for all the help.
Please add [Solved] to your thread title if the solution was found.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus for UEFI PC

Post#10 by neko » 01 Sep 2014, 02:44

@fanthom

"Your custom version of grub2.efi is much smaller."

It is very good.
I think that the 'small' is beautiful and important for Porteus.
I expect that the new Kiosk will be released.

Thanks.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#11 by fanthom » 01 Sep 2014, 06:37

I expect that the new Kiosk will be released.
so far i have released separated kiosk ISO with integrated UEFI code:
http://porteus-kiosk.org/news.html#140831
i dont want to break anything before giving it some test by the users.

thanks
Please add [Solved] to your thread title if the solution was found.

jbowers
White ninja
White ninja
Posts: 10
Joined: 25 Aug 2014, 15:56
Distribution: Kiosk
Location: USA - Central Massachusetts

Re: Porteus for UEFI PC

Post#12 by jbowers » 01 Sep 2014, 17:38

Successful EFI boot on the ECS LIVA. FANTASTIC JOB

I will try to install the Kiosk to the on-board eMMC flash tomorrow at work.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus for UEFI PC

Post#13 by neko » 04 Sep 2014, 11:15

@jbowers
You can get Porteus-Kiosk-UEFI-3.1.1-i486.iso from the kiosk site
http://porteus-kiosk.org/news.html#140831
and then
(example: /dev/sdc is USB memory stick)
# dd if=Porteus-Kiosk-UEFI-3.1.1-i486.iso of=/dev/sdc

Boot from this USB in BIOS/EFI PC.

Thanks.


@fanthom
The tool for hybrid Porteus 3.0.1 was created depending on your EFI Kiosk.
It took much time for me to understand following items.

[How to use 'efiboot.img' of kiosk]
1.CD LABEL name : "Porteus-Kiosk".
2.Configure file : /boot/isolinux/efi/grub.cfg
3.ID file : /docs/kiosk.sgn
'kiosk.sgn' is a dummy file.(empty)

Thank you very much.


==== Tool kits for creating (BIOS & EFI) hybrid Porteus 3.0.1 ====

EFIKernel-3.0.1-2.tgz (39M)
http://www.mediafire.com/download/chavs ... .0.1-2.tgz
md5sum: 7809545c531444c74281eab2eccea15e EFIKernel-3.0.1-2.tgz

is the tar file that includes the following files/directories.

1. Kernel for EFI PC
vmlinuz32 : for 32bit
vmlinuz64 : for 64bit

2. Base module for EFI PC
000-kernel32.xzm : for 32bit
000-kernel64.xzm : for 64bit

3. Boot interface for EFI PC
isolinux : EFI boot directory

The isolinux/efi/efiboot.img is from Porteus-Kiosk-UEFI-3.1.1-i486.iso posted by Mr.Tomasz Jokiel.
Refer:
http://porteus-kiosk.org/news.html#140831

4. Setting tool of hybrid USB memory stick
USB-installer-for-Linux.sh (English version)
USB-installer-for-Linux_ja.sh (Japanese version)

5. ".config" diff of kernel build
dot.config.EFI32.diff : 32bit
dot.config.EFI64.diff : 64bit

*) Please refer to
'Porteus Home page' -> INFO -> Tutorials -> Development ->
'Compilation and usage of custom Porteus kernel'
http://www.porteus.org/component/conten ... ernel.html

6. commands for hybrid ISO
isohybrid32 (isohybrid from syslinux-4.06-i486-1)
isohybrid64 (isohybrid from syslinux-4.06-x86_64-1)

7. Shell file of Creating hybrid ISO
mkEFI-ISO.sh
make_iso.sh

[usage]
An example is creating hybrid Porteus-KDE4-v3.0.1-i486.iso.

Ex.
Set EFIKernel-3.0.1-2.tgz and Porteus-KDE4-v3.0.1-i486.iso in work director
# tar -xzf EFIKernel-3.0.1-2.tgz
# ./mkEFI-ISO.sh Porteus-KDE4-v3.0.1-i486.iso

Porteus-KDE4-v3.0.1-i486-EFI.iso
Porteus-KDE4-v3.0.1-i486-EFI.iso.md5
are created.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#14 by fanthom » 04 Sep 2014, 11:58

@neko
would be more elegant if you could create your own efiboot.img which would point to something else than /docs/kiosk.sgn.
full instructions are provided in the slackware tree:
http://ftp.heanet.ie/mirrors/ftp.slackw ... /EFI/BOOT/

if you want to use minimum number of components for creating GRUB2 then you may copy my configuration for the kiosk:

Code: Select all

iso9660 linux normal search efi_gop efi_uga all_video
in case of porteus desktop it may be needed to add these:

Code: Select all

fat at_keyboard usb_keyboard
but i'm not sure if they are really needed so you must experiment till you find minimum config which fulfills your needs.
Please add [Solved] to your thread title if the solution was found.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Porteus for UEFI PC

Post#15 by fanthom » 04 Sep 2014, 20:58

hi neko,

i have another question: which option in the config enables booting from eMMC cards?

thank you.
Please add [Solved] to your thread title if the solution was found.

Post Reply