Re: powerpc/sparc problems

2009-10-28 Thread David Miller
From: Felix Zielcke Date: Wed, 28 Oct 2009 11:24:58 +0100 > Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: >> David are you still there? >> And also anyone who has access to a powerpc machine (and experience)? >> >> In Debian we the problem that the `__ashldi3' and `__bswapsi2' sy

Re: powerpc/sparc problems

2009-10-28 Thread Felix Zielcke
Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: > David are you still there? > And also anyone who has access to a powerpc machine (and experience)? > > In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols > can't be found in the grub-ieee1275 build on powerpc and a

Re: powerpc/sparc problems

2009-10-26 Thread rubisher
Bean wrote: On Sun, Oct 25, 2009 at 11:22 PM, rubisher wrote: [snip] Hi, You shouldn't need scsi, which is used by ata module to access pci bus, but openfirmware would export the boot disk for you. Use these command: set debug=disk ls This should print some debug information in grub conso

Re: powerpc/sparc problems

2009-10-25 Thread Bean
On Sun, Oct 25, 2009 at 11:22 PM, rubisher wrote: > at least i didn't encountered anymore ofs panic but in grub rescue sheel > 'ls' just return an empty line; > I can just grab 'lsmod' info: > sh:grub> lsmod > Name    Ref Count       Dependencies > linux   1               boot,elf > elf     2    

Re: powerpc/sparc problems

2009-10-25 Thread rubisher
Bean wrote: On Sat, Oct 24, 2009 at 4:34 AM, rubisher wrote: [snip] As it seems that you have some experience with powerpc, may be can you advise me with some your tips (how did you build your image, a sample of one your menuentry?): I also tried to follow recipe of

Re: powerpc/sparc problems

2009-10-23 Thread Bean
On Sat, Oct 24, 2009 at 4:34 AM, rubisher wrote: > Bean wrote: >> >> On Thu, Oct 22, 2009 at 5:12 PM, rubisher wrote: On Thu, Oct 22, 2009 at 12:03 AM, rubisher wrote: > > Bean wrote: >> >> On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: >>> >>> David are y

Re: powerpc/sparc problems

2009-10-23 Thread rubisher
Bean wrote: On Thu, Oct 22, 2009 at 5:12 PM, rubisher wrote: On Thu, Oct 22, 2009 at 12:03 AM, rubisher wrote: Bean wrote: On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: David are you still there? And also anyone who has access to a powerpc machine (and experience)? In Debian we the

Re: powerpc/sparc problems

2009-10-22 Thread Bean
On Thu, Oct 22, 2009 at 5:12 PM, rubisher wrote: >> On Thu, Oct 22, 2009 at 12:03 AM, rubisher wrote: >> > Bean wrote: >> >> >> >> On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: >> >>> >> >>> David are you still there? >> >>> And also anyone who has access to a powerpc machine (and experien

Re: powerpc/sparc problems

2009-10-22 Thread rubisher
> On Thu, Oct 22, 2009 at 12:03 AM, rubisher wrote: > > Bean wrote: > >> > >> On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: > >>> > >>> David are you still there? > >>> And also anyone who has access to a powerpc machine (and experience)? > >>> > >>> In Debian we the problem that the `__ash

Re: powerpc/sparc problems

2009-10-21 Thread Bean
On Thu, Oct 22, 2009 at 12:03 AM, rubisher wrote: > Bean wrote: >> >> On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: >>> >>> David are you still there? >>> And also anyone who has access to a powerpc machine (and experience)? >>> >>> In Debian we the problem that the `__ashldi3' and `__bsw

Re: powerpc/sparc problems

2009-10-21 Thread rubisher
Bean wrote: On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: David are you still there? And also anyone who has access to a powerpc machine (and experience)? In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols can't be found in the grub-ieee1275 build on powerpc and als

Re: powerpc/sparc problems

2009-10-21 Thread rubisher
Hello Vladimir, Vladimir 'phcoder' Serbinenko wrote: rubisher wrote: Felix Zielcke wrote: Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: And also anyone who has access to a powerpc machine (and experience)? Oh and I forgot to mention, that the powerpc version doestn't even bu

Re: powerpc/sparc problems

2009-10-20 Thread Vladimir 'phcoder' Serbinenko
rubisher wrote: > Felix Zielcke wrote: >> Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: >> >>> And also anyone who has access to a powerpc machine (and experience)? >> >> Oh and I forgot to mention, that the powerpc version doestn't even build >> now with 1.97~beta4: >> >> _restgpr_

Re: powerpc/sparc problems

2009-10-20 Thread rubisher
Felix Zielcke wrote: Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: And also anyone who has access to a powerpc machine (and experience)? Oh and I forgot to mention, that the powerpc version doestn't even build now with 1.97~beta4: _restgpr_31_x in boot is not defined Full bu

Re: powerpc/sparc problems

2009-10-17 Thread Robert Millan
On Fri, Oct 16, 2009 at 09:21:36PM -0400, Pavel Roskin wrote: > On Fri, 2009-10-16 at 05:44 -0700, David Miller wrote: > > > > They worked perfectly fine for me on a real system with > > a real compiler and glibc. > > > > If you're going to use cross compilation to test, use > > a full cross tool

Re: powerpc/sparc problems

2009-10-17 Thread Vladimir 'phcoder' Serbinenko
Pavel Roskin wrote: > On Fri, 2009-10-16 at 05:44 -0700, David Miller wrote: > >> From: Pavel Roskin >> Date: Thu, 15 Oct 2009 18:41:41 -0400 >> >> >>> This makes me think that checks for __bswapsi2 and __bswapdi2 will fail >>> on Sparc64, even if those functions are present and even if >

Re: powerpc/sparc problems

2009-10-16 Thread Pavel Roskin
On Fri, 2009-10-16 at 05:44 -0700, David Miller wrote: > From: Pavel Roskin > Date: Thu, 15 Oct 2009 18:41:41 -0400 > > > This makes me think that checks for __bswapsi2 and __bswapdi2 will fail > > on Sparc64, even if those functions are present and even if > > --disable-werror is used. > > The

Re: powerpc/sparc problems

2009-10-16 Thread Pavel Roskin
Quoting David Miller : From: Pavel Roskin Date: Thu, 15 Oct 2009 18:41:41 -0400 This makes me think that checks for __bswapsi2 and __bswapdi2 will fail on Sparc64, even if those functions are present and even if --disable-werror is used. They worked perfectly fine for me on a real system w

Re: powerpc/sparc problems

2009-10-16 Thread David Miller
From: Pavel Roskin Date: Thu, 15 Oct 2009 18:41:41 -0400 > This makes me think that checks for __bswapsi2 and __bswapdi2 will fail > on Sparc64, even if those functions are present and even if > --disable-werror is used. They worked perfectly fine for me on a real system with a real compiler an

Re: powerpc/sparc problems

2009-10-15 Thread Pavel Roskin
On Thu, 2009-10-15 at 13:58 +0200, Vladimir 'phcoder' Serbinenko wrote: > The methods discussed in this thread are good but aren't for release. So > I just reverted Pavel's commit My cross-build for sparc64 fails now: __bswapsi2 in fat is not defined This can be traced to the following part of

Re: powerpc/sparc problems

2009-10-15 Thread Vladimir 'phcoder' Serbinenko
David Miller wrote: > From: Vladimir 'phcoder' Serbinenko > Date: Mon, 12 Oct 2009 12:26:04 +0200 > > >> It was removed as a part of following commit >> 2009-06-10 Pavel Roskin >> >> * configure.ac: Use -nostdlib when probing for the target. It >> should not be required to h

Re: powerpc/sparc problems

2009-10-14 Thread Robert Millan
On Mon, Oct 12, 2009 at 06:31:12PM +0800, Bean wrote: > On Mon, Oct 12, 2009 at 6:14 PM, David Miller wrote: > > > > Good luck when the compiler changes the interface and/or semantics of > > these routines in a future version. Will you enumerate your in-tree > > copies by gcc version with ifdefs

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Vladimir 'phcoder' Serbinenko Date: Mon, 12 Oct 2009 17:45:33 +0200 > Another idea: we could use nm to generate list of functions in libgcc. Yes, 'nm' would work too. ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/l

Re: powerpc/sparc problems

2009-10-12 Thread Pavel Roskin
On Mon, 2009-10-12 at 17:45 +0200, Vladimir 'phcoder' Serbinenko wrote: > On sparc64, ppc and mips we compile using -nostdlib -lgcc > -static-libgcc. I would prefer to use the same method in check and > actual compile. Ideally, we should use those flags on all architectures. -- Regards, Pavel Ro

Re: powerpc/sparc problems

2009-10-12 Thread Pavel Roskin
On Mon, 2009-10-12 at 03:28 -0700, David Miller wrote: > > Do you think we should just revert it? > > Probably. The purpose of the patch was to remove the requirement that the target libc development package is present. That's a common situation for x86_64 systems that may have a 32-bit capable

Re: powerpc/sparc problems

2009-10-12 Thread Vladimir 'phcoder' Serbinenko
Pavel Roskin wrote: > On Mon, 2009-10-12 at 03:28 -0700, David Miller wrote: > >>> Do you think we should just revert it? >>> >> Probably. >> > > The purpose of the patch was to remove the requirement that the target > libc development package is present. That's a common situation f

Re: powerpc/sparc problems

2009-10-12 Thread Bean
On Mon, Oct 12, 2009 at 7:07 PM, David Miller wrote: > From: Bean > Date: Mon, 12 Oct 2009 18:31:12 +0800 > >> To use the libgcc, we need to link the object file, this doesn't work >> in system that use non ELF format like mach-o. > > How can one even build programs in the mach-o format if linkin

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Bean Date: Mon, 12 Oct 2009 18:31:12 +0800 > To use the libgcc, we need to link the object file, this doesn't work > in system that use non ELF format like mach-o. How can one even build programs in the mach-o format if linking object files is not allowed? :-) If this is just for embedded

Re: powerpc/sparc problems

2009-10-12 Thread Bean
On Mon, Oct 12, 2009 at 6:14 PM, David Miller wrote: > From: Bean > Date: Mon, 12 Oct 2009 17:58:42 +0800 > >> Try my branch, it includes the libgcc functions in grub instead of >> rely on external library. It builds and run properly for >> powerpc-ieee1275 last time I check. > > Good luck when t

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Vladimir 'phcoder' Serbinenko Date: Mon, 12 Oct 2009 12:26:04 +0200 > It was removed as a part of following commit > 2009-06-10 Pavel Roskin > > * configure.ac: Use -nostdlib when probing for the target. It > should not be required to have libc for the target. > >

Re: powerpc/sparc problems

2009-10-12 Thread Felix Zielcke
Am Montag, den 12.10.2009, 11:56 +0200 schrieb Vladimir 'phcoder' Serbinenko: > How accurate is qemu-system-sparc64? The qemu status page says `Dev only' in red. Both Debian lenny and testing sparc isos don't boot. It hangs at `Welcome to OpenBIOS' With qemu-system-sparc the cd boots but then comp

Re: powerpc/sparc problems

2009-10-12 Thread Vladimir 'phcoder' Serbinenko
David Miller wrote: > From: Bean > Date: Mon, 12 Oct 2009 17:58:42 +0800 > > >> Try my branch, it includes the libgcc functions in grub instead of >> rely on external library. It builds and run properly for >> powerpc-ieee1275 last time I check. >> > > Good luck when the compiler changes t

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Bean Date: Mon, 12 Oct 2009 17:58:42 +0800 > Try my branch, it includes the libgcc functions in grub instead of > rely on external library. It builds and run properly for > powerpc-ieee1275 last time I check. Good luck when the compiler changes the interface and/or semantics of these routi

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Vladimir 'phcoder' Serbinenko Date: Mon, 12 Oct 2009 11:56:23 +0200 > How accurate is qemu-system-sparc64? We could have an automated > regression testing for it - this should keep grub-sparc reasonably > working and permit minor (and perhaps even major) developpement Personally, I don't k

Re: powerpc/sparc problems

2009-10-12 Thread Bean
On Mon, Oct 12, 2009 at 4:55 PM, Felix Zielcke wrote: > David are you still there? > And also anyone who has access to a powerpc machine (and experience)? > > In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols > can't be found in the grub-ieee1275 build on powerpc and also spar

Re: powerpc/sparc problems

2009-10-12 Thread Vladimir 'phcoder' Serbinenko
David Miller wrote: > From: Felix Zielcke > Date: Mon, 12 Oct 2009 10:55:46 +0200 > > >> And David we still have this sparc bug open, which I forwared to >> grub-devel: >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538030 >> > > I'm about to head to Tokyo for the Linux Kernel summit

Re: powerpc/sparc problems

2009-10-12 Thread Felix Zielcke
Am Montag, den 12.10.2009, 02:05 -0700 schrieb David Miller: > From: Felix Zielcke > Date: Mon, 12 Oct 2009 10:55:46 +0200 > > > And David we still have this sparc bug open, which I forwared to > > grub-devel: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538030 > > I'm about to head to T

Re: powerpc/sparc problems

2009-10-12 Thread Felix Zielcke
Am Montag, den 12.10.2009, 10:55 +0200 schrieb Felix Zielcke: > And also anyone who has access to a powerpc machine (and experience)? Oh and I forgot to mention, that the powerpc version doestn't even build now with 1.97~beta4: _restgpr_31_x in boot is not defined Full build log is here: https:

Re: powerpc/sparc problems

2009-10-12 Thread Vladimir 'phcoder' Serbinenko
Felix Zielcke wrote: > David are you still there? > And also anyone who has access to a powerpc machine (and experience)? > > In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols > can't be found in the grub-ieee1275 build on powerpc and also sparc. > > I've come across the sam

Re: powerpc/sparc problems

2009-10-12 Thread David Miller
From: Felix Zielcke Date: Mon, 12 Oct 2009 10:55:46 +0200 > And David we still have this sparc bug open, which I forwared to > grub-devel: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538030 I'm about to head to Tokyo for the Linux Kernel summit and the Japan Linux Symposium so I'll be out

powerpc/sparc problems

2009-10-12 Thread Felix Zielcke
David are you still there? And also anyone who has access to a powerpc machine (and experience)? In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols can't be found in the grub-ieee1275 build on powerpc and also sparc. Jordi already noticed this with the 1.96+20090721-4 IIRC and