BIOSLoader

========================================================

Study on-line help about "How to Create a Bootable Partition with DiskPart "

1. Copy DiskPart.exe bsect32.img Mbr.dat to /

2. DiskPart

List disk

Select disk <N>

clean

Select disk <N>

Create Primary Size=X (3900 for 4G)

exit

3. Use Storage Manager to format the new partition as "FAT32", 2 FATs. and mount it.

4. DiskPart

Select disk <N>

Select partition Y (0)

Active

FixPartOffset

DumpMBR

BootSec File=/bsect32.img Sector=Z (where Z is the first sector of the partition as given in the DumpMBR command output, 1)

MBRCode File=/Mbr.dat

exit

5. Copy the file BLDR

6. Copy the file Boot.ini and Splash.bmx

7. Copy the file NK.bin

 

========================================================

bsect.img -- %_TARGETPLATROOT%/src/bootloader/biosloader/bootsector/fat32

 

1. download MASM32 assembler

http://www.masm32.com/masmdl.htm

2. Modify build.bat
c:/MASM32/bin/ml /Zm /Flbsect.lst /c bsect.asm
c:/MASM32/bin/link16 bsect.obj,bsect.com,,,,
debug bsect.com < getbsect.scr

========================================================
bldr -- 
%_TARGETPLATROOT%/src/bootloader/biosloader/loader/fixed/main
%_TARGETPLATROOT%/src/bootloader/biosloader/iniparser
%_TARGETPLATROOT%/src/bootloader/biosloader/loader/fixed/fat32

1. Modify source file to add the sentence for debug
DEBUG_OPTIONS=-DDEBUG -DFULLMESSAGES -DFULLINT13MESSAGES

2. Add environment variable
set _PLATLIB=%_TARGETPLATROOT%/lib

3. Modify makebldr.bat
replace %_PROJECTROOT%/cesysgen/platform/%_TGTPLAT% by %_TARGETPLATROOT%

4. Modify boot.bib
replace $(_PROJECTROOT)/cesysgen/platform/$(_TGTPLAT) by $(_TARGETPLATROOT)

5. The path name is too long to execute debug, copy the bldr and fixjmp.scr to /temp/ and type
debug bldr < fixjmp.scr


参与评论 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页

打赏作者

paul_chao

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值