Hi,

TL;DR
After (messy) upgrade, I'm getting the following in the relink.log:
(SHA256) /bsd: OK
LD="ld" sh makegap.sh 0xd4d4d4d4 gapdummy.o
Abort trap
*** Error 134 in /usr/share/relink/kernel/GENERIC.MP (Makefile:1378 'newbsd')


Details
---------

I tried to use the sysupgrade option to upgrade my rpi4 from OpenBSD 7.1 to OpenBSD 7.2.

The install "kind of" worked, in that it rebooted into 7.2. However, I think there might have been an issue writing to the (painfully slow) SD card when extracting the base72.tgz files, etc. The data extract seemed quite quick and at least some of the 7.2 files were missing.

I did write a script that compared the existing files to the ones in the 7.2 install files and there were discrepancies (using md5).  So I just extracted (all but) base72.tgz over top of the 7.1 files.

Everything is working, pkg_add -u worked flawlessly, but when I reboot, I am getting an error
reordering libraries:
ls: /usr/share/relink/usr/lib/libc.o.+([0-9]).a: No such file or directory.
Abort Trap
execve: cannot load ./ld.so.test

I was getting an error:
reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC/relink.log

Then I noticed that my system was only running GENERIC, not GENERIC.MP, so I
mv /bsd /bsd.sp
mv /bsd.mp /bsd

Rebooted, and I get the same error message, but now the relink.log is in GENERIC.MP
reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC.MP/relink.log

I did generate a new SHA256 so the GENERIC.MP link would progress (per the relink.log), but I'm getting:
LD="ld" sh makegap.sh 0xd4d4d4d4 gapdummy.o
Abort trap
*** Error 134 in /usr/share/relink/kernel/GENERIC.MP (Makefile:1361 'newbsd')

and I'm still getting:

So I found
/home/_sysupgrade/base72/usr/share/relink/kernel.tgz and the files under /usr

I copied them into /usr/share/relink/kernel and got further.

Now it's just down the error:
rpi4# LD="ld" sh -x makegap.sh 0xd4d4d4d4 gapdummy.o
+ umask 007
+ sysctl -n hw.pagesize
+ PAGE_SIZE=4096
+ PAD=0xd4d4d4d4
+ GAPDUMMY=gapdummy.o
+ random_uniform 12288
+ RANDOM1=5878
+ random_uniform 4096
+ RANDOM2=3116
+ random_uniform 4096
+ RANDOM3=2520
+ random_uniform 4096
+ RANDOM4=707
+ random_uniform 4096
+ RANDOM5=185
+ cat
+ > gap.link
+ << __EOF__
+ ld -r gap.link gapdummy.o -o gap.o
Abort trap

Any thoughts/advice?

Thanks,
Steve Williams


Reply via email to