Tiny Core Linux

General TC => General TC Talk => Topic started by: donvon on October 28, 2018, 07:15:27 PM

Title: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: donvon on October 28, 2018, 07:15:27 PM
Hello.
Can i use 64 bit kernel with 32 bit apps?
I found some topics about this:
http://forum.tinycorelinux.net/index.php/topic,20089.msg124921.html#msg124921 (http://forum.tinycorelinux.net/index.php/topic,20089.msg124921.html#msg124921)
http://forum.tinycorelinux.net/index.php/topic,21038.msg131419.html#msg131419 (http://forum.tinycorelinux.net/index.php/topic,21038.msg131419.html#msg131419)
Tried to edit TinyCore-9.0.iso with ISOMaster, add vmlinuz64 + rootfs.gz + modules64.gz in /boot folder

This isolinux.cfg
LABEL tc
MENU LABEL Boot TinyCore
TEXT HELP
Boot TinyCore with Embedded X/GUI extensions.
Boot media is removable. Use TAB to edit options for specific needs.
ENDTEXT
KERNEL /boot/vmlinuz64
APPEND initrd=/boot/rootfs.gz,/boot/modules64.gz loglevel=3 cde

But this not work. Is it possible to do this with the iso file?
Or i'm doing something wrong...
Edit:
I also tried unpack rootfs.gz,modules64.gz with gzip,cpio and then do core.gz
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: Juanito on October 29, 2018, 01:44:40 AM
Yes, you can use the 64-bit kernel with 32-bit apps.

Does this work:
Code: [Select]
LABEL tc
MENU LABEL Boot TinyCore
TEXT HELP
Boot TinyCore with Embedded X/GUI extensions.
Boot media is removable. Use TAB to edit options for specific needs.
ENDTEXT
KERNEL /boot/vmlinuz64
INITRD /boot/rootfs.gz,/boot/modules64.gz
APPEND loglevel=3 cde
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: donvon on October 29, 2018, 10:02:51 AM
Yes, you can use the 64-bit kernel with 32-bit apps.

Does this work:
Code: [Select]
LABEL tc
MENU LABEL Boot TinyCore
TEXT HELP
Boot TinyCore with Embedded X/GUI extensions.
Boot media is removable. Use TAB to edit options for specific needs.
ENDTEXT
KERNEL /boot/vmlinuz64
INITRD /boot/rootfs.gz,/boot/modules64.gz
APPEND loglevel=3 cde

Tried right now with CD-RW. Same, nothing happens when try to boot
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: donvon on October 29, 2018, 02:02:20 PM
Downloaded the TinyCorePure64-9.0.iso, added the rootfs.gz, modules64.gz from here:
http://tinycorelinux.net/9.x/x86/release/distribution_files/
now could not find modules64.gz
Code: [Select]
Loading /boot/vmlinuz64....
Loading /boot/rootfs.gz....
Could not find ramdisk image: /boot/modules64.gz
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: coreplayer2 on October 29, 2018, 08:43:06 PM
(https://uploads.tapatalk-cdn.com/20181030/95212f055ad55df7ec594086942032b0.jpg)

I’m not yet sure what’s wrong with your boot loader though I'm sure its a syslinux version/boot config issue.  As you can see Core64   (Core-9 32bit userspace & Kernel x86_64) definitely boots as expected..

I’ll keep investigating...

Meanwhile try isolinux/syslinux v4.07 with the previous boot stanza either with an ISO or a USB install

Sent from my iPhone using Tapatalk
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: donvon on October 30, 2018, 01:44:08 PM
OK i found what's wrong. Problem in the file name length.
I renamed vmlinuz64 to vml64 and modules64 to mod64, now all works.

TinyCore-9.0.iso
won't boot
Code: [Select]
vmlinuz64
rootfs
modules64
works
Code: [Select]
vml64
rootfs
mod64

TinyCorePure64-9.0.iso
won't boot
Code: [Select]
vmlinuz64
rootfs
modules64
works
Code: [Select]
vmlinuz64
rootfs
mod64
Title: Re: PAE kernel or 64 bit kernel with 32 bit apps?
Post by: curaga on October 31, 2018, 06:01:39 AM
That's probably due to your ISOmaster use. Please don't use such programs, generate isos from scratch using the known good tool mkisofs.