* freescale lite 5200 board and kernel 2.6
@ 2006-04-05 21:06 Domenico Andreoli
2006-04-05 21:27 ` Matthias Fechner
0 siblings, 1 reply; 12+ messages in thread
From: Domenico Andreoli @ 2006-04-05 21:06 UTC (permalink / raw)
To: linuxppc-embedded
hi all,
i've got a freescale lite 5200 evaluation board (1 pci slot), i need
it to develop the driver for a industrial labeler machine. i was given
also some old evaluation version of metrowerks PCS and BSP stuff.
guess it.. i want to throw that software away and start from scratch
using kernel 2.6, maybe 2.6.16.
i made a cross-compiler, i built a vanilla 2.6.16 and put it on the
board's flash. i'd like to use rootfs from nfs. everything looks
promising, but vanilla 2.6.16 is not enough.
i've got some patches from patchwork.ozlabs.org (don't ask me which,
i'm not finding them any more.. one is named bcomm-to-split.diff),
re-compiled the kernel and now the board has also a network interface.
but i suspect the nic does not work correctly. sometimes kernel mounts
the rootfs, some (more) times it does not. when it does, i'm also able
to ping it from the network. conversely, i'm not.
i'm pretty confident that kernel network configuration is always right,
it is saved in the u-boot environment. network is a private one, two
hosts only.
i played a couple of days on this but i've to take a decision, time
is against me. start to develop for the old kernel 2.4 in the PCS &
BSP stuff or start with a shiny 2.6 (i've also a brand new rubini's
3rd edition "linux device drivers"!)
is there any patchset i can use for kernel 2.6? is it production-ready?
why isn't already in vanilla 2.6? has any sense to stay with kernel 2.4?
any help or hint is appreciated. thank you.
cheers
domenico
-----[ Domenico Andreoli, aka cavok
--[ http://people.debian.org/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-05 21:06 freescale lite 5200 board and kernel 2.6 Domenico Andreoli
@ 2006-04-05 21:27 ` Matthias Fechner
2006-04-05 22:14 ` John Rigby
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Matthias Fechner @ 2006-04-05 21:27 UTC (permalink / raw)
To: linuxppc-embedded
Hello Domenico,
* Domenico Andreoli <cavokz@gmail.com> [05-04-06 23:06]:
> is there any patchset i can use for kernel 2.6? is it production-ready?
> why isn't already in vanilla 2.6? has any sense to stay with kernel 2.4?
I'm not sure if this helps, but I was successfully in getting a kernel
2.6 running with the icecube board. I have written a short docu in my
wiki (booting with tftp and rootnfs over NFS):
http://wiki.idefix.fechner.net/index.php/IceCube#Writing_kernel_modules_for_2.6
Maybe this will help.
Please give me some feedback.
Best regards,
Matthias
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-05 21:27 ` Matthias Fechner
@ 2006-04-05 22:14 ` John Rigby
2006-04-05 23:14 ` Sylvain Munaut
2006-04-06 22:10 ` Domenico Andreoli
2 siblings, 0 replies; 12+ messages in thread
From: John Rigby @ 2006-04-05 22:14 UTC (permalink / raw)
To: linuxppc-embedded
Thanks Matthias now I don't have to say "we discussed this last week,
search the list" everytime this question comes up.
On 4/5/06, Matthias Fechner <idefix@fechner.net> wrote:
> Hello Domenico,
>
> * Domenico Andreoli <cavokz@gmail.com> [05-04-06 23:06]:
> > is there any patchset i can use for kernel 2.6? is it production-ready?
> > why isn't already in vanilla 2.6? has any sense to stay with kernel 2.4=
?
>
> I'm not sure if this helps, but I was successfully in getting a kernel
> 2.6 running with the icecube board. I have written a short docu in my
> wiki (booting with tftp and rootnfs over NFS):
> http://wiki.idefix.fechner.net/index.php/IceCube#Writing_kernel_modules_f=
or_2.6
>
> Maybe this will help.
> Please give me some feedback.
>
> Best regards,
> Matthias
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-05 21:27 ` Matthias Fechner
2006-04-05 22:14 ` John Rigby
@ 2006-04-05 23:14 ` Sylvain Munaut
2006-04-06 9:32 ` Matthias Fechner
2006-04-06 22:10 ` Domenico Andreoli
2 siblings, 1 reply; 12+ messages in thread
From: Sylvain Munaut @ 2006-04-05 23:14 UTC (permalink / raw)
To: linuxppc-embedded, idefix
Matthias Fechner wrote:
> Hello Domenico,
>
> * Domenico Andreoli <cavokz@gmail.com> [05-04-06 23:06]:
>
>> is there any patchset i can use for kernel 2.6? is it production-ready?
>> why isn't already in vanilla 2.6? has any sense to stay with kernel 2.4?
>>
>
> I'm not sure if this helps, but I was successfully in getting a kernel
> 2.6 running with the icecube board. I have written a short docu in my
> wiki (booting with tftp and rootnfs over NFS):
> http://wiki.idefix.fechner.net/index.php/IceCube#Writing_kernel_modules_for_2.6
>
> Maybe this will help.
> Please give me some feedback.
>
Nice !
It made me realize the git commands I gave on my website were kinda
wrong, I messed
up git fetch and git pull among other things ...
Sylvain
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-05 23:14 ` Sylvain Munaut
@ 2006-04-06 9:32 ` Matthias Fechner
0 siblings, 0 replies; 12+ messages in thread
From: Matthias Fechner @ 2006-04-06 9:32 UTC (permalink / raw)
To: Sylvain Munaut; +Cc: linuxppc-embedded
Hello Sylvain,
* Sylvain Munaut <tnt@246tNt.com> [06-04-06 01:14]:
> It made me realize the git commands I gave on my website were kinda
> wrong, I messed
> up git fetch and git pull among other things ...
ah that explains why I have some problems with git.
It seems that on the actual kernel-git-repository something has
changed (kernel.org).
The patch:
git pull http://gitbits.246tNt.com/gitbits/linux-2.6-mpc52xx.git master:mpc52xx
failed last week, so I used the complete repository from your side.
Maybe you can fix this problem, I will adapt then my wiki. :)
Matthias
--
"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the universe trying to produce
bigger and better idiots. So far, the universe is winning." -- Rich Cook
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-05 21:27 ` Matthias Fechner
2006-04-05 22:14 ` John Rigby
2006-04-05 23:14 ` Sylvain Munaut
@ 2006-04-06 22:10 ` Domenico Andreoli
2006-04-08 8:21 ` Matthias Fechner
2 siblings, 1 reply; 12+ messages in thread
From: Domenico Andreoli @ 2006-04-06 22:10 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
On Wed, Apr 05, 2006 at 11:27:41PM +0200, Matthias Fechner wrote:
> Hello Domenico,
hi Matthias,
> * Domenico Andreoli <cavokz@gmail.com> [05-04-06 23:06]:
> > is there any patchset i can use for kernel 2.6? is it production-ready?
> > why isn't already in vanilla 2.6? has any sense to stay with kernel 2.4?
>
> I'm not sure if this helps, but I was successfully in getting a kernel
> 2.6 running with the icecube board. I have written a short docu in my
> wiki (booting with tftp and rootnfs over NFS):
> http://wiki.idefix.fechner.net/index.php/IceCube#Writing_kernel_modules_for_2.6
this is a very nice page, it is now my reference :)
anyway i cannot say i made it, my icecube is still not under control.
every time i boot the 2.6 kernel after the original 2.4 one, the nic
seems to work. on subsequent boots, even after board resets, it does not.
i still need to check what happens removing the power cord.
kernel is built following the instructions on your wiki, i attached
the config file. please have a look, let me know if any check/test may
be advised.
cheers
domenico
-----[ Domenico Andreoli, aka cavok
--[ http://people.debian.org/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
[-- Attachment #2: config-2.6.16.1-mpc52xx.gz --]
[-- Type: application/octet-stream, Size: 5476 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-06 22:10 ` Domenico Andreoli
@ 2006-04-08 8:21 ` Matthias Fechner
2006-04-10 21:54 ` Domenico Andreoli
0 siblings, 1 reply; 12+ messages in thread
From: Matthias Fechner @ 2006-04-08 8:21 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
Hello Domenico,
* Domenico Andreoli <cavokz@gmail.com> [07-04-06 00:10]:
> kernel is built following the instructions on your wiki, i attached
> the config file. please have a look, let me know if any check/test may
> be advised.
sry, but I have now time to try your kernel config, but I attached
mine which is working fine for me.
Maybe this helps you.
Best regards,
Matthias
[-- Attachment #2: config-mpc52xx.bz2 --]
[-- Type: application/octet-stream, Size: 4800 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-08 8:21 ` Matthias Fechner
@ 2006-04-10 21:54 ` Domenico Andreoli
2006-04-12 20:09 ` Matthias Fechner
2006-04-12 22:30 ` Sylvain Munaut
0 siblings, 2 replies; 12+ messages in thread
From: Domenico Andreoli @ 2006-04-10 21:54 UTC (permalink / raw)
To: linuxppc-embedded
On Sat, Apr 08, 2006 at 10:21:00AM +0200, Matthias Fechner wrote:
> Hello Domenico,
Hello Matthias,
> * Domenico Andreoli <cavokz@gmail.com> [07-04-06 00:10]:
> > kernel is built following the instructions on your wiki, i attached
> > the config file. please have a look, let me know if any check/test may
> > be advised.
>
> sry, but I have now time to try your kernel config, but I attached
> mine which is working fine for me.
> Maybe this helps you.
unfortunately it does not :/
sometimes kernel prints "eth0: config: auto-negotiation on, 100HDX,
10HDX.", the eth0 is up and everything works.
most of the times "eth0: config: auto-negotiation off, No speed/duplex
selected?." is instead printed and eth0 seems to not exist.
i tend to exclude hw problems, older kernel 2.4.x always succeed in
using eth0.
is there any way to force eth0 auto-negotiation?
thank you
domenico
-----[ Domenico Andreoli, aka cavok
--[ http://people.debian.org/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-10 21:54 ` Domenico Andreoli
@ 2006-04-12 20:09 ` Matthias Fechner
2006-04-12 22:30 ` Sylvain Munaut
1 sibling, 0 replies; 12+ messages in thread
From: Matthias Fechner @ 2006-04-12 20:09 UTC (permalink / raw)
To: linuxppc-embedded
Hello Domenico,
* Domenico Andreoli <cavokz@gmail.com> [10-04-06 23:54]:
> unfortunately it does not :/
im sorry about it, but I'm a newbie too.
The only think I did is documenting how i got the kernel running. :(
> is there any way to force eth0 auto-negotiation?
maybe giving a parameter to the bootargs?
Maybe you found something in the description of the driver in the
kernelconfiguration.
Best regards,
Matthias
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-10 21:54 ` Domenico Andreoli
2006-04-12 20:09 ` Matthias Fechner
@ 2006-04-12 22:30 ` Sylvain Munaut
2006-04-13 10:23 ` Domenico Andreoli
1 sibling, 1 reply; 12+ messages in thread
From: Sylvain Munaut @ 2006-04-12 22:30 UTC (permalink / raw)
To: linuxppc-embedded
Domenico Andreoli wrote:
> On Sat, Apr 08, 2006 at 10:21:00AM +0200, Matthias Fechner wrote:
>
>> Hello Domenico,
>>
>
> Hello Matthias,
>
>
>> * Domenico Andreoli <cavokz@gmail.com> [07-04-06 00:10]:
>>
>>> kernel is built following the instructions on your wiki, i attached
>>> the config file. please have a look, let me know if any check/test may
>>> be advised.
>>>
>> sry, but I have now time to try your kernel config, but I attached
>> mine which is working fine for me.
>> Maybe this helps you.
>>
>
> unfortunately it does not :/
>
> sometimes kernel prints "eth0: config: auto-negotiation on, 100HDX,
> 10HDX.", the eth0 is up and everything works.
>
> most of the times "eth0: config: auto-negotiation off, No speed/duplex
> selected?." is instead printed and eth0 seems to not exist.
>
> i tend to exclude hw problems, older kernel 2.4.x always succeed in
> using eth0.
>
> is there any way to force eth0 auto-negotiation?
>
When it doesn't work, did it detect the phy correctly ?
Somewhere in the boot sequence it should print something about a LXT971
being found at some address.
Sylvain
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-12 22:30 ` Sylvain Munaut
@ 2006-04-13 10:23 ` Domenico Andreoli
2006-04-16 11:43 ` Andrew Dennison
0 siblings, 1 reply; 12+ messages in thread
From: Domenico Andreoli @ 2006-04-13 10:23 UTC (permalink / raw)
To: Sylvain Munaut; +Cc: massimo.vanetti, linuxppc-embedded
On Thu, Apr 13, 2006 at 12:30:16AM +0200, Sylvain Munaut wrote:
> Domenico Andreoli wrote:
> >
> > sometimes kernel prints "eth0: config: auto-negotiation on, 100HDX,
> > 10HDX.", the eth0 is up and everything works.
> >
> > most of the times "eth0: config: auto-negotiation off, No speed/duplex
> > selected?." is instead printed and eth0 seems to not exist.
> >
> > i tend to exclude hw problems, older kernel 2.4.x always succeed in
> > using eth0.
> >
> > is there any way to force eth0 auto-negotiation?
> >
> When it doesn't work, did it detect the phy correctly ?
> Somewhere in the boot sequence it should print something about a LXT971
> being found at some address.
no, it does not, it uses GENERIC. when PHY is detected as LXT971,
network works.
actually this is unrelated with previous runs of kernel 2.4 (as i
stated in some previous post). sometimes PHY is detected correctly,
sometimes is not.
thank you
domenico
-----[ Domenico Andreoli, aka cavok
--[ http://people.debian.org/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: freescale lite 5200 board and kernel 2.6
2006-04-13 10:23 ` Domenico Andreoli
@ 2006-04-16 11:43 ` Andrew Dennison
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Dennison @ 2006-04-16 11:43 UTC (permalink / raw)
To: Sylvain Munaut, linuxppc-embedded, massimo.vanetti
On 4/13/06, Domenico Andreoli <cavokz@gmail.com> wrote:
> no, it does not, it uses GENERIC. when PHY is detected as LXT971,
> network works.
>
> actually this is unrelated with previous runs of kernel 2.4 (as i
> stated in some previous post). sometimes PHY is detected correctly,
> sometimes is not.
>
Is the PHY address something other than 0?
If there is no pullup on MDIO (?) and the PHY address isn't 0
sometimes a PHY will be detected on the wrong address. Well that's the
problem I had with a 5200 on a custom board. I worked around something
like this with the following (edited) patch / hack. The correct answer
was to add a pullup on the board, but this is fairly safe as it won't
misdetect any of the phys supported in fec.c.
--- arch/ppc/5xxx_io/fec.c 15 Feb 2005 00:19:13 -0000 1.10
+++ arch/ppc/5xxx_io/fec.c 22 Apr 2005 05:28:12 -0000
@@ -732,7 +825,7 @@ mii_discover_phy(uint mii_reg, struct ne
printk("mii_discover_phy\n");
#endif
- if ((phytype =3D (mii_reg & 0xffff)) !=3D 0xffff) {
+ if ((phytype =3D (mii_reg & 0x3ff)) !=3D 0x3ff) { /* hack - was 0xf=
fff */
/* Got first part of ID, now get remainder.
*/
priv->phy_id =3D phytype << 16;
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-04-16 11:50 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 21:06 freescale lite 5200 board and kernel 2.6 Domenico Andreoli
2006-04-05 21:27 ` Matthias Fechner
2006-04-05 22:14 ` John Rigby
2006-04-05 23:14 ` Sylvain Munaut
2006-04-06 9:32 ` Matthias Fechner
2006-04-06 22:10 ` Domenico Andreoli
2006-04-08 8:21 ` Matthias Fechner
2006-04-10 21:54 ` Domenico Andreoli
2006-04-12 20:09 ` Matthias Fechner
2006-04-12 22:30 ` Sylvain Munaut
2006-04-13 10:23 ` Domenico Andreoli
2006-04-16 11:43 ` Andrew Dennison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).