From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
Date: Wed, 17 Dec 2014 16:27:29 +0000 [thread overview]
Message-ID: <3112866.0rYfxvizPJ@avalon> (raw)
In-Reply-To: <20141217094214.7039.68681.sendpatchset@w520>
On Wednesday 17 December 2014 14:35:32 Geert Uytterhoeven wrote:
> On Wed, Dec 17, 2014 at 2:08 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >> Do you boot a zImage or a uImage?
> >
> > uImage built from zImage with appended DTB.
> >
> > These 4 steps actually:
> > rm arch/arm/boot/zImage
> > make -j 9 ARCH=arm CROSS_COMPILE=_ dtbs zImage
> > cat arch/arm/boot/dts/sh73a0-kzm9g.dtb >> arch/arm/boot/zImage
> > make -j 9 ARCH=arm CROSS_COMPILE=_ LOADADDR=0x48008000 uImage
>
> Thanks, that works!
And it doesn't for me :-/
Any idea why NFS root doesn't work with your wip branch and shmobile_defconfig
(with NFSv4 and NFSv3 ACL disabled) ? The kernel stops after
[ 6.630000] Sending DHCP requests ., OK
[ 6.670000] IP-Config: Got DHCP answer from 192.168.1.47, my address is
192.168.1.254
[ 6.680000] IP-Config: Complete:
[ 6.690000] device=eth0, hwaddr\0:01:9b:04:04:22,
ipaddr\x192.168.1.254, mask%5.255.255.0, gw%5.255.255.255
[ 6.700000] host\x192.168.1.254, domain=, nis-domain=(none)
[ 6.700000] bootserver\x192.168.1.47, rootserver\x192.168.1.47,
rootpath=/home/laurent/src/iob/netboot/renesas
[ 6.710000] nameserver0\x192.168.1.47
[ 6.720000] SDHI2 Vcc: disabling
[ 6.720000] SDHI0 Vcc: disabling
[ 6.720000] vccq_mc0: disabling
[ 6.730000] ALSA device list:
[ 6.730000] #0: fsia-dai-ak4642-hifi
and then oopses after a timeout. No NFS-related packet is received by the host
according to tcpdump.
> But the machine lost 128 MiB of RAM, compared to adjusting the "reg"
> property of the memory node :-(
>
> >> I usually use a zImage with appended DTB on kzm9g. It fails as before:
> >>
> >> Uncompressing Linux... done, booting the kernel.
> >> Booting Linux on physical CPU 0x0
> >> Linux version 3.18.0-kzm9g-multiplatform-11069-g3086a70162bdec42
> >> (geert@ramsan) (gcc version 4.9.0 (GCC) ) #274 SMP Wed Dec 17 13:28:08
> >> CET 2014
> >> CPU: ARMv7 Processor [412fc098] revision 8 (ARMv7), cr\x10c5387d
> >> CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> >> Machine model: KZM-A9-GT
> >> bootconsole [earlycon0] enabled
> >> debug: ignoring loglevel setting.
> >> Memory policy: Data cache writealloc
> >> On node 0 totalpages: 124928
> >> free_area_init_node: node 0, pgdat c058f640, node_mem_map df428000
> >>
> >> Normal zone: 976 pages used for memmap
> >> Normal zone: 0 pages reserved
> >> Normal zone: 124928 pages, LIFO batch:31
> >
> > Wow, earlycon. Luxury. =)
>
> Noh, a necessity when developing ;-)
>
> > The string above says "kzm9g-multiplatform". Did you try legacy or DT
> > reference without CCF?
>
> Yes, they both work (with zImage and appended DTB), as before.
>
> >> When trying with a uImage with the "new" load address i.e.
> >>
> >> make ARCH=arm LOADADDR=0x48008000 uImage
> >>
> >> it still fails:
> >>
> >> ## Flattened Device Tree blob at 50000000
> >>
> >> Booting using the fdt blob at 0x50000000
> >> Loading Kernel Image ... OK
> >>
> >> OK
> >>
> >> Loading Device Tree to 417f8000, end 417ff7be ... OK
>
> Aarghl, u-Boot copied the DT below 0x48000000. That's why it fails:
> >> Unable to handle kernel paging request at virtual address b97f8000
>
> Hence no choice but to use uImage+DTB.
>
> > You seem to be using "bootm 0x43000000 - 0x50000000".
> > In my case I simply use "bootp; bootm". I also tend to use appended
>
> My DHCP server (OpenWRT dnsmasq) doesn't provide TFTP/NFS
> information to its clients.
>
> > DTB and compile-in the command line to rely on the boot loader as
> > little as ever possible.
>
> Indeed.
>
> > One thing that bit me for quite some time was when handling the case
> > CONFIG_AUTO_ZRELADDR=n. I built the zImage using my steps above but I
> > did not pass the LOADADDR when building the zImage - so the
> > "zreladdr-y" value in Makefile.boot was still the default value which
> > ended up in the kernel image. What I mistakenly ended up doing was to
> > only adjust the uImage load address. And your bootm line above has
> > even more magic to it - so you may have 3 different versions... =)
>
> I usually use zImage, which is better for multiplatform.
> In theory the same multiplatform zImage should boot on all machines.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-12-17 16:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 9:42 [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address Magnus Damm
2014-12-17 9:48 ` Geert Uytterhoeven
2014-12-17 9:51 ` Magnus Damm
2014-12-17 12:36 ` Geert Uytterhoeven
2014-12-17 13:08 ` Magnus Damm
2014-12-17 13:35 ` Geert Uytterhoeven
2014-12-17 14:28 ` Magnus Damm
2014-12-17 14:37 ` Geert Uytterhoeven
2014-12-17 16:27 ` Laurent Pinchart [this message]
2014-12-17 16:33 ` Geert Uytterhoeven
2014-12-17 16:37 ` Geert Uytterhoeven
2014-12-17 17:42 ` Laurent Pinchart
2014-12-18 1:31 ` Magnus Damm
2014-12-18 8:10 ` Geert Uytterhoeven
2014-12-18 9:05 ` Magnus Damm
2014-12-18 9:30 ` Geert Uytterhoeven
2014-12-18 10:11 ` Magnus Damm
2014-12-18 10:19 ` Geert Uytterhoeven
2014-12-18 23:46 ` Simon Horman
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=3112866.0rYfxvizPJ@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-sh@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.