John D. Baker | 16 Jul 23:09 2016

panic with latest sources

Following the most recent changes and subsequent build fixes, my Lemote
YeeLoong (evbmips-mips64el) panics on boot with:

total memory = 1024 MB
avail memory = 1008 MB
Page fault on non-pageable map:
ufi->map = 0x98000000bffe7ac8
ufi->orig_map = 0xffffffff806d40d8
ufi->orig_rvaddr = 0xc0000000090a0000
panic: uvm_fault: (ufi->map->flags & VM_MAP_PAGEABLE) == 0
kernel: breakpoint trap
Stopped in pid 0.1 (system) at  ffffffff8026e68c:       li       at,0x3
0x98000000807d36d0: 0+ffffffff8026e68c (63061,ffffffffffffffff,6,ffffffff80690f60) ra 0 sz 0
User-level: pid 0.1

This is following a clean build with each of GCC 4.8.5 and GCC 5.4.0.


|/"\ 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

coypu | 27 May 08:34 2016

stronger mips hardware options


I'd like to get a machine which will eventually be capable of building
the pkgsrc tree (I'm aware that some work will be needed).
This requires more RAM than the cheapest hardware available, and I've
been told 2GB is a starting point.
So far I have found just Ubiquiti ER-8.
I am wondering if more options exist.


John D. Baker | 14 Mar 22:48 2016

Segfaults with latest sources

Following updating to a release built from sources about 201603140356Z,
a few userland programs have started failing with Segmentation fault.
This is on my Lemote Yeeloong netbook.

Immediately noticable was "security/sudo".  Invoking anything via 'sudo'
would fail with "Memory fault".

Upon rebooting, '/sbin/mount_tmpfs' failed with Segmentation fault
attempting to mount "/var/shm".  Then '/usr/sbin/ntpd' failed with
Segmentation fault during its startup attempt.  The resulting core files
were claimed by 'gdb' to not be valid core files, so no debugging
information is available.

It so-far appears that 'sudo' will work if authentication is required.
Thereafter, during the grace period set by "timestamp_timeout", it will
fail with "Memory fault".

Rebuilding "security/sudo" did not resolve its problem.


|/"\ 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

John D. Baker | 22 Jan 18:59 2016

X on Lemote Yeeloong

Once again trying X on my Lemote Yeeloong netbook.  The failure has been
different each time.  The current failure mode is:

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 7.99.25 NetBSD 7.99.25 (YEELOONG) #14: Thu Jan
21 17:04:09 CST 2016 
sysop <at> x3650.technoskunk.fur:/r0/build/nbsd-tst/obj/mips64el/sys/arch/evbmips/compile/YEELOONG evbmips
Build Date: 01 August 2011  01:01:00AM

Current version of pixman: 0.32.6
	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 22 11:43:51 2016
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load /usr/X11R7/lib/modules/drivers/
/usr/X11R7/lib/modules/drivers/ Undefined symbol "vgaHWddc1SetSpeed"
(symnum = 33)
(EE) Failed to load module "siliconmotion" (loader failed, 7)
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
(Continue reading)

John Klos | 21 Aug 02:29 2015

Re: Ubiquity EdgeRouter and 100% system

Hmmm... It's been up for six hours and right now it's compiling 

cpu0 usb                                  711278139    31937 intr
cpu0 int 5 (clock)                          2227304      100 intr
cpu0 tlb misses                          4428004302   198823 trap

John D. Baker | 17 Jul 06:10 2015

Latest evbmips/LOONGSON (Lemote Yeeloong) observations

As of NetBSD-7.99.20:


Writes to NFS via extraction of files by 'tar' or I/O redirection produce
corrupt files.

'amd' complains about "invalid argument" on all automount points


Writes to 'ext2fs' filesystems via extraction of files by 'tar' causes
system to hang requiring power-cycle (no diagnostic messages printed,
dropping to DDB not possible).  (As of 7.99.1[5-8], it would print a
diagnostic message, but that has been lost.)

Running from NFS root, system may hang when starting services via
'rc'--typically 'syslogd' or 'ntpd'.  Usually occurs on first boot attempt
following long power-down period.  Power-cycle is required.  Subsequent
attempts usually succeed.

"Backspace" key generates DEL (^?) in applications, not treated as synonym
for ^H (erase).  (Annoying at Password: prompts or in text editors.)


'ntpd' no-longer complains about:

  ntpd[PID]: local_clock:
.../src/external/bsd/ntp/dist/ntpd/ntp_loopfilter.c line 703: invalid struct
(Continue reading)

John D. Baker | 7 Jul 23:23 2015

Tracking -current on evbmips-mips64e[bl]?

I find it interesting that HEAD evbmips-mips64e[bl] seem to perpetually
fail on the autobuild system.  There was an exceptional period of a few
hours a couple of weeks back where at least evbmips-mips64el (the one
that I poke at from time to time) built successfully, so I updated and
managed to build it as well.

Since then, they again fail perpetually on the autobuild system, yet I
manage to do successful update builds locally.  I suspect that will
cease to be the case at some point.

Is it not discouraging to see weeks and months of failed autobuild
attempts go by?  I generally gauge whether to bother with another
round of poking at my Lemote Yeeloong by whether an autobuild attempt

(Perhaps I should be looking at a different platform, but that's really
a topic for a different message.)


|/"\ 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

Andy Ruhl | 8 Jun 07:36 2015

Atheros SOC AR9331 router

I bought an interesting device recently. Search Amazon for "Tbmax
router". 2 RJ45 ethernet ports, wifi, USB, and USB power. And a nicely
accessible serial port. I bought a USB to serial adapter that plugs
right in, search for "JBtek serial".

Some more info on it here:

I had to swap tx and rx to get the serial console on mine.

I'm not a developer so I can't get NetBSD working on it. Looks like
someone might be trying according to this:

If it could boot from USB this could be really good.


Andrew Parker | 7 Mar 03:55 2015

NetBSD on Cavium Octeon

I'd like to try getting NetBSD running on a Ubiquiti Edgerouter Lite and am wondering if anybody has tried
this or had any success with it?

John D. Baker | 19 Feb 07:01 2015

wsfonts that don't work w/LOONGSON (Lemote YeeLoong)

I wanted to use the recently-added "glass10x19" and/or "glass10x25" VT220-
like fonts in my custom LOONGSON-based kernel, but the wsfont subsystem
ignores them and falls back to one of the other fonts in the stock
LOONGSON kernel "gallant12x22" or "bold8x16".

If I disable the stock fonts, and leave only my added fonts, then the
kernel hangs, sometimes printing a message (in the PMON font) claiming
the font table is empty.

This got me curious about the other fonts listed in
"sys/dev/wsfont/files.wsfont".  Below are the ones which are ignored if


The rest provide a working console, although FONT_LUCIDA16x29 and
FONT_SONY12x24 are a bit too large for a comfortably-sized terminal
on a 1024x600 display panel.

Are there any clues as to why the above-listed fonts are ignored on
evbmips/LOONGSON?  I know FONT_GLASS10x19 works on macppc and i386.


|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
(Continue reading)

John D. Baker | 10 Feb 03:10 2015

latest evbmips/LOONGSON observations

After reading this post:

I dug out my Yeeloong and went hunting:

eventually producing a working 7.99.4 kernel.  A mips/loongson guru
should take a look at this.

Along the way, I tried a few things I hadn't before--taking some cues
from OpenBSD/loongson.

I tried the "wsfb" driver for Xorg and it works quite well, if a bit
sluggish.  The show-stopper is that the screen-saver operates backwards.

After an initial delay, the next keyboard/mouse event blanks the
screen immediately.  After an idle period, the screen is restored, but
the next keyboard/mouse event just blanks it again.

I've added 'xset s off' to my ".xinitrc". to keep it from blanking.

Without an "xorg.conf", the auto-detected "siliconmotion" driver crashes
complaining about:

[  3406.966] (EE) Failed to load /usr/X11R7/lib/modules/drivers/
/usr/X11R7/lib/modules/drivers/ Undefined symbol "exaOffscreenFree"
(symnum = 101)

(Continue reading)