[PATCH v2 0/7] SH Mobile sh_flctl driver brush up

Artem Bityutskiy dedekind1 at gmail.com
Fri Mar 9 07:11:52 EST 2012


On Tue, 2012-02-14 at 11:58 +0100, Bastian Hecht wrote:
> Hello Artem,
> 
> 2012/2/14 Simon Horman <horms at verge.net.au>:
> > 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?

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list