Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Feb 2017 17:35:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 216831] [PATCH] sys/mips/cavium/octeon_machdep.c: add cavium octeon 'bootoctlinux' boot argument support
Message-ID:  <bug-216831-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216831

            Bug ID: 216831
           Summary: [PATCH] sys/mips/cavium/octeon_machdep.c: add cavium
                    octeon 'bootoctlinux' boot argument support
           Product: Base System
           Version: 11.0-STABLE
          Hardware: mips
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: northwoodlogic.free@gmail.com
          Keywords: patch

Created attachment 179652
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179652&action=
=3Dedit
cavium octeon 'bootoctlinux' argument support patch

This patch adds support to set a few bootflags and kernel environment varia=
bles
from the cavium 'bootoctlinux' uboot loader. With this patch I can do many =
of
the loader things like booting to single user mode and setting an alternate
root device. It's not 100% compatible with all loader features because many=
 of
them don't make sense on this platform.


This was developed and tested on an EdgeRouter Lite v3.

For reference, here is the u-boot version I have:

U-Boot 1.1.1 (UBNT Build ID: 4670715-gbd7e2d7) (Build time: May 27 2014 -
11:16:22)

BIST check passed.
UBNT_E100 r1:2, r2:18, f:4/71, serial #: 802AA88F7448
MPR 13-00318-18
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2


This is the uboot environment I've been using:


baudrate=3D115200
download_baudrate=3D115200
nuke_env=3Dprotect off $(env_addr) +$(env_size);erase $(env_addr) +$(env_si=
ze)
autoload=3Dn
ethact=3Docteth0
bootdelay=3D10
kernel=3Dkernel
filesize=3D8EF8C8
fileaddr=3D0x9F00000
filename=3Dkernel
rootdev=3Dufs:/dev/da0s2a
bootcmd=3Dusb reset;fatload usb 0 ${loadaddr} ${kernel}; bootoctlinux ${loa=
daddr}
coremask=3D0x3 vfs.root.mountfrom=3D${rootdev}
loadaddr=3D0x9f00000
numcores=3D2
stdin=3Dserial
stdout=3Dserial
stderr=3Dserial
env_addr=3D0x1fbfe000
env_size=3D0x2000
flash_base_addr=3D0x1f800000
flash_size=3D0x400000
uboot_flash_addr=3D0x1f880000
uboot_flash_size=3D0x70000
flash_unused_addr=3D0x1f8f0000
flash_unused_size=3D0x310000
bootloader_flash_update=3Dbootloaderupdate

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216831-8>