[OpenWrt-Devel] [PATCH 2/2] ipq806x: add support for zImage kernel

Jonas Gorski jogo at openwrt.org
Fri May 1 09:14:55 EDT 2015


Hi,

On Fri, May 1, 2015 at 1:39 AM, Mathieu Olivari <mathieu at codeaurora.org> wrote:
> From: Mathieu Olivari <mathieu at codeaurora.org>
> To: blogic at openwrt.org,
>             jonas at openwrt.org

And there I was wondering why it didn't show up in my inbox - my
address is jogo@ ;P

> This change enable ATAGS support in ipq806x kernel options, and generate
> the zImage as part of the kernel binaries.

I successfully booted a ramdisk kernel on the Netgear R7500 with these
changes, but ...

> Signed-off-by: Mathieu Olivari <mathieu at codeaurora.org>
> ---
>  target/linux/ipq806x/Makefile                      |  2 +-
>  target/linux/ipq806x/config-3.18                   |  7 ++-
>  target/linux/ipq806x/config-4.0                    |  8 ++-
>  .../300-arch-arm-force-ZRELADDR-on-arch-qcom.patch | 72 ++++++++++++++++++++++
>  4 files changed, 84 insertions(+), 5 deletions(-)
>  create mode 100644 target/linux/ipq806x/patches-4.0/300-arch-arm-force-ZRELADDR-on-arch-qcom.patch
>
> diff --git a/target/linux/ipq806x/Makefile b/target/linux/ipq806x/Makefile
> index 1512b30..f97db74 100644
> --- a/target/linux/ipq806x/Makefile
> +++ b/target/linux/ipq806x/Makefile
> @@ -11,7 +11,7 @@ MAINTAINER:=John Crispin <blogic at openwrt.org>
>
>  KERNEL_PATCHVER:=3.18
>
> -KERNELNAME:=Image dtbs
> +KERNELNAME:=zImage Image dtbs
>
>  include $(INCLUDE_DIR)/target.mk
>  DEFAULT_PACKAGES += \
> diff --git a/target/linux/ipq806x/config-3.18 b/target/linux/ipq806x/config-3.18
> index 8de4cb4..219e2c7 100644
> --- a/target/linux/ipq806x/config-3.18
> +++ b/target/linux/ipq806x/config-3.18
> @@ -33,8 +33,12 @@ CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
>  CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
>  CONFIG_ARM=y
>  CONFIG_ARM_AMBA=y
> +CONFIG_ARM_APPENDED_DTB=y
>  CONFIG_ARM_ARCH_TIMER=y
>  CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y

> +CONFIG_ARM_ATAG_DTB_COMPAT=y
> +# CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is not set
> +CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y

I needed to either disable these two, or set my own cmdline, as the
default bootargs is "console=ttyHSL1,115200n8", which breaks console
output. Do we really need these?

>  CONFIG_ARM_CPU_SUSPEND=y
>  CONFIG_ARM_GIC=y
>  CONFIG_ARM_HAS_SG_CHAIN=y
> @@ -48,7 +52,7 @@ CONFIG_ARM_THUMB=y
>  CONFIG_ARM_UNWIND=y
>  CONFIG_ARM_VIRT_EXT=y
>  CONFIG_AT803X_PHY=y
> -CONFIG_AUTO_ZRELADDR=y
> +CONFIG_ATAGS=y

This one seems completely unneeded, since (AFAICT) it isn't required
for ATAG_DTB_COMPAT, and we don't support booting without DTB at all.


Regards
Jonas
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list