From: Antony Pavlov <antonynpavlov@gmail.com>
To: linux-mips@linux-mips.org
Cc: Marek Vasut <marex@denx.de>, Wills Wang <wills.wang@live.com>,
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
Alban Bedel <albeu@free.fr>
Subject: [RFC v5 15/15] WIP: MIPS: ath79: add AR9331 devicetree defconfig
Date: Tue, 9 Feb 2016 11:14:01 +0300 [thread overview]
Message-ID: <1455005641-7079-16-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1455005641-7079-1-git-send-email-antonynpavlov@gmail.com>
This commit adds defconfig file for AR9331 kernel
with device tree support.
The boards with u-boot_mod-like bootloader are supported:
* TP-LINK MR3020;
* Dragino 2;
* Onion Omega;
* DPTechnics DPT-Module.
Here is a small instruction:
1. download rootfs.mipsI.cpio image into your linux kernel
source root dir.
$ wget https://github.com/frantony/linux/raw/c95a5953e3dd96ad304de515f79acb555e0bc24e/rootfs.mipsI.cpio
2. you have to disable fw_getenv() function because
devicetree-enabled kernel will hangs if started
from u-boot_mod:
> --- a/arch/mips/fw/lib/cmdline.c
> +++ b/arch/mips/fw/lib/cmdline.c
> @@ -51,6 +51,8 @@ char *fw_getenv(char *envname)
> {
> char *result = NULL;
>
> + return result;
> +
3. configure linux kernel and build vmlinux.bin linux kernel image
$ make ARCH=mips ar9331-dt-raw_defconfig
$ make ARCH=mips CROSS_COMPILE=<your cross compiler> vmlinux.bin
4. prepare vmlinux_dtb.bin image for your board
4.1 for TP-LINK TL-MR3020
$ make ARCH=mips qca/tl_mr3020.dtb
$ cat arch/mips/boot/vmlinux.bin arch/mips/boot/dts/qca/tl_mr3020.dtb > vmlinux_dtb.bin
4.2 for Dragino 2
$ make ARCH=mips qca/dragino_ms14.dtb
$ cat arch/mips/boot/vmlinux.bin arch/mips/boot/dts/qca/dragino_ms14.dtb > vmlinux_dtb.bin
4.3 for Onion Omega
$ make ARCH=mips qca/omega.dtb
$ cat arch/mips/boot/vmlinux.bin arch/mips/boot/dts/qca/omega.dtb > vmlinux_dtb.bin
4.4 DPTechnics DPT-Module
$ make ARCH=mips qca/dpt_module.dtb
$ cat arch/mips/boot/vmlinux.bin arch/mips/boot/dts/qca/dpt_module.dtb > vmlinux_dtb.bin
5. put the vmlinux_dtb.bin into the root directory of your tftp-server
6. connect to u-boot_mod console
7. use u-boot_mod to download vmlinux_dtb.bin into RAM of your board and run it:
uboot> setenv serverip 192.168.1.2; setenv ipaddr 192.168.1.22
uboot> tftpboot 0x80060000 vmlinux_dtb.bin; go 0x80060000
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Cc: linux-mips@linux-mips.org
---
arch/mips/configs/ar9331-dt-raw_defconfig | 100 ++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+)
diff --git a/arch/mips/configs/ar9331-dt-raw_defconfig b/arch/mips/configs/ar9331-dt-raw_defconfig
new file mode 100644
index 0000000..5d81969
--- /dev/null
+++ b/arch/mips/configs/ar9331-dt-raw_defconfig
@@ -0,0 +1,100 @@
+CONFIG_ATH79=y
+CONFIG_ATH79_MACH_AP121=y
+CONFIG_HZ_100=y
+# CONFIG_SECCOMP is not set
+CONFIG_MIPS_RAW_APPENDED_DTB=y
+# CONFIG_LOCALVERSION_AUTO is not set
+CONFIG_SYSVIPC=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_BSD_PROCESS_ACCT=y
+CONFIG_BSD_PROCESS_ACCT_V3=y
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_SCHED=y
+CONFIG_CGROUP_FREEZER=y
+CONFIG_CPUSETS=y
+CONFIG_CGROUP_DEVICE=y
+CONFIG_CGROUP_CPUACCT=y
+CONFIG_CGROUP_DEBUG=y
+CONFIG_NAMESPACES=y
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE="rootfs.mipsI.cpio"
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_EMBEDDED=y
+# CONFIG_VM_EVENT_COUNTERS is not set
+# CONFIG_SLUB_DEBUG is not set
+# CONFIG_COMPAT_BRK is not set
+# CONFIG_BLK_DEV_BSG is not set
+# CONFIG_IOSCHED_CFQ is not set
+# CONFIG_SUSPEND is not set
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+CONFIG_IP_PNP_BOOTP=y
+CONFIG_IP_PNP_RARP=y
+# CONFIG_IPV6 is not set
+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+# CONFIG_FIRMWARE_IN_KERNEL is not set
+CONFIG_MTD=y
+CONFIG_MTD_BLOCK=y
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_SPI_NOR=y
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+CONFIG_NETDEVICES=y
+# CONFIG_INPUT_MOUSEDEV is not set
+CONFIG_INPUT_EVDEV=y
+# CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_KEYBOARD_GPIO_POLLED=y
+# CONFIG_INPUT_MOUSE is not set
+CONFIG_INPUT_MISC=y
+# CONFIG_SERIO is not set
+# CONFIG_VT is not set
+# CONFIG_LEGACY_PTYS is not set
+# CONFIG_DEVKMEM is not set
+CONFIG_SERIAL_AR933X=y
+CONFIG_SERIAL_AR933X_CONSOLE=y
+# CONFIG_HW_RANDOM is not set
+CONFIG_SPI=y
+CONFIG_SPI_ATH79=y
+CONFIG_GPIO_SYSFS=y
+# CONFIG_HWMON is not set
+CONFIG_USB=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_ROOT_HUB_TT=y
+# CONFIG_USB_EHCI_ATH79 is not set
+CONFIG_USB_EHCI_HCD_PLATFORM=y
+CONFIG_USB_STORAGE=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_GPIO=y
+# CONFIG_IOMMU_SUPPORT is not set
+CONFIG_PHY_SIMPLE_PDEV=y
+CONFIG_EXT3_FS=y
+CONFIG_EXT3_FS_POSIX_ACL=y
+CONFIG_EXT3_FS_SECURITY=y
+# CONFIG_DNOTIFY is not set
+CONFIG_VFAT_FS=y
+CONFIG_PROC_KCORE=y
+# CONFIG_PROC_PAGE_MONITOR is not set
+CONFIG_TMPFS=y
+CONFIG_TMPFS_POSIX_ACL=y
+CONFIG_NFS_FS=y
+CONFIG_NFS_V3_ACL=y
+CONFIG_NFS_V4=y
+CONFIG_ROOT_NFS=y
+# CONFIG_ENABLE_MUST_CHECK is not set
+CONFIG_STRIP_ASM_SYMS=y
+CONFIG_DEBUG_FS=y
+# CONFIG_SCHED_DEBUG is not set
+# CONFIG_FTRACE is not set
+CONFIG_CMDLINE_BOOL=y
+CONFIG_CMDLINE="init=/bin/sh machtype=DTB console=ttyATH0 root=/dev/ram"
+CONFIG_CMDLINE_OVERRIDE=y
+CONFIG_DEBUG_ZBOOT=y
+CONFIG_CRC_ITU_T=y
--
2.7.0
prev parent reply other threads:[~2016-02-09 8:18 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 8:13 [RFC v5 00/15] MIPS: ath79: AR9331: add devicetree support Antony Pavlov
2016-02-09 8:13 ` [RFC v5 01/15] WIP: clk: add Atheros AR933X SoCs clock driver Antony Pavlov
2016-02-09 11:05 ` Marek Vasut
2016-02-09 21:51 ` Alban
2016-02-11 12:50 ` Antony Pavlov
2016-02-12 2:21 ` Michael Turquette
2016-02-09 8:13 ` [RFC v5 02/15] dt-bindings: clock: qca,ath79-pll: fix copy-paste typos Antony Pavlov
2016-02-09 11:05 ` Marek Vasut
2016-02-09 21:52 ` Alban
2016-02-12 14:52 ` Rob Herring
2016-02-09 8:13 ` [RFC v5 03/15] MIPS: ath79: use clk-ath79.c driver for AR933X Antony Pavlov
2016-02-09 11:07 ` Marek Vasut
2016-02-09 22:07 ` Alban
2016-02-10 9:04 ` Antony Pavlov
2016-02-09 8:13 ` [RFC v5 04/15] WIP: MIPS: ath79: setup.c: disable platform code for OF boards Antony Pavlov
2016-02-09 11:08 ` Marek Vasut
2016-02-09 8:13 ` [RFC v5 05/15] MIPS: dts: qca: introduce AR9331 devicetree Antony Pavlov
2016-02-09 11:12 ` Marek Vasut
2016-02-09 8:13 ` [RFC v5 06/15] MIPS: ath79: add initial support for TP-LINK MR3020 Antony Pavlov
2016-02-09 11:13 ` Marek Vasut
2016-02-09 8:13 ` [RFC v5 07/15] usb: ehci: add vbus-gpio parameter Antony Pavlov
2016-02-09 11:14 ` Marek Vasut
2016-02-09 22:15 ` Alban
2016-02-10 0:00 ` Antony Pavlov
2016-02-18 16:12 ` Alan Stern
2016-02-18 16:12 ` Alan Stern
2016-02-18 16:39 ` Marek Vasut
2016-02-18 18:06 ` Antony Pavlov
2016-02-18 18:06 ` Antony Pavlov
2016-02-18 18:31 ` Sergei Shtylyov
2016-02-18 22:11 ` Antony Pavlov
2016-02-09 8:13 ` [RFC v5 08/15] MIPS: tl_mr3020: enable usb support Antony Pavlov
2016-02-09 8:13 ` [RFC v5 09/15] devicetree: add Dragino vendor id Antony Pavlov
2016-02-09 8:13 ` [RFC v5 10/15] MIPS: ath79: add initial support for Dragino MS14 (Dragino 2) Antony Pavlov
2016-02-09 11:16 ` Marek Vasut
2016-02-09 8:13 ` [RFC v5 11/15] devicetree: add Onion Corporation vendor id Antony Pavlov
2016-02-09 8:13 ` [RFC v5 12/15] MIPS: ath79: add initial support for Onion Omega Antony Pavlov
2016-02-09 8:13 ` [RFC v5 13/15] devicetree: add DPTechnics vendor id Antony Pavlov
2016-02-12 14:53 ` Rob Herring
2016-02-09 8:14 ` [RFC v5 14/15] MIPS: ath79: add DPT-Module support Antony Pavlov
2016-02-09 8:14 ` Antony Pavlov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455005641-7079-16-git-send-email-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=albeu@free.fr \
--cc=daniel.schwierzeck@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=marex@denx.de \
--cc=wills.wang@live.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox