FreeBSD Bugzilla – Attachment 209334 Details for
Bug 237719
[NEW PORT] sysutils/u-boot-nanopi-r1: Cross-build das u-boot for model nanopi-r1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
NanoPi R1 Patch
patch-nanopi-r1-board (text/plain), 4.62 KB, created by
Neko Prog
on 2019-11-22 04:49:59 UTC
(
hide
)
Description:
NanoPi R1 Patch
Filename:
MIME Type:
Creator:
Neko Prog
Created:
2019-11-22 04:49:59 UTC
Size:
4.62 KB
patch
obsolete
>--- u-boot-${PORTVERSION}/arch/arm/dts/Makefile.orig 2019-11-22 20:27:01.662208000 +0800 >+++ u-boot-${PORTVERSION}/arch/arm/dts/Makefile 2019-11-22 20:28:05.981950000 +0800 >@@ -497,6 +497,7 @@ > sun8i-h3-nanopi-m1-plus.dtb \ > sun8i-h3-nanopi-neo.dtb \ > sun8i-h3-nanopi-neo-air.dtb \ >+ sun8i-h3-nanopi-r1.dtb \ > sun8i-h3-orangepi-2.dtb \ > sun8i-h3-orangepi-lite.dtb \ > sun8i-h3-orangepi-one.dtb \ >--- u-boot-${PORTVERSION}/arch/arm/dts/sun8i-h3-nanopi-r1.dts.orig 2019-11-22 20:35:32.987900000 +0800 >+++ u-boot-${PORTVERSION}/arch/arm/dts/sun8i-h3-nanopi-r1.dts 2019-11-22 20:31:51.770869000 +0800 >@@ -0,0 +1,102 @@ >+/* >+ * Copyright (C) 2019 Igor Pecovnik <igor@armbian.com> >+ * >+ * This file is dual-licensed: you can use it either under the terms >+ * of the GPL or the X11 license, at your option. Note that this dual >+ * licensing only applies to this file, and not this project as a >+ * whole. >+ * >+ * a) This file is free software; you can redistribute it and/or >+ * modify it under the terms of the GNU General Public License as >+ * published by the Free Software Foundation; either version 2 of the >+ * License, or (at your option) any later version. >+ * >+ * This file is distributed in the hope that it will be useful, >+ * but WITHOUT ANY WARRANTY; without even the implied warranty of >+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+ * GNU General Public License for more details. >+ * >+ * Or, alternatively, >+ * >+ * b) Permission is hereby granted, free of charge, to any person >+ * obtaining a copy of this software and associated documentation >+ * files (the "Software"), to deal in the Software without >+ * restriction, including without limitation the rights to use, >+ * copy, modify, merge, publish, distribute, sublicense, and/or >+ * sell copies of the Software, and to permit persons to whom the >+ * Software is furnished to do so, subject to the following >+ * conditions: >+ * >+ * The above copyright notice and this permission notice shall be >+ * included in all copies or substantial portions of the Software. >+ * >+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >+ * OTHER DEALINGS IN THE SOFTWARE. >+ */ >+ >+#include "sun8i-h3-nanopi.dtsi" >+ >+/ { >+ model = "FriendlyARM NanoPi R1"; >+ compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3"; >+ >+ reg_gmac_3v3: gmac-3v3 { >+ compatible = "regulator-fixed"; >+ pinctrl-names = "default"; >+ regulator-name = "gmac-3v3"; >+ regulator-min-microvolt = <3300000>; >+ regulator-max-microvolt = <3300000>; >+ startup-delay-us = <100000>; >+ enable-active-high; >+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; >+ }; >+ >+}; >+ >+&ehci0 { >+ status = "okay"; >+}; >+ >+&pio { >+ gmac_power_pin_nanopi: gmac_power_pin@0 { >+ pins = "PD6"; >+ function = "gpio_out"; >+ }; >+}; >+ >+&ohci0 { >+ status = "okay"; >+}; >+ >+&mmc2 { >+ pinctrl-names = "default"; >+ pinctrl-0 = <&mmc2_8bit_pins>; >+ vmmc-supply = <®_vcc3v3>; >+ bus-width = <8>; >+ non-removable; >+ cap-mmc-hw-reset; >+ status = "okay"; >+}; >+ >+&emac { >+ pinctrl-names = "default"; >+ pinctrl-0 = <&emac_rgmii_pins>; >+ phy-supply = <®_gmac_3v3>; >+ phy-handle = <&ext_rgmii_phy>; >+ phy-mode = "rgmii"; >+ >+ status = "okay"; >+}; >+ >+&external_mdio { >+ ext_rgmii_phy: ethernet-phy@1 { >+ compatible = "ethernet-phy-ieee802.3-c22"; >+ reg = <7>; >+ }; >+}; >--- u-boot-${PORTVERSION}/configs/nanopi_r1_defconfig.orig 2019-11-22 20:37:23.743396000 +0800 >+++ u-boot-${PORTVERSION}/configs/nanopi_r1_defconfig 2019-11-22 20:37:33.112760000 +0800 >@@ -0,0 +1,22 @@ >+CONFIG_ARM=y >+CONFIG_ARCH_SUNXI=y >+CONFIG_SPL=y >+CONFIG_MACH_SUN8I_H3=y >+CONFIG_DRAM_CLK=408 >+CONFIG_DRAM_ZQ=3881979 >+CONFIG_DRAM_ODT_EN=y >+CONFIG_MACPWR="PD6" >+# CONFIG_VIDEO_DE2 is not set >+CONFIG_NR_DRAM_BANKS=1 >+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set >+CONFIG_CONSOLE_MUX=y >+CONFIG_SYS_CLK_FREQ=480000000 >+# CONFIG_CMD_FLASH is not set >+# CONFIG_SPL_DOS_PARTITION is not set >+# CONFIG_SPL_EFI_PARTITION is not set >+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-nanopi-r1" >+CONFIG_SUN8I_EMAC=y >+CONFIG_USB_EHCI_HCD=y >+CONFIG_USB_OHCI_HCD=y >+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y >+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237719
: 209334