Jun 07, 2019 Could someone help me i downloaed a file of the the net which windows tells me is a bin/ cue file i downloaed a bin to iso converter because i need to convert to iso to extract the contents. Unable to play file. File may be corrupted or in an unsupported format. The files are not corrupt as they play OK, as stated above. I've also tried to Import files which I've worked on previously and these will not import either. So, logically (to me anyway lol) there is a problem with GoPro Studio but I have no idea what and I've also spent.
I wrote a kernel. Here is my kernel start up file:
Here is my first C file:
Based on that I wrote a second C file:
Edit: Here is my linker script:
Edit: I am not using a cross-compiler. I am using gcc on Ubuntu.
I compiled the C code and assembled the assembly code and linked them together. Then I turned it into a bootable image and together with grub I burned it all onto a disc. After grub started I entered the command 'kernel KERNEL.BIN' (KERNEL.BIN is my kernel) and grub said 'Error 13: Invalid or unsupported executable format. What is wrong? Can anybody help me?
Isaac D. Cohen
Isaac D. CohenIsaac D. Cohen
migrated from programmers.stackexchange.comOct 16 '13 at 0:28
This question came from our site for professionals, academics, and students working within the systems development life cycle.
1 Answer
Without knowing your linker script or Makefile (please attach them) we can only guess at what might be wrong.
Please check the following:
- You are using a cross-compiler that compiles machine code for the correct target, leaves out system-specific library files, and uses the right binary format (I would recommend ELF).
- The GRUB magic number is within the first 8KiB of the kernel. Make sure the linker script puts the multiboot header section first, before any other code.
I would have made this a comment rather than an answer, but I don't have enough reputation yet.
Jack ScottJack Scott