2018-11-24

Next -- blender-2.79b



blender-2.79b

# tazpkg -gi glu




blenderKeyboardShortcuts

blendervisualhotkeys

Next -- vblank_mode=0 glxgears


vblank_mode=0 glxgears

root@slitaz:~# glxinfo | egrep 'render|version'

direct rendering: Yes
server glx version string: 1.4
client glx version string: 1.4
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX version: 1.4
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
Extended renderer info (GLX_MESA_query_renderer):
Max core profile version: 4.5
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop x86/MMX/SSE2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.4
OpenGL core profile shading language version string: 4.50
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_MESA_texture_signed_rgba, GL_NV_conditional_render, GL_NV_depth_clamp,
OpenGL version string: 3.0 Mesa 17.3.4
OpenGL shading language version string: 1.30
GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_light_max_exponent,
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size,
root@slitaz:~#

root@slitaz:~# uname -a
Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 08:34:51 Europe 2018 i686 GNU/Linux

root@slitaz:~#

root@slitaz:~# vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
37499 frames in 5.0 seconds = 7499.718 FPS
40807 frames in 5.0 seconds = 8161.307 FPS
40792 frames in 5.0 seconds = 8158.356 FPS
41047 frames in 5.0 seconds = 8209.256 FPS
root@slitaz:~#





root@slitaz:~# grep -i glx /var/log/Xorg.0.log

[ 146.808] (II) LoadModule: "glx"
[ 146.808] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 146.810] (II) Module glx: vendor="X.Org Foundation"
[ 147.074] (II) Initializing extension GLX
[ 147.080] (II) AIGLX: Loaded and initialized i965
[ 147.080] (II) GLX: Initialized DRI2 GL provider for screen 0

Next -- lxpanel Segmentation fault


lxpanel Segmentation fault

root@slitaz:~# lxpanel -p slitaz
Segmentation fault

root@slitaz:~# tazpkg info lxpanel


TazPkg information
================================================================================
Package : lxpanel
State : installed package
Version : 0.9.3.postgit20180412
Category : x-window
Short desc : LXDE panel
Maintainer : pankso@slitaz.org
License : GPL2
Depends : alsa-lib cairo gdk-pixbuf glib gtk2 libfm libfm-gtk keybinder
libwnck2 libxml2 menu-cache pango wireless_tools xorg-libX11
slitaz-menus
Suggested : lxde lxsession slitaz-icon
Web site : https://wiki.lxde.org/en/LXPanel
Size : 196K/824K
Tags : LXDE gtk2 panel
================================================================================

2018-11-22

Next -- tazpkg upgrade




tazpkg upgrade

(EE) intel: module ABI major version (23) doesn't match the server's version (24)
(EE) Failed to load module "intel" (module requirement mismatch, 0)

1. upgrade slitaz-next-170930.iso
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:~$ sudo tazpkg upgrade
Password:

Recharging repository "Main"
================================================================================
Checking... [ Done ]
Database timestamp: 11/12/2018 04:43
================================================================================
Repository "Main" is up to date.
[..]

You have 277 available upgrades (0 blocked)

322 installed packages scanned in 2s
Do you wish to install them now? (y/N) y
915resolution-0.5.3. 100% |*******************************| 8064 0:00:00 ETA
[..]


2. reboot
root@slitaz:~# uname -a
Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 08:34:51 Europe 2018 i686 GNU/Linux

root@slitaz:~# X -version

X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
Build Operating System: SliTaz GNU/Linux
Current Operating System: Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 08:34:51 Europe 2018 i686
Kernel command line: root=/dev/null autologin
Build Date: 02 September 2018 10:59:13PM
Current version of pixman: 0.34.0
Before reporting problems, check http://www.slitaz.org/
to make sure that you have the latest version.

root@slitaz:~# grep -A 25 intel /var/log/Xorg.0.log
[ 27.182] (==) Matched intel as autoconfigured driver 0
[ 27.182] (==) Matched modesetting as autoconfigured driver 1
[ 27.182] (==) Matched fbdev as autoconfigured driver 2
[ 27.182] (==) Matched vesa as autoconfigured driver 3
[ 27.182] (==) Assigned the driver to the xf86ConfigLayout
[ 27.182] (II) LoadModule: "intel"
[ 27.182] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 27.182] (II) Module intel: vendor="X.Org Foundation"
[ 27.182] compiled for 1.19.3, module version = 2.99.917
[ 27.182] Module class: X.Org Video Driver
[ 27.182] ABI class: X.Org Video Driver, version 23.0
[ 27.182] (EE) intel: module ABI major version (23) doesn't match the server's version (24)
[ 27.182] (EE) Failed to load module "intel" (module requirement mismatch, 0)

[ 27.182] (II) LoadModule: "modesetting"
[ 27.182] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 27.182] (II) Module modesetting: vendor="X.Org Foundation"
[ 27.182] compiled for 1.20.1, module version = 1.20.1
[ 27.182] Module class: X.Org Video Driver
[ 27.182] ABI class: X.Org Video Driver, version 24.0
[ 27.182] (II) LoadModule: "fbdev"
[ 27.182] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 27.183] (II) Module fbdev: vendor="X.Org Foundation"
[ 27.183] compiled for 1.19.3, module version = 0.5.0
[ 27.183] Module class: X.Org Video Driver
[ 27.183] ABI class: X.Org Video Driver, version 23.0
[ 27.183] (EE) fbdev: module ABI major version (23) doesn't match the server's version (24)
[ 27.183] (EE) Failed to load module "fbdev" (module requirement mismatch, 0)

[ 27.183] (II) LoadModule: "vesa"
[ 27.183] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 27.183] (II) Module vesa: vendor="X.Org Foundation"
[ 27.183] compiled for 1.19.3, module version = 2.4.0
[ 27.183] Module class: X.Org Video Driver
[ 27.183] ABI class: X.Org Video Driver, version 23.0
[ 27.183] (EE) vesa: module ABI major version (23) doesn't match the server's version (24)
[ 27.183] (EE) Failed to load module "vesa" (module requirement mismatch, 0)

[ 27.183] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 27.183] (++) using VT number 7

Next - libglx.so: undefined symbol: glxServer



slitaz-next-170930.iso

/lib/libc.so.6: version `GLIBC_2.26' not found (required by /usr/lib/xorg/modules/extensions/libglx.so)

/usr/lib/xorg/modules/extensions/libglx.so: undefined symbol: glxServer


1.

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:~$ tazpkg
SliTaz package manager - Version: 950
================================================================================
Installed packages:    322
Installed files:       7509
Blocked packages:      0
Upgradeable packages:  0

Repository:            Main
Last recharge:         Today at 20:55.
Database timestamp:    11/12/2018 04:43
Mirrored packages:     6186
================================================================================

$ sudo tazpkg -gi xorg-server-module-glamor
$ sudo tazpkg -gi mesa-dri mesa-demos libatomic mesa-libegl


2. relogin
tux@slitaz:~$ grep glx /var/log/Xorg.0.log
[ 737.926] (EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so: /lib/libc.so.6: version `GLIBC_2.26' not found (required by /usr/lib/xorg/modules/extensions/libglx.so)

tux@slitaz:~$ tazpkg -l | grep glibc
glibc-base 2.25 base-system

tux@slitaz:~$ sudo tazpkg -gi glibc-base --forced


3. relogin - glibc-2.26
tux@slitaz:~$ glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig

tux@slitaz:~$ grep -i glx /var/log/Xorg.0.log
[ 915.450] (II) LoadModule: "glx"
[ 915.451] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 915.454] (EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so: /usr/lib/xorg/modules/extensions/libglx.so: undefined symbol: glxServer
[ 915.454] (II) UnloadModule: "glx"
[ 915.454] (II) Unloading glx
[ 915.454] (EE) Failed to load module "glx" (loader failed, 7)


4.
tux@slitaz:~$ tazpkg -l | egrep 'glibc|xorg-server'

glibc-base                         2.26              base-system
xorg-server                        1.19.3            x-window
xorg-server-module-glamor          1.20.1            x-window
tux@slitaz:~$

2018-11-05

Radxa - SD Images


SD Images

SD images for the rock are images booting and running on the uSD card completely. This is good when you want to try different OS or new version of the firmware without touching the nand flash.

Downloading SD Images

Check your hardware revision (Pro or Full/Lite), then download image "for SD card" from here

Writing SD image to SD card

Windows

See the readme in the individual image zip file for additional information on which tool to use.
Before beginning, you will need to prepare a high quality SD card of at least 8GB. A poor quality SD card will result in boot failures.
  • Download the Win32DiskImager from here.
  • Download the image from above link.
  • Use the Win32DiskImager to Write the image into SD card

 Win32DiskImager.png


Linux

We use dd in Linux to write the image:
   sudo dd if=radxa_rock_xxxx_sdcard.img of=/dev/sdx              # x is the disk name of your uSD card on your PC

Mac OS X

We use dd and Apple's diskutil utility to write the image:
  1. Run diskutil list to determine the drive associated the SD card (ex: /dev/disk4)
  2. Unmount the existing disk sudo diskutil unmountDisk /dev/diskX where X is the disk name of your uSD card on your PC
  3. Write the image file to the uSD card sudo dd if=radxa_rock_xxxx_sdcard.img of=/dev/diskX where X is the disk name of your uSD card on your PC

Booting to SD Card

  1. Power off the Rock
  2. Insert the SD card
  3. Power on the Rock and it will boot to the SD card 

Radxa - U-Boot

U-Boot

Features

  • both Rockchip proprietary USB protocol and fastboot USB protocol are supported (Rockchip USB tools works)
  • format of partitions (images) are compatible to Rockchip proprietary bootloader (rkcrc, mkbootimg works)
  • (need more investigation...)

For NAND flash

Build

Refer install toolchain if you don't have arm-eabi- on your system. Other toolchain(Linaro arm-linux-gnueabihf-gcc 4.9) may cause data abort errors.
git clone -b u-boot-rk3188 https://github.com/radxa/u-boot-rockchip.git
cd u-boot-rockchip
make rk30xx
The binary we need for nand flash are RK3188Loader_miniall.bin and uboot.img.

Flash

refer flash image page
use the new u-boot to erase the old loader
   sudo upgrade_tool ef RK3188Loader_miniall.bin
flash new loader
   sudo upgrade_tool ul RK3188Loader_miniall.bin
format NAND (first time only)
   sudo upgrade_tool lf
flash parameter
   upgrade_tool di -p parameter
paramter file
   FIRMWARE_VER:4.2.2
   MACHINE_MODEL:radxa_rock
   MACHINE_ID:007
   MANUFACTURER:RADXA
   MAGIC: 0x5041524B
   ATAG: 0x60000800
   MACHINE: 3066
   CHECK_MASK: 0x80
   KERNEL_IMG: 0x60408000
   CMDLINE:console=ttyFIQ0,115200 console=tty0 root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x00800000  mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00008000@0x00004000(boot),-@0x000c0000(linuxroot)
flash U-Boot
   sudo upgrade_tool wl 0x2000 uboot.img
   sudo upgrade_tool rd
flash kernel + ramdisk
   upgrade_tool di -b boot-linux.img
flash root fs
   upgrade_tool di linuxroot rootfs.img
Booting log can be found at: http://paste.ubuntu.com/9623598/

For SD card

Build

Refer install toolchain if you don't have arm-eabi- on your system. Other toolchain(Linaro arm-linux-gnueabihf-gcc 4.9) may cause data abort errors.
git clone -b u-boot-rk3188-sdcard https://github.com/radxa/u-boot-rockchip.git
cd u-boot-rockchip
make rk30xx
./pack-sd.sh
The binary we need for sdcard is u-boot-sd.img.

Flash

sudo dd if=u-boot-sd.img of=/dev/sdx seek=64
Insert the uSD card to rock pro, it will boot from u-boot on uSD card.

Develop

Some important files and directories related to the Rockchip platform:
 * UserManual - documentation
 * include/configs/rk30xx.h - configuration file
 * tools/rk_tools
 * board/rockchip
    ├── common
    │   ├── armlinux
    │   ├── common
    │   │   ├── A8MMU
    │   │   ├── crc
    │   │   ├── emmc
    │   │   ├── fat
    │   │   ├── rc4
    │   │   ├── rockusb
    │   │   ├── serial_p9
    │   │   └── SPI
    │   └── platform
    │       ├── rk2928
    │       └── rk30
    └── rk30xx
 * arch/arm/cpu/armv7/rk30xx
 * arch/arm/include/asm/arch-rk30xx

Unbrick

If something goes wrong and your device doesn't boot anymore, read Unbrick Rock.

External links

Radxa - Make SD booting images



Make SD booting images

http://wiki.radxa.com/Rock/make_sd_image


Rock/pro/lite has on board NAND flash, but can also boot from exteranl uSD card. uSD card has a higher booting priority. This page introduce how to make a completely off NAND bootable image for sd card.

Introduction

To boot from uSD card and run the system on uSD card, we need the following
  • bootloader for booting from uSD card - u-boot-sd.img
  • parameter for uSD card layout and kernel cmdline - parameter.img
  • kernel+ramdisk - boot.img
  • a rootfs - rootfs.ext4

Prepare images

u-boot for sdcard

Follow the instruction at Make u-boot for sdcard to create the u-boot-sd.img for sd card.

get the parameter

Download the parameter from dl.radxa.com
wget http://dl.radxa.com/rock/images/parameter/parameter_linux_sd
rkcrc -p parameter_linux_sd parameter.img                                      #where to get rkcrc, refer to http://radxa.com/Rock/flash_the_image "Flash with rkflashtool"

build the kernel

Follow the Booting Linux(3.0.36) or build mainline kernl page to make the boot.img.

make the roofts

Follow the instructions here to make the Ubuntu or Debian rootfs - rootfs.ext4.

Write to the sdcard

First, let's clean the uSD card.
sudo dd if=/dev/zero of=/dev/sdx bs=1M count=1

Then, create the partitions with fdisk
export START_SECTOR=65536              

why the start sector is 65536(32MB offset) is we need reserve some sectors # for boot.img/parameter/bootloader before the filesystem starts.
 
sudo fdisk /dev/sdx  << EOF
n
p
1
$START_SECTOR

w
EOF

Now we have a new partition for rootfs starting at START_SECTOR. It's time to write the images to the sdcard.
 
sudo dd if=u-boot-sd.img of=/dev/sdx conv=sync seek=64 
sudo dd if=parameter.img of=/dev/sdx conv=sync seek=$((0x2000))
sudo dd if=boot.img of=/dev/sdx conv=sync seek=$((0x2000+0x2000))
sudo dd if=rootfs.ext4 of=/dev/sdx1 conv=sync

Insert the uSD card to rock/pro/lite, you can boot from uSD card now.

Rockchip Boot flow


Here is Rockchip pre-released binaries which may be mentioned later:
https://github.com/rockchip-linux/rkbin
And Rockcip Linux GPT partition here.

Boot flow

Here is a table show the detail what we may use in Rockchip platform, for 2 boot stage:
- use U-Boot SPL;
- use Rockchp idbLoader which is combinded by Rockchip ddr init bin and miniloader bin;



Then when we talking about boot from eMMC/SD/U-Disk/net, they are in different concept:
  • Stage 1 is always in boot rom, it loads stage 2 and may load stage 3(when SPL_BACK_TO_BROM option enabled).
  • Boot from SPI flash means firmware for stage 2 and 3(SPL and U-Boot only) in SPI flash and stage 4/5 in other place;
  • Boot from eMMC means all the firmware(including stage 2, 3, 4, 5) in eMMC;
  • Boot from SD card means all the firmware(including stage 2, 3, 4, 5) in SD card;
  • Boot from U-Disk means firmware for stage 4 and 5(not including SPL and U-Boot) in Disk, optionally only including stage 5;
  • Boot from net/tftp means firmeware for stage 4 and 5(not including SPL and U-Boot) on the network;




Boot Flow 1 is typical Rockchip boot flow with Rockchip miniloader;
Boot Flow 2 is used for most SoCs with U-Boot TPL for ddr init and SPL for trust(ATF/OP-TEE) load and run into next stage;
Boot Flow 3 is use only for RK3399 with SPL ATF support;
Boot Flow 4 is used for armv7 SoCs which do not support trust;

Note 1. If loader1 have more than 1 stage, program will back to bootrom and bootrom load and run into next stage. eg. If loader1 is tpl and spl, the bootrom will run into tpl first, tpl init ddr and back to bootrom, bootrom then load and run into spl.
Note 2. If trust is enabled, loader1 need to load both trust and u-boot, and then run into trust in secure mode(EL3 in armv8), trust do the initialize and run into U-Boot in non-secure mode(EL2 in armv8).
Note 3. For trust(in trust.img or u-boot.itb), armv7 has only one tee.bin with or without ta, armv8 has bl31.elf and option with bl32.
Note 4. In boot.img, content can be zImage and its dtb for Linux, and can optionally be grub.efi, and can be AOSP boot.img, ramdisk is option;  



SliTaz (and GRUB2) with SSD disks


SliTaz (and GRUB2) with SSD disks


And finally only NVMe support was usefull; setting
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set and
CONFIG_BLK_DEV_NVME=y
SliTaz can now see the disk :)

# fdisk -l
Found valid GPT with protective MBR; using GPT

Disk /dev/nvme0n1: 500118192 sectors, 2534M
Logical sector size: 512
Disk identifier (GUID): 324ef864-7efa-45be-b0b0-c70122bdf99c
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158

Number  Start (sector)    End (sector) Size Name
    1        2048 534527  260M EFI system partition
    2      534528     796671 128M Microsoft reserved partition
    3      796672  500117503 238G Basic data partition



full support fat32
# tazpkg -gi dosfstools mtools

GParted --> View --> File System Support

 

Microsoft reserved partition (MSR) - msftres

The Linux kernel configuration item CONFIG_BLK_DEV_PCIESSD_MTIP32XX:

$ grep mtip32xx /lib/modules/3.16.55-slitaz/modules.builtin
kernel/drivers/block/mtip32xx/mtip32xx.ko

Dell Latitude E5470 SATA SSD
Micron SSD 1100 (MTFDDAV256TBN), 256 GB, M.2 2280, 190 GB free

 


Lenovo E480 PCIe NVMe x2 SSD
Lenovo LENSE20256GMSP34MEAT2TA, 256 GB, M.2 2280 PCIe NVMe x2, 210 GB free



2018-07-30

Next -- slitaz-next-180716.iso


slitaz-next-180716.iso 2018-Jul-17 60.8M
http://mirror1.slitaz.org/iso/next/slitaz-next-180716.iso

root@slitaz:~# uname -a
Linux slitaz 4.14.16-slitaz #2 SMP Sat Feb 24 05:21:35 Europe 2018 i686 GNU/Linux

root@slitaz:~# cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage initrd=/boot/rootfs.gz rw root=/dev/null video=-32 autologin lang=en_US kmap=us tz=America/New_York

root@slitaz:~# blkid
/dev/sr0: UUID="2018-07-16-22-35-51-00" LABEL="SliTaz try" TYPE="iso9660"

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

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

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

2018-05-25

Slitaz core-5in1-uefi




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://alanyih.blogspot.tw/2018/05/slitaz-core-5in1.html

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

2018-05-24

Slitaz core-5in1




UUID="2018-05-24-11-37-58-00" LABEL="SliTaz core-5in1" TYPE="iso9660" PTUUID="5b0687f7" PTTYPE="dos"

root@slitaz:~# uname -a
Linux slitaz 3.16.55-slitaz64 #2 SMP Mon May 21 20:31:03 CEST 2018 x86_64 GNU/Linux

root@slitaz:~# ls -l /sys/firmware/efi
total 0
-r--r--r--    1 root     root          4096 May 24 16:11 config_table
dr-xr-xr-x    2 root     root             0 May 24 16:11 efivars
-r--r--r--    1 root     root          4096 May 24 16:11 fw_vendor
-r--r--r--    1 root     root          4096 May 24 16:11 runtime
drwxr-xr-x    5 root     root             0 May 24 16:11 runtime-map
-r--------    1 root     root          4096 May 24 16:11 systab

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
tmpfs                     1.5G         0      1.5G   0% /dev/shm
tmpfs                     1.5G      4.0K      1.5G   0% /var/lock

2018-04-30

Slitaz -- bootx64.efi / grub-mkimage



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

Slitaz -- slitaz-next64-efi


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

2018-04-29

Slitaz -- slitaz-next-efi


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

Slitaz -- rolling-core-efi



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

2018-04-27

Slitaz -- check-uefi.sh


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 
 

Slitaz -- UEFI



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

grub-2.02-x86_64.tazpkg
https://goo.gl/G1D6eW

Attachments

bootx64.efi.zip (289.8 KB)
 

2018-04-19

virtualbox guest drivers


Guest drivers

https://www.virtualbox.org/wiki/LinuxAdditionsDebug

The vboxvideo graphics driver drives the guest video hardware emulation. It does not depend on other drivers, programs the emulated hardware directly and is not expected to be running on systems with X.Org servers older than and including 1.16, as they are not compatible with it and use special drivers, or on systems with Linux kernels older than version 3.11. 

2018-03-29

Next64 -- lzma-lzlib.u



lzma - lzlib.u
/usr/bin/ld: BranchX86.o: relocation R_X86_64_32S against symbol `kMaskToBitNumber' can not be used when making a shared object; recompile with -fPIC
lzma - stuff/lzlib.u
http://cook.slitaz.org/next64/lzma/stuff/lzlib.u

--- CPP/7zip/Compress/LZMA_Alone/makefile.gcc
+++ CPP/7zip/Compress/LZMA_Alone/makefile.gcc
@@ -1,6 +1,6 @@
 PROG = lzma
-CXX = g++ -O2 -Wall
-CXX_C = gcc -O2 -Wall
+CXX = g++ -s -O2 -Wall -fPIC
+CXX_C = gcc -s -O2 -Wall -fPIC
 LIB = -lm
 RM = rm -f
 CFLAGS = -c

2018-03-27

Next64 -- Dependencies loop


TazPkg administration and settings
Quick check - Dependencies loop

tux@slitaz:~$ tazpkg

SliTaz package manager - Version: 962
================================================================================
  Installed packages:    351
  Installed files:       7099
  Blocked packages:      0
  Upgradeable packages:  0

  Repository:            Main
  Last recharge:         Yesterday at 16:42.
  Database timestamp:    03/23/18 15:39
  Mirrored packages:     1501
================================================================================

tux@slitaz:~$ 


Quick check - Dependencies loop

Package cairo-1.14.8
Dependencies loop between package and:
  harfbuzz

Package fontconfig-2.12.4
Dependencies loop between package and:
  cairo

Package freetype-2.8
Dependencies loop between package and:
  libharfbuzz
  cairo

Package harfbuzz-1.4.8
Dependencies loop between package and:
  freetype
  cairo

Package jpeg-9b
The package has been modified by:
  jpeg-turbo
Dependencies loop between package and:
  libjpeg

Package libharfbuzz-1.4.8
Dependencies loop between package and:
  harfbuzz

Package libjpeg-9b
Dependencies loop between package and:
  jpeg

Package slitaz-boot-scripts-444
Dependencies loop between package and:
  slitaz-tools

Package slitaz-tools-1024
Dependencies loop between package and:
  slitaz-boot-scripts

Package util-linux-blkid-2.30.1
The package has been modified by:
  busybox
Dependencies loop between package and:
  util-linux-mount

2018-03-22

Next64 -- cooker ncftp




 

Update:
Please take a look at this line:
http://hg.slitaz.org/cookutils/file/1040/cook#l985

985 find fs -newer $receipt -exec touch -hr $receipt '{}' \;
And it was introduced the first time here:
http://hg.slitaz.org/cookutils/rev/861
cook: normalize file time
Sun Jan 08 14:29:40 2017 +0100 (14 months ago)
Files in the package can't be newer than receipt.


ncftp: A File Transfer Protocol client.
http://cook.slitaz.org/next64/ncftp

Cook date  2018-03-21 22:11
-rwxr-xr-x    1 root     root        228656 Oct 17 08:15 /usr/bin/ncftp

drwxr-xr-x    2 root     root          4096 Mar 21 22:11 /etc/

Summary for: ncftp 3.2.5-x86_64
Src file  ncftp-3.2.5-src.tar.bz2
Src size  448.0K
Source dir  5.9M
Produced  992.0K
Cook time  52s ~ 1m
Cook date  2018-03-21 22:11
Target arch x86_64

http://cook.slitaz.org/next64/ncftp/browse/install/usr/bin/
permissions·lnk·user    ·group   ·     size·date & time ·name
drwxr-xr-x    3 root     root          4096 Oct 17 08:15 / 
drwxr-xr-x    3 root     root          4096 Oct 17 08:15 /usr/ 
drwxr-xr-x    2 root     root          4096 Oct 17 08:15 /usr/bin/ 
-rwxr-xr-x    1 root     root        228656 Oct 17 08:15 /usr/bin/ncftp 
-rwxr-xr-x    2 root     root        162992 Oct 17 08:15 /usr/bin/ncftpbatch 
-rwxr-xr-x    1 root     root        110544 Oct 17 08:15 /usr/bin/ncftpbookmarks 
-rwxr-xr-x    1 root     root        158864 Oct 17 08:15 /usr/bin/ncftpget 
-rwxr-xr-x    1 root     root        130032 Oct 17 08:15 /usr/bin/ncftpls 
-rwxr-xr-x    1 root     root        154768 Oct 17 08:15 /usr/bin/ncftpput 
-rwxr-xr-x    2 root     root        162992 Oct 17 08:15 /usr/bin/ncftpspooler 


http://cook.slitaz.org/next64/ncftp/files
Contents of package “ncftp-3.2.5” (940K):

permissions·lnk·user    ·group   ·     size·date & time ·name
drwxr-xr-x    3 root     root          4096 Oct 17 08:15 /
drwxr-xr-x    3 root     root          4096 Oct 17 08:15 /usr/
drwxr-xr-x    2 root     root          4096 Oct 17 08:15 /usr/bin/
-rwxr-xr-x    1 root     root        228656 Oct 17 08:15 /usr/bin/ncftp
-rwxr-xr-x    2 root     root        162992 Oct 17 08:15 /usr/bin/ncftpbatch
-rwxr-xr-x    1 root     root        110544 Oct 17 08:15 /usr/bin/ncftpbookmarks
-rwxr-xr-x    1 root     root        158864 Oct 17 08:15 /usr/bin/ncftpget
-rwxr-xr-x    1 root     root        130032 Oct 17 08:15 /usr/bin/ncftpls
-rwxr-xr-x    1 root     root        154768 Oct 17 08:15 /usr/bin/ncftpput
-rwxr-xr-x    2 root     root        162992 Oct 17 08:15 /usr/bin/ncftpspooler 

Unpackaged empty folders:

permissions·lnk·user    ·group   ·     size·date & time ·name
drwxr-xr-x    2 root     root          4096 Mar 21 22:11 /etc/