fbinst编译for linux和windows--- 更新版本号1.7
突然醒悟,原来可以交叉编译的,稍微修改了一下源码,
在slitaz4.0 系统下完成了2种的编译。
得出的编译结果测试了,完全一致。
没有做什么功能修改,只是将版本号提升为1.7
附件包含了2个文档,
linux下的fbinst
windows下的fbinst.exe
大家有需要研究的下载使用吧。
如果有提问,我会回答。
随便就贴出使用方法吧,
以下文字由./fbinst --help > 1.txt 产生。Usage:
fbinst DEVICE_OR_FILE COMMANDS
Global Options:
--help,-h Display this message and exit
--version,-V Print version information and exit
--list,-l List all disks in system and exit
--verbose,-v Print verbose messages
--debug,-d Use the debug version of mbr
Commands:
format Format disk
--raw,-r Format with normal layout (not bootable)
--force,-f Force the creation of data partition
--zip,-z Format as USB-ZIP
--fat16 Format data partition as FAT16
--fat32 Format data partition as FAT32
--align,-a Align to cluster boundary
--nalign,-n NUM NAND alignment
--unit-size,-u NUM Unit size for FAT16/FAT32 in sectors
--base,-b NUM Set base boot sector
--size,-s NUM Set size of data partition
--primary,-p NUM Set primary data size
--extended,-e NUM Set extended data size
--list-size,-l NUM Set size of file list
--max-sectors NUM Set maximum number of sectors per read
--chs Force chs mode
--archive FILE Initialize fb using archive file
restore Try to restore fb mbr
update Update boot code
sync Synchronize disk information
--copy-bpb Copy bpb from the first partition
--reset-bpb Reset bpb to inital state
--clear-bpb Clear bpb
--max-sectors NUM Set maximum number of sectors per read
--chs Force chs mode
--zip,-z Format as USB-ZIP
info Show disk information
clear Clear files
add NAME Add/update file item
--extended,-e Store the file in extended data area
--syslinux,-s Patch syslinux boot file
add-menu NAME FILE Add/update menu file
--append,-a Append to existing menu file
--string,-s The menu items are passed as command argument
resize NAME SIZE Resize/create file item
--extended,-e Store the file in extended data area
--fill,-f NUM Set fill character for expansion
copy OLD NEW Copy file item
move OLD NEW Move file item
export NAME Export file item
remove NAME Remove file item
cat NAME Show the content of text file
cat-menu NAME Show the content of menu file
pack Pack free space
check Check primary data area for inconsistency
save FILE Save to archive file
--list-size,-l NUM Set size of file list
load FILE Load from archive file
create Create archive file
--primary,-p NUM Set primary data size
--extended,-e NUM Set extended data size
--list-size,-l NUM Set size of file list
fb_mbr_rel.h 中的版本号不能改,改后就就不直接用目前的grldr读取数据了。也与现有的fba不兼容 虽然不懂linux,还是要支持一下。。 回答网友提问。 本帖最后由 teasiu 于 2013-9-24 06:07 编辑
万分无聊,自己做了1个脚本,然后输入./mk,回答y和n就搞定了2种编译。
下面是输出的编译结果信息:
tux@slitaz:~/Documents$ ./mk
要制作windows的exe程序还是linux的程序,按y是windows: y
rm -f fbinst.exe fb.mbr version.h fb_mbr.h *.o *.d# Cleanup
perl ./ver2h.pl version version.h
i586-pc-mingw32-gcc -nostdlib -I. -I./ -Wl,-N -Wl,-T -Wl,./ldscript -o fb.exe fbmbr.S
i586-pc-mingw32-objcopy -O binary fb.exe fb_rel.mbr
rm fb.exe
perl ./bin2h.pl fb_rel.mbr fb_mbr_rel.h fb_mbr_rel
i586-pc-mingw32-gcc -nostdlib -I. -I./ -DDEBUG -DDEBUG_INT13 -Wl,-N -Wl,-T -Wl,./ldscript -o fb.exe fbmbr.S
i586-pc-mingw32-objcopy -O binary fb.exe fb_dbg.mbr
rm fb.exe
perl ./bin2h.pl fb_dbg.mbr fb_mbr_dbg.h fb_mbr_dbg
i586-pc-mingw32-gcc -I./ -I. -Wall -DWIN32 -c -MMD -o fbinst.o fbinst.c
i586-pc-mingw32-gcc -I./ -I. -Wall -DWIN32 -c -MMD -o xdio.o xdio.c
i586-pc-mingw32-gcc -I./ -I. -Wall -DWIN32 -c -MMD -o keytab.o keytab.c
i586-pc-mingw32-gcc -I./ -I. -Wall -DWIN32 -ofbinst.exe fbinst.o xdio.o keytab.o
tux@slitaz:~/Documents$ ./mk
要制作windows的exe程序还是linux的程序,按y是windows: n
rm -f fbinst fb.mbr version.h fb_mbr.h *.o *.d# Cleanup
perl ./ver2h.pl version version.h
gcc -nostdlib -I. -I./ -Wl,-N -Wl,-T -Wl,./ldscript -o fb fbmbr.S
objcopy -O binary fb fb_rel.mbr
rm fb
perl ./bin2h.pl fb_rel.mbr fb_mbr_rel.h fb_mbr_rel
gcc -nostdlib -I. -I./ -DDEBUG -DDEBUG_INT13 -Wl,-N -Wl,-T -Wl,./ldscript -o fb fbmbr.S
objcopy -O binary fb fb_dbg.mbr
rm fb
perl ./bin2h.pl fb_dbg.mbr fb_mbr_dbg.h fb_mbr_dbg
gcc -I./ -I. -Wall -DLINUX -c -MMD -o fbinst.o fbinst.c
gcc -I./ -I. -Wall -DLINUX -c -MMD -o xdio.o xdio.c
gcc -I./ -I. -Wall -DLINUX -c -MMD -o keytab.o keytab.c
gcc -I./ -I. -Wall -DLINUX -ofbinst fbinst.o xdio.o keytab.o
jack95 发表于 2013-9-24 08:11 static/image/common/back.gif
fb_mbr_rel.h 中的版本号不能改,改后就就不直接用目前的grldr读取数据了。也与现有的fba不兼容
有这样的事? 不错。。。。支持神雕 啊。。。 支持神雕大侠,好帖子不能沉默了。 这是一款经典软件工具,希望像楼主这样的大侠们不断改进完善! 支持神雕大侠~ 支持楼主 可以在Windows下编译码?
很牛啊。希望有实质的更新,大家都来用一下。 下载玩一玩,多谢楼主 感谢你的分享 linux下玩玩,谢谢分享@teasiu 有个问题想要请教神雕大侠有没有在linux下测试fbinst所有的命令是否都可行。 bolodhzs 发表于 2014-1-4 10:04
有个问题想要请教神雕大侠有没有在linux下测试fbinst所有的命令是否都可行。
我没有测试,但是,从代码和编译结果来看,是可行的。 http://bbs.wuyou.net/forum.php?mod=redirect&goto=findpost&ptid=320244&pid=2883262
不知道这个版本修复了这里提到的bug吗。
另外,参数说明是否可以改为中文的? teasiu 发表于 2014-1-7 07:32
我没有测试,但是,从代码和编译结果来看,是可行的。
我发现都没几个人真正用fbinst直接做启动盘的,这方面仅仅只有命令,而没有教程,我自己测试了下,命令大多不好使,估计是我还是不熟,希望不仅仅是工具出来,还需要教程方法更加有用@teasiu 大师,能不能说一下怎么编译fbinst,我想重新编译fbinst 大师,可以把你修改的编译脚本发给我一份吗?
我的邮箱:gsool@163.com 看看学习....
支持神雕大侠~ windows下的版本体积好大。而且运行出错。提示“fbinst: error: version number not match” 楼上大侠好。
现在有一个新问题,困惑大家。
就是新版fbinstool已经取消对ansi格式的fba支持。
但是fbinst命令行却只支持ansi格式的fba手工写入。
请问大侠能不能改进fbinst,使它写和uft-8的fba不乱码。 你好,能提供一下可以编译的代码吗?我找到的代码编译各种错误,谢谢 大佬 fbinst的源码去哪儿下载? 大佬 fbinst在哪儿能下载,找了论坛都是fbinstTool没有fbinst和源码啊 谢谢
页:
[1]