Xinu在虚拟机中的启动

Xinu在虚拟机中的启动

I cloned from the xinu-os repo.

I followed the Multiboot Specification#OS-image-format, and added the required header to the end of _start, to make the binary multiboot-compliant:

/* /xinu/loader/platforms/x86/start.S

* ...

* #define MULTIBOOT_HEADER_MAGIC 0x1BADB002

* #define MULTIBOOT_HEADER_FLAGS 0x00000003

* _start:

* ...

*/

jmp startup

/* Enable multiboot support */

.align 4

.long MULTIBOOT_HEADER_MAGIC

.long MULTIBOOT_HEADER_FLAGS

.long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)

I built my Xinu.boot and Xinu.elf out of the modified code.

I set up minicom as instructed, and successfully booted the VBox version.

I examined the Xinu.boot used in the VBox version, and found that it was an 32bit elf for i386, but the Xinu.boot I built with the Makefile was made from objcopy, while the Xinu.elf was an elf. So I renamed Xinu.elf I built to Xinu.boot, and substituted it for that in the VBox version.

Then I tried to boot with the same files except the Xinu.boot, in the same environment.

It failed, and grub gave me the grub commandline. I also tried using a debug version. It failed too, but before it showed the grub commandline, it displayed a message "Unknown command: r(0, 1)".

相关推荐

iPod电池续航揭秘:不同型号能用多久?
best365官网体育投注

iPod电池续航揭秘:不同型号能用多久?

📅 07-01 👁️ 1086
柚子剝完又苦又碎?專家傳授「剝柚3大招」輕鬆剝取完整果肉、不沾苦味
坐围与臀围对照表图(坐围与臀围对照表图片)
best365官网体育投注

坐围与臀围对照表图(坐围与臀围对照表图片)

📅 06-28 👁️ 9458
热辣壹号火锅加盟费用 热辣壹号火锅加盟多少钱
足球小将角色列表
bt365网站

足球小将角色列表

📅 08-04 👁️ 8308
如何快速取消手机上的彩铃服务?_手机网易网
best365官网体育投注

如何快速取消手机上的彩铃服务?_手机网易网

📅 07-08 👁️ 3173