Re: Other interesting mips breakage...

"John D. Baker" <[email protected]> Sat, 1 Feb 2014 14:01:55 -0600 (CST)
Newsgroups gmane.os.netbsd.ports.evbmips,gmane.os.netbsd.ports.mips.devel
Message-ID <[email protected]>
On Sat, 1 Feb 2014, Manuel Bouyer wrote:

> On Sat, Feb 01, 2014 at 02:03:24AM -0600, John D. Baker wrote:
>>
>> X server:  the undefined symbol issues seem to have been resolved, but
>> now the server complains that it can't load the "int10" module, saying
>> that it doesn't exist.  Also what looks like a NULL pointer dereference.
>
> What driver are you using ? Works fine for me, with a SiS video controller.
> I also tested wsfb.

From dmesg:

[...]
lynxfb0 at pci0 dev 8 function 0: vendor 0x126f product 0x0712 (rev. 0xb0)
lynxfb0: 1024 x 600, 16 bpp, stride 2048
[...]

From Xorg.0.log:

[...]
[   228.837] (II) LoadModule: "siliconmotion"
[   228.841] (II) Loading /usr/X11R7/lib/modules/drivers/siliconmotion_drv.so
[   228.860] (II) Module siliconmotion: vendor="X.Org Foundation"
[   228.861]    compiled for 1.10.6, module version = 1.7.7
[   228.861]    Module class: X.Org Video Driver
[   228.861]    ABI class: X.Org Video Driver, version 10.0
[...]
[   228.902] (II) SMI: driver (version 1.7.7) for Silicon Motion Lynx chipsets: Lynx,
         LynxE, Lynx3D, LynxEM, LynxEM+, Lynx3DM, Cougar3DR, MSOC
[   228.906] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[   228.906] (--) using VT number 5

[   228.914] (WW) Falling back to old probe method for siliconmotion
[   228.914] (--) Assigning device section with no busID to primary device
[   228.914] (--) Chipset LynxEM+ found
[   228.914] (II) Loading /usr/X11R7/lib/modules/drivers/siliconmotion_drv.so
[   228.914] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   228.915] (II) Loading sub module "vgahw"
[   228.915] (II) LoadModule: "vgahw"
[   228.980] (II) Loading /usr/X11R7/lib/modules/libvgahw.so
[   228.993] (II) Module vgahw: vendor="X.Org Foundation"
[   228.993]    compiled for 1.10.6, module version = 0.1.0
[   228.993]    ABI class: X.Org Video Driver, version 10.0
[   228.994] (II) SMI(0): Creating default Display subsection in Screen section
         "Builtin Default siliconmotion Screen 0" for depth/fbbpp 24/32
[   228.994] (==) SMI(0): Depth 24, (--) framebuffer bpp 32
[   228.994] (==) SMI(0): RGB weight 888
[   228.994] (==) SMI(0): Default visual is TrueColor
[   228.994] (==) SMI(0): PCI Burst enabled
[   228.994] (==) SMI(0): PCI Retry enabled
[   228.994] (==) SMI(0): Using Hardware Cursor
[   228.994] (II) Loading sub module "int10"
[   228.994] (II) LoadModule: "int10"
[   229.022] (WW) Warning, couldn't open module int10
[   229.022] (II) UnloadModule: "int10"
[   229.022] (II) Unloading int10
[   229.022] (EE) SMI: Failed to load module "int10" (module does not exist, 0)

Additional data from std{out,err} of Xserver:

X.Org X Server 1.10.6
Release Date: 2011-07-08
X Protocol Version 11, Revision 0
Build Operating System: NetBSD/evbmips  - 
Current Operating System: NetBSD chalk.technoskunk.fur 6.99.30 NetBSD 6.99.30 (YEELOONG) #9: Fri Jan 31 16:18:05 CST 2014  [email protected]:/r0/build/current/obj/mips64el/sys/arch/evbmips/compile/YEELOONG evbmips
Build Date: 01 August 2011  01:01:00AM

Current version of pixman: 0.30.0
         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 31 23:57:44 2014
(==) Using default built-in configuration (12 lines)
(EE) SMI: Failed to load module "int10" (module does not exist, 0)
Segmentation fault at address 0x0

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


> gcc -O2 core dump, but removing -O2 makes it work. I don't know why

This sounds pretty tedious unless such transformations can be automated.


>> 'amd' (am-utils) fails, claiming "Invalid argument" on all automount
>> points.  The config file and maps are the same ones I use on all my
>> other systems (i386, amd64, sparc, macppc, mvme68k).
>
> Could be a compat-netbsd32 issue. ktrace would show what syscall or ioctl
> returns the einval.

I posted what I observed about it before here:

   http://mail-index.netbsd.org/port-evbmips/2012/06/08/msg000141.html

The culprit appears to be "netbsd32___mount50()".

I'll see about getting a current picture soon.


>> Not yet re-examined:  sshd hangs incoming SSH connections in a quasi-open
>> state holding the client inoperative until local terminal is closed
>> (close window in GUI or kill parent shell process from other wscons
>> virtual terminal).
>
> sshd works fine for me ...

For historical background see:

   http://mail-index.netbsd.org/port-evbmips/2012/05/10/msg000132.html
   http://mail-index.netbsd.org/port-evbmips/2012/05/11/msg000134.html
   http://mail-index.netbsd.org/port-evbmips/2012/06/08/msg000142.html

I have not yet tried again since getting a working system running, but
hope to do so soon.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645