Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: sebus on January 06, 2013, 09:41:18 AM

Title: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 06, 2013, 09:41:18 AM
Trying to install VmWare Tools on TC pure64, but can not even attempt without headers

Thanks

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 06, 2013, 10:17:21 AM
Things will compile using compiletc and the kernel source
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 06, 2013, 11:31:18 AM
Well, vmware-config.pl asks specifically for headers location...
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 06, 2013, 12:44:48 PM
Once you've unpacked and prepared the kernel source (in the location of your choice), you can let mware-config.pl know where they are  ;)
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 06, 2013, 01:07:35 PM
And where do I get kernel source, is it this one ?

http://tinycorelinux.net/4.x/x86_64/src/kernel/linux-3.0.21-patched.txz

"prepared the kernel source" - what do you mean?

Thanks

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 06, 2013, 01:39:47 PM
Hi sebus
Go to the search page and enter  "make prepare"  including the quotes.
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 06, 2013, 01:47:47 PM
Hi sebus
Quote
And where do I get kernel source, is it this one ?
Yes. And you also want  config-3.0.21-tinycore64
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 06, 2013, 02:24:19 PM
Absolutely, takes a bit of searching. Have that all going, but no path (tried many) to prepared kernel does gets accepted during vmware tools install.
So I am in same place...

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 06, 2013, 04:52:37 PM
Hi sebus
This is probably what you are looking for:
http://www.backtrack-linux.org/forums/showthread.php?t=40790
Read post #7
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 07, 2013, 07:44:41 AM
Thanks Rich, slowly getting there but still strugling.

Now the linked /usr/scr/linux/include gets recognized, but during vmware-config.pl run I get an error

depmod: ./kernel.tclocal: No such file or directory

which is "fixable"  by following this: http://forum.tinycorelinux.net/index.php/topic,12836.msg70452.html#msg70452

But then install just fails (as per attached screenshot)

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 07, 2013, 11:29:51 AM
Hi sebus
It looks like gcc can't find the assembler. Did you install compiletc.tcz? What happens when you enter:
Code: [Select]
as --help
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 07, 2013, 03:21:35 PM
It gives the usage options, it definitely is found.

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 07, 2013, 04:07:59 PM
Hi sebus
In the line right above   gcc: error   does the file   /tmp/modconfig-........./linux/driver.o   exist?
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 07, 2013, 10:17:23 PM
But then install just fails (as per attached screenshot)

From your screenshot, the kernel source has not been prepared properly, otherwise Modules.symvers would be present - using "make modules" on the kernel source will fix this.
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 08, 2013, 04:42:09 AM
OK, if I do run make modules, I get rid of the error about missing Modules.symvers, but it makes no difference to the other gcc error (as attached)

And there is NO /tmp/modconfig...
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 08, 2013, 05:57:13 AM
Can you confirm that compiletc and all of it's deps are loaded (check under /tmp/tcloop)?
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 08, 2013, 06:50:26 AM
Yes, compiletc is installed
And all deps are installed as well:

Code: [Select]
bison.tcz
diffutils.tcz
file.tcz
findutils.tcz
flex.tcz
gawk.tcz
gcc.tcz
grep.tcz
m4.tcz
make.tcz
patch.tcz
pkg-config-lite.tcz
sed.tcz
e2fsprogs_base-dev.tcz
eglibc_base-dev.tcz
fltk_base-dev.tcz
freetype_base-dev.tcz
gcc_base-dev.tcz
imlib2_base-dev.tcz
jpeg_base-dev.tcz
libpng_base-dev.tcz
linux-3.0.21_api_headers.tcz
util-linux_base-dev.tcz
zlib_base-dev.tcz

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 08, 2013, 07:08:18 AM
I'd guess that "make"/the Makefile/"execvp" is either:

hard coded to look for "as" in /usr/bin rather than use $PATH - a symlink should fix this

or

looking for bash and/or perl and cannot find them - a symlink should fix this

or

looking for a file/folder that does not exist
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 08, 2013, 09:41:40 AM
OK, slowly getting more:

I had to add a single /usr/local/bin in the vmare-config-tools.pl

It runs OK (modules get build), but in the end it fails anyway (with different issue)
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 08, 2013, 11:17:47 AM
If the modules get built I guess it's just a question of copying them to the appropriate place in the tinycore filesystem?
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Rich on January 08, 2013, 11:27:44 AM
Hi Juanito
This thread seems to be less about  Corepure64  and more about  vmware. Maybe it belongs under
Tiny Core on Virtual Machines?
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 08, 2013, 12:40:43 PM
Most likely no, as I expect to have the same steps needed if TCL Pure64 is a HOST for Vmware Workstation

So far services do not start, the created modules are in lib/modules/3.0.21-tinycore64/misc (which is expected location, same as on any other linux flavour)

Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 08, 2013, 10:20:15 PM
This thread seems to be less about  Corepure64  and more about  vmware. Maybe it belongs under
Tiny Core on Virtual Machines?

Please go ahead and move it
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 09, 2013, 01:55:41 AM
Apart from move, does anybody have any more ideas why the tools just fail & not load (even when they seems to install OK)
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 09, 2013, 02:06:21 AM
Often out-of-kernel modules installation scripts look for a specific filesystem arrangement, which is not present in tinycore.

In order for the modules to end up in the standard tinycore locations under /usr/local, you will almost always have to put them there yourself.
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 09, 2013, 09:33:02 AM
I have this:

kb.vmware.com/kb/1023185

Is 32-bit glibc-common installed in Pure64

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 09, 2013, 10:30:26 PM
Is 32-bit glibc-common installed in Pure64

I'm not sure what you're asking, but corepure64 has (as its name suggests) nothing that is 32-bit.
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 10, 2013, 01:41:40 AM
So I have no more ideas why it does not work, maybe somebody else is interested in it & will be able to help
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 10, 2013, 02:08:39 AM
I understood that the modules compiled without error. If this is the case, then I presume any associated apps also compiled without error.

Can you confirm if the above is correct? If so, it's just a matter of copying the modules/apps to the correct place in the filesystem.
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 10, 2013, 05:55:43 AM
Yes, all compiled without an error. App does not get compiled (only modules)

They all seems to be in correct places in filesystem already

sebus
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on January 12, 2013, 06:56:04 AM
I re-run the vmware-tools install one more time paying close attention to all the output

It seems that vmblock will not install unless there is fuse or fuse-util installed, yet I can not find tcz for it
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: Juanito on January 12, 2013, 08:01:29 AM
There isn't one, but please feel free to submit  :)
Title: Re: Will linux-headers-3.0.21-tinycore64 be available?
Post by: sebus on February 10, 2013, 10:08:53 AM
I had to admit defeat (as I had no more time to dedicate to this)
Could not make as simple process like installing tools work as expected...