Skip site navigation (1)Skip section navigation (2)
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/>
References:  <bug-216831-27794@https.bugs.freebsd.org/bugzilla/>

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

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=3D179816&action=
=3Dedit
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 f=
rom
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=3D0x3

Boot to single user mode:

  Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=3D0x3 -s

Specify kernel environment variables:

  Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=3D0x3
vfs.root.mountfrom=3Dufs:/dev/da0s2a foo=3Dbar

Combination of boot flags and kenv:

  Octeon ubnt_e100# bootoctlinux ${loadaddr} coremask=3D0x3
vfs.root.mountfrom=3Dufs:/dev/da0s2a -s

--=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-27794-ChWJn68omW>