[Bug 216831] [PATCH] sys/mips/cavium/octeon_machdep.c: add cavium octeon 'bootoctlinux' boot argument support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 5 17:35:21 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216831

            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 at FreeBSD.org
          Reporter: northwoodlogic.free at gmail.com
          Keywords: patch

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

This patch adds support to set a few bootflags and kernel environment variables
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=115200
download_baudrate=115200
nuke_env=protect off $(env_addr) +$(env_size);erase $(env_addr) +$(env_size)
autoload=n
ethact=octeth0
bootdelay=10
kernel=kernel
filesize=8EF8C8
fileaddr=0x9F00000
filename=kernel
rootdev=ufs:/dev/da0s2a
bootcmd=usb reset;fatload usb 0 ${loadaddr} ${kernel}; bootoctlinux ${loadaddr}
coremask=0x3 vfs.root.mountfrom=${rootdev}
loadaddr=0x9f00000
numcores=2
stdin=serial
stdout=serial
stderr=serial
env_addr=0x1fbfe000
env_size=0x2000
flash_base_addr=0x1f800000
flash_size=0x400000
uboot_flash_addr=0x1f880000
uboot_flash_size=0x70000
flash_unused_addr=0x1f8f0000
flash_unused_size=0x310000
bootloader_flash_update=bootloaderupdate

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


More information about the freebsd-bugs mailing list