Hi everyone,

I have been trying to boot OpenBSD on a Hillstone SG6000-E1700 firewall 
appliance. It is a custom build appliance by Hillstone networks, but seems to 
use mostly of the shelf components. I have been able to get it to load the 
kernel via TFTP but it stops with the error “Trap cause = 7 Frame 
0x9800000020007a58”. I’ve tried to debug this to the best of my ability and 
read through some of the source code, which to me suggests that it’s throwing a 
/* Bus error on a load or store */. But this is stretching far beyond my 
abilities to understand currently.

If there is anymore information needed to debug this problem then I will gladly 
provide it. 

Below you will find the boot log and some of the DDB output as outlined in the 
guidelines.

bootloader# tftpboot 0 bsd


Load address: 0x20000000
Loading: ##################################################
done

Load complete: 6758098 bytes loaded
bootloader# bootoctlinux ./bsd
bootmem desc 0x6c108 version 3.0
avail phys mem 0x0000000000100380 - 0x0000000000fffc10
avail phys mem 0x0000000001664e30 - 0x000000000f100000
avail phys mem 0x000000000f100070 - 0x000000000f100080
avail phys mem 0x000000000f1000b0 - 0x000000000f1011c8
avail phys mem 0x000000000f1011d0 - 0x000000000f101200
avail phys mem 0x000000000f334600 - 0x000000000f334e08
avail phys mem 0x000000000f334e10 - 0x000000000fffdc00
avail phys mem 0x0000000020000000 - 0x0000000090000000
Total DRAM Size 0x0000000080000000
mem_layout[0] page 0x0000000000000041 -> 0x00000000000003FF
mem_layout[1] page 0x000000000000059A -> 0x0000000000003C40
mem_layout[2] page 0x0000000000003CCE -> 0x0000000000003FFFInitial setup done, 
switching console.
boot_desc->desc_ver:7
boot_desc->desc_size:408
boot_desc->stack_top:0
boot_desc->heap_start:0
boot_desc->heap_end:0
boot_desc->argc:4
boot_desc->flags:0x5
boot_desc->core_mask:0x1
boot_desc->dram_size:2048
boot_desc->phy_mem_desc_addr:0
boot_desc->debugger_flag_addr:0xec4
boot_desc->eclock:1000000000
boot_desc->boot_info_addr:0x100250
boot_info->ver_major:1
boot_info->ver_minor:5
boot_info->stack_top:0
boot_info->heap_start:0
boot_info->heap_end:0
boot_info->boot_desc_addr:0
boot_info->exception_base_addr:0x1000
boot_info->stack_size:0
boot_info->flags:0x5
boot_info->core_mask:0x1
boot_info->dram_size:2048
boot_info->phys_mem_desc_addr:0x6c108
boot_info->debugger_flags_addr:0
boot_info->eclock:1000000000
boot_info->dclock:667000000
boot_info->board_type:13
boot_info->board_rev_major:0
boot_info->board_rev_minor:0
boot_info->mac_addr_count:0
boot_info->cf_common_addr:0x4000000000000000
boot_info->cf_attr_addr:0x1fc00800
boot_info->led_display_addr:0x1fc00800
boot_info->dfaclock:0
boot_info->config_flags:0
boot_info->fdt_addr:0x8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6 (GENERIC) #96: Sat Oct 12 07:12:28 MDT 2019
    [email protected]:/usr/src/sys/arch/octeon/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2102755328 (2005MB)
mainbus0 at root: board 13 rev 0.0
cpu0 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu0: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
octrtc0 at mainbus0: DS1337
iobus0 at mainbus0
octcf0 at iobus0 base 0x1d000800 irq 0
Trap cause = 7 Frame 0x9800000020007a58
Trap PC 0xffffffff81454a14 RA 0xffffffff81159ff8 fault 0x100200c4210520d
0xffffffff81454a10 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 
0xffffffff81159ff8 sp 0x9800000020007bb0, sz 0
0xffffffff81159e60 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 
0xffffffff813932b4 sp 0x9800000020007bb0, sz 80
0xffffffff81392ff8 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 
0xffffffff8109dfa0 sp 0x9800000020007c00, sz 64
0xffffffff8109deb8 (ffffffff81501be3,ffffffff9d000800,6,2)  ra 
0xffffffff81392824 sp 0x9800000020007c40, sz 96
0xffffffff8139273c (ffffffff81501be3,ffffffff9d000800,6,2)  ra 0x0 sp 
0x9800000020007ca0, sz 0
User-level: pid 0
stopped on non ddb fault
Stopped at      0xffffffff81454a14:     lhu     v0,0(at)
ddb> trace
0xffffffff81454a10 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 0xffffffff81159f
f8 sp 0x9800000020007bb0, sz 0
0xffffffff81159e60 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 0xffffffff813932
b4 sp 0x9800000020007bb0, sz 80
0xffffffff81392ff8 (ffffffff815c3778,ffffffff9d000800,6,2)  ra 0xffffffff8109df
a0 sp 0x9800000020007c00, sz 64
0xffffffff8109deb8 (ffffffff81501be3,ffffffff9d000800,6,2)  ra 0xffffffff813928
24 sp 0x9800000020007c40, sz 96
0xffffffff8139273c (ffffffff81501be3,ffffffff9d000800,6,2)  ra 0x0 sp 0x9800000
020007ca0, sz 0
User-level: pid 0
ddb> show panic
the kernel did not panic
ddb>
ddb> show registers
at                               0x1
v0                               0x1
v1                        0x3b9aca00
a0                0xffffffff815c92b0
a1                0x9001180000000800
a2                               0x5
a3                               0xd
a4                0x9800000020007878
a5                                 0
a6                                 0
a7                0xffffffff815e34db
t0                0xffffffff8161b630
t1                                 0
t2                                 0
t3                              0xf4
s0                0xffffffff8153589f
s1                0x98000000200078f8
s2                0xffffffff815c92b0
s3                             0x100
s4                0xffffffff815d0000
s5                                 0
s6                               0x1
s7                               0xa
t8                            0xba17
t9                0xffffffff813d3ae0
k0                               0xa
k1                               0x2
gp                0xffffffff815c27f0
sp                0x98000000200078b0
s8                               0x2
ra                0xffffffff8120db7c
sr                        0x140000e2
lo                             0x3e8
hi                                 0
bad                0x100200c4210520d
cs                        0x40008024
pc                0xffffffff81273194
0xffffffff81273194:     jr      ra
0xffffffff81273198:      nop
ddb>

Reply via email to