From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by ozlabs.org (Postfix) with ESMTP id 9DD6E67B59 for ; Sat, 17 Jun 2006 14:47:12 +1000 (EST) Received: by py-out-1112.google.com with SMTP id m51so1002358pye for ; Fri, 16 Jun 2006 21:47:11 -0700 (PDT) From: "Trueskew" To: Subject: Using bestcomm in an external module (MPC5200B to be exact) Date: Fri, 16 Jun 2006 21:47:09 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00BF_01C6918E.6BE10390" Message-ID: <4493894e.6d57ffd8.019a.ffff95b9@mx.gmail.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_00BF_01C6918E.6BE10390 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec lines on a Lite5200b. It's an external module, and I'd like to use Bestcomm with it. I've already tried a bunch of horrible things to get it to work. I could say it's close, but by close I mean the FEC still runs, my stuff doesn't. 1. Can the Bestcomm I/F be used by an external module, or is the module required to be built in if built-in drivers use Bestcomm? TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called more than once from what I've read, and the kernel loads them for ethernet and ATA (no disk in my system if that matters). 2. If it can be used by an external module, how would I do it? I've tried compiling the source into my module and replicating the initialization the kernel does in addition to my own stuff. It's not too bad, though I don't get any interrupts yet. The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. I built my kernel with them set as modules, and they had the same unresolved problems that my driver has on insmod, so I'm pessimistic. If someone could put me out of my misery one way or another, I'd appreciate it. Thanks. Sal ------=_NextPart_000_00BF_01C6918E.6BE10390 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I'm = writing a driver=20 for a TI codec attached to the MPC5200B PSC3 codec lines on a = Lite5200b. =20 It's an external module, and I'd like to use Bestcomm with it.  = I've=20 already tried a bunch of horrible things to get it to work.  I = could say=20 it's close, but by close I mean the FEC still runs, my stuff = doesn't. =20
 
1. Can = the Bestcomm=20 I/F be used by an external module, or is the module required to be = built in=20 if built-in drivers use Bestcomm?  TasksInitAPI (no so bad) and=20 TasksLoadImage (yeah, bad) aren't really supposed to be called more than = once=20 from what I've read, and the kernel loads them for ethernet and ATA (no = disk in=20 my system if that matters). 
 
2. If = it can be used=20 by an external module, how would I do it?  I've tried compiling the = source=20 into my module and replicating the initialization the kernel does in = addition to=20 my own stuff.  It's not too bad, though I don't get any interrupts=20 yet.
 
The LTIB from = Freescale=20 includes AIC23 and AC97 drivers that use Bestcomm. =20 I built my kernel with them set as modules, = and they=20 had the same unresolved problems that my driver has on insmod, so I'm=20 pessimistic.  If someone could put me out of my misery one way or = another,=20 I'd appreciate it.
 
Thanks.
Sal
 
------=_NextPart_000_00BF_01C6918E.6BE10390-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ORML003.digis.net (orml003.digis.net [208.187.239.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 427BC67B2C for ; Sun, 18 Jun 2006 05:24:20 +1000 (EST) Message-ID: <44944F9B.8060007@digis.net> Date: Sat, 17 Jun 2006 12:53:15 -0600 From: Frank Bennett MIME-Version: 1.0 To: Trueskew Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) References: <4493894e.6d57ffd8.019a.ffff95b9@mx.gmail.com> In-Reply-To: <4493894e.6d57ffd8.019a.ffff95b9@mx.gmail.com> Content-Type: multipart/alternative; boundary="------------000104020001080704060208" Cc: linuxppc-embedded@ozlabs.org Reply-To: bennett78@digis.net List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------000104020001080704060208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Trueskew wrote: > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 > codec lines on a Lite5200b. It's an external module, and I'd like to > use Bestcomm with it. I've already tried a bunch of horrible things > to get it to work. I could say it's close, but by close I mean the > FEC still runs, my stuff doesn't. > > 1. Can the Bestcomm I/F be used by an external module, or is the > module required to be built in if built-in drivers use Bestcomm? > TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really > supposed to be called more than once from what I've read, and the > kernel loads them for ethernet and ATA (no disk in my system if that > matters). > > 2. If it can be used by an external module, how would I do it? I've > tried compiling the source into my module and replicating the > initialization the kernel does in addition to my own stuff. It's not > too bad, though I don't get any interrupts yet. > > The LTIB from Freescale includes AIC23 and AC97 drivers that use > Bestcomm. I built my kernel with them set as modules, and they had > the same unresolved problems that my driver has on insmod, so I'm > pessimistic. If someone could put me out of my misery one way or > another, I'd appreciate it. Might check out the driver posted by Bob Petersen: http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html using DENX linuxppc_2_4_devel/arch/ppc/5xxx_io/ i2s.c, psc.c and Bestcomm/ Frank > > Thanks. > Sal > > >------------------------------------------------------------------------ > >_______________________________________________ >Linuxppc-embedded mailing list >Linuxppc-embedded@ozlabs.org >https://ozlabs.org/mailman/listinfo/linuxppc-embedded > */Frank Bennett President/* Mathegraphics,LLC 613 Bentley Pl Fort Collins,CO 80526 970-229-9269 (hm) 970-402-9269 (cell) www.mathegraphics.com bennett78@digis.net --------------000104020001080704060208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Trueskew wrote:
I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec lines on a Lite5200b.  It's an external module, and I'd like to use Bestcomm with it.  I've already tried a bunch of horrible things to get it to work.  I could say it's close, but by close I mean the FEC still runs, my stuff doesn't. 
 
1. Can the Bestcomm I/F be used by an external module, or is the module required to be built in if built-in drivers use Bestcomm?  TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called more than once from what I've read, and the kernel loads them for ethernet and ATA (no disk in my system if that matters). 
 
2. If it can be used by an external module, how would I do it?  I've tried compiling the source into my module and replicating the initialization the kernel does in addition to my own stuff.  It's not too bad, though I don't get any interrupts yet.
 
The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm.  I built my kernel with them set as modules, and they had the same unresolved problems that my driver has on insmod, so I'm pessimistic.  If someone could put me out of my misery one way or another, I'd appreciate it.
Might check out the driver posted by Bob Petersen:
    http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html
using DENX linuxppc_2_4_devel/arch/ppc/5xxx_io/  i2s.c, psc.c and Bestcomm/

Frank
 
Thanks.
Sal
 

_______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded
sign
Frank Bennett
President

Mathegraphics,LLC
613 Bentley Pl
Fort Collins,CO 80526
970-229-9269 (hm) 970-402-9269 (cell)
www.mathegraphics.com
bennett78@digis.net
--------------000104020001080704060208-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.193]) by ozlabs.org (Postfix) with ESMTP id 46AB367B35 for ; Sun, 18 Jun 2006 11:32:21 +1000 (EST) Received: by nz-out-0102.google.com with SMTP id i11so835207nzi for ; Sat, 17 Jun 2006 18:32:20 -0700 (PDT) From: "SalQ" To: Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) Date: Sat, 17 Jun 2006 18:26:02 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <44944F9B.8060007@digis.net> Message-ID: <4494abb0.4e348f87.34dd.ffffc85c@mx.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thanks Frank, I actually have seen that, but it looks like an internal module, not an external module... unless I'm missing something. I've tried configuring a few drivers that used bestcomm as , and once I used insmod on them they complained about all of the bestcomm API functions as missing. ________________________________ From: linuxppc-embedded-bounces+salquint=gmail.com@ozlabs.org [mailto:linuxppc-embedded-bounces+salquint=gmail.com@ozlabs.org] On Behalf Of Frank Bennett Sent: Saturday, June 17, 2006 11:53 AM To: Trueskew Cc: linuxppc-embedded@ozlabs.org Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) Trueskew wrote: I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec lines on a Lite5200b. It's an external module, and I'd like to use Bestcomm with it. I've already tried a bunch of horrible things to get it to work. I could say it's close, but by close I mean the FEC still runs, my stuff doesn't. 1. Can the Bestcomm I/F be used by an external module, or is the module required to be built in if built-in drivers use Bestcomm? TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called more than once from what I've read, and the kernel loads them for ethernet and ATA (no disk in my system if that matters). 2. If it can be used by an external module, how would I do it? I've tried compiling the source into my module and replicating the initialization the kernel does in addition to my own stuff. It's not too bad, though I don't get any interrupts yet. The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. I built my kernel with them set as modules, and they had the same unresolved problems that my driver has on insmod, so I'm pessimistic. If someone could put me out of my misery one way or another, I'd appreciate it. Might check out the driver posted by Bob Petersen: http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html using DENX linuxppc_2_4_devel/arch/ppc/5xxx_io/ i2s.c, psc.c and Bestcomm/ Frank Thanks. Sal ________________________________ _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded Frank Bennett President Mathegraphics,LLC 613 Bentley Pl Fort Collins,CO 80526 970-229-9269 (hm) 970-402-9269 (cell) www.mathegraphics.com bennett78@digis.net From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by ozlabs.org (Postfix) with ESMTP id C36DD67B1A for ; Mon, 19 Jun 2006 17:28:41 +1000 (EST) Received: by py-out-1112.google.com with SMTP id m51so1553343pye for ; Mon, 19 Jun 2006 00:28:39 -0700 (PDT) From: "Trueskew" To: Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) Date: Mon, 19 Jun 2006 00:28:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: Message-ID: <44965226.33b91fca.1abe.ffffd120@mx.gmail.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I should've let you all know, I'm more of a 2.4 person than a 2.6 person. So I read what I could on 2.6 difference with 2.4, and it looked like my easiest choice was to modify the bestcomm code to export a couple tables and its API functions. I found that kallsyms has almost all of the functions I needed to resolve (with 'T' next to them), but they were still not working. I added EXPORT_MODULE(TaskBDReset) and similar declarations in the bestcomm api code, but that still didn't do the trick for me. So what is the trick? I think I'm on the right track, I can insmod a module that my driver needs, see kallsyms get updated, and access the functions directly in my driver. I hope I'm close to doing something similar with the bestcomm functions, can anyone offer me some advice on what else I need to do? Thanks. ________________________________ From: Trueskew [mailto:trueskew@gmail.com] Sent: Friday, June 16, 2006 9:47 PM To: 'linuxppc-embedded@ozlabs.org' Subject: Using bestcomm in an external module (MPC5200B to be exact) I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec lines on a Lite5200b. It's an external module, and I'd like to use Bestcomm with it. I've already tried a bunch of horrible things to get it to work. I could say it's close, but by close I mean the FEC still runs, my stuff doesn't. 1. Can the Bestcomm I/F be used by an external module, or is the module required to be built in if built-in drivers use Bestcomm? TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called more than once from what I've read, and the kernel loads them for ethernet and ATA (no disk in my system if that matters). 2. If it can be used by an external module, how would I do it? I've tried compiling the source into my module and replicating the initialization the kernel does in addition to my own stuff. It's not too bad, though I don't get any interrupts yet. The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. I built my kernel with them set as modules, and they had the same unresolved problems that my driver has on insmod, so I'm pessimistic. If someone could put me out of my misery one way or another, I'd appreciate it. Thanks. Sal From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from amanaus.varma-el.com (amanaus.varma-el.com [195.144.240.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.varma-el.com", Issuer "mail.varma-el.com" (not verified)) by ozlabs.org (Postfix) with ESMTP id 9B23667A63 for ; Mon, 19 Jun 2006 23:35:37 +1000 (EST) Message-ID: <4496A363.8080802@varma-el.com> Date: Mon, 19 Jun 2006 17:15:15 +0400 From: Andrey Volkov MIME-Version: 1.0 To: Trueskew Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) References: <44965226.33b91fca.1abe.ffffd120@mx.gmail.com> In-Reply-To: <44965226.33b91fca.1abe.ffffd120@mx.gmail.com> Content-Type: text/plain; charset=KOI8-R Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Trueskew wrote: > I should've let you all know, I'm more of a 2.4 person than a 2.6 person. > So I read what I could on 2.6 difference with 2.4, and it looked like my > easiest choice was to modify the bestcomm code to export a couple tables and > its API functions. I found that kallsyms has almost all of the functions I > needed to resolve (with 'T' next to them), but they were still not working. > I added EXPORT_MODULE(TaskBDReset) and similar declarations in the bestcomm > api code, but that still didn't do the trick for me. So what is the trick? > I think I'm on the right track, I can insmod a module that my driver needs, > see kallsyms get updated, and access the functions directly in my driver. I > hope I'm close to doing something similar with the bestcomm functions, can > anyone offer me some advice on what else I need to do? > > Thanks. Please, check Sylvain's patchset (http://www.246tNt.com/mpc52xx/) _before_ you will do anithing. If be more shortly - Freescale's BestcommAPI _deprecated_ and will _not_ included to 2.6.xxx. -- Regards Andrey Volkov > > ________________________________ > > From: Trueskew [mailto:trueskew@gmail.com] > Sent: Friday, June 16, 2006 9:47 PM > To: 'linuxppc-embedded@ozlabs.org' > Subject: Using bestcomm in an external module (MPC5200B to be exact) > > > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec > lines on a Lite5200b. It's an external module, and I'd like to use Bestcomm > with it. I've already tried a bunch of horrible things to get it to work. > I could say it's close, but by close I mean the FEC still runs, my stuff > doesn't. > > 1. Can the Bestcomm I/F be used by an external module, or is the module > required to be built in if built-in drivers use Bestcomm? TasksInitAPI (no > so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called > more than once from what I've read, and the kernel loads them for ethernet > and ATA (no disk in my system if that matters). > > 2. If it can be used by an external module, how would I do it? I've tried > compiling the source into my module and replicating the initialization the > kernel does in addition to my own stuff. It's not too bad, though I don't > get any interrupts yet. > > The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. > I built my kernel with them set as modules, and they had the same unresolved > problems that my driver has on insmod, so I'm pessimistic. If someone could > put me out of my misery one way or another, I'd appreciate it. > > Thanks. > Sal > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by ozlabs.org (Postfix) with ESMTP id EC88667A6D for ; Tue, 20 Jun 2006 00:57:11 +1000 (EST) Received: by ug-out-1314.google.com with SMTP id j3so912919ugf for ; Mon, 19 Jun 2006 07:57:10 -0700 (PDT) From: "Trueskew" To: "'Andrey Volkov'" Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) Date: Mon, 19 Jun 2006 07:50:13 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <4496A363.8080802@varma-el.com> Message-ID: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Andrey, Thanks for the reply. I did notice that a few weeks ago and was waiting for the patch state to be changed from "New" to "Accepted". Can you give me more details on how you found out bestcomm won't be included in 2.6? The latest downloadable LTIB from Freescale for the Lite5200b includes bestcomm in several places, and the mpc52xx fec driver uses it, along with the ATA driver that Sylvain provided a patch for. As for http://www.246tNt.com/mpc52xx/, it's been coming up "page not found" for me for those same few weeks when I've tried it off an on, and www.246tNt.com just has a Welcome line in it. Sal -----Original Message----- From: Andrey Volkov [mailto:avolkov@varma-el.com] Sent: Monday, June 19, 2006 6:15 AM To: Trueskew Cc: linuxppc-embedded@ozlabs.org Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) Trueskew wrote: > I should've let you all know, I'm more of a 2.4 person than a 2.6 person. > So I read what I could on 2.6 difference with 2.4, and it looked like > my easiest choice was to modify the bestcomm code to export a couple > tables and its API functions. I found that kallsyms has almost all of > the functions I needed to resolve (with 'T' next to them), but they were still not working. > I added EXPORT_MODULE(TaskBDReset) and similar declarations in the > bestcomm api code, but that still didn't do the trick for me. So what is the trick? > I think I'm on the right track, I can insmod a module that my driver > needs, see kallsyms get updated, and access the functions directly in > my driver. I hope I'm close to doing something similar with the > bestcomm functions, can anyone offer me some advice on what else I need to do? > > Thanks. Please, check Sylvain's patchset (http://www.246tNt.com/mpc52xx/) _before_ you will do anithing. If be more shortly - Freescale's BestcommAPI _deprecated_ and will _not_ included to 2.6.xxx. -- Regards Andrey Volkov > > ________________________________ > > From: Trueskew [mailto:trueskew@gmail.com] > Sent: Friday, June 16, 2006 9:47 PM > To: 'linuxppc-embedded@ozlabs.org' > Subject: Using bestcomm in an external module (MPC5200B to be exact) > > > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 > codec lines on a Lite5200b. It's an external module, and I'd like to > use Bestcomm with it. I've already tried a bunch of horrible things to get it to work. > I could say it's close, but by close I mean the FEC still runs, my > stuff doesn't. > > 1. Can the Bestcomm I/F be used by an external module, or is the > module required to be built in if built-in drivers use Bestcomm? > TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really > supposed to be called more than once from what I've read, and the > kernel loads them for ethernet and ATA (no disk in my system if that matters). > > 2. If it can be used by an external module, how would I do it? I've > tried compiling the source into my module and replicating the > initialization the kernel does in addition to my own stuff. It's not > too bad, though I don't get any interrupts yet. > > The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. > I built my kernel with them set as modules, and they had the same > unresolved problems that my driver has on insmod, so I'm pessimistic. > If someone could put me out of my misery one way or another, I'd appreciate it. > > Thanks. > Sal > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.204]) by ozlabs.org (Postfix) with ESMTP id ADF2A67B20 for ; Tue, 20 Jun 2006 07:33:02 +1000 (EST) Received: by wx-out-0102.google.com with SMTP id t14so884929wxc for ; Mon, 19 Jun 2006 14:33:00 -0700 (PDT) Message-ID: <4b73d43f0606191432n332a23d0se0f93e2204e47dd9@mail.gmail.com> Date: Mon, 19 Jun 2006 15:32:57 -0600 From: "John Rigby" To: Trueskew Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) In-Reply-To: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed References: <4496A363.8080802@varma-el.com> <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The next LTIB bsp for 5200b will use the Sylvain's bestcomm api. On 6/19/06, Trueskew wrote: > Hi Andrey, > > Thanks for the reply. I did notice that a few weeks ago and was waiting for > the patch state to be changed from "New" to "Accepted". Can you give me > more details on how you found out bestcomm won't be included in 2.6? The > latest downloadable LTIB from Freescale for the Lite5200b includes bestcomm > in several places, and the mpc52xx fec driver uses it, along with the ATA > driver that Sylvain provided a patch for. > > As for http://www.246tNt.com/mpc52xx/, it's been coming up "page not found" > for me for those same few weeks when I've tried it off an on, and > www.246tNt.com just has a Welcome line in it. > > Sal > > -----Original Message----- > From: Andrey Volkov [mailto:avolkov@varma-el.com] > Sent: Monday, June 19, 2006 6:15 AM > To: Trueskew > Cc: linuxppc-embedded@ozlabs.org > Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) > > Trueskew wrote: > > I should've let you all know, I'm more of a 2.4 person than a 2.6 person. > > So I read what I could on 2.6 difference with 2.4, and it looked like > > my easiest choice was to modify the bestcomm code to export a couple > > tables and its API functions. I found that kallsyms has almost all of > > the functions I needed to resolve (with 'T' next to them), but they were > still not working. > > I added EXPORT_MODULE(TaskBDReset) and similar declarations in the > > bestcomm api code, but that still didn't do the trick for me. So what is > the trick? > > I think I'm on the right track, I can insmod a module that my driver > > needs, see kallsyms get updated, and access the functions directly in > > my driver. I hope I'm close to doing something similar with the > > bestcomm functions, can anyone offer me some advice on what else I need to > do? > > > > Thanks. > Please, check Sylvain's patchset (http://www.246tNt.com/mpc52xx/) _before_ > you will do anithing. If be more shortly - Freescale's BestcommAPI > _deprecated_ and will _not_ included to 2.6.xxx. > > -- > Regards > Andrey Volkov > > > > > > ________________________________ > > > > From: Trueskew [mailto:trueskew@gmail.com] > > Sent: Friday, June 16, 2006 9:47 PM > > To: 'linuxppc-embedded@ozlabs.org' > > Subject: Using bestcomm in an external module (MPC5200B to be exact) > > > > > > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 > > codec lines on a Lite5200b. It's an external module, and I'd like to > > use Bestcomm with it. I've already tried a bunch of horrible things to > get it to work. > > I could say it's close, but by close I mean the FEC still runs, my > > stuff doesn't. > > > > 1. Can the Bestcomm I/F be used by an external module, or is the > > module required to be built in if built-in drivers use Bestcomm? > > TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really > > supposed to be called more than once from what I've read, and the > > kernel loads them for ethernet and ATA (no disk in my system if that > matters). > > > > 2. If it can be used by an external module, how would I do it? I've > > tried compiling the source into my module and replicating the > > initialization the kernel does in addition to my own stuff. It's not > > too bad, though I don't get any interrupts yet. > > > > The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. > > I built my kernel with them set as modules, and they had the same > > unresolved problems that my driver has on insmod, so I'm pessimistic. > > If someone could put me out of my misery one way or another, I'd > appreciate it. > > > > Thanks. > > Sal > > > > _______________________________________________ > > Linuxppc-embedded mailing list > > Linuxppc-embedded@ozlabs.org > > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.196]) by ozlabs.org (Postfix) with ESMTP id 06EA367B14 for ; Tue, 20 Jun 2006 10:49:00 +1000 (EST) Received: by nz-out-0102.google.com with SMTP id z6so1448510nzd for ; Mon, 19 Jun 2006 17:48:59 -0700 (PDT) From: "Trueskew" To: "'John Rigby'" Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) Date: Mon, 19 Jun 2006 17:48:56 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <4b73d43f0606191432n332a23d0se0f93e2204e47dd9@mail.gmail.com> Message-ID: <449745fa.427398dd.5764.ffffdf84@mx.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , John, would you happen to know where I'd find the latest? The LTIB I have is using BestComm API v2.2 20041209. Regards, Sal -----Original Message----- From: John Rigby [mailto:jcrigby@gmail.com] Sent: Monday, June 19, 2006 2:33 PM To: Trueskew Cc: Andrey Volkov; linuxppc-embedded@ozlabs.org Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) The next LTIB bsp for 5200b will use the Sylvain's bestcomm api. On 6/19/06, Trueskew wrote: > Hi Andrey, > > Thanks for the reply. I did notice that a few weeks ago and was > waiting for the patch state to be changed from "New" to "Accepted". > Can you give me more details on how you found out bestcomm won't be > included in 2.6? The latest downloadable LTIB from Freescale for the > Lite5200b includes bestcomm in several places, and the mpc52xx fec > driver uses it, along with the ATA driver that Sylvain provided a patch for. > > As for http://www.246tNt.com/mpc52xx/, it's been coming up "page not found" > for me for those same few weeks when I've tried it off an on, and > www.246tNt.com just has a Welcome line in it. > > Sal > > -----Original Message----- > From: Andrey Volkov [mailto:avolkov@varma-el.com] > Sent: Monday, June 19, 2006 6:15 AM > To: Trueskew > Cc: linuxppc-embedded@ozlabs.org > Subject: Re: Using bestcomm in an external module (MPC5200B to be > exact) > > Trueskew wrote: > > I should've let you all know, I'm more of a 2.4 person than a 2.6 person. > > So I read what I could on 2.6 difference with 2.4, and it looked > > like my easiest choice was to modify the bestcomm code to export a > > couple tables and its API functions. I found that kallsyms has > > almost all of the functions I needed to resolve (with 'T' next to > > them), but they were > still not working. > > I added EXPORT_MODULE(TaskBDReset) and similar declarations in the > > bestcomm api code, but that still didn't do the trick for me. So > > what is > the trick? > > I think I'm on the right track, I can insmod a module that my driver > > needs, see kallsyms get updated, and access the functions directly > > in my driver. I hope I'm close to doing something similar with the > > bestcomm functions, can anyone offer me some advice on what else I > > need to > do? > > > > Thanks. > Please, check Sylvain's patchset (http://www.246tNt.com/mpc52xx/) > _before_ you will do anithing. If be more shortly - Freescale's > BestcommAPI _deprecated_ and will _not_ included to 2.6.xxx. > > -- > Regards > Andrey Volkov > > > > > > ________________________________ > > > > From: Trueskew [mailto:trueskew@gmail.com] > > Sent: Friday, June 16, 2006 9:47 PM > > To: 'linuxppc-embedded@ozlabs.org' > > Subject: Using bestcomm in an external module (MPC5200B to be exact) > > > > > > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 > > codec lines on a Lite5200b. It's an external module, and I'd like > > to use Bestcomm with it. I've already tried a bunch of horrible > > things to > get it to work. > > I could say it's close, but by close I mean the FEC still runs, my > > stuff doesn't. > > > > 1. Can the Bestcomm I/F be used by an external module, or is the > > module required to be built in if built-in drivers use Bestcomm? > > TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't > > really supposed to be called more than once from what I've read, and > > the kernel loads them for ethernet and ATA (no disk in my system if > > that > matters). > > > > 2. If it can be used by an external module, how would I do it? I've > > tried compiling the source into my module and replicating the > > initialization the kernel does in addition to my own stuff. It's > > not too bad, though I don't get any interrupts yet. > > > > The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm. > > I built my kernel with them set as modules, and they had the same > > unresolved problems that my driver has on insmod, so I'm pessimistic. > > If someone could put me out of my misery one way or another, I'd > appreciate it. > > > > Thanks. > > Sal > > > > _______________________________________________ > > Linuxppc-embedded mailing list > > Linuxppc-embedded@ozlabs.org > > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns30619.ovh.net (ns30619.ovh.net [213.186.47.155]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 1019667A6D for ; Wed, 21 Jun 2006 05:03:50 +1000 (EST) Message-ID: <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> Date: Tue, 20 Jun 2006 21:03:35 +0200 From: Sylvain Munaut To: linuxppc-embedded@ozlabs.org Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) References: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> In-Reply-To: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Quoting Trueskew : > Hi Andrey, > > Thanks for the reply. I did notice that a few weeks ago and was waiting f= or > the patch state to be changed from "New" to "Accepted". Can you give me > more details on how you found out bestcomm won't be included in 2.6? The > latest downloadable LTIB from Freescale for the Lite5200b includes bestcom= m > in several places, and the mpc52xx fec driver uses it, along with the ATA > driver that Sylvain provided a patch for. > > As for http://www.246tNt.com/mpc52xx/, it's been coming up "page not found= " > for me for those same few weeks when I've tried it off an on, and > www.246tNt.com just has a Welcome line in it. Yes sorry about that ... server crash ... hard ... we kinda lost a lot. Hopefully =20 gitbits.246tNt.com which host the bestcomm stuff is on another server. I also have a newer / cleaner version of the patch. I've sent it to some dev (Dale, Andrey & John) for comments (any news on that guys ? or are you just fine with it ?) But anyway, it's mainly internal cleanup and adapting drivers from the public version on my git tree to this newest/cleaner version is a 15 min work ;) Sylvain ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns30619.ovh.net (ns30619.ovh.net [213.186.47.155]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id CA24667B3C for ; Wed, 21 Jun 2006 05:15:39 +1000 (EST) Message-ID: <20060620211529.vjpk2lsxakn4088s@webmail.bluenox.com> Date: Tue, 20 Jun 2006 21:15:29 +0200 From: Sylvain Munaut To: Trueskew Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) References: <449745fa.427398dd.5764.ffffdf84@mx.gmail.com> In-Reply-To: <449745fa.427398dd.5764.ffffdf84@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > -----Original Message----- > From: John Rigby [mailto:jcrigby@gmail.com] > Sent: Monday, June 19, 2006 2:33 PM > To: Trueskew > Cc: Andrey Volkov; linuxppc-embedded@ozlabs.org > Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) > > The next LTIB bsp for 5200b will use the Sylvain's bestcomm api. Cool ;) But it's far from being my whole work. The foundation and a good cleanup pass comes from Dale and Andrey respectiverly. Be sure to use the latest one I sent you though ;p BTW, I guess that means your fine with my last modifications ? Sylvain ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by ozlabs.org (Postfix) with ESMTP id 8695867A0E for ; Wed, 28 Jun 2006 14:14:43 +1000 (EST) Received: by nz-out-0102.google.com with SMTP id 8so1735516nzo for ; Tue, 27 Jun 2006 21:14:42 -0700 (PDT) Message-ID: <4b73d43f0606272108h57038071qb64bb75fd19804cf@mail.gmail.com> Date: Tue, 27 Jun 2006 22:08:07 -0600 From: "John Rigby" To: "Sylvain Munaut" Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) In-Reply-To: <20060620211529.vjpk2lsxakn4088s@webmail.bluenox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed References: <449745fa.427398dd.5764.ffffdf84@mx.gmail.com> <20060620211529.vjpk2lsxakn4088s@webmail.bluenox.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Yes I know its the work of many people, calling it your was just an abbreviation. The latest ltib isn't based on your latest but then again your latest was never public:). So is your git tree uptodate? If so then I will look at putting together some patches to it. I have an ata update and also an ac97 driver. My goal is to have the best version in the public and ltib just a copy of it. On 6/20/06, Sylvain Munaut wrote: > > > -----Original Message----- > > From: John Rigby [mailto:jcrigby@gmail.com] > > Sent: Monday, June 19, 2006 2:33 PM > > To: Trueskew > > Cc: Andrey Volkov; linuxppc-embedded@ozlabs.org > > Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) > > > > The next LTIB bsp for 5200b will use the Sylvain's bestcomm api. > > Cool ;) But it's far from being my whole work. The foundation and a good > cleanup pass comes from Dale and Andrey respectiverly. > > Be sure to use the latest one I sent you though ;p > BTW, I guess that means your fine with my last modifications ? > > > Sylvain > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 43CCD67A6F for ; Sat, 1 Jul 2006 09:34:08 +1000 (EST) Subject: RE: Using bestcomm in an external module (MPC5200B to be exact) From: Benjamin Herrenschmidt To: Sylvain Munaut In-Reply-To: <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> References: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> Content-Type: text/plain Date: Sat, 01 Jul 2006 09:33:15 +1000 Message-Id: <1151710395.27137.7.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > But anyway, it's mainly internal cleanup and adapting drivers > from the public version on my git tree to this newest/cleaner > version is a 15 min work ;) Any reason why you aren't regulary submitting those patches for upstream inclusion ? Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outmx008.isp.belgacom.be (outmx008.isp.belgacom.be [195.238.5.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 5946167BBA for ; Tue, 18 Jul 2006 08:13:52 +1000 (EST) Received: from outmx008.isp.belgacom.be (localhost [127.0.0.1]) by outmx008.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id k6HMDfu1008099 for ; Tue, 18 Jul 2006 00:13:41 +0200 (envelope-from ) Message-ID: <44BC0B9A.5010103@246tNt.com> Date: Tue, 18 Jul 2006 00:13:46 +0200 From: Sylvain Munaut MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) References: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> <1151710395.27137.7.camel@localhost.localdomain> In-Reply-To: <1151710395.27137.7.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Benjamin Herrenschmidt wrote: >> But anyway, it's mainly internal cleanup and adapting drivers >> from the public version on my git tree to this newest/cleaner >> version is a 15 min work ;) >> > > Any reason why you aren't regulary submitting those patches for upstream > inclusion ? > Yes. What's in there and not in main streams adds quite a lot to arch/ppc ... So MPC5200 should be adapted to arch/powerpc first and then those changes. And since no-one did that yet and I haven't done it yet either ... (I must admit I had a quick look and I didn't understand much on how to do the change ...) Sylvain PS: Sorry for the lag (like 15 days...) you know email problem/appartement change/vacation/... the usual ;) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ozlabs.org (Postfix) with ESMTP id DF63F67A2E for ; Fri, 28 Jul 2006 03:36:58 +1000 (EST) Received: by ug-out-1314.google.com with SMTP id e2so368779ugf for ; Thu, 27 Jul 2006 10:36:56 -0700 (PDT) Message-ID: <4b73d43f0607271030o7170e8dcn28bd3f62ec243426@mail.gmail.com> Date: Thu, 27 Jul 2006 11:30:42 -0600 From: "John Rigby" To: "Sylvain Munaut" Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) In-Reply-To: <44BC0B9A.5010103@246tNt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed References: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> <1151710395.27137.7.camel@localhost.localdomain> <44BC0B9A.5010103@246tNt.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sylvain, How can I help getting the mpc5200 migrated to the powerpc tree? I should have some time to help with this. After we get it migrated we can get the bestcomm code in and the various drivers that use it. Also, did you ever get a liteb board? If not send me your address and I will try again to get you one. Thanks John On 7/17/06, Sylvain Munaut wrote: > Benjamin Herrenschmidt wrote: > >> But anyway, it's mainly internal cleanup and adapting drivers > >> from the public version on my git tree to this newest/cleaner > >> version is a 15 min work ;) > >> > > > > Any reason why you aren't regulary submitting those patches for upstream > > inclusion ? > > > Yes. What's in there and not in main streams adds quite a lot to > arch/ppc ... So > MPC5200 should be adapted to arch/powerpc first and then those changes. > And since > no-one did that yet and I haven't done it yet either ... (I must admit I > had a quick look > and I didn't understand much on how to do the change ...) > > > Sylvain > > > PS: Sorry for the lag (like 15 days...) you know email > problem/appartement change/vacation/... the usual ;) > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outmx012.isp.belgacom.be (outmx012.isp.belgacom.be [195.238.5.70]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id B20CA67B32 for ; Fri, 28 Jul 2006 05:16:00 +1000 (EST) Received: from outmx012.isp.belgacom.be (localhost [127.0.0.1]) by outmx012.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id k6RJFskl027238 for ; Thu, 27 Jul 2006 21:15:54 +0200 (envelope-from ) Message-ID: <44C910C5.3090409@246tNt.com> Date: Thu, 27 Jul 2006 21:15:17 +0200 From: Sylvain Munaut MIME-Version: 1.0 To: John Rigby Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) References: <4496b9a7.1d040e45.6737.ffff8473@mx.gmail.com> <20060620210335.q9mgydr5ppkogsoo@webmail.bluenox.com> <1151710395.27137.7.camel@localhost.localdomain> <44BC0B9A.5010103@246tNt.com> <4b73d43f0607271030o7170e8dcn28bd3f62ec243426@mail.gmail.com> In-Reply-To: <4b73d43f0607271030o7170e8dcn28bd3f62ec243426@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi John, Frankly ... I don't know, I don't get how this new thing works ... if you figure it out, be my guest do it and explain it to me ;) It would be great because I get this cleaned API sitting on my tree along with the IDE DMA and the FEC code that I'd really like to send ... Sylvain John Rigby wrote: > Sylvain, > > How can I help getting the mpc5200 migrated to the powerpc tree? > I should have some time to help with this. > > After we get it migrated we can get the bestcomm code in and > the various drivers that use it. > > Also, did you ever get a liteb board? If not send me your address > and I will try again to get you one. > > Thanks > John > > On 7/17/06, Sylvain Munaut wrote: >> Benjamin Herrenschmidt wrote: >> >> But anyway, it's mainly internal cleanup and adapting drivers >> >> from the public version on my git tree to this newest/cleaner >> >> version is a 15 min work ;) >> >> >> > >> > Any reason why you aren't regulary submitting those patches for >> upstream >> > inclusion ? >> > >> Yes. What's in there and not in main streams adds quite a lot to >> arch/ppc ... So >> MPC5200 should be adapted to arch/powerpc first and then those changes. >> And since >> no-one did that yet and I haven't done it yet either ... (I must admit I >> had a quick look >> and I didn't understand much on how to do the change ...) >> >> >> Sylvain >> >> >> PS: Sorry for the lag (like 15 days...) you know email >> problem/appartement change/vacation/... the usual ;) >> >> _______________________________________________ >> Linuxppc-embedded mailing list >> Linuxppc-embedded@ozlabs.org >> https://ozlabs.org/mailman/listinfo/linuxppc-embedded >> >