* using SCC4 on MPC8272ADS
@ 2005-09-21 10:21 Landau, Bracha
2005-09-21 10:55 ` Vitaly Bordug
0 siblings, 1 reply; 5+ messages in thread
From: Landau, Bracha @ 2005-09-21 10:21 UTC (permalink / raw)
To: linuxppc-embedded
I am using the MPC8272ADS with kernel 2.6.10. The kernel is configured to=
support 4 CPM SCCs, of which 1 and 4 are connected on the board.
I created device files as follows:
mknod /dev/ttyCPM0 c 204 46
mknod /dev/ttyCPM1 c 204 47
mknod /dev/ttyCPM2 c 204 48
mknod /dev/ttyCPM3 c 204 49
If I boot the kernel using console=3DttyCPM3 I see that it uses SCC4. But=
when I boot with console=3DttyCPM0 and write to the second port using a =
command like "echo hello > /dev/ttyCPM3" I don't see that anything is bei=
ng outputted to the second console.
What am I doing wrong?
=20
*************************************************************************=
**********
Information contained in this email message is intended only for use of t=
he individual or entity named above. If the reader of this message is not=
the intended recipient, or the employee or agent responsible to deliver =
it to the intended recipient, you are hereby notified that any disseminat=
ion, distribution or copying of this communication is strictly prohibited=
=2E If you have received this communication in error, please immediately =
notify the postmaster@nds•com and destroy the original message.
*************************************************************************=
**********
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: using SCC4 on MPC8272ADS
2005-09-21 10:21 Landau, Bracha
@ 2005-09-21 10:55 ` Vitaly Bordug
0 siblings, 0 replies; 5+ messages in thread
From: Vitaly Bordug @ 2005-09-21 10:55 UTC (permalink / raw)
To: Landau, Bracha; +Cc: linuxppc-embedded
Landau, Bracha wrote:
> I am using the MPC8272ADS with kernel 2.6.10. The kernel is configured to support 4 CPM SCCs, of which 1 and 4 are connected on the board.
> I created device files as follows:
>
> mknod /dev/ttyCPM0 c 204 46
> mknod /dev/ttyCPM1 c 204 47
> mknod /dev/ttyCPM2 c 204 48
> mknod /dev/ttyCPM3 c 204 49
>
> If I boot the kernel using console=ttyCPM3 I see that it uses SCC4. But when I boot with console=ttyCPM0 and write to the second port using a command like "echo hello > /dev/ttyCPM3" I don't see that anything is being outputted to the second console.
>
> What am I doing wrong?
>
Funny - you said that SCC 1 and 4 are connected to the board; than why
you are enabling SCC2 and SCC3?
This board does have 2 SCCs assigned for UARTs. No need to configure
SCC2 and SCC3 - this is useless and may lead to kernel crash. This board
will use in the correct configuration /dev/ttyCPM0 <SCC1> and
/dev/ttyCPM1 <SCC4>.
--
Sincerely,
Vitaly
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: using SCC4 on MPC8272ADS
@ 2005-09-21 11:33 Landau, Bracha
2005-09-21 11:40 ` Vitaly Bordug
0 siblings, 1 reply; 5+ messages in thread
From: Landau, Bracha @ 2005-09-21 11:33 UTC (permalink / raw)
To: Vitaly Bordug; +Cc: linuxppc-embedded
I reconfigured the kernel so that only SCC1 and SCC4 are supported. The s=
ame thing happens as before.
Another bit of info is that if I run with console=3DttyCPM1 as a kernel c=
ommand line parameter, so that u-boot outputs to one port and the kernel =
outputs to the other, if I type "ls > /dev/ttyCPM0" the system hangs.
-----Original Message-----
From: Vitaly Bordug [mailto:vbordug@ru•mvista.com]
Sent: Wednesday, September 21, 2005 1:56 PM
To: Landau, Bracha
Cc: linuxppc-embedded@ozlabs•org
Subject: Re: using SCC4 on MPC8272ADS
Landau, Bracha wrote:
> I am using the MPC8272ADS with kernel 2.6.10. The kernel is configured =
to support 4 CPM SCCs, of which 1 and 4 are connected on the board.
> I created device files as follows:
>=20
> mknod /dev/ttyCPM0 c 204 46
> mknod /dev/ttyCPM1 c 204 47
> mknod /dev/ttyCPM2 c 204 48
> mknod /dev/ttyCPM3 c 204 49
>=20
> If I boot the kernel using console=3DttyCPM3 I see that it uses SCC4. B=
ut when I boot with console=3DttyCPM0 and write to the second port using =
a command like "echo hello > /dev/ttyCPM3" I don't see that anything is b=
eing outputted to the second console.
>=20
> What am I doing wrong?
> =20
Funny - you said that SCC 1 and 4 are connected to the board; than why=20=
you are enabling SCC2 and SCC3?
This board does have 2 SCCs assigned for UARTs. No need to configure=20
SCC2 and SCC3 - this is useless and may lead to kernel crash. This board=20=
will use in the correct configuration /dev/ttyCPM0 <SCC1> and=20
/dev/ttyCPM1 <SCC4>.
--=20
Sincerely,
Vitaly
*************************************************************************=
**********
Information contained in this email message is intended only for use of t=
he individual or entity named above. If the reader of this message is not=
the intended recipient, or the employee or agent responsible to deliver =
it to the intended recipient, you are hereby notified that any disseminat=
ion, distribution or copying of this communication is strictly prohibited=
=2E If you have received this communication in error, please immediately =
notify the postmaster@nds•com and destroy the original message.
*************************************************************************=
**********
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: using SCC4 on MPC8272ADS
2005-09-21 11:33 using SCC4 on MPC8272ADS Landau, Bracha
@ 2005-09-21 11:40 ` Vitaly Bordug
0 siblings, 0 replies; 5+ messages in thread
From: Vitaly Bordug @ 2005-09-21 11:40 UTC (permalink / raw)
To: Landau, Bracha; +Cc: linuxppc-embedded list
Landau, Bracha wrote:
> I reconfigured the kernel so that only SCC1 and SCC4 are supported. The same thing happens as before.
> Another bit of info is that if I run with console=ttyCPM1 as a kernel command line parameter, so that u-boot outputs to one port and the kernel outputs to the other, if I type "ls > /dev/ttyCPM0" the system hangs.
>
Heh, didn't noticed, that you should use the latest rc of the linux
kernel. I used to fix second UART in rc7 AFAIR.
>
> -----Original Message-----
> From: Vitaly Bordug [mailto:vbordug@ru•mvista.com]
> Sent: Wednesday, September 21, 2005 1:56 PM
> To: Landau, Bracha
> Cc: linuxppc-embedded@ozlabs•org
> Subject: Re: using SCC4 on MPC8272ADS
>
>
> Landau, Bracha wrote:
>
>>I am using the MPC8272ADS with kernel 2.6.10. The kernel is configured to support 4 CPM SCCs, of which 1 and 4 are connected on the board.
>>I created device files as follows:
>>
>>mknod /dev/ttyCPM0 c 204 46
>>mknod /dev/ttyCPM1 c 204 47
>>mknod /dev/ttyCPM2 c 204 48
>>mknod /dev/ttyCPM3 c 204 49
>>
>>If I boot the kernel using console=ttyCPM3 I see that it uses SCC4. But when I boot with console=ttyCPM0 and write to the second port using a command like "echo hello > /dev/ttyCPM3" I don't see that anything is being outputted to the second console.
>>
>>What am I doing wrong?
>>
>
> Funny - you said that SCC 1 and 4 are connected to the board; than why
> you are enabling SCC2 and SCC3?
>
> This board does have 2 SCCs assigned for UARTs. No need to configure
> SCC2 and SCC3 - this is useless and may lead to kernel crash. This board
> will use in the correct configuration /dev/ttyCPM0 <SCC1> and
> /dev/ttyCPM1 <SCC4>.
>
>
>
--
Sincerely,
Vitaly
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: using SCC4 on MPC8272ADS
@ 2005-09-22 15:20 Landau, Bracha
0 siblings, 0 replies; 5+ messages in thread
From: Landau, Bracha @ 2005-09-22 15:20 UTC (permalink / raw)
To: Vitaly Bordug, linuxppc-embedded
I am now using kernel 2.6.10.2 on the MPC8272ADS.
I still have problems using the second SCC port (SCC4).
If I do the following (assuming after configuring SCC4 to behave like SCC=
1 w/baud rate, etc using tcgetattr and tcsetattr):
echo hello > hhh
echo hello >> hhh
echo hello >> hhh
more hhh > /dev/ttyCPM1
then it works fine and I see the three lines of "hello" on the second por=
t.
But if I do:
echo hello > hhh
echo hello >> hhh
more hhh > /dev/ttyCPM1
(i.e., only two lines of "hello" in hhh)
then the system hangs.
-----Original Message-----
From: Vitaly Bordug [mailto:vbordug@ru•mvista.com]
Sent: Wednesday, September 21, 2005 3:01 PM
To: Landau, Bracha
Subject: Re: using SCC4 on MPC8272ADS
Landau, Bracha wrote:
> Which version has the fix? 2-6-10-rc7? Where can I find it?
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.2.tar.bz2
2.6.13.rc7 should have the fix.
>=20
> -----Original Message-----
> From: Vitaly Bordug [mailto:vbordug@ru•mvista.com]
> Sent: Wednesday, September 21, 2005 2:40 PM
> To: Landau, Bracha
> Cc: linuxppc-embedded list
> Subject: Re: using SCC4 on MPC8272ADS
>=20
>=20
> Landau, Bracha wrote:
>=20
>>I reconfigured the kernel so that only SCC1 and SCC4 are supported. The=
same thing happens as before.
>>Another bit of info is that if I run with console=3DttyCPM1 as a kernel=
command line parameter, so that u-boot outputs to one port and the kerne=
l outputs to the other, if I type "ls > /dev/ttyCPM0" the system hangs.
>>
>=20
>=20
> Heh, didn't noticed, that you should use the latest rc of the linux=20
> kernel. I used to fix second UART in rc7 AFAIR.
>=20
>>-----Original Message-----
>>From: Vitaly Bordug [mailto:vbordug@ru•mvista.com]
>>Sent: Wednesday, September 21, 2005 1:56 PM
>>To: Landau, Bracha
>>Cc: linuxppc-embedded@ozlabs•org
>>Subject: Re: using SCC4 on MPC8272ADS
>>
>>
>>Landau, Bracha wrote:
>>
>>
>>>I am using the MPC8272ADS with kernel 2.6.10. The kernel is configured=
to support 4 CPM SCCs, of which 1 and 4 are connected on the board.
>>>I created device files as follows:
>>>
>>>mknod /dev/ttyCPM0 c 204 46
>>>mknod /dev/ttyCPM1 c 204 47
>>>mknod /dev/ttyCPM2 c 204 48
>>>mknod /dev/ttyCPM3 c 204 49
>>>
>>>If I boot the kernel using console=3DttyCPM3 I see that it uses SCC4. =
But when I boot with console=3DttyCPM0 and write to the second port using=
a command like "echo hello > /dev/ttyCPM3" I don't see that anything is =
being outputted to the second console.
>>>
>>>What am I doing wrong?
>>>
>>
>>Funny - you said that SCC 1 and 4 are connected to the board; than why=20=
>>you are enabling SCC2 and SCC3?
>>
>>This board does have 2 SCCs assigned for UARTs. No need to configure=20=
>>SCC2 and SCC3 - this is useless and may lead to kernel crash. This boar=
d=20
>>will use in the correct configuration /dev/ttyCPM0 <SCC1> and=20
>>/dev/ttyCPM1 <SCC4>.
>>
>>
>>
>=20
>=20
>=20
--=20
Sincerely,
Vitaly
*************************************************************************=
**********
Information contained in this email message is intended only for use of t=
he individual or entity named above. If the reader of this message is not=
the intended recipient, or the employee or agent responsible to deliver =
it to the intended recipient, you are hereby notified that any disseminat=
ion, distribution or copying of this communication is strictly prohibited=
=2E If you have received this communication in error, please immediately =
notify the postmaster@nds•com and destroy the original message.
*************************************************************************=
**********
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-22 15:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 11:33 using SCC4 on MPC8272ADS Landau, Bracha
2005-09-21 11:40 ` Vitaly Bordug
-- strict thread matches above, loose matches on Subject: below --
2005-09-22 15:20 Landau, Bracha
2005-09-21 10:21 Landau, Bracha
2005-09-21 10:55 ` Vitaly Bordug
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox