devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Martin <dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Tixy <tixy-V7l+QrSAdiO1Qrn1Bg8BZw@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v3 4/5] ARM: vexpress: Initial RS1 memory map support
Date: Wed, 30 Nov 2011 15:37:49 +0000	[thread overview]
Message-ID: <20111130153749.GE2045@localhost.localdomain> (raw)
In-Reply-To: <1322579473-8804-5-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>

On Tue, Nov 29, 2011 at 03:11:12PM +0000, Pawel Moll wrote:
> This patch adds support for RS1 memory map based Versatile Express
> motherboard.

[...]

> +config ARCH_VEXPRESS_RS1
> +	bool
> +	select AUTO_ZRELADDR
> +	select ARM_PATCH_PHYS_VIRT
> +	help
> +	  RS1 VE memory map (i.a. motherboard peripherals at
> +	  0x1c000000, RAM at 0x80000000).
> +
>  endmenu
> diff --git a/arch/arm/mach-vexpress/Makefile.boot b/arch/arm/mach-vexpress/Makefile.boot
> index 8630b3d..05b77a5 100644
> --- a/arch/arm/mach-vexpress/Makefile.boot
> +++ b/arch/arm/mach-vexpress/Makefile.boot
> @@ -1,3 +1,9 @@
> +ifeq ($(CONFIG_ARCH_VEXPRESS_RS1),y)
> +   zreladdr-y	+= 0x80008000
> +params_phys-y	:= 0x80000100
> +initrd_phys-y	:= 0x80800000

This results in a uImage which is a bit broken if using a normal u-Boot
configured for vexpress-v2p-ca9, because the bootloader makes some
memory map assumptions, and anyway we don't expect the kernel to work
unless it's loaded at the start of RAM:


## Booting kernel from Legacy Image at 62000400 ...
   Image Name:   Linux-3.2.0-rc3+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2464984 Bytes = 2.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 80ffffc0 ...
   Image Name:
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    2216523 Bytes = 2.1 MiB
   Load Address: 81000000
   Entry Point:  81000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80ffc000
   Booting using the fdt blob at 0x80ffc000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 7fcd3000, end 7fef024b ... OK
   Loading Device Tree to 7fcce000, end 7fcd2779 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpuset
Linux version 3.2.0-rc3+ (davem@e103592) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #12 SMP Wed Nov 30 15:10:19 GMT 2011
CPU: ARMv7 Processor [410fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ARM Versatile Express, model: V2P-CA9
bootconsole [earlycon0] enabled
Ignoring RAM at 60000000-7fffffff (vmalloc region overlap).
Ignoring RAM at 60000000-9fffffff (vmalloc region overlap).
INITRD: 0x7fcd3000+0x0021d24b is not a memory region - disabling initrd
Memory policy: ECC disabled, Data cache writealloc

<HANG>


If I strip the uImage and rebuild it with -a 0x60008000 -e 0x60008000
and no other changes, that's sufficient to give me a fully booting
kernel.  I can also boot a single image on v2p-ca9 both with and without
a dtb in this configuration.

I'm using a Linaro u-Boot from a couple of releses ago; it's possible
things have changed since.


Do you know of any specific u-Boot version which shouldn't have these
problems?

Was the hard-coded uImage load address/entry point problem ever fixed?
(It totally defeats loading a single uImage on multiple board variants.)

Cheers
---Dave

  parent reply	other threads:[~2011-11-30 15:37 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-29 15:11 [PATCH v3 0/5] Versatile Express DT support Pawel Moll
2011-11-29 15:11 ` [PATCH v3 1/5] ARM: versatile: Add missing ENDPROC to headsmp.S Pawel Moll
2011-11-29 15:11 ` [PATCH v3 2/5] ARM: vexpress: Get rid of MMIO_P2V Pawel Moll
2011-11-29 21:15   ` Arnd Bergmann
2011-11-30 11:34     ` Pawel Moll
     [not found]       ` <1322652891.3164.144.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-30 13:48         ` Arnd Bergmann
2011-11-30 13:52           ` Pawel Moll
2011-11-29 15:11 ` [PATCH v3 3/5] ARM: vexpress: Add DT support in v2m Pawel Moll
2011-11-29 21:19   ` Arnd Bergmann
2011-11-30 11:46     ` Pawel Moll
2011-11-30 13:34       ` Arnd Bergmann
2011-11-30 13:38         ` Pawel Moll
     [not found]           ` <1322660291.10583.2.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-30 15:10             ` Arnd Bergmann
     [not found]   ` <1322579473-8804-4-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-30 15:58     ` Dave Martin
2011-11-30 18:46       ` Pawel Moll
     [not found]         ` <1322678779.3180.36.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-12-01 10:57           ` Dave Martin
2011-12-05 16:25     ` Dave Martin
2011-12-05 16:30       ` Pawel Moll
2011-11-29 15:11 ` [PATCH v3 4/5] ARM: vexpress: Initial RS1 memory map support Pawel Moll
     [not found]   ` <1322579473-8804-5-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-30 15:37     ` Dave Martin [this message]
2011-11-30 17:15       ` Pawel Moll
     [not found]         ` <1322673302.3180.25.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-30 17:54           ` Dave Martin
2011-11-30 18:31             ` Pawel Moll
     [not found]             ` <20111130175410.GJ2045-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-11-30 20:43               ` Nicolas Pitre
     [not found]                 ` <alpine.LFD.2.02.1111301522340.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-11-30 20:48                   ` Mark Brown
     [not found]                     ` <20111130204805.GA5698-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2011-11-30 21:21                       ` Stephen Warren
2011-11-30 21:38                       ` Nicolas Pitre
     [not found]                         ` <alpine.LFD.2.02.1111301604230.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-11-30 21:50                           ` Russell King - ARM Linux
     [not found]                             ` <20111130215000.GU9581-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2011-12-01  3:36                               ` Nicolas Pitre
2011-12-01 11:10                           ` Mark Brown
     [not found]                             ` <20111201111049.GB2915-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2011-12-01 12:14                               ` Dave Martin
     [not found]                                 ` <20111201121403.GC2026-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-12-01 16:19                                   ` Stephen Warren
     [not found]                                     ` <74CDBE0F657A3D45AFBB94109FB122FF174FDB01C6-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-02 17:41                                       ` Stephen Warren
     [not found]                                         ` <74CDBE0F657A3D45AFBB94109FB122FF174FDB0539-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-02 19:06                                           ` Marek Vasut
2011-12-02 19:28                                           ` Dave Martin
2011-12-02 22:52                                           ` Nicolas Pitre
     [not found]                                             ` <alpine.LFD.2.02.1112021739420.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-12-02 23:03                                               ` Marek Vasut
2011-12-01 18:37                               ` Russell King - ARM Linux
2011-11-29 15:11 ` [PATCH v3 5/5] ARM: vexpress: DT-based support for CoreTiles Express A5x2 and A9x4 Pawel Moll
     [not found]   ` <1322579473-8804-6-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-29 16:40     ` Dave Martin
2011-11-30 18:39       ` Pawel Moll
     [not found]         ` <1322678364.3180.34.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-12-01 12:21           ` Dave Martin
2011-12-05 17:24             ` Pawel Moll
     [not found]               ` <1323105880.3147.55.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-12-05 17:37                 ` Dave Martin
2011-12-05 17:47                   ` Pawel Moll
     [not found]                     ` <1323107256.3147.63.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-12-05 18:06                       ` Dave Martin
     [not found] ` <1322579473-8804-1-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-29 17:00   ` [PATCH v3 0/5] Versatile Express DT support Dave Martin
2011-11-29 17:16     ` Pawel Moll
     [not found]       ` <1322587019.3164.111.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-30 10:48         ` Dave Martin
2011-11-30 11:14           ` Pawel Moll
     [not found]             ` <1322651640.3164.135.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-30 12:08               ` Dave Martin
2011-11-30 12:15                 ` Pawel Moll
2011-11-29 21:24   ` Arnd Bergmann

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=20111130153749.GE2045@localhost.localdomain \
    --to=dave.martin-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
    --cc=tixy-V7l+QrSAdiO1Qrn1Bg8BZw@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).