Skip to contentSkip to conversation

fs_enet on 2.4 and 8xx_immap

DISCUSSION antonio.dibacco 3 participants 6 messages Mar 7, 2006

lore
Share & tools
lore
#0 lore raw

I think that to make it work I need to update cpm8xx_t inserting the fec2 filed. Is this true? Could I use the 8xx_immap.h of a 2.6 kernel?

Bye,
Antonio.

#1 lore raw
Quoted 3 lines · On Tue, 07 Mar 2006 13:15:00 GMT "antonio.dibacco" <[email protected]>…

I think that to make it work I need to update cpm8xx_t inserting the fec2 filed. Is this true? Could I use the 8xx_immap.h of a 2.6 kernel?

Not exactly. I think you can borrow the structures from 2.6, but do a triple-check that the result offsets are the same.

Quoted 8 lines

Bye,
Antonio.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 2 lines
Sincerely, 
Vitaly
#2 lore raw

I think I will use the 8xx_immap.h borrowed from u-boot-1.1.4, it is really similar to that of 2.4.25, with some explicit padding and fec2. Do you think that porting fs_enet to 2.4 is it the best way to have both FECs working on a MPC875? I don't want to use 2.6.

Bye,
Antonio.

Vitaly Bordug Scrive:

Quoted 19 lines
Quoted 2 lines · On Tue, 07 Mar 2006 13:15:00 GMT "antonio.dibacco" <[email protected]>…

I think that to make it work I need to update cpm8xx_t inserting the fec2 filed. Is this true? Could I use the 8xx_immap.h of a 2.6 kernel?

Not exactly. I think you can borrow the structures from 2.6, but do a triple-check that the result offsets are the same.

Quoted 8 lines

Bye,
Antonio.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 1 line
Sincerely, Vitaly
#3 lore raw
Quoted 5 lines · On Tue, 07 Mar 2006 15:37:16 GMT "antonio.dibacco" <[email protected]>…

I think I will use the 8xx_immap.h borrowed from u-boot-1.1.4, it is really similar to that of 2.4.25, with some explicit padding and fec2. Do you think that porting fs_enet to 2.4 is it the best way to have both FECs working on a MPC875? I don't want to use 2.6.

Sounds reasonable, but I'll repeat:
fs_enet patches for 2.6 used to support 2.4 thing(via #ifdef's), it was cleaned up close to submission. IIRC, it handles 2 fecs quite great on my 885ads, so it worths to search around a bit before hacking...

Quoted 29 lines

Bye,
Antonio.

Vitaly Bordug Scrive:

Quoted 21 lines
Quoted 3 lines · On Tue, 07 Mar 2006 13:15:00 GMT "antonio.dibacco" <[email protected]>…

I think that to make it work I need to update cpm8xx_t inserting the fec2 filed. Is this true? Could I use the 8xx_immap.h of a 2.6 kernel?

Not exactly. I think you can borrow the structures from 2.6, but do a triple-check that the result offsets are the same.

Quoted 8 lines

Bye,
Antonio.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 2 lines
Sincerely, 
Vitaly
Signature · 2 lines
Sincerely, 
Vitaly
#4 lore raw

Hi,

I'm a novice and I don't understand what is "IIRC". Is something that handles the two FECs on 885ads? I knew that on 885ads the second ethernet was realized via an SCC and not FEC. Am I wrong?

Bye,
Antonio.

Vitaly Bordug Scrive:

Quoted 39 lines
Quoted 2 lines · On Tue, 07 Mar 2006 15:37:16 GMT "antonio.dibacco" <[email protected]>…

I think I will use the 8xx_immap.h borrowed from u-boot-1.1.4, it is really similar to that of 2.4.25, with some explicit padding and fec2. Do you think that porting fs_enet to 2.4 is it the best way to have both FECs working on a MPC875? I don't want to use 2.6.

Sounds reasonable, but I'll repeat:
fs_enet patches for 2.6 used to support 2.4 thing(via #ifdef's), it was cleaned up close to submission. IIRC, it handles 2 fecs quite great on my 885ads, so it worths to search around a bit before hacking...

Quoted 27 lines

Bye,
Antonio.

Vitaly Bordug Scrive:

Quoted 19 lines
Quoted 2 lines · On Tue, 07 Mar 2006 13:15:00 GMT "antonio.dibacco" <[email protected]>…

I think that to make it work I need to update cpm8xx_t inserting the fec2 filed. Is this true? Could I use the 8xx_immap.h of a 2.6 kernel?

Not exactly. I think you can borrow the structures from 2.6, but do a triple-check that the result offsets are the same.

Quoted 8 lines

Bye,
Antonio.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 1 line
Sincerely, Vitaly
Signature · 1 line
Sincerely, Vitaly
#5 lore raw
Quoted 8 lines · antonio.dibacco

Hi,

I'm a novice and I don't understand what is "IIRC". Is something that handles the two FECs on 885ads? I knew that on 885ads the second ethernet was realized via an SCC and not FEC. Am I wrong?

Bye,
Antonio.

That is too funny! "IIRC" is an abbreviation for "if I recall"