* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
@ 2010-03-16 11:35 ` Magnus Damm
2010-03-16 11:59 ` Fabio Giovagnini
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-16 11:35 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 16, 2010 at 8:25 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Hi all, I build a board with smsc 9118 eth chip; Of course I'm not sure the hw
> is ok.
Not sure what is missing in your case, but if you want top optimize
your performance then this commit may be helpful:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h£0c89ad41099f58922e0941e346e7c4371655b9
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
2010-03-16 11:35 ` Magnus Damm
@ 2010-03-16 11:59 ` Fabio Giovagnini
2010-03-16 12:32 ` Magnus Damm
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-16 11:59 UTC (permalink / raw)
To: linux-sh
Thanks a lot, but 2 questions.
1)I'm using linux2.6.16-ucinux-7203; with the oscilloscope i can se that after
chip reset by the driver the irq line is driven low and stays always low. I
think the is not proper because this means that never the chip irq state flag
is erased
2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do smc9118
D31; do I need a software swap? ( I followed the schematics of rsk+ 7203 eva
board before to learn that for big endioan processors the designer needs to
physically swap the bytes).
Best regards and thanks a lot
In data martedì 16 marzo 2010 12:35:45, Magnus Damm ha scritto:
: > On Tue, Mar 16, 2010 at 8:25 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > Hi all, I build a board with smsc 9118 eth chip; Of course I'm not sure
> > the hw is ok.
>
> Not sure what is missing in your case, but if you want top optimize
> your performance then this commit may be helpful:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h
> £0c89ad41099f58922e0941e346e7c4371655b9
>
> / magnus
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
2010-03-16 11:35 ` Magnus Damm
2010-03-16 11:59 ` Fabio Giovagnini
@ 2010-03-16 12:32 ` Magnus Damm
2010-03-16 12:38 ` Fabio Giovagnini
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-16 12:32 UTC (permalink / raw)
To: linux-sh
Hi Fabio,
On Tue, Mar 16, 2010 at 8:59 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Thanks a lot, but 2 questions.
> 1)I'm using linux2.6.16-ucinux-7203; with the oscilloscope i can se that after
> chip reset by the driver the irq line is driven low and stays always low. I
> think the is not proper because this means that never the chip irq state flag
> is erased
Why are you using such an old kernel? It's more than 3 years old!!!
> 2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do smc9118
> D31; do I need a software swap? ( I followed the schematics of rsk+ 7203 eva
> board before to learn that for big endioan processors the designer needs to
> physically swap the bytes).
I've added code to enable swap on upstream for the rsk7203. It was
needed by big endian platforms.
Please use a newer kernel if possible.
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (2 preceding siblings ...)
2010-03-16 12:32 ` Magnus Damm
@ 2010-03-16 12:38 ` Fabio Giovagnini
2010-03-16 12:43 ` Magnus Damm
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-16 12:38 UTC (permalink / raw)
To: linux-sh
After I'll be able to have busybox I'll try to do it for sure.
Which one you suggest to me?
In data martedì 16 marzo 2010 13:32:29, Magnus Damm ha scritto:
: > Hi Fabio,
>
> On Tue, Mar 16, 2010 at 8:59 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > Thanks a lot, but 2 questions.
> > 1)I'm using linux2.6.16-ucinux-7203; with the oscilloscope i can se that
> > after chip reset by the driver the irq line is driven low and stays
> > always low. I think the is not proper because this means that never the
> > chip irq state flag is erased
>
> Why are you using such an old kernel? It's more than 3 years old!!!
>
> > 2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do
> > smc9118 D31; do I need a software swap? ( I followed the schematics of
> > rsk+ 7203 eva board before to learn that for big endioan processors the
> > designer needs to physically swap the bytes).
>
> I've added code to enable swap on upstream for the rsk7203. It was
> needed by big endian platforms.
>
> Please use a newer kernel if possible.
>
> Cheers,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (3 preceding siblings ...)
2010-03-16 12:38 ` Fabio Giovagnini
@ 2010-03-16 12:43 ` Magnus Damm
2010-03-16 13:16 ` Fabio Giovagnini
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-16 12:43 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 16, 2010 at 9:38 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> After I'll be able to have busybox I'll try to do it for sure.
> Which one you suggest to me?
I recommend 2.6.34-rc2 or later. Even better, use git to get the
latest kernel tree.
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (4 preceding siblings ...)
2010-03-16 12:43 ` Magnus Damm
@ 2010-03-16 13:16 ` Fabio Giovagnini
2010-03-17 3:29 ` Magnus Damm
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-16 13:16 UTC (permalink / raw)
To: linux-sh
PAUL TOLD ME TO USE THIS:
git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
Is ti ok?
Thanks a lot
In data martedì 16 marzo 2010 13:43:29, Magnus Damm ha scritto:
: > On Tue, Mar 16, 2010 at 9:38 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > After I'll be able to have busybox I'll try to do it for sure.
> > Which one you suggest to me?
>
> I recommend 2.6.34-rc2 or later. Even better, use git to get the
> latest kernel tree.
>
> Cheers,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (5 preceding siblings ...)
2010-03-16 13:16 ` Fabio Giovagnini
@ 2010-03-17 3:29 ` Magnus Damm
2010-03-17 5:47 ` Fabio Giovagnini
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 3:29 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 16, 2010 at 9:32 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> On Tue, Mar 16, 2010 at 8:59 PM, Fabio Giovagnini
> <fabio.giovagnini@aurion-tech.com> wrote:
>> 2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do smc9118
>> D31; do I need a software swap? ( I followed the schematics of rsk+ 7203 eva
>> board before to learn that for big endioan processors the designer needs to
>> physically swap the bytes).
>
> I've added code to enable swap on upstream for the rsk7203. It was
> needed by big endian platforms.
Look here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;hr4cfb944007b7f8d346523a7810b53a35921bc5
and here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;hƒ3cc67c7722e35863c6aaee9df56b442ef957ae
> Please use a newer kernel if possible.
If you use the latest kernel then the fixes above are already included.
I recommend you to use the sh-2.6 git tree for development.
Thanks,
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (6 preceding siblings ...)
2010-03-17 3:29 ` Magnus Damm
@ 2010-03-17 5:47 ` Fabio Giovagnini
2010-03-17 6:15 ` Fabio Giovagnini
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 5:47 UTC (permalink / raw)
To: linux-sh
Hi Magnus,
yesterday I used the following command
git clone git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
Am I ok?
My configuration is :
SH2a 7203 smc9118
Addresses:
A1...A7 A1...A7
Data:
D0...D31 D0...D31
when I execute
static int __init smc911x_probe(struct net_device *dev, unsigned long ioaddr)
{
struct smc911x_local *lp = netdev_priv(dev);
int i, retval;
unsigned int val, chip_id, revision;
const char *version_string;
unsigned long endian;
DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__);
activedev = dev;
/* First, see if the endian word is recognized */
val = SMC_GET_BYTE_TEST();
DBG(SMC_DEBUG_MISC, "%s: endian probe returned 0x%04x\n", CARDNAME, val);
if (val != 0x87654321) {
DBG(SMC_DEBUG_MISC, "%s: swapping endianness of card \n", CARDNAME);
endian = SMC_GET_ENDIAN();
SMC_SET_ENDIAN(~endian);
SMC_SET_ENDIAN(~endian);
val = SMC_GET_BYTE_TEST();
DBG(SMC_DEBUG_MISC, "%s: endian probe returned 0x%04x\n", CARDNAME, val);
if (val != 0x87654321) {
printk(KERN_ERR "Invalid chip endian 0x%x\n",val);
retval = -ENODEV;
goto err_out;
}
}
if I use
/* 4567_0123 --> 0123_4567 */
#define SWAPDW(x) ( (_uint32)( (((_uint32)x & 0x0000FFFF) << 16) | \
(((_uint32)x & 0xFFFF0000) >> 16) ) )
//#define SWAPDW(x) (x)
/* 2301_6745 --> 0123_4567 */
#define SWAPDB(x) ( (_uint32)( (((_uint32)x & 0x000000FF) << 8) | \
(((_uint32)x & 0x0000FF00) >> 8) | \
(((_uint32)x & 0x00FF0000) << 8) | \
(((_uint32)x & 0xFF000000) >> 8)) )
//#define SWAPDB(x) (x)
The check fails;
If I use
/* 4567_0123 --> 0123_4567 */
/*
#define SWAPDW(x) ( (_uint32)( (((_uint32)x & 0x0000FFFF) << 16) | \
(((_uint32)x & 0xFFFF0000) >> 16) ) )
*/
#define SWAPDW(x) (x)
/* 2301_6745 --> 0123_4567 */
/*
#define SWAPDB(x) ( (_uint32)( (((_uint32)x & 0x000000FF) << 8) | \
(((_uint32)x & 0x0000FF00) >> 8) | \
(((_uint32)x & 0x00FF0000) << 8) | \
(((_uint32)x & 0xFF000000) >> 8)) )
*/
#define SWAPDB(x) (x)
That means no swap it seems to work but really fails.
My hw configration is good for actual version of the kernel driver or I need to
be carefull to other stuff?
Thanks a lot again
In data mercoledì 17 marzo 2010 04:29:27, Magnus Damm ha scritto:
: > On Tue, Mar 16, 2010 at 9:32 PM, Magnus Damm <magnus.damm@gmail.com>
wrote:
> > On Tue, Mar 16, 2010 at 8:59 PM, Fabio Giovagnini
> >
> > <fabio.giovagnini@aurion-tech.com> wrote:
> >> 2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do
> >> smc9118 D31; do I need a software swap? ( I followed the schematics of
> >> rsk+ 7203 eva board before to learn that for big endioan processors the
> >> designer needs to physically swap the bytes).
> >
> > I've added code to enable swap on upstream for the rsk7203. It was
> > needed by big endian platforms.
>
> Look here:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h
> r4cfb944007b7f8d346523a7810b53a35921bc5
>
> and here:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h
> ƒ3cc67c7722e35863c6aaee9df56b442ef957ae
>
> > Please use a newer kernel if possible.
>
> If you use the latest kernel then the fixes above are already included.
>
> I recommend you to use the sh-2.6 git tree for development.
>
> Thanks,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (7 preceding siblings ...)
2010-03-17 5:47 ` Fabio Giovagnini
@ 2010-03-17 6:15 ` Fabio Giovagnini
2010-03-17 6:41 ` Magnus Damm
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 6:15 UTC (permalink / raw)
To: linux-sh
Hi Magnus
I'm tring to build the new 2.6-git kernel
I'm using gcc-3.4.6 based toolchain;
I get this error
CC arch/sh/kernel/dumpstack.o
In file included from /home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/bitops.h:10,
from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/kallsyms.h:9,
from arch/sh/kernel/dumpstack.c:6:
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:166: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:167: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:168: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:169: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:170: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:171: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:172: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:173: warning: parameter has
incomplete type
In file included from /home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system.h:183,
from /home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/bitops.h:10,
from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/kallsyms.h:9,
from arch/sh/kernel/dumpstack.c:6:
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system_32.h:233: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system_32.h:236: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system_32.h:239: warning: parameter has
incomplete type
/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6/arch/sh/include/asm/system_32.h:242: warning: parameter has
incomplete type
make[2]: *** [arch/sh/kernel/dumpstack.o] Errore 1
make[1]: *** [arch/sh/kernel] Errore 2
make[1]: uscita dalla directory «/home/fgiovagnini/sh7203/sh7203-
uClinux-1.4/sh-2.6»
make: *** [build] Errore 2
Which toolchian I have to use?
My host pc is ubuntu 9.10
Cheers
In data mercoledì 17 marzo 2010 06:47:14, Fabio Giovagnini ha scritto:
: > Hi Magnus,
> yesterday I used the following command
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
>
> Am I ok?
>
> My configuration is :
>
> SH2a 7203 smc9118
> Addresses:
> A1...A7 A1...A7
> Data:
> D0...D31 D0...D31
>
> when I execute
> static int __init smc911x_probe(struct net_device *dev, unsigned long
> ioaddr) {
> struct smc911x_local *lp = netdev_priv(dev);
> int i, retval;
> unsigned int val, chip_id, revision;
> const char *version_string;
> unsigned long endian;
>
> DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__);
>
> activedev = dev;
>
> /* First, see if the endian word is recognized */
> val = SMC_GET_BYTE_TEST();
> DBG(SMC_DEBUG_MISC, "%s: endian probe returned 0x%04x\n", CARDNAME, val);
> if (val != 0x87654321) {
> DBG(SMC_DEBUG_MISC, "%s: swapping endianness of card \n", CARDNAME);
>
> endian = SMC_GET_ENDIAN();
>
> SMC_SET_ENDIAN(~endian);
> SMC_SET_ENDIAN(~endian);
>
> val = SMC_GET_BYTE_TEST();
> DBG(SMC_DEBUG_MISC, "%s: endian probe returned 0x%04x\n", CARDNAME, val);
> if (val != 0x87654321) {
> printk(KERN_ERR "Invalid chip endian 0x%x\n",val);
> retval = -ENODEV;
> goto err_out;
> }
> }
>
> if I use
> /* 4567_0123 --> 0123_4567 */
>
> #define SWAPDW(x) ( (_uint32)( (((_uint32)x & 0x0000FFFF) << 16) | \
> (((_uint32)x & 0xFFFF0000) >> 16) ) )
>
> //#define SWAPDW(x) (x)
>
> /* 2301_6745 --> 0123_4567 */
>
> #define SWAPDB(x) ( (_uint32)( (((_uint32)x & 0x000000FF) << 8) | \
> (((_uint32)x & 0x0000FF00) >> 8) | \
> (((_uint32)x & 0x00FF0000) << 8) | \
> (((_uint32)x & 0xFF000000) >> 8)) )
>
> //#define SWAPDB(x) (x)
>
> The check fails;
> If I use
> /* 4567_0123 --> 0123_4567 */
> /*
> #define SWAPDW(x) ( (_uint32)( (((_uint32)x & 0x0000FFFF) << 16) | \
> (((_uint32)x & 0xFFFF0000) >> 16) ) )
> */
> #define SWAPDW(x) (x)
>
> /* 2301_6745 --> 0123_4567 */
> /*
> #define SWAPDB(x) ( (_uint32)( (((_uint32)x & 0x000000FF) << 8) | \
> (((_uint32)x & 0x0000FF00) >> 8) | \
> (((_uint32)x & 0x00FF0000) << 8) | \
> (((_uint32)x & 0xFF000000) >> 8)) )
> */
> #define SWAPDB(x) (x)
>
> That means no swap it seems to work but really fails.
>
> My hw configration is good for actual version of the kernel driver or I
> need to be carefull to other stuff?
>
> Thanks a lot again
>
> In data mercoledì 17 marzo 2010 04:29:27, Magnus Damm ha scritto:
> : > On Tue, Mar 16, 2010 at 9:32 PM, Magnus Damm <magnus.damm@gmail.com>
>
> wrote:
> > > On Tue, Mar 16, 2010 at 8:59 PM, Fabio Giovagnini
> > >
> > > <fabio.giovagnini@aurion-tech.com> wrote:
> > >> 2) I have a 32 bus connected sh2a D0 do smc9118 D0 and sh2a D31 do
> > >> smc9118 D31; do I need a software swap? ( I followed the schematics of
> > >> rsk+ 7203 eva board before to learn that for big endioan processors
> > >> the designer needs to physically swap the bytes).
> > >
> > > I've added code to enable swap on upstream for the rsk7203. It was
> > > needed by big endian platforms.
> >
> > Look here:
> >
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
> >;h r4cfb944007b7f8d346523a7810b53a35921bc5
> >
> > and here:
> >
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
> >;h ƒ3cc67c7722e35863c6aaee9df56b442ef957ae
> >
> > > Please use a newer kernel if possible.
> >
> > If you use the latest kernel then the fixes above are already included.
> >
> > I recommend you to use the sh-2.6 git tree for development.
> >
> > Thanks,
> >
> > / magnus
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (8 preceding siblings ...)
2010-03-17 6:15 ` Fabio Giovagnini
@ 2010-03-17 6:41 ` Magnus Damm
2010-03-17 6:47 ` Magnus Damm
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 6:41 UTC (permalink / raw)
To: linux-sh
Hi Fabio,
On Wed, Mar 17, 2010 at 3:15 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> I'm tring to build the new 2.6-git kernel
> I'm using gcc-3.4.6 based toolchain;
For the kernel please use the latest codesourcery toolchain. Actually,
in general, please try the latest version of any software before you
report any issues.
> Which toolchian I have to use?
For sh2a user space I'm not sure.
The kernel builds just fine for me:
damm@t400s ~/kernel/sh-2.6 $ _gcc --version
sh-linux-gnu-gcc (Sourcery G++ Lite 4.4-45) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
damm@t400s ~/kernel/sh-2.6 $ make -j 3 ARCH=sh CROSS_COMPILE=_ rsk7203_defconfig
[snip]
damm@t400s ~/kernel/sh-2.6 $ make -j 3 ARCH=sh CROSS_COMPILE=_ uImage
[snip]
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/sh/boot/vmlinux.bin
GZIP arch/sh/boot/vmlinux.bin.gz
UIMAGE arch/sh/boot/uImage.gz
Image Name: Linux-2.6.34-rc1
Created: Wed Mar 17 15:31:35 2010
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 1362130 Bytes = 1330.21 kB = 1.30 MB
Load Address: 0c001000
Entry Point: 0c002000
Image arch/sh/boot/uImage is ready
damm@t400s ~/kernel/sh-2.6 $
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (9 preceding siblings ...)
2010-03-17 6:41 ` Magnus Damm
@ 2010-03-17 6:47 ` Magnus Damm
2010-03-17 8:43 ` Fabio Giovagnini
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 6:47 UTC (permalink / raw)
To: linux-sh
Hi Fabio,
On Wed, Mar 17, 2010 at 2:47 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Hi Magnus,
> yesterday I used the following command
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
>
> Am I ok?
I think so.
> My configuration is :
>
> SH2a 7203 smc9118
> Addresses:
> A1...A7 A1...A7
> Data:
> D0...D31 D0...D31
[snip]
> That means no swap it seems to work but really fails.
Please check the patches I pointed out earlier again. Read the commit
messages, big endian data transfer is broken on rsk7203 without the
patches. Register access is ok without swap but FIFO (actual data) is
broken.
If your ethernet hardware design is identical to rsk7203 then you will
need the patches.
Remember to set SMSC911X_SWAP_FIFO, i think that will solve your issue.
> My hw configration is good for actual version of the kernel driver or I need to
> be carefull to other stuff?
The latest kernel should be just fine on rsk7203. At least it builds. =)
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (10 preceding siblings ...)
2010-03-17 6:47 ` Magnus Damm
@ 2010-03-17 8:43 ` Fabio Giovagnini
2010-03-17 9:17 ` Magnus Damm
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 8:43 UTC (permalink / raw)
To: linux-sh
I have downloaded the sourceryg++-4.4-46-sh-linux-gnu.bin
I received an email telling me that the evaluation copy will expire in april.
I'll lose the available support or the toolchail will stop to work?
This is the first time for me with codesurgery
Thanks a lot
In data mercoledì 17 marzo 2010 07:41:59, Magnus Damm ha scritto:
: > Hi Fabio,
>
> On Wed, Mar 17, 2010 at 3:15 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > I'm tring to build the new 2.6-git kernel
> > I'm using gcc-3.4.6 based toolchain;
>
> For the kernel please use the latest codesourcery toolchain. Actually,
> in general, please try the latest version of any software before you
> report any issues.
>
> > Which toolchian I have to use?
>
> For sh2a user space I'm not sure.
>
> The kernel builds just fine for me:
>
> damm@t400s ~/kernel/sh-2.6 $ _gcc --version
> sh-linux-gnu-gcc (Sourcery G++ Lite 4.4-45) 4.4.1
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> damm@t400s ~/kernel/sh-2.6 $ make -j 3 ARCH=sh CROSS_COMPILE=_
> rsk7203_defconfig [snip]
> damm@t400s ~/kernel/sh-2.6 $ make -j 3 ARCH=sh CROSS_COMPILE=_ uImage
> [snip]
> LD vmlinux
> SYSMAP System.map
> SYSMAP .tmp_System.map
> OBJCOPY arch/sh/boot/vmlinux.bin
> GZIP arch/sh/boot/vmlinux.bin.gz
> UIMAGE arch/sh/boot/uImage.gz
> Image Name: Linux-2.6.34-rc1
> Created: Wed Mar 17 15:31:35 2010
> Image Type: SuperH Linux Kernel Image (gzip compressed)
> Data Size: 1362130 Bytes = 1330.21 kB = 1.30 MB
> Load Address: 0c001000
> Entry Point: 0c002000
> Image arch/sh/boot/uImage is ready
> damm@t400s ~/kernel/sh-2.6 $
>
> Cheers,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (11 preceding siblings ...)
2010-03-17 8:43 ` Fabio Giovagnini
@ 2010-03-17 9:17 ` Magnus Damm
2010-03-17 11:02 ` Fabio Giovagnini
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 9:17 UTC (permalink / raw)
To: linux-sh
On Wed, Mar 17, 2010 at 5:43 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> I have downloaded the sourceryg++-4.4-46-sh-linux-gnu.bin
> I received an email telling me that the evaluation copy will expire in april.
> I'll lose the available support or the toolchail will stop to work?
>
> This is the first time for me with codesurgery
The toolchain provided by "Sourcery G++ Lite Edition" does not expire.
http://www.codesourcery.com/sgpp/lite_edition.html
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (12 preceding siblings ...)
2010-03-17 9:17 ` Magnus Damm
@ 2010-03-17 11:02 ` Fabio Giovagnini
2010-03-17 11:06 ` Magnus Damm
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 11:02 UTC (permalink / raw)
To: linux-sh
In data mercoledì 17 marzo 2010 07:47:35, Magnus Damm ha scritto:
: > > git clone
> > git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
This si not patched with SMSC911X_SWAP_FIFO;
Could you tell me the git command I have to use to download the patched one?
Thanks
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (13 preceding siblings ...)
2010-03-17 11:02 ` Fabio Giovagnini
@ 2010-03-17 11:06 ` Magnus Damm
2010-03-17 11:11 ` Fabio Giovagnini
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 11:06 UTC (permalink / raw)
To: linux-sh
On Wed, Mar 17, 2010 at 8:02 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> In data mercoledì 17 marzo 2010 07:47:35, Magnus Damm ha scritto:
> : > > git clone
>> > git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
>
> This si not patched with SMSC911X_SWAP_FIFO;
It certainly is there in my tree:
damm@t400s ~/git/sh-2.6 $ git log -1 --oneline | head -n 1
3f7581d serial: sh-sci: remove duplicated #include
damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO
arch/sh/boards/mach-rsk/devices-rsk7203.c
.flags = SMSC911X_USE_32BIT | SMSC911X_SWAP_FIFO,
damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO drivers/net/smsc911x.c
if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
damm@t400s ~/git/sh-2.6 $
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (14 preceding siblings ...)
2010-03-17 11:06 ` Magnus Damm
@ 2010-03-17 11:11 ` Fabio Giovagnini
2010-03-17 11:15 ` Magnus Damm
2010-03-17 11:31 ` Fabio Giovagnini
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 11:11 UTC (permalink / raw)
To: linux-sh
Is it accessible by me for example
git://git.kernel.org/pub/scm/linux/kernel/git/magnus/sh-2.6.git
or not?
In data mercoledì 17 marzo 2010 12:06:21, Magnus Damm ha scritto:
: > On Wed, Mar 17, 2010 at 8:02 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > In data mercoledì 17 marzo 2010 07:47:35, Magnus Damm ha scritto:
> > : > > git clone
> >> >
> >> > git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git
> >
> > This si not patched with SMSC911X_SWAP_FIFO;
>
> It certainly is there in my tree:
>
> damm@t400s ~/git/sh-2.6 $ git log -1 --oneline | head -n 1
> 3f7581d serial: sh-sci: remove duplicated #include
> damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO
> arch/sh/boards/mach-rsk/devices-rsk7203.c
> .flags = SMSC911X_USE_32BIT | SMSC911X_SWAP_FIFO,
> damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO drivers/net/smsc911x.c
> if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
> if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
> damm@t400s ~/git/sh-2.6 $
>
> / magnus
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (15 preceding siblings ...)
2010-03-17 11:11 ` Fabio Giovagnini
@ 2010-03-17 11:15 ` Magnus Damm
2010-03-17 11:31 ` Fabio Giovagnini
17 siblings, 0 replies; 19+ messages in thread
From: Magnus Damm @ 2010-03-17 11:15 UTC (permalink / raw)
To: linux-sh
On Wed, Mar 17, 2010 at 8:11 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Is it accessible by me for example
> git://git.kernel.org/pub/scm/linux/kernel/git/magnus/sh-2.6.git
>
> or not?
You don't need any speical tree or patches. The normal sh-2.6 tree
should include all you need. Please try using the same commands as me
below:
Check last commit in git branch/tree:
damm@t400s ~/git/sh-2.6 $ git log -1 --oneline | head -n 1
3f7581d serial: sh-sci: remove duplicated #include
Look for board support:
damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO
arch/sh/boards/mach-rsk/devices-rsk7203.c
.flags = SMSC911X_USE_32BIT | SMSC911X_SWAP_FIFO,
Look for driver support:
damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO drivers/net/smsc911x.c
if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
damm@t400s ~/git/sh-2.6 $
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Hi All, hot to debug my eth0' hw?
2010-03-16 11:25 Hi All, hot to debug my eth0' hw? Fabio Giovagnini
` (16 preceding siblings ...)
2010-03-17 11:15 ` Magnus Damm
@ 2010-03-17 11:31 ` Fabio Giovagnini
17 siblings, 0 replies; 19+ messages in thread
From: Fabio Giovagnini @ 2010-03-17 11:31 UTC (permalink / raw)
To: linux-sh
Sorry magnus, maybe I'm able to develop some pieces of kernel, but for sure i
dont' know how to use the cooperative development tools; now I'm learing.
Thanks for your patience
Thanks again
In data mercoledì 17 marzo 2010 12:15:29, Magnus Damm ha scritto:
: > On Wed, Mar 17, 2010 at 8:11 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > Is it accessible by me for example
> > git://git.kernel.org/pub/scm/linux/kernel/git/magnus/sh-2.6.git
> >
> > or not?
>
> You don't need any speical tree or patches. The normal sh-2.6 tree
> should include all you need. Please try using the same commands as me
> below:
>
> Check last commit in git branch/tree:
>
> damm@t400s ~/git/sh-2.6 $ git log -1 --oneline | head -n 1
> 3f7581d serial: sh-sci: remove duplicated #include
>
> Look for board support:
>
> damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO
> arch/sh/boards/mach-rsk/devices-rsk7203.c
> .flags = SMSC911X_USE_32BIT | SMSC911X_SWAP_FIFO,
>
> Look for driver support:
>
> damm@t400s ~/git/sh-2.6 $ grep SMSC911X_SWAP_FIFO drivers/net/smsc911x.c
> if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
> if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
> damm@t400s ~/git/sh-2.6 $
>
> Cheers,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 19+ messages in thread