WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Tinycore x86 and x64 in a single partition  (Read 8487 times)

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
[Solved] Tinycore x86 and x64 in a single partition
« on: June 23, 2020, 07:46:50 AM »
I am a TCL x86 user (for small sized tczs). Now, I want to use TCL x64.
My questions :
1) Which files should I download ?
I mean should I download the whole Coreplus x64 iso or just the kernel and core.gz files.
2) Can I use x86 tczs on x64 ?
It may sound awkward because the archs are different but I should ask this if I should download only the kernel and core.gz . And also, I have only a wifi card but no ethernet connection so I must have wifi tczs.
3) Where are the files to download ?
I mean the links. I don't know where are they. I know they are in tinycorelinux.net/11.x/ but where in it ?

There is no way to set the path of TCE Dir(unless the current path is in /tmp) in GUI Apps. So, if I install both archs in same partition, will the apps GUI find the TCEs for the correct arch ?
« Last Edit: June 25, 2020, 11:01:15 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Tinycore x86 and x64 in a single partition
« Reply #1 on: June 23, 2020, 08:21:18 AM »
You can download the files from here:

http://tinycorelinux.net/11.x/x86_64/release/distribution_files/

You need corepure64.gz and vmlinuz64 - you can copy them into the same directory as core.gz and vmlinuz.

Create a second menu entry in your boot loader configuration file - you can copy the 32-bit entry and change core.gz -> corepure64.gz and vmlinuz -> vmlinuz64.. Note that you also need to add a boot code "tce=tce64" or similar as CorePure64 uses different extensions.
« Last Edit: June 23, 2020, 08:23:38 AM by Juanito »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #2 on: June 23, 2020, 08:33:53 AM »
"tce=tce64" ? Never heard that. I thought it was only for partitions. Can we specify directories in it ?
And also, will the Xorg, fltk, wifi modules of x86 work on x64 ? I only need those three for now.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore x86 and x64 in a single partition
« Reply #3 on: June 23, 2020, 08:48:22 AM »
Hi Sashank999
I am a TCL x86 user (for small sized tczs). Now, I want to use TCL x64.
My questions :
1) Which files should I download ?
I mean should I download the whole Coreplus x64 iso or just the kernel and core.gz files. ...
Just the kernel and core.gz files.

Quote
... 2) Can I use x86 tczs on x64 ? ...
No.


Quote
... It may sound awkward because the archs are different but I should ask this if I should download only the kernel and core.gz . And also, I have only a wifi card but no ethernet connection so I must have wifi tczs. ...

Create a directory  for 64 bit extensions next to your  tce  directory called  tce64/optional. Then  cd  into  tce64/optional and
download the script available here:
http://forum.tinycorelinux.net/index.php/topic,23034.0.html

Edit the script to change this:
Code: [Select]
# Tinycore version
TC="10.x"

# Processor architecture, current options are  x86  x86_64  armv6  armv7
ARCH="x86"

To this:
Code: [Select]
# Tinycore version
TC="11.x"

# Processor architecture, current options are  x86  x86_64  armv6  armv7
ARCH="x86_64"

The script assumes nothing about your system. Any extension name containing  KERNEL  or  5.4.3-tinycore  will not be found. You
will need to run the script again for those extensions, for example:
Code: [Select]
./FetchExt.sh wireless-5.4.3-tinycore64to fetch the 64 bit version.

Quote
... 3) Where are the files to download ?
I mean the links. I don't know where are they. I know they are in tinycorelinux.net/11.x/ but where in it ? ...
http://tinycorelinux.net/11.x/x86_64/release/distribution_files/

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #4 on: June 23, 2020, 10:16:17 AM »
I am getting
http://repo.tinycorelinux.net/11.x/x86_64/tcz/firmware-amdgpu.tcz.tcz.tree  not found.
Error when downloading firmware-amdgpu.

EDIT : I realised that we should not input the .tcz when giving input. Sorry.  :P

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #5 on: June 23, 2020, 10:48:04 PM »
@Juanito @Rich I got a problem. Used the scripts and downloaded the extensions. I then added the 64 bit kernel and core.gz to Grub2, added boot code tce=tce64 and then booted 64 bit. I got a prompt (as I didn't write anything into onboot.lst). I mounted my partition and went to tce64/optional and did "tce-load -i wifi" but nothing happened. I then tried with sudo. But that showed don't run this as root. I tried with other extensions but none worked.

Are there any dependencies for tce-load ?

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #6 on: June 24, 2020, 01:31:35 AM »
OK. I now understand. When I applied "chmod +rwx * " in the optional folder, it worked.
But now, I get 2 problems.
1) "startx" says "failed in waitforX"
2) "tce-load -i firmware.tcz" says "mount /dev/loop6 failed: Invalid Argument"

Note : tce32 works fine. And also, above specified boot code (tce=tce32) doesn't work. tce=sda5/tce32 works.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Tinycore x86 and x64 in a single partition
« Reply #7 on: June 24, 2020, 01:41:38 AM »
The tce folders (tce, tce32, tce64, etc) and everything in them should be owned by tc:staff.

Just to be sure it's understood, tce=tce32 or tce=sda5/tce32 are telling tinycore which tce folder to use and are not telling it to boot a 32-bit version of tinycore.

Which Xserver are you trying to use - Xvesa (32-bit only), Xfbdev or Xorg-7.7?

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #8 on: June 24, 2020, 02:30:21 AM »
I have read somewhere in the forums that Xvesa is 32bit only and hence I used Xfbdev.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Tinycore x86 and x64 in a single partition
« Reply #9 on: June 24, 2020, 03:07:48 AM »
In that case, you need a boot code like, for example, vga=791

Edit: from the faq:
Quote
Tiny Core accepts the following additional boot time options:

 Color            640x480     800x600      1024x768     1280x1024
   256    8 bit     769         771           773          775
 32000   15 bit     784         787           790          793
 65000   16 bit     785         788           791          794
 16.7M   24 bit     786         789           792          795

 tinycore vga=7xx                    7xx from table above
« Last Edit: June 24, 2020, 03:35:37 AM by Juanito »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #10 on: June 24, 2020, 03:31:44 AM »
Oh. Will add that.
I am getting error when using wifi.sh as libelogind.so.0 is missing but I loaded all tcz.
« Last Edit: June 24, 2020, 03:35:20 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Tinycore x86 and x64 in a single partition
« Reply #11 on: June 24, 2020, 03:38:15 AM »
You're missing the elogind extension, which depends on acl, attr and libcap.

Edit: If startx still fails, run the following from the console prompt:
Code: [Select]
$ Xfbdev -mouse /dev/input/mice,5 -nolisten tcp -I
« Last Edit: June 24, 2020, 03:55:01 AM by Juanito »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #12 on: June 24, 2020, 03:59:48 AM »
Might be helpful to someone. VGA Chart :
Depth 800×6001024×7681152×8641280×10241600×1200
8 bitvga=771vga=773vga=353vga=775vga=796
16 bitvga=788vga=791vga=355vga=794vga=798
24 bitvga=789vga=792nonevga=795vga=799
Source : https://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/
You can find required height, weight,depth by using "xwininfo -root" command.
Source : https://askubuntu.com/questions/555759/how-to-check-what-color-depth-my-monitors-are-using-in-ubuntu-14-10-unity

But Juanito, I have all those tcz. Trying with -dev.
« Last Edit: June 24, 2020, 04:01:44 AM by Sashank999 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Tinycore x86 and x64 in a single partition
« Reply #13 on: June 24, 2020, 04:09:23 AM »
For sure the *-dev extensions will not help.

Does this show elogind is loaded:
Code: [Select]
$ tce-status -i | grep elogind

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 392
Re: Tinycore x86 and x64 in a single partition
« Reply #14 on: June 24, 2020, 05:40:18 AM »
Oh. It is only for 64 bit TCL. Hence I did not download it(in fact, I didnot know there is a module with that name  :D ).
I will now download it.