From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Fri, 09 Mar 2012 12:14:37 +0000 Subject: Re: [PATCH v2 0/7] SH Mobile sh_flctl driver brush up Message-Id: <1351292.ArCFK2UoQF@avalon> List-Id: References: <1328960705-18699-1-git-send-email-hechtb@gmail.com> <1331295112.29445.14.camel@sauron.fi.intel.com> In-Reply-To: <1331295112.29445.14.camel@sauron.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dedekind1@gmail.com Cc: Magnus Damm , Simon Horman , linux-mtd@lists.infradead.org, Bastian Hecht , linux-sh@vger.kernel.org Hi Artem, On Friday 09 March 2012 14:11:52 Artem Bityutskiy wrote: > On Tue, 2012-02-14 at 11:58 +0100, Bastian Hecht wrote: > > 2012/2/14 Simon Horman : > > > On Mon, Feb 13, 2012 at 03:41:55PM +0200, Artem Bityutskiy wrote: > > >> On Sat, 2012-02-11 at 12:44 +0100, Bastian Hecht wrote: > > >> > This patch series brushs up the sh_flctl.c a bit to make it work with > > >> > the mackerel board. The hardware has changed and this needed to be > > >> > reflected in the NAND host driver. > > >> > On the road some minor enhancements have been incorporated. > > >> > > >> I cannot even compile-test this patch because I get the following > > >> error: > > >> > > >> > > >> sh4-linux-gcc: error: command line option '-m4-nofpu' is not supported > > >> by this configuration > > >> > > >> > > >> with the cross-compiler downloaded from here: > > >> > > >> http://kernel.org/pub/tools/crosstool/files/bin/x86_64/4.6.0/x86_64-gcc > > >> -4.6.0-nolibc_sh4-linux.tar.bz2 > > >> > > >> Could you please describe how could I compile-test it? > > > > > > You may find it easier to build a kernel for mackerel using > > > arch arm and defconfig_mackerel. > > > > > > Personally I have had good experience using Code Sourcery (now part of > > > Mentor Graphics?) G++ lite to compile both arm and sh kernels. > > > > I as well use a Code Sourcery toolchain. arm-none-linux-gnueabi-gcc -v > > states "gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)". It took me > > quite a bit to find a link to the toolchain as these gpl toolchains > > from Code Sourcery almost seem to be hidden. But here it is if you > > > want to give it a try: > I am a bit confused. We have the following in drivers/mtd/nand/Kconfig > > config MTD_NAND_SH_FLCTL > tristate "Support for NAND on Renesas SuperH FLCTL" > depends on SUPERH || ARCH_SHMOBILE > help > Several Renesas SuperH CPU has FLCTL. This option enables support > for NAND Flash using FLCTL. > > SUPERH and ARCH_SHMOBILE are SH platforms - how can I compile-test your > patch-set with an arm cross-compiler? ARCH_SHMOBILE is an ARM platform (defined in arch/arm/Kconfig). -- Regards, Laurent Pinchart