Has anyone tried the small kernel developed in Bran's Kernel Development Tutorial. I tried it in Cygwin,using the downloaded bran's kernel package.
When I used the build.bat inside this package, I got
"start.o file not recognized". I thought this was because
nasm file format flag is "-f aout", so I changed it to "-f elf".
This time I got "cannot perform PE operation on non-PE file format". Other file formats were tried out but failed.
Did anyone experience this issue?
Cannot compile kernel in Bran's Kernel Development Tutorial
Use MinGW, leave nasm's output format as elf, and change LD's output to pei-i386.
ex. in link.ld
It works for me.
ex. in link.ld
Code: Select all
OUTPUT_FORMAT("pei-i386") <---
ENTRY(_Init_Start)
_Data_Physical_Addr_Load = 0x00100000;
On Vista it crashes ld.exetigerfish wrote:Use MinGW, leave nasm's output format as elf, and change LD's output to pei-i386.
ex. in link.ld
It works for me.Code: Select all
OUTPUT_FORMAT("pei-i386") <--- ENTRY(_Init_Start) _Data_Physical_Addr_Load = 0x00100000;
(I'm starting to think god just doesn't want me to program an OS.)
- karloathian
- Posts: 22
- Joined: Fri Mar 28, 2008 12:09 am
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
This is normal.(I'm starting to think god just doesn't want me to program an OS.)
Hang in there
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io