无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
楼主: zhaohj
打印 上一主题 下一主题

GRUB4DOS更新建议、bug反馈专帖

    [复制链接]
361#
 楼主| 发表于 2012-1-3 15:34:14 | 显示全部楼层
C大看看能否支持下面的形式:
title  \t [  1 ] - 远程启动CSPE
回复

使用道具 举报

362#
 楼主| 发表于 2012-1-3 16:51:35 | 显示全部楼层
测试[]中包含空格的热键成功!
得好好消化C大的源代码。
回复

使用道具 举报

363#
 楼主| 发表于 2012-1-4 08:56:09 | 显示全部楼层
奇怪,kootkey我实机测试是正常的。
-----------------------------
与hhh333同感,0.4.6a新版本希望重新设计界面。至少界面是可控的。

[ 本帖最后由 zhaohj 于 2012-1-4 09:09 编辑 ]
回复

使用道具 举报

364#
 楼主| 发表于 2012-1-16 13:34:45 | 显示全部楼层
map --rehook?
------------------------

Snap1.jpg (97.5 KB, 下载次数: 104)

Snap1.jpg

Snap2.jpg (74.08 KB, 下载次数: 94)

Snap2.jpg
回复

使用道具 举报

365#
 楼主| 发表于 2012-1-16 19:11:51 | 显示全部楼层
回复

使用道具 举报

366#
 楼主| 发表于 2012-1-17 08:35:45 | 显示全部楼层
map --hook之后再map --rehook,一样。

Snap1.jpg (103.23 KB, 下载次数: 120)

Snap1.jpg

Snap2.jpg (98.7 KB, 下载次数: 121)

Snap2.jpg
回复

使用道具 举报

367#
 楼主| 发表于 2012-1-17 08:40:08 | 显示全部楼层
注意看map --hook后,扇区总数是b40,而map --rehook后,扇区总数是b58,多出24个扇区是为了写分区表?
我猜想正是这24个扇区覆盖了(1)。

[ 本帖最后由 zhaohj 于 2012-1-17 08:54 编辑 ]
回复

使用道具 举报

368#
 楼主| 发表于 2012-1-17 09:45:16 | 显示全部楼层
这个任何虚拟机可以重现:
先建两个仿真盘(0) (1),再
map (0) (hd)
map --hook
-----------
再map --rehook后查看(fd1)能否访问?
=========================

Snap1.jpg (86.82 KB, 下载次数: 122)

Snap1.jpg
回复

使用道具 举报

369#
 楼主| 发表于 2012-1-17 11:11:01 | 显示全部楼层
测试通过,rehook时没必要自动添加MBR。
回复

使用道具 举报

370#
 楼主| 发表于 2012-2-3 15:52:42 | 显示全部楼层
哇,gcc版本还这么新,太好了。
一直没解决msys编译外部命令的问题,目前看来windows下colinux是唯一选择。

60M的内存不够,见图:
128M未见cofs目录

Debian版正常。

[ 本帖最后由 zhaohj 于 2012-2-3 17:11 编辑 ]

Snap1.jpg (40.3 KB, 下载次数: 111)

Snap1.jpg

Snap2.jpg (10.86 KB, 下载次数: 119)

Snap2.jpg
回复

使用道具 举报

371#
 楼主| 发表于 2012-2-4 14:33:18 | 显示全部楼层
原帖由 chenall 于 2012-2-4 12:56 发表
抱歉,刚才上传的版本发现一个BUG,下载过的请重新下载。


这次可以了,不过编译速度没Debian版快。
回复

使用道具 举报

372#
 楼主| 发表于 2012-2-4 15:44:41 | 显示全部楼层
源代码放在cofs上面,这样方便查看。
目前tinycore的gcc版本是4.6.1,而debian的gcc版本是4.5.3-9,版本能否统一一下?
回复

使用道具 举报

373#
 楼主| 发表于 2012-2-4 16:42:51 | 显示全部楼层
debian版升级gcc4.6:
apt-get autoremove cpp
apt-get update
apt-get install gcc-4.6
怎样修改gcc的配置文件使得默认gcc是4.6.2?

Snap3.jpg (34.62 KB, 下载次数: 131)

Snap3.jpg
回复

使用道具 举报

374#
 楼主| 发表于 2012-2-4 17:34:20 | 显示全部楼层
原帖由 chenall 于 2012-2-4 17:10 发表
rm -rf /usr/bin/gcc
ln -s gcc-4.6 /usr/bin/gcc


谢谢,可以了。
gcc-4.6.2 编译grub4dos,grldr文件大小是298kb,怎么会这么大呢?

[ 本帖最后由 zhaohj 于 2012-2-4 17:43 编辑 ]
回复

使用道具 举报

375#
 楼主| 发表于 2012-2-4 22:13:58 | 显示全部楼层
debian版升级gcc到4.6.2,编译后的grldr也无法使用。
debian版回到gcc4.5.3,编译后的grldr正常。

不知tinycore版怎样回到gcc4.5.3

[ 本帖最后由 zhaohj 于 2012-2-5 00:15 编辑 ]
回复

使用道具 举报

376#
 楼主| 发表于 2012-2-6 08:55:02 | 显示全部楼层
slitaz_colinux的配置文件是否有问题?我用root用户名及密码登陆的
svn时出现
make时前面也出现很多错误,但结果好像正常。
中文环境改成如下正常:
root=/dev/null rw autologin kmap=us lang=zh-CN

-------------------
目前看,debian版速度最快,虽然大了点,但编译环境可以简单切换。另下载安装、更新也比较容易。

[ 本帖最后由 zhaohj 于 2012-2-6 09:23 编辑 ]

Snap1.jpg (17.74 KB, 下载次数: 116)

Snap1.jpg
回复

使用道具 举报

377#
 楼主| 发表于 2012-2-9 09:25:25 | 显示全部楼层
能否改成启动后自动进入“超级用户”,即自动运行sudo su
回复

使用道具 举报

378#
 楼主| 发表于 2012-2-10 10:41:18 | 显示全部楼层
cat 修改后又出问题啦
-----------------------
ChangeLog_chenall.txt
2012-02-01
5./stage2/cmdline.c
  fixed skip_to issue. e.g. cat --locate="abc \"def" (md)0x300+1.

[ 本帖最后由 zhaohj 于 2012-2-10 11:42 编辑 ]

Snap1.jpg (11.27 KB, 下载次数: 135)

Snap1.jpg
回复

使用道具 举报

379#
 楼主| 发表于 2012-2-13 12:11:12 | 显示全部楼层
以下P处理,在2012-01-17之前的g4d版本中运行正常,以后的版本都不正常,只能输出到屏幕,很奇怪。
!BAT
debug off
echo PCI$ > (md)0x200+10
WENV for /f "eol=; tokens=1-2 delims==;" %i in ( /srs/srsid/srsid.txt ) do (set a=$u,%i ; check "$${a:0:4}"=="PCI\" ]]& set b=%j ]]] echo -n $ ]]] echo $${a}=$${b}) >> (md)0x200+10
------------------
我只想查明原因是什么引起的,C大看看是否是bug。

改成下面任何版本又都正常:
!BAT
debug off
echo PCI$ > (md)0x200+10
WENV for /f "eol=; tokens=1-2 delims==;" %i in ( /srs/srsid/srsid.txt ) do (set a=$u,%i ; set b=$u,%j ; check $${a:0:4}<>PCI\ continue ; echo -n $ ; echo $${a}=$${b}) >> (md)0x200+10

[ 本帖最后由 zhaohj 于 2012-2-13 12:14 编辑 ]

SRSID.rar

4.26 KB, 下载次数: 27, 下载积分: 无忧币 -2

回复

使用道具 举报

380#
 楼主| 发表于 2012-2-13 16:21:47 | 显示全部楼层
使用新版本“不处理""里面的\”后,问题解决。
回复

使用道具 举报

381#
 楼主| 发表于 2012-2-27 13:03:49 | 显示全部楼层
哇,感谢Roy,解决了GCC 4.6编译grub4dos问题,不知编译外部命令能否解决?
回复

使用道具 举报

382#
 楼主| 发表于 2012-2-27 17:44:45 | 显示全部楼层
hotkey外部命令,有时会导致大小写不正常。应该有bug
表现在启动grub4dos后有时按C键不灵,Caps-Lock键按两下才正常。
但表现形式是偶然的,很难查。

[ 本帖最后由 zhaohj 于 2012-2-27 17:48 编辑 ]
回复

使用道具 举报

383#
 楼主| 发表于 2012-2-28 17:46:29 | 显示全部楼层
原帖由 Plantsoot 于 2012-2-28 15:15 发表
Colinux_TinyCoreLinux_grub4dos_dev.7z
MD5: FA11D60B45FEF4282DD9E0B640F39CF0

使用正常了,速度很快。
编译出来的grldr大小是266,531字节。


比较了一下,gcc4.5与gcc4.6编译后文件大小一致了。感谢roy,解决了长期编译困惑的问题。
回复

使用道具 举报

384#
 楼主| 发表于 2012-2-28 17:56:33 | 显示全部楼层
内存地址0x8280与0x82a0,都是4字节,下面calc是否有问题?

Snap1.jpg (23.4 KB, 下载次数: 152)

Snap1.jpg
回复

使用道具 举报

385#
 楼主| 发表于 2012-2-28 22:16:35 | 显示全部楼层
大多数情况下,我们只需要在32位下计算就可以了。
能否设计一个开关,使得只在32位下操作。
如calc /b *8280 得到0x21
不然得calc *0x8280 & 0xffffffff,很麻烦。
或者设计一个全局变量。
回复

使用道具 举报

386#
 楼主| 发表于 2012-2-29 12:35:46 | 显示全部楼层
原帖由 roytam1 于 2012-2-29 09:01 发表

只限tc吧
debian/ubuntu/fedora的gcc-4.6還是298KB


测试了一下debian版的gcc4.6.2编译出来是298KB,但引导是成功的。以前无法引导。
回复

使用道具 举报

387#
 楼主| 发表于 2012-2-29 13:13:50 | 显示全部楼层
debian版的gcc4.6.2编译出来266459(260kb),哇,小了。
wee的编译再看一下。
回复

使用道具 举报

388#
 楼主| 发表于 2012-2-29 15:55:55 | 显示全部楼层
svn co http://grubutils.googlecode.com/svn/wee wee
cd wee
make
下载版本是104
编译后wee63.mar大小是34725,超容量了啊?!

[ 本帖最后由 zhaohj 于 2012-2-29 15:57 编辑 ]
回复

使用道具 举报

389#
 楼主| 发表于 2012-2-29 20:51:26 | 显示全部楼层
见鬼了,还是这样

2011-06-27 (tinybit)In grub4dos.h, added API wee_skip_to, added the 2nd argument of "int" for API print_a_completion.
2011-06-26 (tinybit)corrected the return data type of grub_read from 32bit to 64bit to match the defination in grub4dos.h. also updated grub4dos.h.
2011-05-22 (Roy)fix wee127 stage2_size issue. (tinybit)fix find --active issue.
2011-05-21 added asm command and subcommands db/go to write/run machine code.
2011-05-18 added hexdump command. Its shortcut is Delete key leading the line.
2011-05-09 (Roy)packed up a snippet of code to form read_dbr().
2011-05-08 (Roy)supported Dell Real-Mode Kernel(DRMK) and ReactOS freeldr.
2011-05-06 move fat_dir to asm.S.
2011-04-30 move fat_read to asm.S.
2011-04-29 corrected the output message of root command.
2011-04-26 move fat_mount to asm.S.
2011-04-25 Makefile by Roy(-momit-leaf-frame-pointer to -fomit-frame-pointer).
2011-04-23 implemented a simplified map command for only whole-drive mappings.
2011-04-20 added wee127.mbr with the blocklist and map commands built in it.
2011-03-23 excluded NTFS short filenames.
2011-03-22 fixed a bug on case sensitivity in filename completion. added a new parameter "case_insensitive" to print_a_completion().
2011-03-19 fixed a bug on NTFS unicode filename handling. let unicode_to_utf8() return string length after convertion.
2011-03-06 add new find option --active to gain the active primary partition.
2011-03-04 set the current root device as the default boot device of grub.exe.
2011-02-25 fixed endless timeout 0 issue. let checkkey wait a timer interrupt.
2011-02-17 fixed a bug of "0xEA not properly restored" in realmode_run(asm.S).
2011-02-16 fixed a bug on stack checking in realmode_run(asm.S).
2011-02-01 prevent IO.SYS from wiping out int32-int3F.
2011-01-31 realmode .com style program support.
2011-01-14 add comments on how to alter the leading 0xEB for buggy Acer.
2011-01-07 (Roy)supported drbio.sys that is packed with pack101.
------------------------------------------------------------------------
r14 | Roy | 2010-12-26 09:03:13 +0800 (Sun, 26 Dec 2010) | 3 lines
wee-2010-12-25 import.
- makefile patch from http://bbs.znpc.net/viewthread.php?tid=5838&page=16&fromuid=14598#pid46984
- changed prototype of rawread to match Grub4DOS
------------------------------------------------------------------------
r13 | Roy | 2010-12-23 19:07:09 +0800 (Thu, 23 Dec 2010) | 1 line
remove intermediate file.
------------------------------------------------------------------------
r12 | Roy | 2010-12-19 18:37:09 +0800 (Sun, 19 Dec 2010) | 3 lines

[ 本帖最后由 zhaohj 于 2012-2-29 20:53 编辑 ]

Snap1.jpg (103.54 KB, 下载次数: 148)

Snap1.jpg
回复

使用道具 举报

390#
 楼主| 发表于 2012-3-1 08:22:25 | 显示全部楼层
v.105 debian版本与tc版本编译相同了,wee.mbr正好是63扇区。

Snap1.jpg (121.86 KB, 下载次数: 132)

Snap1.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-5 12:53

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表