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

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

 



Hello All,

I am following a tutorial from the following link, but I am stuck at the bottom of the page.

http://www.osdever.net/bkerndev/Docs/printing.htm

"Copy your 'kernel.bin' to your GRUB floppy disk, and if all went well, you should now have a kernel that prints 'Hello World!' on a black screen in white text!"

I am completely a newbie on this area, and have no idea how to configure GRUB to load the kernel.

I've been googling the web, but most of them suggest for the creation of a boot floppy disk with GRUB. I don't have that drive on my laptop.

I am using Ubuntu Linux installed on a VMware 6.5.1. My laptop is Compaq Presario AMD Athlon-X2.

# uname -a
Linux pc-vm3 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux

Could i run this as a simple a.out? I am getting the following error:

# chmod +x kernel.bin
# ./kernel.bin
bash: ./kernel.bin: cannot execute binary file

Is there any wrong in the code? See attached zip file.

Thanks,

Won




      


--
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