After some insight from jasper, I stripped away the randomdata section and
voila:

Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 5.5 (RAMDISK) #0: Fri Mar 14 12:10:56 CET 2014
    r...@octeon.office.jasper.la:/usr/src/sys/arch/octeon/compile/RAMDISK
real mem = 4002201600 (3816MB)
avail mem = 3970760704 (3786MB)
warning: no entropy supplied by boot loader
mainbus0 at root
cpu0 at mainbus0: Unknown CPU type (0x0) rev 0.3 500 MHz, Software FP
emulation
cpu0: cache L1-I 32KB D 16KB 4 way, L2 128KB direct
clock0 at mainbus0: int 5
iobus0 at mainbus0
octcf at iobus0 base 0x1d000800 irq 0 not configured
pcibus0 at iobus0 irq 0
pci0 at pcibus0 bus 0
0:0:0: mem address conflict 0xf8000000/0x8000000
0:2:0: bridge mem address conflict 0x10000000/0x100000
vendor "Cavium", unknown product 0x0005 (class processor subclass MIPS, rev
0x03) at pci0 dev 0 function 0 not configured
"Pericom PI7C21P100 PCIX-PCIX" rev 0x01 at pci0 dev 2 function 0 not
configured
cn30xxgmx0 at iobus0 base 0x1180008000000 irq 48
unsupported octeon model: 0xd0003
octrng at iobus0 base 0x1400000000000 irq 0 not configured
uar: ns16550, no working fifo
com0: console
com1 at uartbus0 base 0x1180000000c00 irq 35: ns16550, no working fifo
root on rd0a swap on rd0b dump on rd0b
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/octeon 5.5 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s


The command was (assuming you have a mips64 or build cross-tools):
/usr/cross/octeon/usr/bin/mips64-unknown-openbsd5.5-strip -R
.openbsd.randomdata /tftpboot/bsd.rd.octeon
and then it JustWorked(tm)!



2014-05-15 21:32 GMT+02:00 Jasper Lievisse Adriaanse <jas...@openbsd.org>:

> On Thu, May 15, 2014 at 09:04:14PM +0200, Janne Johansson wrote:
> > Its made by Movidis, and it has some linux on it now which boots.
> > Of course, getting openbsd-octeon on it was the next step, but it won't
> > load the bsd.rd correctly:
> >
> > Movidis X16 U-Boot version 1.6.1 (Build time: Nov 23 2007 - 18:27:52)
> >
> > CUST_WSX16 board revision major:1, minor:1, serial #: F12032617
> > OCTEON CN38XX-NSP revision: 3, Core clock: 500 MHz, DDR clock: 333 MHz
> (666
> > Mhz data rate)
> > DRAM:  4096 MB
> > Flash:  2 MB
> > IPD backpressure workaround verified, took 11 loops
> > Clearing DRAM........ done
> > BIST check passed.
> > Starting PCI
> > PCI Status: PCI-X 64-bit
> > PCI BAR 0: 0x00000000, PCI BAR 1: Memory 0x00000000  PCI 0xf8000000
> > Net:   octeth0, octeth1, octeth2, octeth3, octeth4, octeth5, octeth6,
> > octeth7
> >  0
> > Movidis x16> <INTERRUPT>
> > Movidis x16>
> > Movidis x16> setenv ipaddr 192.168.1.199
> > Movidis x16> setenv serverip 192.168.1.70
> > Movidis x16> tftpboot 0 bsd.octeon
> > octeth0:        Up     1Gbs Full duplex, (port  0)
> > Using octeth0 device
> > TFTP from server 192.168.1.70; our IP address is 192.168.1.199
> > Filename 'bsd.octeon'.
> > Load address: 0x100000
> > Loading: ###################################################
> > done
> > Bytes transferred = 7291501 (6f426d hex), 346 Kbytes/sec
> > Movidis x16> bootoctlinux
> > ELF file is 64 bit
> > Allocated memory for ELF segment: addr: 0x1000000, size 0x72fb80
> > Error allocating memory for elf image!
> > ## Loading Linux kernel with entry point: 0x00100000 ...
> > Bootloader: Done loading app on coremask: 0x1
> >
> > and then it just hangs there.
> >
> > Other info from the U-boot:
> > Movidis x16> printenv
> > bootdelay=0
> > baudrate=115200
> > download_baudrate=115200
> > bootloader_flash_update=protect off 0xbf430000 0xbf47ffff;erase
> 0xbf430000
> > 0xbf47ffff;cp.b 0x100000 0xbf430000 0x50000
> > flash_update=protect off 0xbec30000 0xbec7ffff;erase 0xbec30000
> > 0xbec7ffff;cp.b 0x100000 0xbec30000 0x50000
> > gatewayip=192.168.1.1
> > netmask=255.255.255.0
> > dnsip=192.168.1.1
> > ipaddr=192.168.1.77
> > serverip=192.168.1.151
> > bootsas=tftpboot; bootoctlinux 31000000 mem=0 numcores=16 root=/dev/sda1
> > autostart=yes
> > ethact=octeth0
> > bootfile=vmlinux.64
> > bootpartsize=1e00000
> > fsloadfile=vmlinux.64.ram.1.6
> > bootcmd=fsload; bootoctlinux 100000 numcores=16 endbootargs
> > mtdparts=ws16-nand:30m(kernel),20m(rootfs),10m(appl)
> > loadaddr=0x100000
> > coremask_override=0xffff
> > numcores=16
> > stdin=serial
> > stdout=serial
> > stderr=serial
> >
> > Environment size: 767/65532 bytes
> > Movidis x16> base
> > Base Address64: 0x8000000000000000, Base Address: 0x00000000
> > Movidis x16> namedprint
> > List of currently allocated named bootmem blocks:
> > Name: __tmp_load, address: 0x0000000000100000, size: 0x0000000000f00000,
> > index: 0
> > Name: __tmp_reserved_linux, address: 0x0000000001000000, size:
> > 0x0000000008000000, index: 1
> >
> > So it doesn't seem to like either bsd nor bsd.rd, and it doesn't print
> > anything after bootoctlinux. Where to go from here?
> > Is the 0x100000 boot address completely off?
>
> The load address looks correct, as in, it's the same as ${loaddr} from
> uboot.
>
> This however looks more serious:  Error allocating memory for elf image!
> Perhaps you need to strip the .openbsd.randomdata section? I seem to recall
> Paul has a board that's got similar issues.
>
> > --
> > May the most significant bit of your life be positive.
>



-- 
May the most significant bit of your life be positive.

Reply via email to