Frank Wille | 3 Mar 21:08 2011
Picon

DSI traps in init caused by new ld.elf_so

Hi,

I finally found the problem which caused the DSI traps in userland binaries
since the 10th of February.

The following part of rtld_start.S:

        /*
         * Instead of division which is costly we will use multiplicative
         * inverse.  a / n = ((a * inv(n)) >> 32)  
         * where inv(n) = (0x100000000 + n - 1) / n
         */
        mr      %r0,%r11
        lis     %r11,0x10000000b/12 <at> h   # load multiplicative inverse of 12
        ori     %r11,%r11,0x10000000b/12 <at> l
        mulhwu  %r11,%r11,%r0           # get high half of multiplication

...is assembled as:
    2264:       7d 60 5b 78     mr      r0,r11   
    2268:       3d 60 00 00     lis     r11,0
    226c:       61 6b 00 00     ori     r11,r11,0 
    2270:       7d 6b 00 16     mulhwu  r11,r11,r0

And the following warning are shown by the assembler on a 32-bit system:

rtld_start.S:97: Warning: left operand is a bignum; integer 0 assumed
rtld_start.S:98: Warning: left operand is a bignum; integer 0 assumed 

This explains why the daily builds do work, but all of my private builds
failed with DSI-traps. The build server is a 64-bit system, and I tried it
(Continue reading)

Michael | 4 Mar 04:21 2011
Picon

Re: DSI traps in init caused by new ld.elf_so


Hello,

On Mar 3, 2011, at 3:08 PM, Frank Wille wrote:

> I finally found the problem which caused the DSI traps in userland  
> binaries
> since the 10th of February.
>
> The following part of rtld_start.S:
>
>        /*
>         * Instead of division which is costly we will use  
> multiplicative
>         * inverse.  a / n = ((a * inv(n)) >> 32)
>         * where inv(n) = (0x100000000 + n - 1) / n
>         */
>        mr      %r0,%r11
>        lis     %r11,0x10000000b/12 <at> h   # load multiplicative inverse  
> of 12
>        ori     %r11,%r11,0x10000000b/12 <at> l
>        mulhwu  %r11,%r11,%r0           # get high half of  
> multiplication
>
> ...is assembled as:
>    2264:       7d 60 5b 78     mr      r0,r11
>    2268:       3d 60 00 00     lis     r11,0
>    226c:       61 6b 00 00     ori     r11,r11,0
>    2270:       7d 6b 00 16     mulhwu  r11,r11,r0
>
(Continue reading)

Konstantin Felix Madeheim | 15 Mar 12:52 2011
Picon

Re: about Pegasos1 (april fix 2) support

FWIW, I also still own a Pegasos 1 (256 Megs, Radeon 7000) that was  
given to me by Christian Krenner in 2005. Only tried MorphOS, Debian,  
OpenSolaris & OpenBSD (the latter two not working, of course).
I may be able to donate some time to NetBSD kernel boot testing &  
dmesg via serial console if supplied with kernel images...

-- 
K. F. Madeheim
<stanmade <at> gmail.com>

On Mar 15, 2011, at 9:30, Frank Wille <frank <at> phoenix.owl.de> wrote:

> On Mon, 14 Mar 2011 23:05:18 +0100
> nello martuscielli <ppc.addon <at> gmail.com> wrote:
>
>> is there a chance to use an old Genesi Pegasos1 G3 600MHz (IBM
>> PowerpPC 750Cxe) ?
>
> Yes, of course! I'm looking since years for somebody who owns a  
> Pegasos1.
> I even asked on MorphZone without getting any reaction.
>
> If you want to help and have the time and knowledge to test some  
> kernels,
> we can try to adapt it for the Pegasos1. Just contact me.
>
> Regards,
>
> -- 
> Frank Wille
(Continue reading)

Frank Wille | 15 Mar 18:49 2011
Picon

Re: about Pegasos1 (april fix 2) support

Konstantin Felix Madeheim wrote:

> FWIW, I also still own a Pegasos 1 (256 Megs, Radeon 7000) that was  
> given to me by Christian Krenner in 2005. Only tried MorphOS, Debian,  
> OpenSolaris & OpenBSD (the latter two not working, of course).
> I may be able to donate some time to NetBSD kernel boot testing &  
> dmesg via serial console if supplied with kernel images...

Thanks. Will contact you privately for more information.

--

-- 
Frank Wille

mindentropy | 22 Mar 16:21 2011
Picon

NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

Hi All,

    I have a IBM 405GP evaluation board and I tried installing NetBSD on it. 
NetBSD boots the walnut image properly and I am prompted for a boot 
device(seletected emac0) and root filesystem(selected nfs). After that it gives 
me the correct information of the ip address of the device etc and ip and nfs 
information of the server. After that it gives a warning of no /dev/console. 
It prompts for a /sbin/init execution. After I return it just hangs there.

To debug I tried to see what files its pulling from NFS and the last file it 
queries and fails is libc.so.

The whole problem described above happens in version 5.1

I tried other versions too and went down to 3.0. In release 3.0 it does not 
take any keyboard input for some reason. 4.0 suffers the same problem but I 
could see MAKEDEV getting requested from NFS.

Please provide some hints on fixing this. Cross posted here since I am not sure 
whether of-ppc mailing list is where I have to post.

Thanks.

Allen Briggs | 22 Mar 16:49 2011
Picon

Re: NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

On Tue, Mar 22, 2011 at 08:51:47PM +0530, mindentropy wrote:
>     I have a IBM 405GP evaluation board and I tried installing NetBSD on it. 
> NetBSD boots the walnut image properly and I am prompted for a boot 
> device(seletected emac0) and root filesystem(selected nfs). After that it
> gives me the correct information of the ip address of the device etc and ip
> and nfs 
> information of the server. After that it gives a warning of no /dev/console. 
> It prompts for a /sbin/init execution. After I return it just hangs there.

I vaguely recall that you might need to limit the NFS read/write size to
1k for some reason.

Have you tried with
options 	NFS_BOOT_RWSIZE=1024

in your kernel config file?

-allen

--

-- 
Allen Briggs  -  briggs <at> ninthwonder.com

Eduardo Horvath | 22 Mar 17:28 2011
Picon

Re: NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

On Tue, 22 Mar 2011, mindentropy wrote:

>     I have a IBM 405GP evaluation board and I tried installing NetBSD on it. 
> NetBSD boots the walnut image properly and I am prompted for a boot 
> device(seletected emac0) and root filesystem(selected nfs). After that it gives 
> me the correct information of the ip address of the device etc and ip and nfs 
> information of the server. After that it gives a warning of no /dev/console. 
> It prompts for a /sbin/init execution. After I return it just hangs there.
> 
> To debug I tried to see what files its pulling from NFS and the last file it 
> queries and fails is libc.so.
> 
> The whole problem described above happens in version 5.1
> 
> I tried other versions too and went down to 3.0. In release 3.0 it does not 
> take any keyboard input for some reason. 4.0 suffers the same problem but I 
> could see MAKEDEV getting requested from NFS.
> 
> Please provide some hints on fixing this. Cross posted here since I am not sure 
> whether of-ppc mailing list is where I have to post.

ISTR that at one time the emac driver had issues and would hang.  I don't 
know if they ever got fixed.  I'd recommend adding a PCI network or 
disk controller and using that to access the root filesystem to see if it 
resolves your problem.  If it does, I can try to dig up some fixes I had 
made to the emac driver many years ago.

Eduardo

(Continue reading)

der Mouse | 22 Mar 17:55 2011

Re: NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

> I vaguely recall that you might need to limit the NFS read/write size
> to 1k for some reason.

In my (admittedly limited) experience, when this is true, the "some
reason" always has something to do with fragmentation.  Sometimes one
machine can't receive the back-to-back packets the other is sending.
Sometimes it mostly works but certain files hang, and it's because one
machine is sending a tiny packet the other can't receive.  Sometimes
non-first frags don't get handled properly by something in between the
client and server.  But, if this helps and you want to fix the problem
instead of just papering over the symptom (sometimes the one is more
appropriate, sometimes the other), I'd recommend looking at
fragmentation-related issues.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse <at> rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

mindentropy | 22 Mar 20:35 2011
Picon

Re: NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

On Tuesday 22 Mar 2011 9:19:43 pm Allen Briggs wrote:
> On Tue, Mar 22, 2011 at 08:51:47PM +0530, mindentropy wrote:
> >     I have a IBM 405GP evaluation board and I tried installing NetBSD on
> >     it.
> > 
> > NetBSD boots the walnut image properly and I am prompted for a boot
> > device(seletected emac0) and root filesystem(selected nfs). After that it
> > gives me the correct information of the ip address of the device etc and
> > ip and nfs
> > information of the server. After that it gives a warning of no
> > /dev/console. It prompts for a /sbin/init execution. After I return it
> > just hangs there.
> 
> I vaguely recall that you might need to limit the NFS read/write size to
> 1k for some reason.
> 
> Have you tried with
> options 	NFS_BOOT_RWSIZE=1024
> 
> in your kernel config file?
> 
> -allen
I have not yet started compiling the kernel. Is there any way I can send it as 
a boot option while booting?

Allen Briggs | 22 Mar 21:56 2011
Picon

Re: NetBSD hangs while executing /sbin/init in IBM 405 GP eval board.

On Wed, Mar 23, 2011 at 01:05:05AM +0530, mindentropy wrote:
> I have not yet started compiling the kernel. Is there any way I can send
> it as a boot option while booting?

Unfortunately not.  I can build a kernel for you tonight if you need
one.  Drop me a line off-list if that's what you'd like, and let me
know which kernel you need (WALNUT?).

-allen

--

-- 
Allen Briggs  -  briggs <at> ninthwonder.com


Gmane