Skip to contentSkip to conversation

Grub2 svn2059

DISCUSSION BandiPat 5 participants 15 messages Apr 2, 2009 – Apr 6, 2009

lore
Share & tools
lore

BandiPat

author
#0 lore raw

Hi guys,
Help a Grub2 novice out please. I try to keep up with most of the changes you guys make, but I've either missed something or there is a problem with the latest svn release, listed in the subject.

Upon building the package for Zenwalk, installing, then running grub-install, I rebooted the machine to test. I got the "Welcome to Grub2" then an error!
error: the symbol 'grub_command_list not found
Entering Rescue mode...

What happened? Did I fail to build it correctly? Is this an actual error or failing with Grub2 svn2059? Do I need to change something in the grub.cfg? I await your instructions.

TIA
Pat

Signature · 3 lines
       ---Zenwalk v6.0--Linux 2.6.28---
        Registered Linux User #225206
"Ever tried Zen computing?"  http://www.zenwalk.org
#1 lore raw
Quoted 4 lines · BandiPat

Hi guys,
Help a Grub2 novice out please. I try to keep up with most of the changes you guys make, but I've either missed something or there is a problem with the latest svn release, listed in the subject.

Why are you writing that? Did any previous revision work for you?

Quoted 5 lines

Upon building the package for Zenwalk, installing, then running grub-install, I rebooted the machine to test. I got the "Welcome to Grub2" then an error!
error: the symbol 'grub_command_list not found
Entering Rescue mode...

I cannot reproduce that problem with revision 2059. Please give details how exactly you built and installed GRUB.

Quoted 1 line

What happened?

GRUB cannot find some module, probably "minicmd". Please post the output of "ls" and "set". Perhaps "prefix" points to an undetected device.

Quoted 1 line

Did I fail to build it correctly?

I don't know. You message doesn't indicate any build failures.

Quoted 2 lines

Is this an actual
error or failing with Grub2 svn2059?

I don't understand your question.

Quoted 2 lines

Do I need to change something in
the grub.cfg? I await your instructions.

It looks like the failure happens before grub.cfg is loaded, so the contents of grub.cfg is irrelevant at that stage.

Signature · 2 lines
Regards,
Pavel Roskin
author
#2 lore raw
Quoted 5 lines · Pavel Roskin
Quoted 2 lines · BandiPat

Hi guys,
Help a Grub2 novice out please. I try to keep up with most of the changes you guys make, but I've either missed something or there is a problem with the latest svn release, listed in the subject.

Why are you writing that? Did any previous revision work for you?

-------
Sure, presently using svn2031 and have had no problems like this with any other previous build.

Quoted 8 lines
Quoted 4 lines

Upon building the package for Zenwalk, installing, then running grub-install, I rebooted the machine to test. I got the "Welcome to Grub2" then an error!
error: the symbol 'grub_command_list not found
Entering Rescue mode...

I cannot reproduce that problem with revision 2059. Please give details how exactly you built and installed GRUB.
-----------

I can include my build script, if that will help you determine the problem. I can assure you though the only changes I made in the script from 2031 to 2059 was the version number though. Installation was standard "upgradepkg", then I ran grub-install (device). Could it be that something didn't copy over? I'm using ext3 filesystem, where I was using xfs, but again 2031 works fine.

Quoted 6 lines
Quoted 1 line

What happened?

GRUB cannot find some module, probably "minicmd". Please post the output of "ls" and "set". Perhaps "prefix" points to an undetected device.
--------

I didn't write that down when testing 2059 and cannot remember the output of either, sorry.

Quoted 4 lines
Quoted 1 line

Did I fail to build it correctly?

I don't know. You message doesn't indicate any build failures.
========

I ask this in case there was something else I needed to include in the ./configure I may have left out. One thing I'll mention, but I don't believe it plays a part, is that we just started using the latest gcc 4.3.3?

Quoted 3 lines

It looks like the failure happens before grub.cfg is loaded, so the contents of grub.cfg is irrelevant at that stage.

--------
Ok, so either something failed to compile or I built it incorrectly.
Included find the build text, which may be of help. I did not see any
errors. The mail list wouldn't take the large text file, so I'll post it on my download site for you to grab with the build script.
http://zenwalk.pinguix.com/user-accounts/BandiPat/files,etc/build-grub2.sh
http://zenwalk.pinguix.com/user-accounts/BandiPat/files,etc/grub2-svn2059-build.txt

thanks again,
Pat

author
#3 lore raw
In reply to Pavel Roskin
Quoted 5 lines · Pavel Roskin
Quoted 1 line

What happened?

GRUB cannot find some module, probably "minicmd". Please post the output of "ls" and "set". Perhaps "prefix" points to an undetected device.

=======
Just recompiled Grub2-svn2059 with some changes, I thought might have been causing my particular problem, but it still will not work. Here are the results of the above question.

ls
(hd0) (hd0,1) (hd0,2) (hd0,3) (hd0,4) (fd0)

set
root=hd0,2

lsmod
pc 1
ext2 1 fshelp
fshelp 2
biosdisk 1

Hope that helps. Need any further info, hardware, etc. please let me know.

Pat

#4 lore raw

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod
So maybe your build script needs to be adjusted for that, to copy that one to the right place? Not familiar with grub2 booting on i386/bios though anymore, so just a guess.

Quoted 35 lines · BandiPat
Quoted 5 lines · Pavel Roskin
Quoted 1 line

What happened?

GRUB cannot find some module, probably "minicmd".  Please post the output of "ls" and "set".  Perhaps "prefix" points to an undetected device.

=======
Just recompiled Grub2-svn2059 with some changes, I thought might have been causing my particular problem, but it still will not work.  Here are the results of the above question.

ls
(hd0) (hd0,1) (hd0,2) (hd0,3) (hd0,4) (fd0)

set
root=hd0,2

lsmod
pc   1
ext2  1        fshelp
fshelp 2
biosdisk  1

Hope that helps.  Need any further info, hardware, etc. please let me know.

Pat

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

author
#5 lore raw
Quoted 5 lines · step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod
So maybe your build script needs to be adjusted for that, to copy that one to the right place? Not familiar with grub2 booting on i386/bios though anymore, so just a guess.

------------
This could be a very good guess on your part! Looking at the 2031 build, I see the boot.mod, but do not see that in the 2059 build. So how should this be handled in the build? Add a symlink to minicmd.mod with a boot.mod or something else. Shouldn't the new Grub2 know to look at minicmd.mod instead of boot.mod?

I'll try with the symlink to test your theory, but this seems like a bug to me, if that is the case?

...still testing
Pat

#6 lore raw

yes, it probably should. i know that when creating an efi image for an efi based system with grub-mkimage you specify the modules, so it gets specified there, on a bios system I'm not sure. I don't think a symlink is the right solution.Did you run autogen.sh after updating? What might also work is to re-check out grub to a seperate directory, and try if that works.

Quoted 29 lines · BandiPat
Quoted 6 lines · step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod
So maybe your build script needs to be adjusted for that, to copy that one to the right place? Not familiar with grub2 booting on i386/bios though anymore, so just a guess.

------------
This could be a very good guess on your part!  Looking at the 2031 build, I see the boot.mod, but do not see that in the 2059 build.  So how should this be handled in the build?  Add a symlink to minicmd.mod with a boot.mod or something else.  Shouldn't the new Grub2 know to look at minicmd.mod instead of boot.mod?

I'll try with the symlink to test your theory, but this seems like a bug to me, if that is the case?

...still testing
Pat

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

author
#7 lore raw
Quoted 6 lines · step21 wrote:

yes, it probably should. i know that when creating an efi image for an efi based system with grub-mkimage you specify the modules, so it gets specified there, on a bios system I'm not sure. I don't think a symlink is the right solution.Did you run autogen.sh after updating? What might also work is to re-check out grub to a seperate directory, and try if that works.

-----------

Shouldn't the autogen.sh be run during the build? How do you mean re-check out grub to a separate directory? Just drop it in another unrelated directory and use the commands to run it testing the setup. Sorry don't remember exactly the commands right now, but I've got that somewhere in notes. :-)

I guess when it goes into rescue mode, I could "insmod minicmd.mod" to test as well?

Thanks for your patience & help.

Pat

#8 lore raw
In reply to step21
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Regards,
Okuji

author
#9 lore raw
Quoted 8 lines · Yoshinori K. Okuji
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Regards,
Okuji

-----------
In the meantime, how do we get the new svn to work then? Is there some trick or something in the compile we need to do? Presently I'm using svn2031 successfully.

Thanks
Pat

#10 lore raw
Quoted 9 lines · On Saturday 04 April 2009 04:02:18 BandiPat wrote:
Quoted 8 lines · Yoshinori K. Okuji
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Quoted 7 lines
Quoted 2 lines

Regards,
Okuji

-----------
In the meantime, how do we get the new svn to work then? Is there some trick or something in the compile we need to do? Presently I'm using svn2031 successfully.

I guess you just have some outdated files. As "make" depends on timestamps, checking out from any kind of version control system can confuse "make". Try "make clean all".

Regards,
Okuji

author
#11 lore raw
Quoted 16 lines · Yoshinori K. Okuji
Quoted 8 lines · On Saturday 04 April 2009 04:02:18 BandiPat wrote:
Quoted 7 lines · Yoshinori K. Okuji
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Quoted 6 lines
Quoted 2 lines

Regards,
Okuji

-----------
In the meantime, how do we get the new svn to work then? Is there some trick or something in the compile we need to do? Presently I'm using svn2031 successfully.

Quoted 4 lines

I guess you just have some outdated files. As "make" depends on timestamps, checking out from any kind of version control system can confuse "make". Try "make clean all".

Regards,
Okuji

-------------
No, no outdated files. I download svn fresh and build from the fresh download. I build a package for Zenwalk, so it's easily installed or removed. There is never any need to "make clean all" due to the fact I'm not using the same unarchived directory.

I normally remove grub from the system before installing the new, so that no old files are left behind. From what I can see from testing, there is a bug in 2059. What that is, I'm afraid I don't know, but am hoping you guys will clear it up soon.

thanks,
Pat

Signature · 3 lines
       ---Zenwalk v6.0--Linux 2.6.28---
        Registered Linux User #225206
"Ever tried Zen computing?"  http://www.zenwalk.org
#12 lore raw
Quoted 21 lines · BandiPat
Quoted 16 lines · Yoshinori K. Okuji
Quoted 8 lines · On Saturday 04 April 2009 04:02:18 BandiPat wrote:
Quoted 7 lines · Yoshinori K. Okuji
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Quoted 6 lines
Quoted 2 lines

Regards,
Okuji

-----------
In the meantime, how do we get the new svn to work then? Is there some trick or something in the compile we need to do? Presently I'm using svn2031 successfully.

Quoted 4 lines

I guess you just have some outdated files. As "make" depends on timestamps, checking out from any kind of version control system can confuse "make". Try "make clean all".

Regards,
Okuji

Quoted 8 lines

-------------
No, no outdated files. I download svn fresh and build from the fresh download. I build a package for Zenwalk, so it's easily installed or removed. There is never any need to "make clean all" due to the fact I'm not using the same unarchived directory.

I normally remove grub from the system before installing the new, so that no old files are left behind. From what I can see from testing, there is a bug in 2059. What that is, I'm afraid I don't know, but am hoping you guys will clear it up soon.

thanks,
Pat

Have you re-run grub-setup?

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
author
#13 lore raw
Quoted 2 lines · phcoder

Have you re-run grub-setup?

------
No, I've never run grub-setup after an install, only grub-install & grub-mkconfig. What will that program do? I tried to read the man page, but it gave me an error.

Pat

Signature · 3 lines
       ---Zenwalk v6.0--Linux 2.6.28---
        Registered Linux User #225206
"Ever tried Zen computing?"  http://www.zenwalk.org
author
#14 lore raw
In reply to Yoshinori K. Okuji
Quoted 16 lines · Yoshinori K. Okuji
Quoted 8 lines · On Saturday 04 April 2009 04:02:18 BandiPat wrote:
Quoted 7 lines · Yoshinori K. Okuji
Quoted 2 lines · On Friday 03 April 2009 14:17:04 step21 wrote:

Hey, just a wild guess, but I think boot.mod got dropped and the boot command is now included in minicmd.mod

Yes, it seems so. And, it is a mistake that boot and some other commands are not built into the kernel. We must reduce modules, and let them back to the kernel.

Quoted 6 lines
Quoted 2 lines

Regards,
Okuji

-----------
In the meantime, how do we get the new svn to work then? Is there some trick or something in the compile we need to do? Presently I'm using svn2031 successfully.

Quoted 4 lines

I guess you just have some outdated files. As "make" depends on timestamps, checking out from any kind of version control system can confuse "make". Try "make clean all".

Regards,
Okuji

______________________________________________

Well, devs, I am making some advancements with the new svn versions. I just did a brand new fresh install to a test computer which had LILO installed as default. I first installed svn2059 for testing, which worked! I then did an upgrade to svn2065 afterwards, ran the grub-install command to replace all the files in /boot/grub.

Each time I've run or re-run grub-install though, I get this error.
grub-setup: error: cannot read '/boot/grub/core.img' correctly

Someone enlighten me as to what might be causing that? Otherwise, things are looking favorable for Grub2 being okay, but I'm not letting you devs off until I do a bit more testing. :-)

Regards,
Pat