installing on x86_64
Hello,
I fetched the latest sources from cvs and tried to install grub2. I followed the guide at the wiki http://grub.enbug.org/TestingOnX86.
'configure --prefix=/boot/grub2': works ok.
'make': ok
'sudo make install': complaints about missing file utils/grub.d/README. easy to overcome.
'sudo grub-install --grub-setup=/boot/grub/grub.cfg /dev/hda': there is no arg like '--grub-setup'. i used instead 'grub-install --root-directory=/boot/grub2/ /dev/hda' 'sudo grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/hda':
i get this error
'grub-setup: error: cannot stat /boot/grub2/boot.img'
so i copy boot.img to /boot/grub2. Then i get the same complaint about core.img which does not exist.
Any advice is welcome.
Thanks,
Constantine
Are you sure you did this on an x86-64 install. Current CVS still suffers from the not being able to properly compile on x86-64 systems. I am looking into it again now, but I think you may be mistaken in how you are using it? What distro & gcc version are you using ?
Quoted 30 lines · Constantine Kousoulos
Hello,
I fetched the latest sources from cvs and tried to install grub2. I followed the guide at the wiki http://grub.enbug.org/TestingOnX86.
'configure --prefix=/boot/grub2': works ok.
'make': ok
'sudo make install': complaints about missing file utils/grub.d/README. easy to overcome.
'sudo grub-install --grub-setup=/boot/grub/grub.cfg/dev/hda':
there is no arg like '--grub-setup'. i used instead 'grub-install --root-directory=/boot/grub2//dev/hda'
'sudo grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map/dev/hda':
i get this error
'grub-setup: error: cannot stat/boot/grub2/boot.img' so i copy boot.img to/boot/grub2. Then i get the same complaint about core.img which does not exist.Any advice is welcome.
Thanks,
Constantine_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
At Sat, 26 May 2007 18:14:23 -0500,
Quoted 3 lines · Jerone Young
Are you sure you did this on an x86-64 install. Current CVS still suffers from the not being able to properly compile on x86-64 systems.
It compiles fine here... are you sure your compiler can generate 32-bit code?
Jeroen Dekkers
Really..exactly waht distro and gcc version are you using. There is still lack for _start with compiling 32-bit binaries using gcc x86-64. I'm currently been testing on Fedora Core 7 beta and I see the problem consistently (though I do need to update it some). Others have reported the problem in the past also. What I do need to know is how you are successfully compiling it . Is your gcc version less then 4.x ?
Quoted 17 lines · Jeroen Dekkers
At Sat, 26 May 2007 18:14:23 -0500,
Quoted 3 lines · Jerone Young
Are you sure you did this on an x86-64 install. Current CVS still suffers from the not being able to properly compile on x86-64 systems.
It compiles fine here... are you sure your compiler can generate 32-bit code?
Jeroen Dekkers
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
At Sat, 26 May 2007 19:44:09 -0500,
Quoted 8 lines · Jerone Young
Really..exactly waht distro and gcc version are you using. There is still lack for
_startwith compiling 32-bit binaries using gcc x86-64. I'm currently been testing on Fedora Core 7 beta and I see the problem consistently (though I do need to update it some). Others have reported the problem in the past also. What I do need to know is how you are successfully compiling it . Is your gcc version less then 4.x ?
I'm using Debian, both gcc 4.1 and 4.2 works. Missing _start means that your compiler can't generate 32-bit programs. Test this first by compiling a simple test program (e.g. "int main (){return 0;}") using -m32. That probably doesn't result in a working executable either.
Jeroen Dekkers
Ok.. moving over to ubuntu (fiesty) it appears things do work (once you have all the 32bit shared libs installed). Wow... I was basically spinning my wheels for a bit there.
I don't appear to have a problem with the binaries though. I will show what I did:
1) ./configure --program-transform-name="s/grub/grub2/" --prefix=/usr (this will rename everything grub2 and not conflict with the current grub install)
2) make && make install
3) grub2-install /dev/sda
I did not reboot. But It ran grub2-install ran fine (and of course all the programs being tried, which the grub-install script uses) and it ran and when through the process just fine. I assume based on this the grub did install just fine (as it would have errored otherwise).
Quoted 24 lines · Jeroen Dekkers
At Sat, 26 May 2007 19:44:09 -0500,
Quoted 8 lines · Jerone Young
Really..exactly waht distro and gcc version are you using. There is still lack for
_startwith compiling 32-bit binaries using gcc x86-64. I'm currently been testing on Fedora Core 7 beta and I see the problem consistently (though I do need to update it some). Others have reported the problem in the past also. What I do need to know is how you are successfully compiling it . Is your gcc version less then 4.x ?I'm using Debian, both gcc 4.1 and 4.2 works. Missing
_startmeans that your compiler can't generate 32-bit programs. Test this first by compiling a simple test program (e.g. "int main (){return 0;}") using -m32. That probably doesn't result in a working executable either.Jeroen Dekkers
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Thank you for your reply. After so much time, i had totally given up on grub2.
I have a debian-amd64/unstable system running on a turion64 processor with gcc 4.1.3, autoconf 2.61 and automake 1.10.
I will try again to install grub2 using your instructions and report back.
Constantine
Jerone, thanks to your instructions grub2 was installed automagically!!
The only thing that wasn't set up automatically was grub.cfg but this is a minor issue to resolve.
Are there any objections to replace the wiki's inaccurate instructions at the section "TestingOnX86/Installing GRUB 2 into a real system" with Jerone's instructions? I assume he is too busy to do it himself so i volunteer. If i don't get any positive feedback i won't do it because i'm no grub2 expert and maybe you want someone more experienced to do it.
Thanks,
Constantine
Quoted 5 lines · Constantine Kousoulos
Jerone, thanks to your instructions grub2 was installed automagically!!
The only thing that wasn't set up automatically was grub.cfg but this is a minor issue to resolve.
You can use update-grub for that.
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.