<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>hubertf's NetBSD blog</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/</link>
    <description>Blog about the NetBSD open source operating system</description>
    <language>en</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>blosxom/2.1.2</generator>

  <item>
    <title>The adventure of rebuilding g4u from source</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180317_2005.html</link>
    <pubDate>Sat, 17 Mar 2018 20:18:00 GMT</pubDate>
    <description>
      
I was asked by a long-time 
&lt;a href=&quot;https://www.feyrer.de/g4u/&quot;&gt;g4u&lt;/a&gt; user on help with rebuilding
g4u from sources. After pointing at the
&lt;a href=&quot;http://www.feyrer.de/g4u/#rebuilding&quot;&gt;instructions on the homepage&lt;/a&gt;,
we figured out that a few lose odds and ends didin&apos;t match.
After bouncing some advices back and forth, I ventured into the 
frabjous joy of starting a rebuild from scratch, and quick enough
ran into some problems, too.
&lt;p&gt;

Usually I cross-compile g4u from Mac OS X, but for the fun of it
I did it on NetBSD (7.0-stable branch, amd64 architecture in VMware Fusion)
this time. After waiting forever on the CVS checkout, I found that
empty directories were not removed - that&apos;s what you get if you have -P in your ~/.cvsrc file.
&lt;p&gt;

I already had the hint that the &quot;g4u-build&quot; script needed a change to have
&quot;G4U_BUILD_KERNEL=true&quot;.
&lt;p&gt;

From there, things went almost smooth: building indicated a few
files that popped up &quot;variable may be used uninitialized&quot; errors,
and which -- thanks to -Werror -- bombed out the build. Fixing
was easy, and I have no idea why that built for me on the release.
I have sent
&lt;a href=&quot;https://sourceforge.net/p/g4u/mailman/attachment/4DFB5B11-F8C5-4D2C-BF94-9DE43A831A18%40feyrer.de/2/&quot;&gt;a patch with the required changes&lt;/a&gt;
&lt;a href=&quot;https://sourceforge.net/p/g4u/mailman/message/36265571/&quot;&gt;to the g4u-help mailing list&lt;/a&gt;. (After fixing that I apparently
got unsubscribed from my own support mailing list - thank you
very much, Sourceforge ;)).
&lt;p&gt;

After those little hassles, the build worked fine, and gave me
the floppy disk and ISO images that I expected:

&lt;pre&gt;
&gt;       ls -l `pwd`/g4u*fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u1.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u2.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u3.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u4.fs
&gt;       ls -l `pwd`/g4u.iso
&gt;       -rw-r--r--  2 feyrer  staff  6567936 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u.iso
&gt;       ls -l `pwd`/g4u-kernel.gz
&gt;       -rw-r?r--  1 feyrer  staff  6035680 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u-kernel.gz &lt;/pre&gt;


Next steps are to confirm the above changes as working
from my faithful tester, and then look into how to merge this
into the
&lt;a href=&quot;http://www.feyrer.de/g4u/#rebuilding&quot;&gt;build instructions &lt;/a&gt;.

    </description>
  </item>
  <item>
    <title>No more Google ads</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180119_2344.html</link>
    <pubDate>Fri, 19 Jan 2018 23:47:00 GMT</pubDate>
    <description>
      
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
I&apos;ve had Google Adsense advertising for quite a while on my blog,
the &lt;a href=&quot;http://www.feyrer.de/g4u/&quot;&gt;g4u homepage&lt;/a&gt; and various other pages.
In the start a little bit of money came in.
This has all dried up long since, and in light of 
privacy regulations like the EU GDPR I&apos;ve decided to
not give away my users&apos; data to Google any longer.
So, there it is - my blog and other pages are free for your use now,
and you are no longer the product being sold. Enjoy! :-)
&lt;p&gt;

(If you find any remaining advertisement, drop me a line!)
&lt;/td&gt;
&lt;td&gt; &lt;img align=&quot;right&quot; width=&quot;100&quot; src=&quot;https://nikosskordilis.files.wordpress.com/2013/06/a80e0-no-adsense1.png&quot; /&gt;&lt;/td&gt;
&lt;/table&gt;

    </description>
  </item>
  <item>
    <title>NetBSD 7.1.1 released</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180104_0116.html</link>
    <pubDate>Thu, 04 Jan 2018 01:21:00 GMT</pubDate>
    <description>
      
On December 22nd, NetBSD 7.1.1 was released as premature
christmas present, see
&lt;a href=&quot;http://www.netbsd.org/releases/formal-7/NetBSD-7.1.1.html&quot;&gt;the release annoucement&lt;/a&gt;.
&lt;p&gt;

NetBSD 7.1.1 is the first update with security and critical
fixes for the NetBSD 7.1 branch. Those include a number of 
fixes for security advisories, kernel and userland.

    </description>
  </item>
  <item>
    <title>New year, new security advisories!</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180104_0111.html</link>
    <pubDate>Thu, 04 Jan 2018 01:16:00 GMT</pubDate>
    <description>
      
So things have become a bit silent here, which is due
to reallife - my apologies. Still, I&apos;d like to wish
everyone following this here a Happy New Year 2018!
And with this, a few new security advisories have
been published:

&lt;ul&gt;
&lt;li&gt; &lt;a href=&quot;http://mail-index.netbsd.org/netbsd-announce/2018/01/02/msg000274.html&quot;&gt;NetBSD Security Advisory 2018-001: Several vulnerabilities in context handling&lt;/a&gt; - this affects amd64, i386 and sparc64
&lt;li&gt; &lt;a href=&quot;http://mail-index.netbsd.org/netbsd-announce/2018/01/02/msg000275.html&quot;&gt;NetBSD Security Advisory 2018-002: Local DoS in virecover&lt;/a&gt;
&lt;/ul&gt;

    </description>
  </item>
  <item>
    <title>34C3 talk: Are all BSDs created equally?</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180104_0105.html</link>
    <pubDate>Thu, 04 Jan 2018 01:08:00 GMT</pubDate>
    <description>
      
I haven&apos;t seen this mentioned on the NetBSD mailing lists,
and this may be of interest to some -
there was a talk about security bugs in the various BSDs at the 34th Chaos
Communication Congress:
&lt;p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=rRg2vuwF1hY&quot;&gt;Video: https://www.youtube.com/watch?v=rRg2vuwF1hY&lt;/a&gt;
&lt;li&gt; &lt;a href=&quot;https://events.ccc.de/congress/2017/Fahrplan/events/8968.html&quot;&gt;Talk: https://events.ccc.de/congress/2017/Fahrplan/events/8968.html&lt;/a&gt;
&lt;/ul&gt;

In summary, many reasons for bugs are shown in many areas of the kernel
(system calls, file systems, network stack, compat layer, ...), and what has
happened after they were made known to the projects.
&lt;p&gt;

As a hint, NetBSD still has a number of Security Advisories to publish, it
seems. Anyone wants to help out the security team? :-)

    </description>
  </item>
  <item>
    <title>g4u 2.6 released</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170608_1558.html</link>
    <pubDate>Thu, 08 Jun 2017 16:19:00 GMT</pubDate>
    <description>
      
After a five-year period for beta-testing and updating,
I have finally released g4u 2.6. With its origins in 1999,
I&apos;d like to say: Happy 18th Birthday, g4u!
&lt;p&gt;

&lt;b&gt;About g4u:&lt;/b&gt;
g4u (&quot;ghosting for unix&quot;) is a NetBSD-based bootfloppy/CD-ROM that allows easy cloning of PC harddisks to deploy a common setup on a number of PCs using FTP. The floppy/CD offers two functions. The first is to upload the compressed image of a local harddisk to a FTP server, the other is to restore that image via FTP, uncompress it and write it back to disk. Network configuration is fetched via DHCP. As the harddisk is processed as an image, any filesystem and operating system can be deployed using g4u. Easy cloning of local disks as well as partitions is also supported.
&lt;p&gt;

&lt;b&gt;The past:&lt;/b&gt;
When I started g4u, I had the task to install a number
of lab machines with a dual-boot of Windows NT and NetBSD.
The hype was about Microsoft&apos;s &quot;Zero Administration Kit&quot; (ZAK)
then, but that did barely work for the Windows part - file transfers were 
slow, depended on the clients&apos; hardware a lot (requiring fiddling with MS
DOS network driver disks), and on the ZAK server the files for
installing happened do disappear for no good reason every now and then.
Not working well, and leaving out NetBSD (and everything elase),
I created g4u. This gave me the (relative) pain of getting 
things working once, but with the option to easily add network 
drivers as they appeared in NetBSD (and oh they did!), plus allowed
me to install any operating system.
&lt;p&gt;

&lt;b&gt;The present:&lt;/b&gt;
We&apos;ve used g4u successfully in our labs then, booting from CDROM.
I also got many donations from public and private instituations
plus comanies from many sectors, indicating that g4u does make a
difference.
&lt;p&gt;

In the mean time, the world has changed, and CDROMs aren&apos;t used
that much any more. Network boot and USB sticks are today&apos;s devices
of choice, cloning of a full disk without knowing its structure
has both advantages but also disadvantages, and g4u&apos;s user interface
is still command-line based with not much space for automation.
For storage, FTP servers are nice and fast, but alternatives
like SSH/SFTP, NFS, iSCSI and SMB for remote storage plus local storage
(back to fun with filesystems, anyone? avoiding this was why g4u
was created in the first place!) should be considered these days.
Further aspects include integrity (checksums), confidentiality
(encryption).
This leaves a number of open points to address either by
future releases, or by other products.
&lt;p&gt;

&lt;b&gt;The future:&lt;/b&gt;
At this point, my time budget for g4u is very limited.
I welcome people to contribute to g4u - g4u is Open Source
for a reason. Feel free to get back to me for any changes
that you want to contribute!
&lt;p&gt;

&lt;b&gt;The changes:&lt;/b&gt;
Major changes in g4u 2.6 include:
&lt;ul&gt;
&lt;li&gt; Make this build with NetBSD-current sources as of 2017-04-17 (shortly before netbsd-8 release branch), binaries were cross-compiled from Mac OS X 10.10
&lt;li&gt; Many new drivers, bugfixes and improvements from NetBSD-current (see beta1 and beta2 announcements)
&lt;li&gt; Go back to keeping the disk image inside the kernel as ramdisk, do not load it as separate module. Less error prone, and allows to boot the g4u (NetBSD) kernel from a single file e.g. via PXE (Testing and documentation updates welcome!)
&lt;li&gt; Actually DO provide the g4u (NetBSD) kernel with the embedded g4u disk image from now on, as separate file, g4u-kernel.gz
&lt;li&gt; In addition to MD5, add SHA512 checksums
&lt;/ul&gt;

&lt;b&gt;The software:&lt;/b&gt;
Please see 
&lt;a href=&quot;http://www.feyrer.de/g4u/#reqs&quot;&gt;the g4u homepage&apos;s download section&lt;/a&gt;
on how to get and use g4u.
&lt;p&gt;

Enjoy!

    </description>
  </item>
  <item>
    <title>Native Command Queuing - merging and testing</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170608_1404.html</link>
    <pubDate>Thu, 08 Jun 2017 14:13:00 GMT</pubDate>
    <description>
      
&lt;a href=&quot;https://en.wikipedia.org/wiki/Native_Command_Queuing&quot;&gt;&lt;img src=&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/NCQ.svg/300px-NCQ.svg.png&quot; align=&quot;right&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
Jaromir Dolecek has worked on NCQ and is looking for
testers in context of merging the development branch
into NetBSD-current. 
&lt;p&gt;

What is NCQ? According to
&lt;a href=&quot;https://en.wikipedia.org/wiki/Native_Command_Queuing&quot;&gt;Wikipedia&lt;/a&gt;, 
``&lt;i&gt;Native Command Queuing (NCQ) is an extension of the Serial ATA protocol allowing hard disk drives to internally optimize the order in which received read and write commands are executed. This can reduce the amount of unnecessary drive head movement, resulting in increased performance (and slightly decreased wear of the drive) for workloads where multiple simultaneous read/write requests are outstanding, most often occurring in server-type applications.&lt;/i&gt;&apos;&apos;
&lt;p&gt;

Jaromir 
&lt;a href=&quot;http://mail-index.netbsd.org/tech-kern/2017/06/08/msg021960.html&quot;&gt;writes to tech-kern&lt;/a&gt;:
``&lt;i&gt;I plan to merge the branch to HEAD very soon, likely over the weekend. Eventual further fixes will be done on HEAD already, including mvsata(4) restabilization, and potential switch of siisata(4) to support NCQ.
&lt;p&gt;

The plan is to get this pulled up to netbsd-8 branch soon also, so that it will be part of 8.0.
&lt;p&gt;

Status:
&lt;ul&gt;
&lt;li&gt; ahci(4) fully working with NCQ (confirmed with qemu, and real hw)
&lt;li&gt; piixide(4) continues working (no NCQ support of course) (confirmed in qemu)
&lt;li&gt; siisata(4) continues working (without NCQ still) (confirmed with real hw)
&lt;li&gt; mvsata(4) not yet confirmed working after changes, mainly due the DMA not really working on Marvell 88SX6042 which I have available - I have same issue as kern/52126
&lt;li&gt; other ide/sata drivers received mechanical changes, should continue working as before&lt;/i&gt;&apos;&apos;
&lt;/ul&gt;

Testing and feedback of success or suggestions for improvemenbt
are always welcome - please send your report!

    </description>
  </item>
  <item>
    <title>Support for Controller Area Networks (CAN) in NetBSD</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170521_0113.html</link>
    <pubDate>Sun, 21 May 2017 01:30:00 GMT</pubDate>
    <description>
      
Manuel Bouyer has worked on NetBSD CAN-support, and now he
&lt;a href=&quot;http://mail-index.netbsd.org/tech-net/2017/05/18/msg006342.html&quot;&gt;writes&lt;/a&gt;:

``&lt;i&gt;I&apos;d like to merge the bouyer-socketcan branch to HEAD in the next few
days (hopefully early next week, or maybe sunday), unless someone objects
to the idea of a socketcan implementation in NetBSD.
&lt;p&gt;

CAN stands for &lt;a href=&quot;https://en.wikipedia.org/wiki/CAN_bus&quot;&gt;Controller Area Network&lt;/a&gt;, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.
&lt;p&gt;

This is an implementation of the linux socketcan API:
&lt;a href=&quot;https://www.kernel.org/doc/Documentation/networking/can.txt&quot;&gt;https://www.kernel.org/doc/Documentation/networking/can.txt&lt;/a&gt;
you can also see can(4) in the branch.
&lt;p&gt;

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. The branch also includes a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).
&lt;p&gt;

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.
&lt;p&gt;

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpdump(8) can also be used to record frames, which can be
decoded with etherreal.
&lt;p&gt;

A review of the code in src/sys/netcan/ is welcome, especially for possible
locking issues.&lt;/i&gt;&apos;&apos;
&lt;p&gt;

What CAN devices would you address with NetBSD? Drop me mail!

    </description>
  </item>
  <item>
    <title>Announcing NetBSD and the Google Summer of Code Projects 2017</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170505_2121.html</link>
    <pubDate>Fri, 05 May 2017 21:34:00 GMT</pubDate>
    <description>
      
&lt;img src=&quot;https://developers.google.com/open-source/gsoc/resources/downloads/GSoC-icon.svg&quot; width=&quot;80&quot; align=&quot;right&quot; /&gt;
The NetBSD Project &lt;a href=&quot;https://blog.netbsd.org/tnf/entry/announcing_netbsd_and_the_google&quot;&gt;posts&lt;/a&gt; that
we are very happy to announce that the selection process in this year&apos;s
Summer of Code with its bargaining of slots and what student gets assigned
to which project is over. As a result, the following students will take on
their projects:
&lt;p&gt;

&lt;ul&gt;
 &lt;li&gt; Leonardo Taccari will work add multi-packages support to pkgsrc.
 &lt;li&gt; Maya Rashish will work on the LFS cleanup.
 &lt;li&gt; Utkarsh Anand will make Anita support multiple virtual machine systems
   and more architectures within them to improve testing coverage.
&lt;/ul&gt;

What follows now is a community bonding period until May 30th, followed by a
coding period over the summer (it&apos;s Summer of Code, after all :-)
until August 21st, evaluations, code submission and an announcement of the
results on September 6th 2017.
&lt;p&gt;

Good luck to all our students and their mentors - we look forward to your
work results, and welcome you to The NetBSD Project!

    </description>
  </item>
  <item>
    <title>Adventures in Time, part 1: Interfacing an Oven Controlled Crystal Oscillator to a Computer Running NetBSD</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170502_2103.html</link>
    <pubDate>Wed, 03 May 2017 20:16:00 GMT</pubDate>
    <description>
      
&lt;img align=&quot;right&quot; src=&quot;https://4.bp.blogspot.com/-BW8UAcaZQvc/WPuwTmUGEoI/AAAAAAAAANA/yH06g5_qfMYL35tWzZ2qe62RY2vw7LntQCLcB/s200/DSC_6047_00002.jpg&quot; /&gt;
I&apos;ve stumbled across this article via
&lt;a href=&quot;https://www.dragonflydigest.com&quot;&gt;the Dragonfly BSD Digest&lt;/a&gt;:
Tobias &apos;tnn&apos; Nygren wrote about his aventurs in time, 
with part one on
&lt;a href=&quot;http://contraptnns.blogspot.de/2017/04/adventures-in-time-part-1-interfacing.html&quot;&gt;Interfacing an Oven Controlled Crystal Oscillator to a Computer Running NetBSD&lt;/a&gt;.
&lt;p&gt;

This first article in a blog series starts by 
describing regular and oven ontrolled crystal oscillators,
then goes on in describing the hardware setup and how it is
connected to a computer. In this case, a Banana Pi running
NetBSD/evbarm is used which (of course) also has its own
clock. Oscilloscope measurements show differences in
quality of signals and why an adapter is needed to adjust
the system&apos;s clock frequency (including changes to the
NetBSD kernel). 
&lt;p&gt;

In the next post Tobias will describe how to calibrate the clock with NTP.
Stay tuned and 
&lt;a href=&quot;http://contraptnns.blogspot.de/&quot;&gt;have an eye on his blog&lt;/a&gt;!

    </description>
  </item>
  </channel>
</rss>
