1.as86:命令未找到 sudo apt-get install bin86
2.gas makefile中改为as --32
3.gld makefile中改为ld
4.as -o head.o head.s出错
head.s中
第103行: movl scr_loc, %bx改为movlscr_loc, %ebx
第240行: movl $65, %al改为movb $65, %al
第249行: movl $66, %al改为movb $66, %al
所有的的.align 2改为.align 4,.align 3改为.align 8
5.ld -s -x -M head.o -o system > System.map出错
head.s中.text段中添加一行:.globl startup_32
head.s第一行加入.code32
makefile中:LDFLAGS = -m elf_i386 -Ttext 0 -e startup_32
6.黑屏 引导错误
makefile中 dd bs=512 if=system of=Image skip=2 seek=1 改为 dd bs=512 if=system of=Image skip=8 seek=1
参考: http://blog.csdn.net/wangnanjun/article/details/7080318
http://blog.csdn.net/u010726166/article/details/9208957
http://blog.chinaunix.net/uid-23917107-id-3173253.html?page=5