You are not logged in.
Pages: 1
@Ceel,
Thankx.
Follow the tutorial, it works well.
HOWTO create a SliTaz LiveUSB for 64bit UEFI computers
http://doc.slitaz.org/en:guides:uefi
3. Installing an UEFI boot loader
You have now to install a boot loader compatible with UEFI; unfortunately, the grub2-efi package in the SliTaz repository is only for 32bit computers.
A simple way consists of using the boot loader from another 64bit distro :-/. I used Ubuntu but it should exist within some other smaller ISOs.
compiled grub2( bootx64.efi) instead of another 64bit distro
It works for me.
# file bootx64.efi
bootx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
# unzip -l bootx64.efi.zip
Archive: bootx64.efi.zip
Length Date Time Name
--------- ---------- ----- ----
46 04-28-2018 02:55 bootx64.efi.md5
905728 04-25-2018 16:36 bootx64.efi
-------- -------
905774 2 files
grub2-efi-2.02-x86_64.tazpkg
https://goo.gl/rG324b
grub2-2.02-x86_64.tazpkg
https://goo.gl/G1D6eW
Offline
check-uefi.sh
slitaz-rolling-core64
tux@slitaz:~$ uname -a
Linux slitaz 3.16.55-slitaz64 #2 SMP Tue Mar 27 13:04:08 CEST 2018 x86_64 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage64 root=/dev/null video=-32 autologin
tux@slitaz:~$ check-uefi.sh
UEFI
tux@slitaz:~$ cat /usr/bin/check-uefi.sh
#!/bin/sh
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 Apr 26 01:57 config_table
dr-xr-xr-x 2 root root 0 Apr 26 01:57 efivars
-r--r--r-- 1 root root 4096 Apr 26 01:57 fw_vendor
-r--r--r-- 1 root root 4096 Apr 26 01:57 runtime
drwxr-xr-x 11 root root 0 Apr 26 01:57 runtime-map
-r-------- 1 root root 4096 Apr 26 01:57 systab
[attachment=46187,2653]
Offline
slitaz-rolling-core
slitaz-rolling
Linux slitaz 3.16.55-slitaz
tux@slitaz:~$ uname -a
Linux slitaz 3.16.55-slitaz #4 SMP Tue Mar 27 13:38:39 CEST 2018 i686 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage rw root=/dev/null video=-32 autologin
tux@slitaz:~$ check-uefi.sh
UEFI
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 Apr 26 08:22 config_table
dr-xr-xr-x 2 root root 0 Apr 26 08:22 efivars
-r--r--r-- 1 root root 4096 Apr 26 08:22 fw_vendor
-r--r--r-- 1 root root 4096 Apr 26 08:22 runtime
-r-------- 1 root root 4096 Apr 26 08:22 systab
tux@slitaz:~$ zcat /proc/config.gz | grep EFI
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_FB_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=m
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_CACHEFILES is not set
CONFIG_EFIVAR_FS=m
CONFIG_EARLY_PRINTK_EFI=y
tux@slitaz:~$
----
slitaz-rolling-core
Linux slitaz 3.2.98-slitaz
tux@slitaz:~$ uname -a
Linux slitaz 3.2.98-slitaz #4 SMP Tue Jan 16 15:44:20 CET 2018 i686 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=(loop)/boot/bzImage isoloop=/boot/slitaz-rolling-core.iso root=/dev/null rw autologin noeject
tux@slitaz:~$ check-uefi.sh
BIOS
tux@slitaz:~$ ls -l /sys/firmware/efi
ls: /sys/firmware/efi: No such file or directory
tux@slitaz:~$ zcat /proc/config.gz | grep EFI
CONFIG_EFI=y
# CONFIG_FB_EFI is not set
CONFIG_EFI_VARS=m
CONFIG_EFI_PARTITION=y
tux@slitaz:~$ lsmod | grep efi
tux@slitaz:~$
Offline
slitaz-next
slitaz-next-lxqt
Linux slitaz 4.9.30-slitaz
tux@slitaz:~$ uname -a
Linux slitaz 4.9.30-slitaz #2 SMP Fri Jun 16 13:58:14 Europe 2017 i686 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage-4.9.30 rw root=/dev/null video=-32 autologin
tux@slitaz:~$ check-uefi.sh
UEFI
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 Apr 26 14:08 config_table
dr-xr-xr-x 2 root root 0 Apr 26 14:08 efivars
drwxr-xr-x 3 root root 0 Apr 26 14:08 esrt
-r--r--r-- 1 root root 4096 Apr 26 14:08 fw_platform_size
-r--r--r-- 1 root root 4096 Apr 26 14:08 fw_vendor
-r--r--r-- 1 root root 4096 Apr 26 14:08 runtime
-r-------- 1 root root 4096 Apr 26 14:08 systab
tux@slitaz:~$ grep -i efi /var/log/dmesg.log
[ 0.000000] efi: EFI v2.31 by American Megatrends
[ 0.000000] efi: ESRT=0xd9f7d998 ACPI 2.0=0xd97c1000 ACPI=0xd97c1000 SMBIOS=0xf05b0 MPS=0xfd690
[ 0.000000] efi: No EFI runtime due to 32/64-bit mismatch with kernel
[ 0.000000] ACPI: UEFI 0x00000000D97DB868 000042 (v01 ALASKA A M I 01072009 00000000)
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.000000] efi: Setup done, disabling due to 32/64-bit mismatch
[ 0.121609] Registered efivars operations
[ 0.123041] clocksource: Switched to clocksource refined-jiffies
[ 7.622075] efifb: probing for efifb
[ 7.622084] efifb: framebuffer at 0xe0000000, using 3072k, total 3072k
[ 7.622087] efifb: mode is 1024x768x32, linelength=4096, pages=1
[ 7.622089] efifb: scrolling: redraw
[ 7.622091] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 7.626392] fb0: EFI VGA frame buffer device
[ 8.671452] tsc: Refined TSC clocksource calibration: 3199.998 MHz
tux@slitaz:~$
Offline
how do you detect others OSes installations (as linuxes, windows...)
how do you integrate this in the slitaz one?
have you tried doing this on some common laptops, such as hp, toshiba, dell, fsiemens.. ?
it could be good, i'm sure it's not the same exactly process for these brands..
Offline
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
Suitable for Linux kernel and Non Macs
Offline
slitaz-next64
Linux slitaz 4.16.0-slitaz
tux@slitaz:~$ uname -a
Linux slitaz 4.16.0-slitaz #2 SMP Thu Apr 5 11:07:34 UTC 2018 x86_64 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage-4.16 root=/dev/null autologin
tux@slitaz:~$ check-uefi.sh
UEFI
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 Apr 26 10:38 config_table
dr-xr-xr-x 2 root root 0 Apr 26 10:38 efivars
drwxr-xr-x 3 root root 0 Apr 26 10:38 esrt
-r--r--r-- 1 root root 4096 Apr 26 10:38 fw_platform_size
-r--r--r-- 1 root root 4096 Apr 26 10:38 fw_vendor
-r--r--r-- 1 root root 4096 Apr 26 10:38 runtime
-r-------- 1 root root 4096 Apr 26 10:38 systab
drwxr-xr-x 93 root root 0 Apr 26 10:38 vars
tux@slitaz:~$ grep -i efi /var/log/dmesg.log
[ 0.000000] efi: EFI v2.31 by American Megatrends
[ 0.000000] efi: ESRT=0xd9f7d998 ACPI 2.0=0xd97c1000 ACPI=0xd97c1000 SMBIOS=0xf05b0 MPS=0xfd690
[ 0.000000] ACPI: UEFI 0x00000000D97DB868 000042 (v01 ALASKA A M I 01072009 00000000)
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.039528] pci 0000:00:02.0: BAR 2: assigned to efifb
[ 0.050160] Registered efivars operations
[ 14.877870] efifb: probing for efifb
[ 14.877885] efifb: framebuffer at 0xe0000000, using 3072k, total 3072k
[ 14.877888] efifb: mode is 1024x768x32, linelength=4096, pages=1
[ 14.877890] efifb: scrolling: redraw
[ 14.877892] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 14.884753] fb0: EFI VGA frame buffer device
[ 15.904041] tsc: Refined TSC clocksource calibration: 3200.000 MHz
[ 16.535160] EFI Variables Facility v0.08 2004-May-17
[ 16.547340] pstore: Registered efi as persistent store backend
tux@slitaz:~$
----
slitaz-x86_64
slitaz-docker
Linux slitaz 3.16.36-slitaz64
tux@slitaz:~$ uname -a
Linux slitaz 3.16.36-slitaz64 #1 SMP Fri Oct 7 13:26:22 UTC 2016 x86_64 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=(loop)/boot/bzImage64 iso_filename=/boot/slitaz-docker.iso root=/dev/null rw autologin noeject
tux@slitaz:~$ check-uefi.sh
UEFI
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 Apr 26 13:05 config_table
dr-xr-xr-x 2 root root 0 Apr 26 13:05 efivars
-r--r--r-- 1 root root 4096 Apr 26 13:05 fw_vendor
-r--r--r-- 1 root root 4096 Apr 26 13:05 runtime
drwxr-xr-x 11 root root 0 Apr 26 13:05 runtime-map
-r-------- 1 root root 4096 Apr 26 13:05 systab
drwxr-xr-x 93 root root 0 Apr 26 13:05 vars
tux@slitaz:~$
[attachment=46197,2655]
Offline
bootx64.efi
grub-mkimage
Make a bootable image of GRUB.
root@slitaz:~# uname -a
Linux slitaz 4.16.0-slitaz #2 SMP Thu Apr 5 11:07:34 UTC 2018 x86_64 GNU/Linux
root@slitaz:~# grub-mkimage --help | egrep 'Make|DIR|output|FORMAT|x86_64'
Make a bootable image of GRUB.
-d, --directory=DIR use images and modules under DIR
-o, --output=FILE output a generated image to FILE [default=stdout]
-O, --format=FORMAT generate an image in FORMAT
i386-ieee1275, i386-qemu, x86_64-efi, i386-xen,
x86_64-xen, mipsel-yeeloong-flash,
-p, --prefix=DIR set prefix directory
root@slitaz:~# grub-mkimage -d /usr/lib/grub/x86_64-efi -o bootx64.efi -O x86_64-efi -p /boot/grub \
> ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
> iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
> xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
> loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
> scsi loopback normal configfile gzio all_video efi_gop efi_uga \
> gfxterm gettext echo
root@slitaz:~# ls -l bootx64.efi
-rw-r--r-- 1 root root 905728 Apr 30 02:33 bootx64.efi
root@slitaz:~# file bootx64.efi
bootx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
root@slitaz:~#
----
grub2 - receipt
http://cook.slitaz.org/next64/grub2/receipt
efi)
export EFI_ARCH=i386
./configure \
--with-platform=efi \
--target=$EFI_ARCH \
--program-prefix="" \
$CONFIGURE_ARGS &&
make clean &&
make $MAKEFLAGS || return 1
cd grub-core
../grub-mkimage \
-d . \
-o ../bootia32.efi \
-O i386-efi \
-p /boot/grub \
ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
scsi loopback normal configfile gzio all_video efi_gop efi_uga \
gfxterm gettext echo boot chain || return 1
install -Dm644 $src/bootia32.efi $install/boot/efi/boot/bootia32.efi
Offline
Thanks.
ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
scsi loopback normal configfile gzio all_video efi_gop efi_uga \
gfxterm gettext echo boot chain || return 1
duplicate modes
----
# Packed Compressed Files Package name
1 27.4M 3.7M 590 grub2-2.02-x86_64.tazpkg
2 956.0K 233.0K 1 grub2-efi-2.02-x86_64.tazpkg
http://cook.slitaz.org/next64/grub2
efi-modes ?
Offline
@alanyih,
Thanks for bootx64.efi. I've reworked the tutorial and inserted the link to your file; added a tutorial for frugal install too: http://doc.slitaz.org/en:guides:uefi-frugal
I see you run SliTaz core64; I'm jealous!
It runs only in console mode for me; returns[c]Failed to load firmware "radeon / HAINAN_pfp.bin"[/c] a few seconds after booting. As I can't keep the EFI computers I borrow for a long time, I never took time to try to solve it.
Offline
slitaz-core-5in1.iso 2018-May-24 60.4M
tux@slitaz:~$ uname -a
Linux slitaz 3.16.55-slitaz64 #2 SMP Mon May 21 20:31:03 CEST 2018 x86_64 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
\EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi rw root=0x100 autologin initrd=\EFI\BOOT\rootfs5.gz initrd=\EFI\BOOT\rootfs4.gz initrd=\EFI\BOOT\rootfs3.gz initrd=\EFI\BOOT\rootfs2.gz initrd=\EFI\BOOT\rootfs1.gz64
tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r-- 1 root root 4096 May 26 01:19 config_table
dr-xr-xr-x 2 root root 0 May 26 01:19 efivars
-r--r--r-- 1 root root 4096 May 26 01:19 fw_vendor
-r--r--r-- 1 root root 4096 May 26 01:19 runtime
drwxr-xr-x 11 root root 0 May 26 01:19 runtime-map
-r-------- 1 root root 4096 May 26 01:19 systab
tux@slitaz:~$ ls -l /media/UEFI/efi/boot
total 61160
-rwxr-xr-x 1 root root 45 May 24 09:37 rootfs1.gz
-rwxr-xr-x 1 root root 8802668 May 24 09:37 rootfs1.gz64
-rwxr-xr-x 1 root root 15381904 May 24 09:37 rootfs2.gz
-rwxr-xr-x 1 root root 10939212 May 24 09:36 rootfs3.gz
-rwxr-xr-x 1 root root 11131148 May 24 09:36 rootfs4.gz
-rwxr-xr-x 1 root root 8837600 May 24 09:35 rootfs5.gz
-rwxr-xr-x 1 root root 1392 May 24 09:37 startup.nsh
-rwxr-xr-x 1 root root 3792224 May 21 18:06 vmlinuz-3.16.55-slitaz.efi
-rwxr-xr-x 1 root root 3704000 Mar 15 10:30 vmlinuz-3.16.55-slitaz64.efi
tux@slitaz:~$ head -13 /media/UEFI/efi/boot/startup.nsh
# start \EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi
for %i run (1 10)
set -v num %i
if exist FS%num%:\EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi then
FS%num%:
\EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi rw root=0x100 autologin initrd=\EFI\BOOT\rootfs5.gz initrd=\EFI\BOOT\rootfs4.gz initrd=\EFI\BOOT\rootfs3.gz initrd=\EFI\BOOT\rootfs2.gz initrd=\EFI\BOOT\rootfs1.gz64
endif
endfor
if exist FS0:\EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi then
FS0:
\EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi rw root=0x100 autologin initrd=\EFI\BOOT\rootfs5.gz initrd=\EFI\BOOT\rootfs4.gz initrd=\EFI\BOOT\rootfs3.gz initrd=\EFI\BOOT\rootfs2.gz initrd=\EFI\BOOT\rootfs1.gz64
endif
# stop \EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi
tux@slitaz:~$
----
text mode : boot from virtualbox UEFI
http://forum.slitaz.org/topic/tazlito-uefi/page/2#post-46336
http://forum.slitaz.org/?bb_attachments=46336&bbat=2671
root@slitaz:~# slitaz
SliTaz GNU/Linux
================================================================================================================================
Release : 5.0
Architecture : i486
Kernel : 3.16.55-slitaz64
Machine type : x86_64
Home path : /home/slitaz
Configs : /etc/slitaz
Main config : /etc/slitaz/slitaz.conf
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 280 packages
Mirror : http://mirror1.slitaz.org/packages/cooking/
System date : Thu May 24 16:11:58 UTC 2018
--------------
Boot options : \EFI\BOOT\vmlinuz-3.16.55-slitaz64.efi rw root=0x100 autologin initrd=\EFI\BOOT\rootfs5.gz initrd=\EFI\BOOT\rootfs4.gz initrd=\EFI\BOOT\rootfs3.gz initrd=\EFI\BOOT\rootfs2.gz initrd=\EFI\BOOT\rootfs1.gz64
================================================================================================================================root@slitaz:~# blkid /dev/sr0
/dev/sr0: UUID="2018-05-24-11-37-58-00" LABEL="SliTaz core-5in1" TYPE="iso9660" PTUUID="5b0687f7" PTTYPE="dos"root@slitaz:~# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 1.5G 244.0K 1.5G 0% /run
tmpfs 2.7G 176.7M 2.5G 7% /
devtmpfs 1.4G 0 1.4G 0% /dev
[attachment=46345,2674]
Offline
slitaz-core-5in1.iso 2018-May-24 60.4M
BIOS mode
tux@slitaz:~$ uname -a
Linux slitaz 3.16.55-slitaz64 #2 SMP Mon May 21 20:31:03 CEST 2018 x86_64 GNU/Linux
tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage initrd=/boot/rootfs5.gz,/boot/rootfs4.gz,/boot/rootfs3.gz,/boot/rootfs2.gz,/boot/rootfs1.gz rw root=/dev/null video=-32 autologin lang=en_US kmap=us tz=America/New_York
tux@slitaz:~$ ls -l /sys/firmware/efi
ls: /sys/firmware/efi: No such file or directory
tux@slitaz:~$ ls -l /media/UEFI/boot/
total 68872
-rwxr-xr-x 1 root root 3792224 May 21 14:06 bzImage
-rwxr-xr-x 1 root root 3704000 Mar 15 06:30 bzImage64
-rwxr-xr-x 1 root root 331126 Feb 26 05:10 ipxe.exe
-rwxr-xr-x 1 root root 3911 Feb 25 11:15 linld.com
-rwxr-xr-x 1 root root 44920 Feb 26 05:10 memtest.exe
-rwxr-xr-x 1 root root 45 May 24 05:37 rootfs1.gz
-rwxr-xr-x 1 root root 8802668 May 24 05:37 rootfs1.gz64
-rwxr-xr-x 1 root root 15381904 May 24 05:37 rootfs2.gz
-rwxr-xr-x 1 root root 10939212 May 24 05:36 rootfs3.gz
-rwxr-xr-x 1 root root 11131148 May 24 05:36 rootfs4.gz
-rwxr-xr-x 1 root root 8837600 May 24 05:35 rootfs5.gz
drwxr-xr-x 2 root root 8192 May 26 05:30 syslinux
-rwxr-xr-x 1 root root 3792224 May 21 14:06 vmlinuz-3.16.55-slitaz
-rwxr-xr-x 1 root root 3704000 Mar 15 06:30 vmlinuz-3.16.55-slitaz64
tux@slitaz:~$ egrep -A3 'RC4|slitaz|core64' /media/UEFI/boot/syslinux/syslinux.cfg
MENU TITLE SliTaz GNU/Linux - 5.0-RC4 20180524
MENU BACKGROUND splash.jpg
MENU WIDTH 78
MENU MARGIN 6
--
LABEL slitaz
MENU LABEL SliTaz Live
COM32 c32box.c32
append ifmem 320M core64 256M core 192M gtkonly 128M justx 48M base noram
label noram
MENU HIDE
--
LABEL core64
MENU HIDE
COM32 c32box.c32
append linux /boot/bzImage initrd=/boot/rootfs5.gz,/boot/rootfs4.gz,/boot/rootfs3.gz,/boot/rootfs2.gz,/boot/rootfs1.gz rw root=/dev/null video=-32 autologin
tux@slitaz:~$
[attachment=46347,2675]
Offline
dualboot (UEFI/BIOS): ISO VS. USB
slitaz-core-5in1.iso 2018-May-24 60.4M
drwxr-xr-x 2 root root 8192 May 26 05:30 syslinux
tux@slitaz:~$ egrep -A3 'RC4|slitaz|core64' /media/UEFI/boot/syslinux/syslinux.cfg
tux@slitaz:~$ tree -C -s /media/cdrom
/media/cdrom
├── [ 2048] boot
│ ├── [ 3792224] bzImage
│ ├── [ 3704000] bzImage64
│ ├── [ 331126] ipxe.exe
│ ├── [ 2048] isolinux
│ │ ├── [ 2048] boot.cat
│ │ ├── [ 17123] c32box.c32
│ │ ├── [ 62734336] efi.img
│ │ ├── [ 857] help.en
│ │ ├── [ 875] help.fr
│ │ ├── [ 3718] i18n.cfg
│ │ ├── [ 24576] isolinux.bin
│ │ ├── [ 2260] isolinux.cfg
│ │ ├── [ 1446] kbd
│ │ ├── [ 318] noram.cfg
│ │ ├── [ 1000] opts.en
│ │ ├── [ 1118] opts.fr
│ │ ├── [ 23795] splash.jpg
│ │ └── [ 74570] vesamenu.c32
│ ├── [ 3911] linld.com
│ ├── [ 44920] memtest.exe
│ ├── [ 45] rootfs1.gz
│ ├── [ 8802668] rootfs1.gz64
│ ├── [ 15381904] rootfs2.gz
│ ├── [ 10939212] rootfs3.gz
│ ├── [ 11131148] rootfs4.gz
│ ├── [ 8837600] rootfs5.gz
│ ├── [ 3792224] vmlinuz-3.16.55-slitaz
│ └── [ 3704000] vmlinuz-3.16.55-slitaz64
├── [ 2048] efi
│ └── [ 2048] boot
│ ├── [ 45] rootfs1.gz
│ ├── [ 8802668] rootfs1.gz64
│ ├── [ 15381904] rootfs2.gz
│ ├── [ 10939212] rootfs3.gz
│ ├── [ 11131148] rootfs4.gz
│ ├── [ 8837600] rootfs5.gz
│ ├── [ 1392] startup.nsh
│ ├── [ 3704000] vmlinuz-3.16.55-slitaz64.efi
│ └── [ 3792224] vmlinuz-3.16.55-slitaz.efi
├── [ 4922] index.html
├── [ 1818] md5sum
└── [ 811] README
4 directories, 39 files
----
tux@slitaz:~$ tree -C -s /media/UEFI
/media/UEFI
├── [ 8192] boot
│ ├── [ 3792224] bzImage
│ ├── [ 3704000] bzImage64
│ ├── [ 331126] ipxe.exe
│ ├── [ 3911] linld.com
│ ├── [ 44920] memtest.exe
│ ├── [ 45] rootfs1.gz
│ ├── [ 8802668] rootfs1.gz64
│ ├── [ 15381904] rootfs2.gz
│ ├── [ 10939212] rootfs3.gz
│ ├── [ 11131148] rootfs4.gz
│ ├── [ 8837600] rootfs5.gz
│ ├── [ 8192] syslinux
│ │ ├── [ 2048] boot.cat
│ │ ├── [ 17123] c32box.c32
│ │ ├── [ 62734336] efi.img
│ │ ├── [ 857] help.en
│ │ ├── [ 875] help.fr
│ │ ├── [ 3718] i18n.cfg
│ │ ├── [ 1446] kbd
│ │ ├── [ 38912] ldlinux.sys
│ │ ├── [ 318] noram.cfg
│ │ ├── [ 1000] opts.en
│ │ ├── [ 1118] opts.fr
│ │ ├── [ 23795] splash.jpg
│ │ ├── [ 24576] syslinux.bin
│ │ ├── [ 2260] syslinux.cfg
│ │ └── [ 74570] vesamenu.c32
│ ├── [ 3792224] vmlinuz-3.16.55-slitaz
│ └── [ 3704000] vmlinuz-3.16.55-slitaz64
├── [ 8192] efi
│ └── [ 8192] boot
│ ├── [ 45] rootfs1.gz
│ ├── [ 8802668] rootfs1.gz64
│ ├── [ 15381904] rootfs2.gz
│ ├── [ 10939212] rootfs3.gz
│ ├── [ 11131148] rootfs4.gz
│ ├── [ 8837600] rootfs5.gz
│ ├── [ 1392] startup.nsh
│ ├── [ 3704000] vmlinuz-3.16.55-slitaz64.efi
│ └── [ 3792224] vmlinuz-3.16.55-slitaz.efi
├── [ 4922] index.html
├── [ 1818] md5sum
└── [ 811] README
4 directories, 40 files
tux@slitaz:~$
Offline
hardlink
slitaz-core-5in1.iso 2018-May-24 60.4M
e.g.
-rw-r--r-- 3 root root 3704000 Mar 15 06:30 bzImage64
-rw-r--r-- 3 root root 3704000 Mar 15 06:30 vmlinuz-3.16.55-slitaz64
-rw-r--r-- 3 root root 3704000 Mar 15 06:30 vmlinuz-3.16.55-slitaz64.efi
tux@slitaz:~$ ls -lR /media/cdrom
/media/cdrom:
total 12
drwxr-xr-x 3 root root 2048 May 24 09:37 boot
drwxr-xr-x 3 root root 2048 May 24 09:37 efi
-rw-r--r-- 1 root root 4922 Jan 24 23:09 index.html
-rw-r--r-- 1 root root 1818 May 24 09:37 md5sum
-rw-r--r-- 1 root root 811 Jan 24 23:09 README
/media/cdrom/boot:
total 68818
-rw-r--r-- 3 root root 3792224 May 21 18:06 bzImage
-rw-r--r-- 3 root root 3704000 Mar 15 10:30 bzImage64
-rw-r--r-- 1 root root 331126 Feb 26 10:10 ipxe.exe
drwxr-xr-x 2 root root 2048 May 24 09:37 isolinux
-rw-r--r-- 1 root root 3911 Feb 25 16:15 linld.com
-rw-r--r-- 1 root root 44920 Feb 26 10:10 memtest.exe
-rw-r--r-- 2 root root 45 May 24 09:37 rootfs1.gz
-rw-r--r-- 2 root root 8802668 May 24 09:37 rootfs1.gz64
-rw-r--r-- 2 root root 15381904 May 24 09:37 rootfs2.gz
-rw-r--r-- 2 root root 10939212 May 24 09:36 rootfs3.gz
-rw-r--r-- 2 root root 11131148 May 24 09:36 rootfs4.gz
-rw-r--r-- 2 root root 8837600 May 24 09:35 rootfs5.gz
-rw-r--r-- 3 root root 3792224 May 21 18:06 vmlinuz-3.16.55-slitaz
-rw-r--r-- 3 root root 3704000 Mar 15 10:30 vmlinuz-3.16.55-slitaz64
/media/cdrom/boot/isolinux:
total 61417
-r--r--r-- 1 root root 2048 May 24 09:37 boot.cat
-rw-r--r-- 1 root root 17123 Feb 25 16:15 c32box.c32
-rw-r--r-- 1 root root 62734336 May 24 09:37 efi.img
-rw-r--r-- 1 root root 857 Feb 25 16:15 help.en
-rw-r--r-- 1 root root 875 Feb 25 16:15 help.fr
-rw-r--r-- 1 root root 3718 Feb 25 16:15 i18n.cfg
-rw-r--r-- 1 root root 24576 Feb 25 16:15 isolinux.bin
-rw-r--r-- 1 root root 2260 May 24 09:37 isolinux.cfg
-rw-r--r-- 1 root root 1446 Feb 25 16:15 kbd
-rw-r--r-- 1 root root 318 May 24 09:37 noram.cfg
-rw-r--r-- 1 root root 1000 Feb 25 16:15 opts.en
-rw-r--r-- 1 root root 1118 Feb 25 16:15 opts.fr
-rw-r--r-- 1 root root 23795 Mar 4 16:48 splash.jpg
-rw-r--r-- 1 root root 74570 Feb 25 16:15 vesamenu.c32
/media/cdrom/efi:
total 2
drwxr-xr-x 2 root root 2048 May 24 09:37 boot
/media/cdrom/efi/boot:
total 61125
-rw-r--r-- 2 root root 45 May 24 09:37 rootfs1.gz
-rw-r--r-- 2 root root 8802668 May 24 09:37 rootfs1.gz64
-rw-r--r-- 2 root root 15381904 May 24 09:37 rootfs2.gz
-rw-r--r-- 2 root root 10939212 May 24 09:36 rootfs3.gz
-rw-r--r-- 2 root root 11131148 May 24 09:36 rootfs4.gz
-rw-r--r-- 2 root root 8837600 May 24 09:35 rootfs5.gz
-rw-r--r-- 1 root root 1392 May 24 09:37 startup.nsh
-rw-r--r-- 3 root root 3704000 Mar 15 10:30 vmlinuz-3.16.55-slitaz64.efi
-rw-r--r-- 3 root root 3792224 May 21 18:06 vmlinuz-3.16.55-slitaz.efi
tux@slitaz:~$
Offline
hardlink - efi.img
slitaz-core-5in1.iso 2018-May-24 60.4M
62734336 May 24 09:37 efi.img
/media/cdrom/efi/boot:
total 61125
-rw-r--r-- 2 root root 45 May 24 09:37 rootfs1.gz
-rw-r--r-- 2 root root 8802668 May 24 09:37 rootfs1.gz64
-rw-r--r-- 2 root root 15381904 May 24 09:37 rootfs2.gz
-rw-r--r-- 2 root root 10939212 May 24 09:36 rootfs3.gz
-rw-r--r-- 2 root root 11131148 May 24 09:36 rootfs4.gz
-rw-r--r-- 2 root root 8837600 May 24 09:35 rootfs5.gz
-rw-r--r-- 1 root root 1392 May 24 09:37 startup.nsh
-rw-r--r-- 3 root root 3704000 Mar 15 10:30 vmlinuz-3.16.55-slitaz64.efi
-rw-r--r-- 3 root root 3792224 May 21 18:06 vmlinuz-3.16.55-slitaz.efi
tux@slitaz:~$ file /media/cdrom/boot/isolinux/efi.img
/media/cdrom/boot/isolinux/efi.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "SliTaz", sectors/cluster 4, reserved sectors 4, root entries 64, Media descriptor 0xf8, sectors/FAT 120, sectors/track 32, heads 64, hidden sectors 172, sectors 122528 (volumes > 32 MB), serial number 0x0, label: "SYSTEM ", FAT (16 bit)
tux@slitaz:~$ 7z l /media/cdrom/boot/isolinux/efi.img
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Pentium(R) CPU G3258 @ 3.20GHz (306C3),ASM)
Scanning the drive for archives:
1 file, 62734336 bytes (60 MiB)
Listing archive: /media/cdrom/boot/isolinux/efi.img
--
Path = /media/cdrom/boot/isolinux/efi.img
Type = FAT
Physical Size = 62734336
File System = FAT16
Cluster Size = 2048
Free Space = 0
Headers Size = 131072
Label = SYSTEM
Sector Size = 512
ID = 0
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2018-05-24 09:37:54 D.... efi
2018-05-25 03:02:26 ....A 1540 2048 NvVars
2018-05-24 09:37:56 D.... efi/boot
2018-05-24 09:37:52 ....A 1392 2048 efi/boot/startup.nsh
2018-05-21 18:06:48 ....A 3792224 3792896 efi/boot/vmlinuz-3.16.55-slitaz.efi
2018-03-15 10:30:18 ....A 3704000 3704832 efi/boot/vmlinuz-3.16.55-slitaz64.efi
2018-05-24 09:35:46 ....A 8837600 8839168 efi/boot/rootfs5.gz
2018-05-24 09:37:52 ....A 45 2048 efi/boot/rootfs1.gz
2018-05-24 09:36:20 ....A 11131148 11132928 efi/boot/rootfs4.gz
2018-05-24 09:37:46 ....A 15381904 15382528 efi/boot/rootfs2.gz
2018-05-24 09:37:52 ....A 8802668 8804352 efi/boot/rootfs1.gz64
2018-05-24 09:36:46 ....A 10939212 10940416 efi/boot/rootfs3.gz
------------------- ----- ------------ ------------ ------------------------
2018-05-25 03:02:26 62591733 62603264 10 files, 2 folders
tux@slitaz:~$
[attachment=46367,2682]
Offline
slitaz-core-5in1.iso 2018-May-24 60.4M
VirtualBox EFI Shell
1. Enable EFI
[attachment=46381,2687]
[attachment=46381,2688]
2. EFI boot menu
Start VM and PRESS F12 to bring up the EFI boot menu
Continue
Select Language
Boot Manager
[..]
[attachment=46381,2689]
[attachment=46381,2690]
3. Boot Manager
EFI DVD/CDROM
EFI Internal Shell
[attachment=46381,2691]
4. EFI Internal Shell
UEFI Interactive Shell v2.1
EDK II
UEFI v2.40 (EDK II, 0x00010000)
Mapping table
[..]
Press ESC in 4 seconds to skip startup.nsh or any key to continue.
Shell>
map displays a list of device mappings i.e. the names of available file systems (fs0) and storage devices (blk0).
[attachment=46381,2692]
5. startup.nsh
To dump a list of current boot entries:
bcfg boot dump -v
Shell>startup.nsh
[attachment=46381,2693]
6. slitaz-core-5in1
[attachment=46381,2694]
Offline
startup.nsh is not used anymore see http://forum.slitaz.org/topic/tazlito-uefi/page/3#post-46369
Offline
Thanks.
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.64 MiB (Peak: 1.77 MiB) ]