无忧启动论坛

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

GRUB4DOS更新建议、bug反馈专帖

    [复制链接]
2431#
发表于 2012-2-27 16:03:56 | 只看该作者

回复 #2434 chenall 的帖子

checking for gcc... (cached) gcc
checking whether the C compiler works... no
configure: error: in `/home/dev/grub4dos_src/grub4dos-temp':
configure: error: C compiler cannot create executables
See `config.log' for more details
dev@g4d:~/grub4dos_src$ tce-load -wi gcc
gcc is already installed!

奇怪了。说已经安装了,是不是要先卸载4.5?
回复

使用道具 举报

2432#
发表于 2012-2-27 17:27:29 | 只看该作者

回复 #2435 Plantsoot 的帖子

你可以重启试一下。

另外我已经上传GCC4.6的版本
Colinux_TinyCoreLinux_grub4dos_dev.7z
MD5: FA11D60B45FEF4282DD9E0B640F39CF0
下载:http://www.ctdisk.com/file/4946481
回复

使用道具 举报

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

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

使用道具 举报

2434#
发表于 2012-2-27 22:23:39 | 只看该作者
原帖由 zhaohj 于 2012-2-27 17:44 发表
hotkey外部命令,有时会导致大小写不正常。应该有bug
表现在启动grub4dos后有时按C键不灵,Caps-Lock键按两下才正常。
但表现形式是偶然的,很难查。



的确有这种情况。
其实此时快捷键有时不灵,当然几率不大。
还有一个较明显的表现是启动后马上进入命令行,敲入命令,有时会发现此时命令是大写的。但执行个一两次后,再敲命令,又变回小写了。
回复

使用道具 举报

2435#
发表于 2012-2-28 11:06:31 | 只看该作者
grub4dos-0.4.6a-2012-02-27.7z 下载时 Nod32 提示TSR.BOOT病毒直接干掉……
只好用grub4dos-0.4.5c-2012-02-27.7z
回复

使用道具 举报

2436#
发表于 2012-2-28 12:02:07 | 只看该作者
原帖由 U5558 于 2012-2-28 11:06 发表
grub4dos-0.4.6a-2012-02-27.7z 下载时 Nod32 提示TSR.BOOT病毒直接干掉……
只好用grub4dos-0.4.5c-2012-02-27.7z

NOD不意外。
回复

使用道具 举报

2437#
发表于 2012-2-28 15:15:42 | 只看该作者

回复 #2436 chenall 的帖子

Colinux_TinyCoreLinux_grub4dos_dev.7z
MD5: FA11D60B45FEF4282DD9E0B640F39CF0

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

使用道具 举报

2438#
 楼主| 发表于 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,解决了长期编译困惑的问题。
回复

使用道具 举报

2439#
 楼主| 发表于 2012-2-28 17:56:33 | 只看该作者
内存地址0x8280与0x82a0,都是4字节,下面calc是否有问题?

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

Snap1.jpg
回复

使用道具 举报

2440#
发表于 2012-2-28 20:05:42 | 只看该作者
印象中read是按4字节处理,calc是按8字节处理的吧。
回复

使用道具 举报

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

使用道具 举报

2442#
发表于 2012-2-29 09:01:29 | 只看该作者
原帖由 zhaohj 于 2012-2-28 17:46 发表


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

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

[ 本帖最后由 roytam1 于 2012-2-29 09:05 编辑 ]
回复

使用道具 举报

2443#
 楼主| 发表于 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,但引导是成功的。以前无法引导。
回复

使用道具 举报

2444#
发表于 2012-2-29 12:45:38 | 只看该作者
原帖由 zhaohj 于 2012-2-29 12:35 发表


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

變大的問題乃 .eh_frame, .eh_frame_hdr ELF section 礙事之故,修正已提交 svn。
回复

使用道具 举报

2445#
 楼主| 发表于 2012-2-29 13:13:50 | 只看该作者
debian版的gcc4.6.2编译出来266459(260kb),哇,小了。
wee的编译再看一下。
回复

使用道具 举报

2446#
发表于 2012-2-29 14:20:58 | 只看该作者
原帖由 zhaohj 于 2012-2-29 13:13 发表
debian版的gcc4.6.2编译出来266459(260kb),哇,小了。
wee的编译再看一下。

wee也用同樣方法處置。
http://code.google.com/p/grubutils/source/detail?r=104
回复

使用道具 举报

2447#
 楼主| 发表于 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 编辑 ]
回复

使用道具 举报

2448#
发表于 2012-2-29 16:12:18 | 只看该作者

回复 #2450 roytam1 的帖子

wee应该用grubutils目录下的那个

http://grubutils.googlecode.com/svn/grubutils/wee
回复

使用道具 举报

2449#
 楼主| 发表于 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, 下载次数: 165)

Snap1.jpg
回复

使用道具 举报

2450#
发表于 2012-2-29 21:08:48 | 只看该作者

回复 #2453 zhaohj 的帖子

我在TCL(Tiny Core Linux)下4.6.1编译正常。debian没有试。

你可以先用TCL试试。
回复

使用道具 举报

2451#
发表于 2012-2-29 22:50:25 | 只看该作者
確定是從 http://grubutils.googlecode.com/svn/grubutils/wee checkout 嗎?
我這邊是正常。

  1. roy@debian:/mnt/f/jatf/grubutils-ext/wee$ make clean
  2. rm -f ./*.o ./wee63start ./pre_stage2
  3. make WEE127=1 clean
  4. make[1]: Entering directory `/mnt/f/jatf/grubutils-ext/wee'
  5. rm -f wee127/*.o wee127/wee63start wee127/pre_stage2
  6. rm -f wee127/wee63.mbr
  7. make[1]: Leaving directory `/mnt/f/jatf/grubutils-ext/wee'
  8. roy@debian:/mnt/f/jatf/grubutils-ext/wee$ make
  9. make: Warning: File `wee63.mbr' has modification time 2.8e+04 s in the future
  10. gcc  -c asm.S -o ./asm.o
  11. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef  -c builtins.c -o ./builtins.o
  12. builtins.c: In function 'map_func':
  13. builtins.c:1210:8: warning: variable 'p' set but not used [-Wunused-but-set-variable]
  14. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef  -c disk_io.c -o ./disk_io.o
  15. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef  -c fsys_ext2fs.c -o ./fsys_ext2fs.o
  16. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef  -c fsys_fat.c -o ./fsys_fat.o
  17. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef  -c fsys_ntfs.c -o ./fsys_ntfs.o
  18. gcc -o pre_stage2 -nostdlib -Wl,-N -Wl,-Ttext -Wl,308200 -Wl,-N  -Wl,--build-id=none ./asm.o ./builtins.o ./disk_io.o ./fsys_ext2fs.o ./fsys_fat.o ./fsys_ntfs.o
  19. objcopy -O binary pre_stage2
  20. echo -n -e "\0260\002\032\0316" >> pre_stage2
  21. gcc  -c wee63start.S -o ./wee63start.o
  22. objcopy -O binary wee63start.o wee63start
  23. rm -f ./wee63.mbr
  24. echo -n -e "\000\000\000\000\000\000\000\000\000\000\000\000" | cat ./wee63start ./pre_stage2 - > ./wee63.mbr
  25. if [ -f ./preset_menu_used ]; then echo -n -e "\000" | cat ./preset_menu_used - >> ./wee63.mbr ;fi
  26. make WEE127=1 BUILDIDUNSUPPORTTED=0 wee127/wee63.mbr
  27. make[1]: Entering directory `/mnt/f/jatf/grubutils-ext/wee'
  28. gcc -DMBRSECTORS127 -c asm.S -o wee127/asm.o
  29. make[1]: Warning: File `builtins.c' has modification time 2.3e+04 s in the future
  30. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef -DMBRSECTORS127 -c builtins.c -o wee127/builtins.o
  31. builtins.c: In function 'map_func':
  32. builtins.c:3381:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  33. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef -DMBRSECTORS127 -c disk_io.c -o wee127/disk_io.o
  34. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef -DMBRSECTORS127 -c fsys_ext2fs.c -o wee127/fsys_ext2fs.o
  35. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef -DMBRSECTORS127 -c fsys_fat.c -o wee127/fsys_fat.o
  36. gcc -Os -fno-stack-protector -fno-builtin -mpreferred-stack-boundary=2 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdinc -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -Wundef -DMBRSECTORS127 -c fsys_ntfs.c -o wee127/fsys_ntfs.o
  37. gcc -o wee127/pre_stage2 -nostdlib -Wl,-N -Wl,-Ttext -Wl,308200 -Wl,-N  -Wl,--build-id=none wee127/asm.o wee127/builtins.o wee127/disk_io.o wee127/fsys_ext2fs.o wee127/fsys_fat.o wee127/fsys_ntfs.o
  38. objcopy -O binary wee127/pre_stage2
  39. echo -n -e "\0260\002\032\0316" >> wee127/pre_stage2
  40. gcc -DMBRSECTORS127 -c wee63start.S -o wee127/wee63start.o
  41. objcopy -O binary wee127/wee63start.o wee127/wee63start
  42. rm -f wee127/wee63.mbr
  43. echo -n -e "\000\000\000\000\000\000\000\000\000\000\000\000" | cat wee127/wee63start wee127/pre_stage2 - > wee127/wee63.mbr
  44. if [ -f ./preset_menu_used ]; then echo -n -e "\000" | cat ./preset_menu_used - >> wee127/wee63.mbr ;fi
  45. make[1]: warning:  Clock skew detected.  Your build may be incomplete.
  46. make[1]: Leaving directory `/mnt/f/jatf/grubutils-ext/wee'
  47. cp wee127/wee63.mbr wee127.mbr
  48. make: warning:  Clock skew detected.  Your build may be incomplete.
  49. roy@debian:/mnt/f/jatf/grubutils-ext/wee$ ls -l *.mbr
  50. -rwxr-xr-x 1 roy roy 61939 Feb 29 14:51 wee127.mbr*
  51. -rwxr-xr-x 1 roy roy 31835 Feb 29  2012 wee63.mbr*
  52. roy@debian:/mnt/f/jatf/grubutils-ext/wee$ gcc -v
  53. Using built-in specs.
  54. COLLECT_GCC=gcc
  55. COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.6/lto-wrapper
  56. Target: i486-linux-gnu
  57. Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-12' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
  58. Thread model: posix
  59. gcc version 4.6.2 (Debian 4.6.2-12)
  60. roy@debian:/mnt/f/jatf/grubutils-ext/wee$ ld --version
  61. GNU ld (GNU Binutils for Debian) 2.22
  62. Copyright 2011 Free Software Foundation, Inc.
  63. This program is free software; you may redistribute it under the terms of
  64. the GNU General Public License version 3 or (at your option) a later version.
  65. This program has absolutely no warranty.
  66. roy@debian:/mnt/f/jatf/grubutils-ext/wee$
复制代码

[ 本帖最后由 roytam1 于 2012-2-29 22:52 编辑 ]
回复

使用道具 举报

2452#
 楼主| 发表于 2012-3-1 08:22:25 | 只看该作者
v.105 debian版本与tc版本编译相同了,wee.mbr正好是63扇区。

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

Snap1.jpg
回复

使用道具 举报

2453#
发表于 2012-3-1 09:01:03 | 只看该作者
请教C大看到http://code.google.com/p/grub4dos-chenall/downloads/list 上面2012-02-27日同时上了grub4dos-0.4.5c和grub4dos-0.4.6a两个版本,里面的更新日志也一样,不知道这两个有什么区别啊?
回复

使用道具 举报

2454#
发表于 2012-3-1 09:11:37 | 只看该作者
回复

使用道具 举报

2455#
发表于 2012-3-1 13:12:18 | 只看该作者

回复 #2456 zhaohj 的帖子

这是正常的啊。还没有超过63个扇区。
回复

使用道具 举报

2456#
 楼主| 发表于 2012-3-1 13:46:39 | 只看该作者
原帖由 chenall 于 2012-3-1 13:12 发表
这是正常的啊。还没有超过63个扇区。


嗯,现在正常了。Roy已经修改过了,debian、tc及其他版本用gcc4.6编译现在都正常了(wee也在规定容量范围)。
回复

使用道具 举报

2457#
发表于 2012-3-2 09:57:51 | 只看该作者
最新版的编译环境,直接解压,然后在E:创建一个目录E:\colinux,就可以使用 吗?
我怎么下载后,快速启动只一闪就没了。


[ 本帖最后由 mygamexxx 于 2012-3-2 10:01 编辑 ]
回复

使用道具 举报

2458#
发表于 2012-3-2 10:53:11 | 只看该作者

回复 #2461 mygamexxx 的帖子

你的电脑之前有装过colinux不同的版本吗?要不然就是被杀毒软件之类的阻止了。

可以在用记事本打开快速启动的批处理

del %sys%.pid
后面添加一行pause就可以看到出错信息了
回复

使用道具 举报

2459#
发表于 2012-3-2 13:36:41 | 只看该作者
安装过前一个版本的编译环境。



[ 本帖最后由 mygamexxx 于 2012-3-2 13:41 编辑 ]
回复

使用道具 举报

2460#
发表于 2012-3-2 15:38:23 | 只看该作者

回复 #2463 mygamexxx 的帖子

可能是很早之前的吧,如果是最近的版本应该都是一样的。

试试这里的解决方法
http://bbs.wuyou.net/forum.php?m ... page=239#pid2381516
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-9-28 01:21

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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