All times are UTC - 6 hours




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Fri Nov 23, 2007 3:19 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
h4nnib4l wrote:
smal board, great support & comunity ;)

i used efika.forth and "make zImage"

booting is possible but the onboard net and the one i pluged into pci is not working... but i will try to modify the kernel... i hope i just overseen something during config.


Do you have output of dmesg showing the drivers loading or the PCI bus scanned?
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 3:30 pm 
Offline


Mon Nov 19, 2007 5:22 pm

12
onboard net not working, but the pci one :)
i keep looking... could only be someting little

by the way, with efika.forth the old 2.6.19 kernel binary from bplan issnet working anymore..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 3:48 pm 
Offline


Mon Nov 19, 2007 5:22 pm

12
oops iam pretty blind... found it, i hope :) build onging


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 4:00 pm 
Offline


Mon Nov 19, 2007 5:22 pm

12
read & working! thx for all the good and quick helps.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 8:30 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
h4nnib4l wrote:
onboard net not working, but the pci one :)
i keep looking... could only be someting little

by the way, with efika.forth the old 2.6.19 kernel binary from bplan issnet working anymore..


It should, but I might have nuked a compatible entry by accident so one driver or another might stop detecting.

However that's probably highly unlikely. The 2.6.19 kernel shouldn't be affected at all by the changes the Efika script makes.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 2:51 am 
Offline


Thu Jul 28, 2005 12:41 am

1063
Neko wrote:
You need the efika.forth Firmware patch to successfully use the new ethernet driver.


The openSUSE guys removed the EFIKA ethernet dirver, as non functional, in 'factory' :-) I hope, it will be included again with the next snapshot. 'efika.forth' should be publicized a bit more...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 12:52 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
czp wrote:
Neko wrote:
You need the efika.forth Firmware patch to successfully use the new ethernet driver.


The openSUSE guys removed the EFIKA ethernet dirver, as non functional, in 'factory' :-) I hope, it will be included again with the next snapshot. 'efika.forth' should be publicized a bit more...


Tell them to put it back because it's a firmware bug and not a driver bug.

We can't publicise it more than it is being; everyone who does this stuff (Olaf etc.) already knows of it, and there is too much politiking around on who should shoulder the burden of fixing the bugs.

One Linux distro might remove support for ethernet.

One might require efika.forth and explain nicely how to use it.

One might recode it into a Linux patch and C code.

One might just whine about how our firmware doesn't support this, and Yaboot, and lots of other stuff, and refuse to support us.

Then the distro that was nice, will drop support for the architecture completely, or the developer will leave, and we start again.

I wrote the script to appease the guys on the LinuxPPC list who insisted that device tree hacks should be done in firmware and if possible very quickly removed from Linux. That goal has been done; we can remove the device tree fixups from Linux right now, and using efika.forth, the system will work wonderfully.

However now we have to convince the distro guys to ditch Yaboot and use GRUB2 since Yaboot cannot load efika.forth before it loads Linux, we have to explain to the users how they must run and load the script to get stuff to work, they will need GRUB2 which they will refuse to supply in distros because it is "unstable"..

All in all, it's too much politiking for me. We make one set of developers happy and another one jumps up and down angry at us.

The script is there for use. If they are really motivated to support Efika they will find a way to use it. If they are not, then we lose, but nobody here seems to want to do the work. I don't mean at Genesi - if we had the time or resources we would fix the firmware instead.

We gave away hundreds of boards and I don't see anyone really going out and fixing up Linux distros or submitting patches or releasing driver fixes at all, except those (Grant, Sylvain and Domen) who already pledged to do this before the Efika release.

And especially I see nothing from the guys who had projects pertaining to Linux kernel development and distribution support.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 11:09 am 
Offline


Tue Feb 14, 2006 2:01 pm

75

Germany
EDIT: this post is useles.. don't do this!

#########################################################


Actually, the patch included with efika-dts-20071114.zip does not apply cleanly, when you have already patched 2.6.23.8 with nixnut's patches. Here is a new one:

000-powerpc-remove_pegasos_efika_dt_fixups.2.6.23.8.diff

Here is small "howto patch vanilla-sources-2.6.23.8 for efika":

Code:
$ echo =sys-kernel/vanilla-sources-2.6.23.8 >> /etc/portage/package.keywords
$ emerge =sys-kernel/vanilla-sources-2.6.23.8
$ cd /usr/src/
$ wget http://dev.gentoo.org/~nixnut/efika/efika-patches-2.6.23.tar.bz2
$ wget http://unixforces.net/~markus/stuff/000-powerpc-remove_pegasos_efika_dt_fixups.2.6.23.8.diff
$ mkdir patches-2.6.23
$ cd patches-2.6.23
$ tar xfvj ../efika-patches-2.6.23.tar.bz2
// the patches from nixnut's tarball are now in /usr/src/patches-2.6.23
$ cd /usr/src/linux-2.6.23.8/
$ for i in `ls ../patches-2.6.23/`; do patch -p1 -i ../patches-2.6.23/$i; done
$ patch -p1 -i ../000-powerpc-remove_pegasos_efika_dt_fixups.2.6.23.8.diff


it's easier than it looks like...

Neko: I would really like to see a fixed firmware. This efika.forth isn't bad, but it's not *that* user friendly...

EDIT: look at this shiny output :-)

Code:
# uname -a
Linux efika 2.6.23.8-efika #4 Wed Nov 28 18:06:01 CET 2007 ppc G2_LE Efika 5200B PowerPC System GNU/Linux


Last edited by corsair on Wed Nov 28, 2007 11:42 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 11:26 am 
Offline


Tue Feb 14, 2006 2:01 pm

75

Germany
mhh.. somehow the EFIKA network connection 'freezes' with the above patches. don't use it for now..

/me searches for the updated network driver

EDIT: nah.. this won't lead anywhere. let's just move on to 2.6.24_rcX :roll:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 12:27 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
corsair wrote:
mhh.. somehow the EFIKA network connection 'freezes' with the above patches. don't use it for now..

/me searches for the updated network driver

EDIT: nah.. this won't lead anywhere. let's just move on to 2.6.24_rcX :roll:


There's a couple of patches for the ethernet driver on linuxppc-dev - one from David Woodhouse that hit patchwork, but one from Jon Smirl that fixed some data corruption (same behaviour you had!) didn't get there.

It's in my inbox but I can't find reference to it on the archives or anywhere online (ARGH!)

Remember to get the new ethernet driver working you need the fixes from efika.forth.

I'm about a day away from a comprehensive solution which will burn the script into nvram for you guys.. :)
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 2:30 pm 
Offline


Tue Feb 14, 2006 2:01 pm

75

Germany
Thanks for the info. I'll wait for it poping up in patchwork.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 29, 2007 9:57 am 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
corsair wrote:
Thanks for the info. I'll wait for it poping up in patchwork.


Better to look through the archives. If Patchwork didn't pick it up automatically it's not going to find a 2 week old mail and add it today.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 29, 2007 1:41 pm 
Offline


Tue Feb 14, 2006 2:01 pm

75

Germany
ok. I thought it would "not yet" be in patchwork.

Is it this patch?

Code:
diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
index a8a0ee2..ddfcc0b 100644
--- a/drivers/net/fec_mpc52xx.c
+++ b/drivers/net/fec_mpc52xx.c
@@ -422,7 +422,7 @@ static irqreturn_t mpc52xx_fec_rx_interrupt(int
irq, void *dev_id)

                rskb = bcom_retrieve_buffer(priv->rx_dmatsk, &status,
                                (struct bcom_bd **)&bd);
-               dma_unmap_single(&dev->dev, bd->skb_pa, skb->len, DMA_FROM_DEVICE);
+               dma_unmap_single(&dev->dev, bd->skb_pa, rskb->len, DMA_FROM_DEVICE);

                /* Test for errors in received frame */
                if (status & BCOM_FEC_RX_BD_ERRORS) {
@@ -467,7 +467,7 @@ static irqreturn_t mpc52xx_fec_rx_interrupt(int
irq, void *dev_id)
                        bcom_prepare_next_buffer(priv->rx_dmatsk);

                bd->status = FEC_RX_BUFFER_SIZE;
-               bd->skb_pa = dma_map_single(&dev->dev, rskb->data,
+               bd->skb_pa = dma_map_single(&dev->dev, skb->data,
                                FEC_RX_BUFFER_SIZE, DMA_FROM_DEVICE);

                bcom_submit_next_buffer(priv->rx_dmatsk, skb);


(from http://ozlabs.org/pipermail/linuxppc-de ... 46090.html )

It's to late to build/test another kernel today. I'll test this tomorrow.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 30, 2007 11:45 am 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
corsair wrote:
ok. I thought it would "not yet" be in patchwork.

Is it this patch?


That's the one. Jon Smirl, wrong skb's referenced.. bingo.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 01, 2007 6:23 am 
Offline


Tue Feb 14, 2006 2:01 pm

75

Germany
yes, this works like a charm now!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group