From owner-freebsd-bugs@freebsd.org Sun Feb 5 17:35:21 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D9F6CD2F0D for ; Sun, 5 Feb 2017 17:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 240C7E66 for ; Sun, 5 Feb 2017 17:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v15HZL0x061629 for ; Sun, 5 Feb 2017 17:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Sun, 05 Feb 2017 17:35:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: northwoodlogic.free@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2017 17:35:21 -0000 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.=