Enabling both SMC ports
Hi All, Our product ( MPC860 arch with Mvista Kernel) has one serial port connected to the console & is interfaced thru' SMC1.The second serial port needs to be connected to the printer thru' SMC2. The u-boot does not allow enabling SMC1 & SMC2 both togather.
How do I go about achieving this ?
Rgds
Kamesh
Member, Software Group
Signal Networks PVT. LTD
Quoted 4 lines · In message <[email protected]> you wrote:
Hi All, Our product ( MPC860 arch with Mvista Kernel) has one serial port connected to the console & is interfaced thru' SMC1.The second serial port needs to be connected to the printer thru' SMC2. The u-boot does not allow enabling SMC1 & SMC2 both togather.
You porbably don't want to control your printer by U-Boot anyway, or do you?
And Linux has no such limitations.
How do I go about achieving this ?
If you really want to use both SMC ports in U-Boot you have to extend the existing driver. But I don't see why you would want to do this.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If you can't beat it or corrupt it, you pretend it was your idea in the first place. - Terry Pratchett, _Guards! Guards!_
Hi WD,
First of all Thanks for your prompt reply.
I needed further info on this issue.
I have already tried enabling the SMC2 in the kernel. This is what I tried:
$ make menuconfig
1) Selected MPC8xx CPM Options and Enabled the Foll.
i) Use SMC2 for UART
ii) Use SMC2 for Console
Then Compiled the kernel & ported it to the board (MPC860) Connected the serial printer to SMC2.
Tried printing using 'cat' command
$ cat <file-name> > /dev/ttyS1 (since /dev/ttyS0 is for console) Command gets executed but printer does not print anything.
Have I missed anything or not tried enough ?
Is there any other workaround ?
Your suggestions would be valuable.
Rgds
Kamesh
Quoted 26 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:
Hi All, Our product ( MPC860 arch with Mvista Kernel) has one serial port connected to the console & is interfaced thru' SMC1.The second serial port needs to be connected to the printer thru' SMC2. The u-boot does not allow enabling SMC1 & SMC2 both togather.
You porbably don't want to control your printer by U-Boot anyway, or do you?
And Linux has no such limitations.
How do I go about achieving this ?
If you really want to use both SMC ports in U-Boot you have to extend the existing driver. But I don't see why you would want to do this.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If you can't beat it or corrupt it, you pretend it was your idea in the first place. - Terry Pratchett, _Guards! Guards!_
Quoted 2 lines · In message <[email protected]> you wrote:
I have already tried enabling the SMC2 in the kernel.
This is off topic here.
[And without further information about your hardware, your kernel version and how it was ported to your hardware you should not expect much help from any other mailing list, either.]
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You can love it, change it, or leave it. There is NO other option. But do not complain - it is your own choice... -- wd