Kernel building

AmigaOne X1000 platform specific issues.
Post Reply
User avatar
musa
Posts: 873
Joined: Tue Aug 23, 2011 8:58 pm

Kernel building

Post 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
AmigaX1000
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel building

Post 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.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
musa
Posts: 873
Joined: Tue Aug 23, 2011 8:58 pm

Re: Kernel building

Post 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.
AmigaX1000
User avatar
musa
Posts: 873
Joined: Tue Aug 23, 2011 8:58 pm

Re: Kernel building

Post 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
AmigaX1000
User avatar
trevordick
A-Eon Technology
A-Eon Technology
Posts: 1385
Joined: Mon Dec 20, 2010 1:28 pm

Re: Kernel building

Post 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
I'm just Breezin'
User avatar
musa
Posts: 873
Joined: Tue Aug 23, 2011 8:58 pm

Re: Kernel building

Post 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.
AmigaX1000
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: Kernel building

Post 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
User avatar
musa
Posts: 873
Joined: Tue Aug 23, 2011 8:58 pm

Re: Kernel building

Post 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
AmigaX1000
Post Reply