Re: "How to configure Grub?" and "bash: ./kernel.bin: cannot execute binary file"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- On Sun, 2/1/09, Frank Thieme <frank@xxxxxxxxxxx> wrote:
> On Sunday 01 February 2009 15:02:49 Won De Erick wrote:
> > I am using Ubuntu Linux installed on a VMware 6.5.1.
> > My laptop is Compaq
> > Presario AMD Athlon-X2.
> 
> If you have ubuntu running, you already have a GRUB
> running. You have to copy 
> kernel.bin - or whatever it is called - to /boot and then
> you have to adjust 
> /boot/grub/menu.lst to load this kernel.
> 
> The configuration in /boot/grub/menu.lst has to be done
> once. Just look at the 
> blocks already there and use copy&paste to generate a
> new block which loads 
> kernel.bin
> 

I've done this, but I'm getting the following error:
Error 13: Invalid or unsupported executable format


In the build file, I have the following line:

nasm -f elf64 -o start.o start.asm

Then, on the link.ld file,

OUTPUT_FORMAT("binary")

I'm getting no error when building. Is there any inconsistencies? Does it have to do with my laptop architecture (AMD Athlon-X2)?





      


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux