Jan Kiszka wrote:
> Juha Niskanen wrote:
>> Hi Jan,
>>
>> I forget mention my defines I add beginin of file:
>> /* My configs */
>> #define CONFIG_EA8248
>> #define CONFIG_FCC1_ENET 1
>> #define CONFIG_FCC_LXT971 1
>> /* #define CONFIG_RTAI_RTNET_USE_MDIO 1 */
>> /* #define PHY_INTERRUPT 1 */
>>
>> If I define CONFIG_RTAI_RTNET_USE_MDIO
>> I get:
>> ~ $ modprobe rtnet
>>
>> *** RTnet 0.9.9 - built on Jun  1 2007 12:45:42 ***
>>
>> RTnet: initialising real-time networking
>> ~ $ modprobe rtipv4
>> ~ $ modprobe rtpacket
>> ~ $ modprobe rt_loopback
>> initializing loopback...
>> RTnet: registered rtlo
>> ~ $ modprobe rt_mpc8260_fcc_enet
>> RTnet: registered rteth0
>> rteth0: FCC ENET Version 0.3, 00:06:70:81:04:29
>> mii_reg: 600e78e2
>> rteth0: Phy @ 0x0, type LXT971 (0x001378e2)
>> ~ $
>> ~ $ rtifconfig -a
>> rtlo      Medium: Local Loopback
>>          LOOPBACK  MTU: 1500
>>
>> rteth0    Medium: Ethernet  Hardware address: 00:06:70:81:04:29
>>          BROADCAST  MTU: 1500
>>
>> ~ $
>> ~ $ rtifconfig rteth0 up
>> Oops: kernel access of bad area, sig: 11 [#1]
>> NIP: C504FB24 LR: C504F858 CTR: 00000000
>> REGS: c0517cd0 TRAP: 0300   Not tainted  (2.6.18)
>> MSR: 00009032 <EE,ME,IR,DR>  CR: 44004244  XER: 00000000
>> DAR: 00000108, DSISR: 20000000
>> TASK = c05296d0[763] 'rtifconfig' THREAD: c0516000
>> GPR00: 00000001 C0517D80 C05296D0 501201E1 C0218008 C504FB04 C0517E74
>> 00000000
>> GPR08: F0010000 00000000 F0010000 C0006300 84004228 10019594 03FFE000
>> 00000000
>> GPR16: 00000001 FFFFFFFF 00000000 03FF8304 7FABEA30 00000000 C0218008
>> C504FB04
>> GPR24: 00000000 FFFFFFFF C0200000 C0200000 F0010000 00000084 501201E1
>> C5050AB0
>> Call Trace:
>> [C0517D80] [C046A000]  (unreliable)
>> [C0517DC0] [C504F8B4]
>> [C0517DE0] [C50500B4]
>> [C0517E00] [C505BC9C]
>> [C0517E20] [C505C17C]
>> [C0517EA0] [C505BF74]
>> [C0517EE0] [C0095CD8]
>> [C0517EF0] [C00960AC]
>> [C0517F10] [C0096110]
>> [C0517F40] [C0004200]
>> Instruction dump:
>> 419e0008 60000002 90090108 4e800020 5460c7fe 81240138 2c800000 70600020
>> 5460d7fe 2f800000 5460cffe 2f000000 <80090108> 5400072e 41820008 60000010
>> Segmentation fault
>>
> 
> You should switch on symbol names in your kernel: CONFIG_KALLSYMS. Dunno
> if there is more for PPC, maybe check the Kernel Hacking section.

That should be enough, IIRC.

> 
>>
>> 2007/6/1, Jan Kiszka <[EMAIL PROTECTED]>:
>>> Juha Niskanen wrote:
>>>> Hi,
>>>>
>>>> I am porting mpc8260 fcc_enet.c from 2.6.18 to rtnet,
>>> Please help me first: Is this a rewrite of the existing driver or an
>>> update/extension/2.6-compatibility patch? In the latter case, sending
>>> your changes in form of a real patch would be preferred for reviews
>>> ("svn diff" may help if you work with RTnet svn).
>> Like rewriting using
>> http://www.rts.uni-hannover.de/rtnet/lxr/source/Documentation/README.drvporting
>>
>> and orginal driver.
>>
>> I attach latest svn diff.
> 
> Ok. Lots of cosmetic changes due to the kernel version jump
> unfortunately. Makes it harder to compare. BTW, Wolfgang, what is the
> status of the current RTnet driver? Working under 2.4?

The FCC driver for the MPC82xx should work with 2.4. For 2.6, the right 
thing is to port the new FCC CMP2 driver to RTnet. IIRC, the driver also 
works other processors as well (with compatible CPM) :-).

Wolfgang.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to