libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.75k stars 289 forks source link

Feature request - Contain dm-mod.ko by default. #1381

Closed ventoy closed 3 years ago

ventoy commented 3 years ago

Hi, With Ventoy we can just copy the lakka.img to the USB drive and boot it. But Ventoy need the dm-mod.ko which is not included in the img file. Can we build and contain the dm-mod.ko in the img file by default in the future release?

Thanks!

gouchi commented 3 years ago

Hi,

It seems it will require to enable device mapper CONFIG_BLK_DEV_DM.

Which platform do you support with ventoy ? According to your website,

x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI, ARM64 UEFI and MIPS64EL UEFI

So we will have to enable it for i386, x86_64 and aarch64 platform ?

Thank you.

ventoy commented 3 years ago

Yes. Currently, CONFIG_BLK_DEV_DM is not enabled in the dot.config. To support lakka 2.3.2/3.0/3.1 I built the linux kernel with your dot.config(with CONFIG_BLK_DEV_DM=m) and include the dm-mod.ko in Ventoy package. So if we contains the ko in the img file in the future, it will be great.

For lakka i386, x86_64, and aarch64 are supported.

Thanks.

ventoy commented 3 years ago

Since the ko files are in the squashfs image file system. So it's better to set CONFIG_BLK_DEV_DM=y to build the module directly into the kernel. Then I will no need to extract the ko file before I boot the kernel in the bootloader period.

Thanks.

gouchi commented 3 years ago

Can you make a test with this image ?

Thank you.

ventoy commented 3 years ago

Perfect! The dm-mod is enabled by default and Ventoy can boot it fine.

Thank you.

ToKe79 commented 3 years ago

we keep this open until @gouchi submits the fix :-)