Kernel not ELF compatible

AmigaOne X1000 platform specific issues related to Linux only.

Kernel not ELF compatible

Postby kilaueabart » Sat Sep 03, 2016 3:56 am

I thought maybe I had gotten help with this same problem long ago, but searching only brings up a Broken Symmetry problem I sought help for as recently as June!

My problem this time is that I downloaded and dearchived the latest kernels vmlinux-4.1.31 and vmlinux-4.8.rc4 a couple days ago, and drag-and-dropped them from Downloads to CF CARD, a procedure I have been employing regularly when new kernels are to be tested.

CFE menu command 6 is supposed to bring up Ubuntu MATE 16.04, but the next time I tried it nothing happened. The next time I tried I got an error message about cf0:vmlinux-4.1 not being ELF compatible. So I tried with cf0:vmlinux-4.8, and found out that it isn't ELF compatible either!

Fortunately I also have kernels 4.6 and 4.7 on my CF CARD. MATE comes up just fine with 4.7. So I moved the supposedly bad new kernels to trash and dragged the originals over from Downloads again. No, still not ELF-compatible.

I guess I'll try de-archiving them again, but I am pessimistic, and worried that it might be a CF CARD problem of some sort. So I'm hoping to find some help about what I should do when I log on here tomorrow, please. If I am going to have to reformat cf0: how can I be sure of saving vmlinux-4.6 and -4.7 without making them ELF-incompatible as well?

As I feared, CFE still says, "Could not load cf0:vmlinux-4.1: not an ELF-format executable." But clicking on its icon and going to "Information" from Ubuntu says it is executable.
User avatar
kilaueabart
 
Posts: 435
Joined: Mon Mar 05, 2012 3:36 am

Re: Kernel not ELF compatible

Postby mechanic » Sat Sep 03, 2016 2:45 pm

It's the old CFcard trick!

It seems that the file allocation table FAT gets screwed up when deleting files. Someday I might look at it with a hex editor.
My suggestion is to make a small 2-4GB ext2 partition on either your sda drive or get a PATA drive.

I can only say at this time don't delete files off the CF and if you wish to do that make sure you have the kernels you want on there somewhere in your home folder, then re-format the CF and copy the kernels back to it. Right now I have about 10 kernels on the CF so its getting time to clean it up. Keep in mind that CFE can read ext2 even on the CFcard.
A-Eon A1X1000
User avatar
mechanic
 
Posts: 481
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel not ELF compatible

Postby daz » Sat Sep 03, 2016 10:12 pm

mechanic wrote:It's the old CFcard trick!

It seems that the file allocation table FAT gets screwed up when deleting files. Someday I might look at it with a hex editor.
My suggestion is to make a small 2-4GB ext2 partition on either your sda drive or get a PATA drive.

Just remember that any HDD you want to load kernels from must have a MBR partition table, they will fail to start if it's RDB partitioned.

I can only say at this time don't delete files off the CF and if you wish to do that make sure you have the kernels you want on there somewhere in your home folder, then re-format the CF and copy the kernels back to it. Right now I have about 10 kernels on the CF so its getting time to clean it up. Keep in mind that CFE can read ext2 even on the CFcard.

I think it can read ext3 too. Also you can delete things from the CF but you must eject/umount the CF once you've done so. You'll have less problems with FAT if you modify it under Linux I find.

Regards
Darren
daz
Beta Tester
Beta Tester
 
Posts: 299
Joined: Tue Dec 21, 2010 8:32 pm

Re: Kernel not ELF compatible

Postby mechanic » Sun Sep 04, 2016 2:09 am

daz wrote:Just remember that any HDD you want to load kernels from must have a MBR partition table, they will fail to start if it's RDB partitioned.
Regards
Darren


I never tried that. Thanks for the info (before I made myself crazy(er).
A-Eon A1X1000
User avatar
mechanic
 
Posts: 481
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel not ELF compatible

Postby kilaueabart » Sun Sep 04, 2016 5:23 am

Google got me the manual that came on the original Ubuntu 12.04 LTS install disk and was a bit startled to see that CF CARD has to be formatted either in FAT16 (recommended) or EXT2. That is likely a big part of my problem, because when I was having that Broken Symmetry problem in June, this was one of the replies:
http://forum.hyperion-entertainment.biz/viewtopic.php?f=35&t=3472&p=38292&hilit=fat16#p38292

If using FAT16 was dumb, I would certainly use FAT32 (that is the current format), and I did, and never had a problem with it until now.

It is about to get reformatted, assuming GParted will cooperate, as FAT16, and then I will cp the kernels, etc., in via Terminal.
User avatar
kilaueabart
 
Posts: 435
Joined: Mon Mar 05, 2012 3:36 am


Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: Bing [Bot] and 7 guests