Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: robintel on February 09, 2014, 06:29:55 AM

Title: [SOLVED] Make vmlinuz?
Post by: robintel on February 09, 2014, 06:29:55 AM
Hello,

It's been a few day now since I've tried adding some drivers to the TCE kernel, without success.

So, I found out how to contain the drivers in the kernel (http://www.parkytowers.me.uk/thin/Linux/TinycoreCK.shtml) and how to compile the kernel (after finding out some fix (http://forum.tinycorelinux.net/index.php/topic,16614.0.html)).

My problem now is that while I manage to build a kernel bzImage (http://forum.tinycorelinux.net/index.php/topic,541.0.html), using 'make bzImage' , copying the bzImage file and renaming it vmlinuz yields some ExtLinux error that the kernel is corrupted or missing.

Having learnt the difference between bzImage and vmlinuz (http://www.linuxquestions.org/questions/linux-newbie-8/difference-between-make-bzimage-and-make-vmlinuz-190558/) , using 'make bzImage' , copying the bzImage file and renaming it vmlinuz yields some ExtLinux error that the kernel is corrupted or missing.

So, I was wondering what is the procedure to build the TCE 5 kernel from the source. For me, running
Quote
make vmlinuz
in the same location as
Quote
make bzImage
did not work, and failed with:
Quote
make: *** No rule to make target 'vmlinuz'. Stop.

So, how do I make the vmlinuz file for the TCE kernel?

Thanks,
R.
Title: Re: Make vmlinuz?
Post by: tinypoodle on February 09, 2014, 07:43:30 AM
Having learnt the difference between bzImage and vmlinuz (http://www.linuxquestions.org/questions/linux-newbie-8/difference-between-make-bzimage-and-make-vmlinuz-190558/)

Besides from that thread you link to being 10 years old, we must read it completely different if you have learned such a difference you claim...

Quote
So, I was wondering what is the procedure to build the TCE 5 kernel from the source. For me, running
Quote
make vmlinuz
in the same location as
Quote
make bzImage
did not work, and failed with:
Quote
make: *** No rule to make target 'vmlinuz'. Stop.

You can see all valid targets with

Code: [Select]
make help
Edit:
On a second look at that linked thread, the first 3 posts which were posted within 20 minutes were so nonsensical that someone appears to have felt a necessity to post more than 7 years later for correction of facts.   :o
Title: Re: Make vmlinuz?
Post by: robintel on February 09, 2014, 08:12:57 AM
OK,

I am totally confused about this. How does one make the vmlinuz file TCE comes with? Assuming 'make all' works just fine, where is the output file?

I am a newbie, but willing to learn.

Thanks,
R.
Title: Re: Make vmlinuz?
Post by: tinypoodle on February 09, 2014, 08:26:32 AM
http://wiki.tinycorelinux.net/wiki:custom_kernel
Title: Re: Make vmlinuz?
Post by: robintel on February 09, 2014, 08:33:16 AM
Yes,

This is the page I've been looking at. The output file from "arch/x86/boot/bzImage" does not work when:

Quote
cp arch/x86/boot/bzImage /boot/vmlinuz

And, upon boot, fails with: Invalid or corrupt kernel image.

Perhaps I need to do something along these lines "boot loader needs also to be configured to boot using the new kernel. "? Copy seems not to suffice.
Title: [SOLVED] Re: Make vmlinuz?
Post by: robintel on February 09, 2014, 09:49:37 AM
Indeed,

The bzImage file is good enough. My problem was not making it, but transferring it to the target device. Apparently, uploading to FTP via MC is not a good idea, not at all.

Thanks,
Robin
Title: Re: [SOLVED] Make vmlinuz?
Post by: tinypoodle on February 09, 2014, 09:56:15 AM
Such could easily be diagnosed by comparing checksums.
See how for core extensions md5sum is used to ensure integrity ;)
Title: Re: [SOLVED] Re: Make vmlinuz?
Post by: malikawan on February 09, 2014, 12:34:25 PM
Indeed,

The bzImage file is good enough. My problem was not making it, but transferring it to the target device. Apparently, uploading to FTP via MC is not a good idea, not at all.

Thanks,
Robin
Robin do u compile kernel or need some help because these days i am also working ön recompiling kernel if u need some help tel me
Title: Re: [SOLVED] Make vmlinuz?
Post by: robintel on February 09, 2014, 12:51:53 PM
Thank you for your offering to help.

Fortunately, I managed to build the kernel and use it.

I hope you'll have the same success in your endeavour.

R.