Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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 make vmlinuz
in the same location as make bzImage
did not work, and failed with:
make: *** No rule to make target 'vmlinuz'. Stop.
So, how do I make the vmlinuz file for the TCE kernel?
Thanks,
R.
-
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...
So, I was wondering what is the procedure to build the TCE 5 kernel from the source. For me, running make vmlinuz
in the same location as make bzImage
did not work, and failed with:
make: *** No rule to make target 'vmlinuz'. Stop.
You can see all valid targets with
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
-
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.
-
http://wiki.tinycorelinux.net/wiki:custom_kernel
-
Yes,
This is the page I've been looking at. The output file from "arch/x86/boot/bzImage" does not work when:
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.
-
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
-
Such could easily be diagnosed by comparing checksums.
See how for core extensions md5sum is used to ensure integrity ;)
-
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
-
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.