* AW: Serial console failure on DENX Linux on MPC850 board
@ 2003-12-19 8:45 Graf Alex
2003-12-19 18:49 ` lihong wei
0 siblings, 1 reply; 3+ messages in thread
From: Graf Alex @ 2003-12-19 8:45 UTC (permalink / raw)
To: 'lihong wei', ppclinux
Do you use SCC1 / SMCx for UARTs? This gives an offset! --> ttyS1, ...
cheers
Alex
-----Ursprüngliche Nachricht-----
Von: lihong wei [mailto:lihongwlh@yahoo.com]
Gesendet: Donnerstag, 18. Dezember 2003 19:09
An: ppclinux
Betreff: Serial console failure on DENX Linux on MPC850 board
Hi all,
I am porting latest version Denx linux
linuxppc_2_4_devel kernel and U-boot 3.0 to our MPC850
board. I also used SELF to generate the ext2 file
system. I am using the TQM850L configuration
on my board, and configured the SCC2 as serial
console(because the hardware designed like this).
After the kernel started the /sbin/init, which is
the last step of booting, the console stop
response. I have studied several discussion groups
and did the following changes, but it still
doesn't work:
1. set boot command line in u-boot like this:
setenv bootargs console=ttyS0,115200 root=/dev/ram
rw
2. when creating root file system in SELF, under /dev
directory, create devices with
ELDK_MAKEDEV, ELDK_FIXOWNER, and then delete
/dev/console, then link ttyS0 to /dev/console,
(this is from some discussion group).
3. in /etc/inittab, added:
ttyS0::respawn:-/bin/sh
4. The SELF used busybox-0.51, and I also tried
busybox-0.61.1, there's no difference.
I also tried modifying the init_main() in
busybox../init.c, and foreced the console_init()
routine to open("/dev/console"...) instead of using
the parameters passed from kernel.
Because after kernel started run /sbin/init, I can not
trace the code, neither can I post
debugging info from serail console, I can only tell
the difference from the behavior of the
last few lines of console output. It seems that the
init routine can open the console device.
and the serial IOCTL in console_init() can also
detect the device. but there's still no
output on the screen.
I also tried to use the files system coming with ELDK
distribution, but it's too big (1.5M)
and my system has only 2M flash, including u-boot,
and kernel. I tried to make a smaller
image to cut everything except files like /bin/bash,
/dev/console, /sbin/init. and somehow
it's still 1M. and system doesn't work either.
I am stuck here and any response will be cordially
appreciated!
Best Regards,
Vincent
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: AW: Serial console failure on DENX Linux on MPC850 board
2003-12-19 8:45 AW: Serial console failure on DENX Linux on MPC850 board Graf Alex
@ 2003-12-19 18:49 ` lihong wei
2003-12-19 20:39 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: lihong wei @ 2003-12-19 18:49 UTC (permalink / raw)
To: Graf Alex, ppclinux
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2867 bytes --]
Yes, I configured in scc2 as serial console in
menuconfig.
I just found out that the serial driver only call
rs_init, rs_write, instead of calling rs_8xx_init(),
etc. I just download the latest develop source from
denx. Its serial driver seems to be very inchoate. I
am trying to fix this. Any help will be appreciated!
Thanks,
Vincent
--- Graf Alex <alex.graf@siemens.com> wrote:
>
> Do you use SCC1 / SMCx for UARTs? This gives an
> offset! --> ttyS1, ...
>
> cheers
>
> Alex
>
> -----Ursprüngliche Nachricht-----
> Von: lihong wei [mailto:lihongwlh@yahoo.com]
> Gesendet: Donnerstag, 18. Dezember 2003 19:09
> An: ppclinux
> Betreff: Serial console failure on DENX Linux on
> MPC850 board
>
>
>
> Hi all,
>
> I am porting latest version Denx linux
> linuxppc_2_4_devel kernel and U-boot 3.0 to our
> MPC850
> board. I also used SELF to generate the ext2 file
> system. I am using the TQM850L configuration
> on my board, and configured the SCC2 as serial
> console(because the hardware designed like this).
> After the kernel started the /sbin/init, which is
> the last step of booting, the console stop
> response. I have studied several discussion
> groups
> and did the following changes, but it still
> doesn't work:
>
> 1. set boot command line in u-boot like this:
> setenv bootargs console=ttyS0,115200
> root=/dev/ram
> rw
>
> 2. when creating root file system in SELF, under
> /dev
> directory, create devices with
> ELDK_MAKEDEV, ELDK_FIXOWNER, and then delete
> /dev/console, then link ttyS0 to /dev/console,
> (this is from some discussion group).
>
> 3. in /etc/inittab, added:
> ttyS0::respawn:-/bin/sh
>
> 4. The SELF used busybox-0.51, and I also tried
> busybox-0.61.1, there's no difference.
> I also tried modifying the init_main() in
> busybox../init.c, and foreced the console_init()
> routine to open("/dev/console"...) instead of
> using
> the parameters passed from kernel.
> Because after kernel started run /sbin/init, I can
> not
> trace the code, neither can I post
> debugging info from serail console, I can only tell
> the difference from the behavior of the
> last few lines of console output. It seems that the
> init routine can open the console device.
> and the serial IOCTL in console_init() can also
> detect the device. but there's still no
> output on the screen.
>
> I also tried to use the files system coming with
> ELDK
> distribution, but it's too big (1.5M)
> and my system has only 2M flash, including u-boot,
> and kernel. I tried to make a smaller
> image to cut everything except files like
> /bin/bash,
> /dev/console, /sbin/init. and somehow
> it's still 1M. and system doesn't work either.
>
> I am stuck here and any response will be cordially
> appreciated!
>
> Best Regards,
>
> Vincent
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: AW: Serial console failure on DENX Linux on MPC850 board
2003-12-19 18:49 ` lihong wei
@ 2003-12-19 20:39 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-12-19 20:39 UTC (permalink / raw)
To: lihong wei; +Cc: ppclinux
In message <20031219184927.4885.qmail@web41901.mail.yahoo.com> you wrote:
>
> I just found out that the serial driver only call
> rs_init, rs_write, instead of calling rs_8xx_init(),
> etc. I just download the latest develop source from
> denx. Its serial driver seems to be very inchoate. I
Ummm... it's working perfectly fine here.
> am trying to fix this. Any help will be appreciated!
What exactly are you complaining about, and what problem are you
tring to fix?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Every solution breeds new problems.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-19 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-19 8:45 AW: Serial console failure on DENX Linux on MPC850 board Graf Alex
2003-12-19 18:49 ` lihong wei
2003-12-19 20:39 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).