General TC > Tiny Core on Virtual Machines
Compiling a kernel (on VMware player)
Eitan:
Hi,
My goal is eventually play with the kernel/config file, but I'm starting small.
I read the wiki page wiki.tinycorelinux.net/wiki:custom_kernel
Since I wanted the simplest and fastest way to learn how to compile a kernel,
I've downloaded tinycorelinux.net/4.x/x86/release/src/kernel/config-3.0.21-tinycore
(renamed it to .config)
and /tinycorelinux.net/4.x/x86/release/src/kernel/linux-3.0.21-patched.txz
(both from tinycorelinux.net/4.x/x86/release/src/kernel/)
Next, I tried to use the "make" command but tc wouldn't recognize it.
Searched a bit and found "compiletc.tcz", and loaded it.
Now my error is it says "no rule to make target XXXXX" (no matter what the XXXXX is substituted with).
I guess I'm missing something extremely elementary here, but I've no idea what.
Oh, and I unpacked the kernel and copied the .config file to both top directory (called it linux-3.0.21) and linux-3.0.21/kernel.
Thanks for any tip,
Eitan
Juanito:
--- Code: ---$ tce-load -i compiletc perl5 bash ncurses-dev
$ make mrproper
$ cp config-3.0.21-tinycore .config
$ make oldconfig
$ make
--- End code ---
Eitan:
ok,
so I tried to follow the first command "tce-load ..." but it said: perl5.tcz not found
so I downloaded perl5.tcz and submitted the command again.
In short, I downloaded bash.tcz and ncurses-dev.tcz, and then all the loading went ok.
But as I entered the "make" command I received again the "make: *** No rule to make target 'mrproper'. Stop."
Any other ideas? (I won't be offended if you explain as if to a five year old...)
To clarify, I wrote the command in /linuxxxx/kernel,
I know that in an other kernel I played with (some redhat8 compatible 2.4.xxxx kernel) there was a Rules.makefile file. Is it necessary? should it be in the patched kernel on this site?
Thanks again!
Juanito:
--- Quote from: Eitan on July 13, 2013, 02:05:36 AM ---ok,
so I tried to follow the first command "tce-load ..." but it said: perl5.tcz not found
so I downloaded perl5.tcz and submitted the command again.
In short, I downloaded bash.tcz and ncurses-dev.tcz, and then all the loading went ok.
But as I entered the "make" command I received again the "make: *** No rule to make target 'mrproper'. Stop."
--- End quote ---
After loading the extensions, you need to:
--- Code: ---$ tar xf linux-3.0.21-patched.txz
$ cd linux-3.0.21-patched
$ make mrproper
$ cp config-3.0.21-tinycore .config
$ make oldconfig
$ make
--- End code ---
Eitan:
I believe my problem is here: after the extraction I receive tar: short read
I haven't seen that last time..
So if the extraction isn't complete, how do I overcome this?
P.S this might be important: I made a 0.5GB hdd at first, and installed tc on it. later I expanded the hdd to 2GB, but without any partitioning or any operations on tc.
I don't know how to check how much free space I've got, and fluff says the kernel directory is about 69.1MB, so I don't know if it's the problem or not
Navigation
[0] Message Index
[#] Next page
Go to full version