WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Make vmlinuz?  (Read 6408 times)

Offline robintel

  • Newbie
  • *
  • Posts: 12
    • Robintel.ro
[SOLVED] Make vmlinuz?
« 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 and how to compile the kernel (after finding out some fix).

My problem now is that while I manage to build a kernel bzImage, 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 , 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.
« Last Edit: February 09, 2014, 09:50:00 AM by robintel »
_________
Ro: Pentru că inteligența este un loc tare singuratic.
En: Because intellect is such a lonely place.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Make vmlinuz?
« Reply #1 on: February 09, 2014, 07:43:30 AM »
Having learnt the difference between bzImage and vmlinuz

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
« Last Edit: February 09, 2014, 07:49:28 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline robintel

  • Newbie
  • *
  • Posts: 12
    • Robintel.ro
Re: Make vmlinuz?
« Reply #2 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.
_________
Ro: Pentru că inteligența este un loc tare singuratic.
En: Because intellect is such a lonely place.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Make vmlinuz?
« Reply #3 on: February 09, 2014, 08:26:32 AM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline robintel

  • Newbie
  • *
  • Posts: 12
    • Robintel.ro
Re: Make vmlinuz?
« Reply #4 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.
_________
Ro: Pentru că inteligența este un loc tare singuratic.
En: Because intellect is such a lonely place.

Offline robintel

  • Newbie
  • *
  • Posts: 12
    • Robintel.ro
[SOLVED] Re: Make vmlinuz?
« Reply #5 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
_________
Ro: Pentru că inteligența este un loc tare singuratic.
En: Because intellect is such a lonely place.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] Make vmlinuz?
« Reply #6 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 ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: [SOLVED] Re: Make vmlinuz?
« Reply #7 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

Offline robintel

  • Newbie
  • *
  • Posts: 12
    • Robintel.ro
Re: [SOLVED] Make vmlinuz?
« Reply #8 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.
_________
Ro: Pentru că inteligența este un loc tare singuratic.
En: Because intellect is such a lonely place.