Date: Fri, 10 Feb 2017 02:10:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 216831] [PATCH] sys/mips/cavium/octeon_machdep.c: add cavium octeon 'bootoctlinux' boot argument support Message-ID: <bug-216831-27794-ChWJn68omW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216831-27794@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216831 Dave Rush <northwoodlogic.free@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179652|0 |1 is obsolete| | --- Comment #3 from Dave Rush <northwoodlogic.free@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216831-27794-ChWJn68omW>
