Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th April 2017
milestone milestone is offline
New User
Join Date: Apr 2017
Posts: 3
Default sysupgrade fails on evbarm7hf (rasperry pi 2)

Hello everyone

I tried to upgrade NetBSD from 7.0.1 to 7.0.2 but it fails.
sysupgrade kernel
sysupgrade: I: Skipping kernel installation (KERNEL not set)
At first the kernel was not recognized but I set it manual to RPI2

Next try:
No error message, everything seems to be fine but:
uname -a
NetBSD berlin 7.0.1 NetBSD 7.0.1 (RPI2.201605221355Z) evbarm
Later I tried to upgrade from 7.0.1 to 7.1 but I got the same result. I still stay with 7.0.1 but don't know what I did wrong or where I could try to look.

Several months later, I tried it again with the same result.

Before I did a complete new installation with NetBSD 8.99.2 (RPI2)

sysupgrade auto ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201711241510Z/evbarm-earmv7hf
uname -a
NetBSD armv7 8.99.2 NetBSD 8.99.2 (RPI2) #0: Tue Sep 12 07:19:36 UTC 2017  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2 evbarm
Any ideas?

Last edited by milestone; 25th November 2017 at 02:36 PM. Reason: Update
Reply With Quote
  #2   (View Single Post)  
Old 26th January 2018
milestone milestone is offline
New User
Join Date: Apr 2017
Posts: 3

today I tried sysupgrade 8.99.8 -> 8.99.12

same result. No errors and after all I stay with 8.99.8
$ name -r
$ ls -l *bsd
-rw-r--r--  1 root  wheel  8054460 Jan 25 22:21 netbsd
-rw-r--r--  1 root  wheel  7983564 Dec 29 12:22 onetbsd

$ cd /kern ; ls -l
total 31
-r--r--r--  1 root  wheel     11 Jan 26 07:59 boottime
-r--r--r--  1 root  wheel    318 Jan 26 08:11 copyright
-rw-r--r--  1 root  wheel      6 Jan 26 08:11 hostname
-r--r--r--  1 root  wheel      4 Jan 26 08:11 hz
-r--r--r--  1 root  wheel     14 Jan 26 08:11 loadavg
-r--r--r--  1 root  wheel  16368 Jan 26 08:11 msgbuf
-r--r--r--  1 root  wheel      5 Jan 26 08:11 pagesize
-r--r--r--  1 root  wheel      7 Jan 26 08:11 physmem
br--r--r--  1 root  wheel  92, 0 Jan 26 08:11 rootdev
cr--r--r--  1 root  wheel  92, 0 Jan 26 08:11 rrootdev
-r--r--r--  1 root  wheel     18 Jan 26 08:11 time
-r--r--r--  1 root  wheel    122 Jan 26 08:11 version
Maybe just a bug in the version file?
Reply With Quote
  #3   (View Single Post)  
Old 9th February 2018
milestone milestone is offline
New User
Join Date: Apr 2017
Posts: 3

On the netbsd wiki it is mentioned how to upgrade the kernel [1]

Updating the kernel
  • Build a new kernel, e.g. using build.sh. It will tell you where the ELF version of the kernel is, e.g.
    Kernels built from RPI2:
  • Besides the "netbsd" kernel in ELF format, there is also a "netbsd.bin" kernel that is in a format that the Raspberry can boot.
  • Depending on your hardware version, copy this either to /boot/kernel.img (First generation Pi, Pi Zero hardware) or to /boot/kernel7.img (Pi 2, Pi 3 hardware)
  • reboot

So I guess, that I have to copy the kernel into the directory /boot
#ls -l *.IMG
-rwxr-xr-x 1 root wheel 7348948 Dec 3 21:03 KERNEL7.IMG
But which file do I need? None of the files are created with sysupgrade?
Or do I have to build the kernel by myself on the RPI and it is not possible with sysupgrade?

[1] http://wiki.netbsd.org/ports/evbarm/..._pi/#index10h2

Last edited by milestone; 9th February 2018 at 03:30 PM. Reason: additional information
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH from WAN fails, LAN works OK. Why? pttymuth OpenBSD General 12 24th July 2013 07:26 PM
X forwarding fails Graaf_van_Vlaanderen OpenBSD General 7 10th January 2010 12:57 AM
Bootonly CD Fails rtwingfield FreeBSD Installation and Upgrading 1 29th December 2008 01:25 AM
Startx fails disappearedng FreeBSD General 11 19th July 2008 09:32 AM
PC-BSD 1.5.1 fails to install archp2008 FreeBSD Installation and Upgrading 27 1st July 2008 11:47 PM

All times are GMT. The time now is 01:13 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick