Has anyone 2.6 kernel with Xenomai and MPC5200 Lite running?
Hi,
I have here a MPC5200 Lite (IceCube/Freescale Lite 5200) and tried to get Xenomai running.
If I use the 2.6 kernel from denx the board boots fine but I am not able to patch the kernel with the adeos patch (adeos-patch is for kernel 2.6.18) and the kernel from denx is 2.6.19rc4. I checked the changes and they are to much for me to adapt it.
What I need now is a patch for kernel 2.6.18 to get all the MPC5200 stuff running (priority has the networkchip) or a adeos patch for the denx kernel 2.6.19-rc4.
Can anyone help me here, please?
Best regards,
Matthias
Signature · 4 lines
"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
Quoted 5 lines · In message <[email protected]> you wrote:
I have here a MPC5200 Lite (IceCube/Freescale Lite 5200) and tried to get Xenomai running.
If I use the 2.6 kernel from denx the board boots fine but I am not
Note that we explicitely do NOT support the MPC5200 in this tree yet.
Quoted 3 lines
able to patch the kernel with the adeos patch (adeos-patch is for kernel 2.6.18) and the kernel from denx is 2.6.19rc4. I checked the changes and they are to much for me to adapt it.
Then just check out the 2.6.18 version of the tree. This is a git repo, so seeking to any version you like is a matter of seconds.
Quoted 3 lines
What I need now is a patch for kernel 2.6.18 to get all the MPC5200 stuff running (priority has the networkchip) or a adeos patch for the denx kernel 2.6.19-rc4.
You do not want this, if you're on a MPC5200. I repeat, this is not supported.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] If I had to live my life again, I'd make the same mistakes, only sooner. -- Tallulah Bankhead
Quoted 10 lines · Matthias Fechner
Hi,
I have here a MPC5200 Lite (IceCube/Freescale Lite 5200) and tried to get Xenomai running.
If I use the 2.6 kernel from denx the board boots fine but I am not able to patch the kernel with the adeos patch (adeos-patch is for kernel 2.6.18) and the kernel from denx is 2.6.19rc4. I checked the changes and they are to much for me to adapt it.
Quoted 5 lines
What I need now is a patch for kernel 2.6.18 to get all the MPC5200 stuff running (priority has the networkchip) or a adeos patch for the denx kernel 2.6.19-rc4.
Can anyone help me here, please?
Yup, there exists patches for all the functionality that you're looking for. You can find them if you search the list, but I'll send you a link to a git tree with all those patches in it later tonight.
Cheers
g.
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Hello Wolfgang,
Quoted 2 lines · Wolfgang Denk
Then just check out the 2.6.18 version of the tree. This is a git repo, so seeking to any version you like is a matter of seconds.
hm, I did it but was not successfully. What I did was:
git clone git://www.denx.de/git/linux-2.6-denx.git linux-2.6-denx cd linux-2.6-denx
git checkout -b private2.6.18 v2.6.18
Now I had kernel 2.6.18 but without network :(
Is that wrong? Sry but git is completely new for me.
Quoted 2 lines
You do not want this, if you're on a MPC5200. I repeat, this is not supported.
ok, that is clear but if the kernel boots fine on the board with network and I am able to patch it with Xenomai I can live with it.
Best regards,
Matthias
Signature · 4 lines
"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
Hello Grant,
Quoted 3 lines · Grant Likely
Yup, there exists patches for all the functionality that you're looking for. You can find them if you search the list, but I'll send you a link to a git tree with all those patches in it later tonight.
you maybe mean:
http://gitbits.246tNt.com/gitbits/linux-2.6-mpc52xx.git
I tried that repository but here I was not able to patch the tree with Xenomai.
But if you have another link it would be a pleasure for me to receive the link :)
Best regards,
Matthias
Signature · 4 lines
"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
Quoted 9 lines · Matthias Fechner
Hello Grant,
Quoted 4 lines · Grant Likely
Yup, there exists patches for all the functionality that you're looking for. You can find them if you search the list, but I'll send you a link to a git tree with all those patches in it later tonight.
Quoted 8 lines
you maybe mean:
http://gitbits.246tNt.com/gitbits/linux-2.6-mpc52xx.gitI tried that repository but here I was not able to patch the tree with Xenomai.
But if you have another link it would be a pleasure for me to receive the link :)
Take the patchs off that link (bestcomm branch), and apply them on a fresh/recent
tree, that should work. (that is, clone a official tree, then pull from the above link
and merge the two).
There is work in progress for the arch/powerpc port but it's not done yet.
Sylvain
Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Then just check out the 2.6.18 version of the tree. This is a git repo, so seeking to any version you like is a matter of seconds.
hm, I did it but was not successfully. What I did was:
...
Quoted 1 line
git checkout -b private2.6.18 v2.6.18
This will give you the exact 2.6.18 kernel.org tree without any extensions / modifications. It has even less support for the MPC5200 than our tree, wher eit is unsupported.
Quoted 1 line
Now I had kernel 2.6.18 but without network :(
ACK. The kernel.org tree does not include Sylvain's patches.
Quoted 2 lines
ok, that is clear but if the kernel boots fine on the board with network and I am able to patch it with Xenomai I can live with it.
You mean, you don't care about reliability? Umm... then you don't need Xenomai, either.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "In matrimony, to hesitate is sometimes to be saved." - Butler
Hello Wolfgang,
Quoted 3 lines · Wolfgang Denk
This will give you the exact 2.6.18 kernel.org tree without any extensions / modifications. It has even less support for the MPC5200 than our tree, wher eit is unsupported.
how can I checkout kernel 2.6.18 with denx improvements?
Quoted 2 lines
You mean, you don't care about reliability? Umm... then you don't need Xenomai, either.
I need the system only for development, the targetsystem will run on another board :)
Best regards,
Matthias
Signature · 4 lines
"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
Hello Sylvain,
Quoted 7 lines · Sylvain Munaut
Take the patchs off that link (bestcomm branch), and apply them on a fresh/recent
tree, that should work. (that is, clone a official tree, then pull from the above link
and merge the two).There is work in progress for the
arch/powerpcport but it's not done yet.
thx a lot, I will try it tomorrow.
Best regards,
Matthias
Signature · 4 lines
"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
Quoted 9 lines · Matthias Fechner
Hello Sylvain,
Quoted 6 lines · Sylvain Munaut
Take the patchs off that link (bestcomm branch), and apply them on a fresh/recent
tree, that should work. (that is, clone a official tree, then pull from the above link
and merge the two).
Quoted 3 lines
Quoted 1 line
There is work in progress for the
arch/powerpcport but it's not done yet.thx a lot, I will try it tomorrow.
I also tried to get Sylvain's patches working on 2.6.18 and gave up rather frustrated. They do not work "as is" :-(. I can offer you a solution for Xenomai on 2.6.17, if this is an option for you. That's what I got working for development.
Wolfgang.
Hello Wolfgang,
Quoted 4 lines · Wolfgang Grandegger
I also tried to get Sylvain's patches working on 2.6.18 and gave up rather frustrated. They do not work "as is" :-(. I can offer you a solution for Xenomai on 2.6.17, if this is an option for you. That's what I got working for development.
that would be fantastic.
I only need kernel 2.6 running on MPC5200 with xenomai.
I can give you access to one of my servers if you want to copy there the kernel.
Best regards,
Matthias
Signature · 4 lines
"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
Quoted 2 lines · In message <[email protected]> you wrote:
how can I checkout kernel 2.6.18 with denx improvements?
run gitk and check where our tree was megred with the Linus tree after the v2.6.18 release - you will find that it's commit ID dee0eedc749e35f85103f33d9c28bdfcdc1a8fb4
Quoted 2 lines
I need the system only for development, the targetsystem will run on another board :)
I'm not talking about a specific board, but about MPC5200 in general.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] About the use of language: it is impossible to sharpen a pencil with a blunt ax. It is equally vain to try to do it with ten blunt axes instead. -- Edsger Dijkstra
Hello Matthias,
Quoted 9 lines · Matthias Fechner
Hello Wolfgang,
Quoted 1 line · Wolfgang Grandegger
I also tried to get Sylvain's patches working on 2.6.18 and gave up rather frustrated. They do not work "as is" :-(. I can offer you a solution for Xenomai on 2.6.17, if this is an option for you. That's what I got working for development.
that would be fantastic.
I only need kernel 2.6 running on MPC5200 with xenomai.
I can give you access to one of my servers if you want to copy there the kernel.
Some time ago I got the MPC5200 patches from the Pengutronix's OSELAS project working for DENX Linux 2.6.17. In the meantime they have update to 2.6.18. Take OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-4.tar.gz from
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-tiny/,
unpack it and apply the relevant patches from the kernel-patches-target diretory to linux-2.6-denx#v2.6.18. I think the following patches should be sufficient (in that order):
fec_mpc52xx_bestcomm.diff
fec_mpc52xx.diff
drivers_serial_mpc52xx_uart_fix.diff
mpc5200_physmap.diff
You can find the most recent Xenomai patch 2.6.18-ppc-1.05.00 at "ftp://ftp.denx.de/xenomai". I'm going to test them later today with Xenomai.
Good luck.
Wolfgang.
Hello Matthias,
Quoted 9 lines · Matthias Fechner
Hello Wolfgang,
Quoted 1 line · Wolfgang Grandegger
I also tried to get Sylvain's patches working on 2.6.18 and gave up rather frustrated. They do not work "as is" :-(. I can offer you a solution for Xenomai on 2.6.17, if this is an option for you. That's what I got working for development.
that would be fantastic.
I only need kernel 2.6 running on MPC5200 with xenomai.
I can give you access to one of my servers if you want to copy there the kernel.
Some time ago I got the MPC5200 patches from the Pengutronix's OSELAS project working for DENX Linux 2.6.17. In the meantime they have update to 2.6.18. Take OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-4.tar.gz from
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-tiny/, unpack it and apply the relevant patches from the kernel-patches-target directory to linux-2.6-denx#v2.6.18. I think the following patches should be sufficient (in that order):
fec_mpc52xx_bestcomm.diff
fec_mpc52xx.diff
drivers_serial_mpc52xx_uart_fix.diff
mpc5200_physmap.diff
You can find the most recent Xenomai patch 2.6.18-ppc-1.05.00 at ftp://ftp.denx.de/xenomai. I'm going to test them later today with Xenomai.
Good luck.
Wolfgang.
Quoted 7 lines · Matthias Fechner
Hello Grant,
Quoted 3 lines · Grant Likely
Yup, there exists patches for all the functionality that you're looking for. You can find them if you search the list, but I'll send you a link to a git tree with all those patches in it later tonight.
Quoted 5 lines
you maybe mean:
http://gitbits.246tNt.com/gitbits/linux-2.6-mpc52xx.gitI tried that repository but here I was not able to patch the tree with Xenomai.
Yup, that's the tree I was referring to; and yes you would need to do some work to get all the patches to play nice together. :)
Quoted 2 lines
But if you have another link it would be a pleasure for me to receive the link :)
Unfortunately, I've had some technical issues on my end, so I haven't been able to get a tree together for you yet.
Sorry,
g.
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Hello Wolfgang,
Quoted 8 lines · Wolfgang Grandegger
unpack it and apply the relevant patches from the kernel-patches-target diretory to linux-2.6-denx#v2.6.18. I think the following patches should be sufficient (in that order):
fec_mpc52xx_bestcomm.diff fec_mpc52xx.diff drivers_serial_mpc52xx_uart_fix.diff mpc5200_physmap.diff
ok, my boards boots fine after that.
Quoted 3 lines
You can find the most recent Xenomai patch 2.6.18-ppc-1.05.00 at "ftp://ftp.denx.de/xenomai". I'm going to test them later today with Xenomai.
I applied now everything and Xenomai builds fine.
I configured now my kernel, build it but the board do not boot or at least the console has gone.
Which bootargs you use in u-boot to boot the Xenomai kernel? My bootargs are:
bootargs=root=/dev/nfs rw
nfsroot=192.168.0.151:/usr/local/eldk/ppc_6xx ip=192.168.0.101:192.168.0.151:192.168.0.151:255.255.255.0:icecube::off console=ttyPSC0
You can find what I did on:
http://wiki.idefix.fechner.net/index.php/Xenomai
Thx for tips.
Best regards,
Matthias
Signature · 4 lines
"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
Hello Wolfgang,
Quoted 1 line · Wolfgang Denk
I'm not talking about a specific board, but about MPC5200 in general.
ah ok, thx for that hint. Maybe it will change in the future :)
Best regards,
Matthias
Signature · 4 lines
"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
Hi,
Quoted 2 lines · Matthias Fechner
You can find what I did on:
http://wiki.idefix.fechner.net/index.php/Xenomai
ok, problem is solved, everything is documented on my page. Hope that helps some ppl.
(was a problem with the kernel configuration)
Best regards,
Matthias
Signature · 4 lines
"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