NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Upgrading from 10.0 to 10.1





El 2/10/25 a las 12:49, Martin Husemann escribió:
On Thu, Oct 02, 2025 at 12:45:52PM +0200, Ramiro Aceves wrote:
I have also used built-in sysinst program to upgrade amd64 from 10--->
10-stable --->10.1 and worked fine (not using installation media, just
pointing to the URL of the newer system when running built-in sysinst
executable file). I understand that this way we upgrade both kernel and
userland at the same time. I read that is not recommended and kernel must be
upgraded before the base system, reboot and then upgrade the base system.
Have I been lucky as I have always done "minor version" upgrades?

This is guaranteed to work w/o rebooting to the new kernel as long as you
stay on the same branch, i.e. 10.x -> 10.y should always work.

Going to 11.x will need a reboot (or booting from an installation medium
and using the installer included there).

Martin

Just curious. I have a riscv64 system under qemu lying around on my Raspberrypi 4 NetBSD machine:

The kernel version is:

raspa4-riscv# uname -a
NetBSD raspa4-riscv.remigio 10.99.15 NetBSD 10.99.15 (GENERIC64) #0: Mon Jul 28 03:01:48 UTC 2025 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/riscv/compile/GENERIC64 riscv


I tried to upgrade using sysinst:

raspa4-riscv# sysinst


"Upgrade system" -> "Custom installation"



The following is the list of distribution sets that will be used.

    Distribution set                   Selected
    ---------------------------------- --------
 a: Kernel modules                           Yes
 b: Base                                     Yes
 c: Base 32-bit compatibility libraries      No
 d: Devicetree hardware descriptions         Yes
 e: Configuration files (/etc)               Yes
 f: Compiler tools                           No
 g: Games                                    No
 h: Graphics driver firmware                 Yes
 i: Manual pages                             No
 j: Manual pages (HTML)                      No
 k: Miscellaneous                            No
 l: Recovery tools                           No
 m: Test programs                            No
 n: Text processing tools                    No
 o: X11 sets                                 None
 p: Source and debug sets                    None
>x: Install selected sets

There is no "kernel" set alone, I only see "Kernel modules" set.

The following are the https site, directory, user, and password that will be used. If "user" is "ftp", then the password is not needed.

>a: Host                                nycdn.NetBSD.org
 b: Base directory                      pub/NetBSD-daily/HEAD/latest
 c: Binary set directory                /riscv-riscv64/binary/sets
 d: Source set directory                /source/sets
 e: File extension                      .tgz
 f: User                                ftp
 g: Password
 h: Proxy
 i: Transfer directory                  /usr/INSTALL
 j: Delete after install                No
 k: Configure network
 l: Exit
 x: Get Distribution

After upgrading and rebooting I notice that the kernel was the same:

raspa4-riscv# uname -a
NetBSD raspa4-riscv.remigio 10.99.15 NetBSD 10.99.15 (GENERIC64) #0: Mon Jul 28 03:01:48 UTC 2025 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/riscv/compile/GENERIC64 riscv
raspa4-riscv#


raspa4-riscv# ls -lh /netbsd
-rwxr-xr-x  1 root  wheel  8.5M Jul  8 21:23 /netbsd


Seems to be an old kernel file

The downloaded sets were:


raspa4-riscv# ls -l /usr/INSTALL/
total 81320
-rw-r--r--  1 root  wheel  76764397 Oct  2 06:49 base.tgz
-rw-r--r--  1 root  wheel    108522 Oct  2 06:49 dtb.tgz
-rw-r--r--  1 root  wheel    696988 Oct  2 06:49 etc.tgz
-rw-r--r--  1 root  wheel      1714 Oct  2 06:49 gpufw.tgz
-rw-r--r--  1

On the NetBSD server I see that there is the kernel kern-GENERIC64.tgz
 set:

https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/20251002065116Z/riscv-riscv64/binary/sets/kern-GENERIC64.tgz

What I am I missing?

Thanks.








Home | Main Index | Thread Index | Old Index