Page 1 of 1

Kernel building

Posted: Fri Jun 08, 2012 7:20 pm
by musa
Could not load usbdisk0: vmlinux: Not an ELF executable format

Is there any of you who know so much about kernel building that you can tell me why I get this error whenever I try to start the kernler I build. I've done several without problems and the only difference is that before I built them in debian Squeeze and now in Debian wheezy. I'm pretty sure that gcc was an older version of Squeeze.
I try to change the kernel I have built to start my Ubuntu.
Thank you in advance

Re: Kernel building

Posted: Fri Jun 08, 2012 8:51 pm
by mechanic
musa wrote:Could not load usbdisk0: vmlinux: Not an ELF executable format
That is strange since 'vmlinux' more or less says it is ELF. That is to say it is put together from the binaries and the init scripts into an executable format. I don't know why you are getting that error.

I'm running Deb 6.0.5 with gcc 4:4.4.5-1/gcc-4.4 > 4.4.5-8.

Have you tried deleting/reloading the 2.9.39.4 source code or perhaps doing
make clean, then
make mrproper
Before building a new kernel?

I really don't have a clue, but will keep it in mind.

Re: Kernel building

Posted: Fri Jun 08, 2012 9:11 pm
by musa
mechanic wrote:
That is strange since 'vmlinux' more or less says it is ELF. That is to say it is put together from the binaries and the init scripts into an executable format. I don't know why you are getting that error.

I'm running Deb 6.0.5 with gcc 4:4.4.5-1/gcc-4.4 > 4.4.5-8.

Have you tried deleting/reloading the 2.9.39.4 source code or perhaps doing
make clean, then
make mrproper
Before building a new kernel?

I really don't have a clue, but will keep it in mind.
Thanks for the reply.
I've downgraded to 4.4.5-1 and got a lot of error messages away that should not mean anything, but it did not help at no elf problem.
I'll try your suggestions tonight.

Re: Kernel building

Posted: Fri Jun 08, 2012 10:55 pm
by musa
No, it changed nothing. I still can not boot my kernel.
I tried a 39config without me having changed anything.
It was my intention to test the graphics card with KSM off in the kernel.
Now it has to wait

Re: Kernel building

Posted: Sat Jun 09, 2012 5:29 am
by trevordick
I've noticed that when I unzip some kernel archives on a PC the resulting kernel files produce the error you experienced. However, when I unzip the same files on the A1-X1000 under AmigaOS4 I've never had this problem.

I don't know whether it is related to your issue of not.

Trevor

Re: Kernel building

Posted: Sat Jun 09, 2012 8:25 am
by musa
trevordick wrote:I've noticed that when I unzip some kernel archives on a PC the resulting kernel files produce the error you experienced. However, when I unzip the same files on the A1-X1000 under AmigaOS4 I've never had this problem.

I don't know whether it is related to your issue of not.

Trevor
Hi Trevor
No i build the kernel on debian on the A1000 and put the kernel on the usbdisk. Then reboot and try to boot ubuntu from cfe and got the errror.

Re: Kernel building

Posted: Sat Jun 09, 2012 4:53 pm
by daz
musa wrote:Could not load usbdisk0: vmlinux: Not an ELF executable format

Is there any of you who know so much about kernel building that you can tell me why I get this error whenever I try to start the kernler I build. I've done several without problems and the only difference is that before I built them in debian Squeeze and now in Debian wheezy. I'm pretty sure that gcc was an older version of Squeeze.
I try to change the kernel I have built to start my Ubuntu.
Thank you in advance
USB doesn't always work perfectly from within CFE, I have had this with working kernels too. Have you tried a different USB stic or a CF card?

Regards
Darren

Re: Kernel building

Posted: Sun Jun 10, 2012 2:27 pm
by musa
daz wrote:
musa wrote:Could not load usbdisk0: vmlinux: Not an ELF executable format

Is there any of you who know so much about kernel building that you can tell me why I get this error whenever I try to start the kernler I build. I've done several without problems and the only difference is that before I built them in debian Squeeze and now in Debian wheezy. I'm pretty sure that gcc was an older version of Squeeze.
I try to change the kernel I have built to start my Ubuntu.
Thank you in advance
USB doesn't always work perfectly from within CFE, I have had this with working kernels too. Have you tried a different USB stic or a CF card?

Regards
Darren
Bingo :D
Changed usb stick and then the error disappeared.
I have had this experience with my cf cart. A kernel that worked from the usb did not work from cf. I had also tried a different usb disk without success. But after reading your post I tried three different and this time I had luck.
Thanks to all who responded. Now I can move on with my attempts to get compiz in ubuntu