2018-06-08

Slitaz -- VirtualBox EFI Shell


VirtualBox EFI Shell
slitaz-core-5in1.iso 2018-May-24 60.4M

1. Enable EFI




2. EFI boot menu
Start VM and PRESS F12 to bring up the EFI boot menu


Continue
Select Language
Boot Manager
[..]





3. Boot Manager
EFI DVD/CDROM
EFI Internal Shell



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).



5. startup.nsh
To dump a list of current boot entries:
bcfg boot dump -v

Shell>startup.nsh



6. slitaz-core-5in1

 

2018-06-02

Slitaz -- hardlink-efi.img


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:~$
 
 

Slitaz-core-5in1-hardlink


hardlink

slitaz-core-5in1.iso 2018-May-24 60.4M

Ex:
-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:~$ 
 

2018-05-28

Slitaz -- dualboot (UEFI/BIOS) ISO VS. USB



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
root@slitaz:~# egrep -A3 'RC4|slitaz|core64' /media/UEFI/boot/syslinux/syslinux.cfg

root@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

----

root@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
root@slitaz:~# 
 

Slitaz -- core-5in1 BIOS mode


BIOS mode



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
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

root@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
root@slitaz:~#