Tiny Core Linux
General TC => General TC Talk => Topic started by: grandma on April 30, 2011, 03:51:20 PM
-
How does someone create a Micro Core with special modules in it? Has anyone written a step-by-step tutorial for newbies who have never compiled/created a kernel?
Thanks.
Edited to eliminate the shouting title.
-
Same as you do with tinycore, except you start with microcore.gz.
It might be better if you explained what you want, as a custom initrd may not be necessary.
-
What I want:
1. A step-by-step tutorial with screen shots on
a) obtaining the compiler
b) obtaining the source
c) configuring MC or TC source and any make files/processes
d) executing a compile and having a new bzImage or kernel etc. that can be tested by plugging it into the files I have on the drive
Then an example of adding / embedding / changing this with another file - i.e. similar to the method Svolli used to create the version that can be installed on a W2K NTFS system.
2. Once done this way - "hard coded" if you will, completing the same steps without embedding a change in the kernel, and walking through a tutorial - with screen shots - of linking a module or TCZ at run time so that a specific module or library loads at that time.
Example: Let's assume a call to the a wifi tool or other port would take place at boot and rather than relying on a backup, the device/PC it was on only had one task: connecting to the internet and becoming an access point with virtually no user interface. There is a routine.
Example: A device that in fact had no screen or keyboard IO. A similar "Kernel" was used to drive a PC that controlled a car stereo with buttons on the steering wheel. That kernel is likely to have far different drivers than another.
In short, modifying the MC kernel for specific tasks whether an NTFS mount, an access point or a stereo console, would either require the kernel to be changed or a different set of files to be linked to it.
-
You do mean recompiling the kernel, do you? Not remastering which is covered in the wiki? (Adding ntfs support is remastering.)
-
Well Jur - actually I couldn't tell you if I mean "RECOMPILING" or "REMASTERING", or if I meant the tinycore.gz/microcore.gz or bzImage file - to be honest but good question.
So now "What I want" - a tutorial for creating each of these - from scratch - with screen shots - plus a tutorial on simply adding a tcz file or some other "module" (which I guess you mean as "remastering" - not sure).
In short, from the ground up...starting with a blank hard drive I barely got working (thanks to Tiny Core).
Here is the actual PRODUCTION WANT LIST.
1. I want to install TC on that drive - right now can only get the 300 gigabyte laptop to boot with a USB drive I made. Am using fdisk to break it up into 4 or more distinct areas and then will use GRUB to boot any one of those as its own system.
2. On one of those partitions (hda1 most likely) will be an operating system. I want that to be Tiny Core - with a GCC compiler or equivalent so that partition can make versions I can test on the other 3 partitions.
3. That way I can test TC with various flavors of Windows (one of the partitions - which may require itself to be hda1).
4. I can install some other flavor of Linux and get TC to "drop in" and "take over" that partition as well - using Grub. This will probably have to be a different "Kernel" or "remastered" TC or MC.
5. And basically use TC/MC as a "Drop In / Take Over" utility no matter the operating system - with just a slight "tweak" most of the time to get TC/MC ready to go to work - generally with a different set of tools (i.e. changing ONBOOT.LST or some other file/parameter) to do specific jobs.
If the Svolli version, running on W2K was possible (not without its bugs), then this should be doable as well.
-
Since what you need is remastering, you could maybe start by following the remastering section of the wiki and asking questions if you get stuck?
-
What I want:
1. A step-by-step tutorial with screen shots on
a) obtaining the compiler
b) obtaining the source
c) configuring MC or TC source and any make files/processes
d) executing a compile and having a new bzImage or kernel etc. that can be tested by plugging it into the files I have on the drive
Some of this is explained in the extension making section of the wiki - it would be a good place to start at least.
-
How does someone create a Micro Core with special modules in it? Has anyone written a step-by-step tutorial for newbies who have never compiled/created a kernel?
You could start by having a look at http://www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html