From: Dudi Feuer (dfeuer@net2phone.com)
Date: Thu Sep 05 2002 - 11:07:12 EDT
Hello all, I have modified my version of serial-atmel.c to allow for the console to be redirected out the second usart. I successfully see all messages (printk's and printf's) on usart B, and nothing shows on usart A (that's what I want!). The problem is I cannot input anything, the shell does not give me a prompt. I can run programs that are button-driven, but I cannot run anything from the command line at all. And yes, I tried typing in a terminal session opened to usart A and checking if it cam out usart b--no beans. Does anyone know how to solve this problem (or have any idea what might be causing it)? I tried modifying kernel/init/main.c to open /dev/ttyS1 instead of /dev/ttyS0, but that just gave me repeated error messages in the big loop: Loaded flat file, BSS=23d5f4, DATA=23c018, TEXT=2b0018 sh: memory violation at pc=0x66d05fd0, lr=0x002b5638 (bad address=0x66d05fd0, code 3)! Thanks, Dudi -----Original Message----- From: Dudi Feuer [mailto:dfeuer@net2phone.com] Sent: Thursday, August 22, 2002 11:22 AM To: 'uclinux-dev@uclinux.org' Subject: RE: [uClinux-dev] suppress console output Wow, cool David. I will try this out today. Thanks, Dudi > -----Original Message----- > From: David McCullough [mailto:davidm@snapgear.com] > Sent: Wednesday, August 21, 2002 8:24 PM > To: uclinux-dev@uclinux.org > Subject: Re: [uClinux-dev] suppress console output > > > Jivin Dudi Feuer lays it down ... > > Does anyone have any clue how to suppressing console output? > > > > I have tried playing with init.c and changing stdout(1) to point to > > /dev/null ( using open() and dup() ) but no luck. > > > > Anyone have a good idea how to do this? Is there any way to possibly > send > > all output to the second serial port? > > > > I am using the ARM7TDMI proc.... > > > If this is a 2.0 kernel then you may have to stop the conole driver > from registering. Platforms like Coldfire take a CONSOLE=/dev/XXX > kernel command line parameter and settinh it to /dev/null works. > > 2.4 is a lot better behaved and I think that all console drivers > are managed by the kernel command line. Just add a "console=null" > to the command line for your platform. Have a look in > > arch/armnommu/kernel/setup.c > > For the command line stuff, > > Cheers, > Davidm > > -- > David McCullough: Ph: +61 7 3435 2815 http://www.SnapGear.com > davidm@snapgear.com Fx: +61 7 3891 3630 Custom Embedded Solutions + > Security > This message resent by the uclinux-dev@uclinux.org list server > http://www.uClinux.org/ This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/ This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:49 EDT