[oi-dev] OpenIndiana 4 sun4u
Klaus Ziegler - owner of sunfreeware.de
klausz at haus-gisela.de
Tue Feb 16 16:30:02 UTC 2021
Hi,
as you may know the latest OpenIndiana for SPARC does not run on
sun4u systems, it always panics during the initial CD boot with:
panic[cpu0]/thread=2a100301c80: vmem_xalloc(): size overflow
later on in the dump output one can see:
000002a100300f50 zfs:aggsum_init+48 (701348e0, 0, 7b69bbe0, 7b77b3a0, 1, 3)
%l0-3: 0000000001824000 0000000001814410 000002a100300fe8
0000000001824000
%l4-7: 0000030001a82ee0 0000000001834000 0000000000000000
0000000000000090
000002a100301000 zfs:arc_state_init+1ec (0, 3, 0, 0, 1, 701167b8)
%l0-3: 0000000070116898 0000000070116800 0000000070116800
0000000070116800
So for me it looks like the problem is the /kernel/drv/sparcv9/zfs module.
The panic occures in:
usr/src/uts/common/os/vmem.c line: 1085: panic("vmem_xalloc(): size
overflow");
enough now, about what isn't working, here's the way I got it working:
1. lofiadm mount Gary's iso to /mnt, can be done on x86.
# lofiadm -a `pwd`/OI_2018_02_Text_SPARC.iso
# mount -o ro -F hsfs /dev/lofi/1 /mnt
2. extract the boot_archive to a SPARC, must be a SPARC can't be x86!
# cd /mnt/boot/platform/sun4u
# ls -al boot_archive
-rw-r--r-- 1 root root 197425152 Jan. 4 02:16 boot_archive
3. After you copied the archive to the SPARC system mount it using ufs
filesystem format:
# lofiadm -a `pwd`/boot_archive
# mount -F ufs /dev/lofi/1 /mnt
# cd /mnt/kernel/drv/sparcv9
# rcp/scp <your v9os zfs module> .
# ls -al zfs
-rwxr-xr-x 2 root sys 2229424 Oct 30 2018 zfs
# cd /
# umount /mnt
4. My boot-server is x86, so I copied the modified boot_archive back to
there.
Setup tftpboot, the same way like s10s_u11wos_24a used to be booted over
the net.
I used the inetboot binary from v9os, but I also verified that it works
with the
inetboot from Gary's distribution.
IMPORTANT: rename "boot_archive" to "sparc.miniroot" in the NFS share,
which will be mounted for the initial boot via tftpboot.
5. On the system which you are going to install, insert the
OI_2018_02_Text_SPARC
CD and boot from the net:
ok boot net -rv
and then you will end up in the installer of Gary's wonderfull distribution.
DRAWBACKS:
1.) you need an empty, but exsiting zpool "rpool" on the system you'll
going to install.
2.) you have to choose "Install to existing Zpool" - and therfore create
swap/dump
devices after the install.
3.) you will not be able to create additional zpools on the system you
have installed.
I have successfully done this for a SunFire v240 and one Enterprise2 -
works like
a champ, if you create all your zpools before doing the install. Anyhow
if you
do have a CDrom in the target system you can always create additional zpools
using the boot fro the v9os CD (be sure to use the correct drives).
P.S. if the system to be installed is a BroadCom Gigabit based one, also
exchange
the bge driver in addition to the zfs module - the bge driver
fro Gray's release
didn't work for me - I also used the one fro v9os.
Much Regards
Klaus
\\\
(.. )
=o00=(_)=00o=============================================================
More information about the oi-dev
mailing list