From: Ben Peddell <klightspeed-aslSrjg9ejhWX4hkXwHRhw@public.gmane.org> To: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org> Cc: Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux ARM <linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org> Subject: Re: [PATCH RFC RFT 0/2] ARM: Kirkwood: Synology DT files Date: Fri, 10 Jan 2014 11:01:06 +1000 [thread overview] Message-ID: <52CF4652.3030207@killerwolves.net> (raw) In-Reply-To: <20140109165557.GB9681-g2DYL2Zd6BY@public.gmane.org> On Thu, Jan 09, 2014 at 05:55:57PM +0100, Andrew Lunn wrote: > On Thu, Jan 09, 2014 at 03:18:35PM +1000, Ben Peddell wrote: >> On 07/01/14 09:47, Andrew Lunn wrote: >>> Request for Testing: >>> >>> This patch adds support for around 30 different boards. Most .dts >>> files support a couple of different models. I don't have any of this >>> hardware. None of this is tested. >> >> Tested by Ben Peddell <klightspeed-aslSrjg9ejhWX4hkXwHRhw@public.gmane.org> (specifically kirkwood-ds210.dts on DS211j) > > Hi Ben > > Thanks for testing. I will fix the gpo and send a v2 sometime. I > should also check if there are any more gpo's i have as gpio's. There are only a few pins that are GPOs - from marvell,kirkwood-pinctrl.txt, they are 1, 2, 3, 5, 7, 10, 18, 19 and 33. > >> To get running on the stock bootloader, I needed to extend the >> initramfs to fill the entire rd.gz flash partition, configure the >> kernel to use the dtb appended to it, configure it to ignore the >> information passed to it by the bootloader, and add the following >> nodes to the dts: >> >> /chosen { >> linux,initrd-start = <0x800040>; >> linux,initrd-end = <0x940000>; >> }; > > Do you know why these initrd properties are needed? There is only one > other board in mainline that requires this. I also wonder what > implications this has. u-boot has the capability of reading the initrd > from disc to RAM and passing its location to the kernel. By hard > coding these values, are we blocking that? The stock Marvell bootloader is a little broken as it passes the kernel the _source_ address of the initrd rather than the _load_ address. Thus the bootloader passes the address 0xf8280040 rather than the address 0x00800040. It appears the initrd address in the devicetree structure (which is filled in from what is passed by the bootloader when CONFIG_ARM_ATAG_DTB_COMPAT is set) is processed _after_ the address in the initrd= kernel parameter is processed. Rather than putting the initrd address into the DTS, it would probably be better to have the person compiling the kernel configure it with e.g.: CONFIG_CMDLINE="initrd=0x00800040,0x0013FFC0 earlyprintk panic=5" CONFIG_CMDLINE_EXTEND=y CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=n -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: klightspeed@killerwolves.net (Ben Peddell) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC RFT 0/2] ARM: Kirkwood: Synology DT files Date: Fri, 10 Jan 2014 11:01:06 +1000 [thread overview] Message-ID: <52CF4652.3030207@killerwolves.net> (raw) In-Reply-To: <20140109165557.GB9681@lunn.ch> On Thu, Jan 09, 2014 at 05:55:57PM +0100, Andrew Lunn wrote: > On Thu, Jan 09, 2014 at 03:18:35PM +1000, Ben Peddell wrote: >> On 07/01/14 09:47, Andrew Lunn wrote: >>> Request for Testing: >>> >>> This patch adds support for around 30 different boards. Most .dts >>> files support a couple of different models. I don't have any of this >>> hardware. None of this is tested. >> >> Tested by Ben Peddell <klightspeed@killerwolves.net> (specifically kirkwood-ds210.dts on DS211j) > > Hi Ben > > Thanks for testing. I will fix the gpo and send a v2 sometime. I > should also check if there are any more gpo's i have as gpio's. There are only a few pins that are GPOs - from marvell,kirkwood-pinctrl.txt, they are 1, 2, 3, 5, 7, 10, 18, 19 and 33. > >> To get running on the stock bootloader, I needed to extend the >> initramfs to fill the entire rd.gz flash partition, configure the >> kernel to use the dtb appended to it, configure it to ignore the >> information passed to it by the bootloader, and add the following >> nodes to the dts: >> >> /chosen { >> linux,initrd-start = <0x800040>; >> linux,initrd-end = <0x940000>; >> }; > > Do you know why these initrd properties are needed? There is only one > other board in mainline that requires this. I also wonder what > implications this has. u-boot has the capability of reading the initrd > from disc to RAM and passing its location to the kernel. By hard > coding these values, are we blocking that? The stock Marvell bootloader is a little broken as it passes the kernel the _source_ address of the initrd rather than the _load_ address. Thus the bootloader passes the address 0xf8280040 rather than the address 0x00800040. It appears the initrd address in the devicetree structure (which is filled in from what is passed by the bootloader when CONFIG_ARM_ATAG_DTB_COMPAT is set) is processed _after_ the address in the initrd= kernel parameter is processed. Rather than putting the initrd address into the DTS, it would probably be better to have the person compiling the kernel configure it with e.g.: CONFIG_CMDLINE="initrd=0x00800040,0x0013FFC0 earlyprintk panic=5" CONFIG_CMDLINE_EXTEND=y CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=n
next prev parent reply other threads:[~2014-01-10 1:01 UTC|newest] Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-06 23:47 [PATCH RFC RFT 0/2] ARM: Kirkwood: Synology DT files Andrew Lunn 2014-01-06 23:47 ` Andrew Lunn [not found] ` <1389052027-16819-1-git-send-email-andrew-g2DYL2Zd6BY@public.gmane.org> 2014-01-06 23:47 ` [PATCH RFC RFT 1/2] Power: Reset: Generalize qnap-poweroff to with on Synology devices Andrew Lunn 2014-01-06 23:47 ` Andrew Lunn 2014-01-06 23:47 ` [PATCH RFC RFT 2/2] ARM: Kirkwood: Add support for many Synology NAS devices Andrew Lunn 2014-01-06 23:47 ` Andrew Lunn 2014-01-09 2:05 ` Ben Peddell 2014-01-09 2:05 ` Ben Peddell 2014-01-09 5:18 ` [PATCH RFC RFT 0/2] ARM: Kirkwood: Synology DT files Ben Peddell 2014-01-09 5:18 ` Ben Peddell [not found] ` <52CE312B.3060108-aslSrjg9ejhWX4hkXwHRhw@public.gmane.org> 2014-01-09 16:55 ` Andrew Lunn 2014-01-09 16:55 ` Andrew Lunn [not found] ` <20140109165557.GB9681-g2DYL2Zd6BY@public.gmane.org> 2014-01-10 1:01 ` Ben Peddell [this message] 2014-01-10 1:01 ` Ben Peddell [not found] ` <52CF4652.3030207-aslSrjg9ejhWX4hkXwHRhw@public.gmane.org> 2014-01-10 11:28 ` Russell King - ARM Linux 2014-01-10 11:28 ` Russell King - ARM Linux [not found] ` <20140110112846.GG27432-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> 2014-01-10 14:09 ` Ben Peddell 2014-01-10 14:09 ` Ben Peddell [not found] ` <52CFFF07.5080806-aslSrjg9ejhWX4hkXwHRhw@public.gmane.org> 2014-01-10 14:25 ` Andrew Lunn 2014-01-10 14:25 ` Andrew Lunn [not found] ` <20140110142548.GG9681-g2DYL2Zd6BY@public.gmane.org> 2014-01-10 14:37 ` Sebastian Hesselbarth 2014-01-10 14:37 ` Sebastian Hesselbarth 2014-01-10 14:38 ` Ben Peddell 2014-01-10 14:38 ` Ben Peddell 2014-01-10 14:43 ` Andrew Lunn 2014-01-10 14:43 ` Andrew Lunn [not found] ` <20140110144346.GH9681-g2DYL2Zd6BY@public.gmane.org> 2014-01-10 15:10 ` Ben Peddell 2014-01-10 15:10 ` Ben Peddell 2014-01-10 14:58 ` Russell King - ARM Linux 2014-01-10 14:58 ` Russell King - ARM Linux [not found] ` <20140110145841.GF15937-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> 2014-01-10 15:48 ` Ben Peddell 2014-01-10 15:48 ` Ben Peddell
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=52CF4652.3030207@killerwolves.net \ --to=klightspeed-aslsrjg9ejhwx4hkxwhrhw@public.gmane.org \ --cc=andrew-g2DYL2Zd6BY@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@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: linkBe 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.