[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
Fri Feb 10 02:10:16 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216831
Dave Rush <northwoodlogic.free at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #179652|0 |1
is obsolete| |
--- Comment #3 from Dave Rush <northwoodlogic.free at gmail.com> ---
Created attachment 179816
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179816&action=edit
reworked cavium octeon 'bootoctlinux' argument support patch
The patch has been reworked to support single letter boot flags and factors out
the code that sets bits in the boothowto variable. Other machdep code that
needs to set boothowto flags can pass the "-<bootflags>" argument it gets from
the boot loader into the new "boothowto_parse" function.
These are a few examples on how I use this on my edgerouter lite.
Boot normally from U-Boot:
Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=0x3
Boot to single user mode:
Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=0x3 -s
Specify kernel environment variables:
Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=0x3
vfs.root.mountfrom=ufs:/dev/da0s2a foo=bar
Combination of boot flags and kenv:
Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=0x3
vfs.root.mountfrom=ufs:/dev/da0s2a -s
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-mips
mailing list