[uClinux-dev] Getting junk chars on my console....

Selvam selvam at sesl.global.sharp.co.jp
Tue Mar 25 19:38:50 EST 2003


Hi Rick thanks for the reply.  I've sent this email previously,
But no reply from you yet. Sending again.

I'm using the Sharp LH79531 platform (ARM7TDMI).
Pls. find the boot-up msg. below.
>
> Immediatedly after do_initcalls() initializes the serial console
> I'm start getting a lot of junk chars printed on my minicom.
> The kernel attempt to kill certain processes.
>
> I've step through the do_initcalls(), and it make calls to
> serial_console_setup(). This file is in serial_lh7953x.c
> (i've attached the file). The very first line of the junk chars prints even
> before the open("/dev/console"....  opens the console.
> In my .config I've included console on serial port and
> also virtual console.
>
> Appreciate if you explain the process of registering console. How
> to choose between the fb and serial port as console device.
>
> thank you.
> Selvam
>
> --------------------------------------------------------------
> Welcome to the LH79531 Linux port.
> Linux version 2.4.4.0pre0 (root at IWAVE) (gcc version 2.96 20000519
> (experimental3Processor: ARM/SHARP ARM 7 revision 0
> Architecture: LH7953X
> On node 0 totalpages: 5120
> zone(0): 5120 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/rom0
> Console: colour dummy device 80x30
> Calibrating delay loop... 16.89 BogoMIPS
> Memory: 20MB = 20MB total
> Memory: 20120KB available (905K code, 1050044K data, 44K init)
> Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
> VFS: Diskquotas version dquot_6.4.0 initialized
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
>  Configuring PIO registers..
> Console: switching to colour frame buffer device 30x40
> codec_main_init:Entered
> hardware_patch:Entered
> hardware_patch:LEAVING FUNCTION
> peripherals_power_on:Entered
> peripherals_power_on:LEAVING FUNCTION
> FnGenerateDspPwm0: config PWM0 for 12.27MHZ clock base on 50MHZ System
> Clock FnGenerateDspPwm0: LEAVING FUNCTION
> Entered InitPIOCodec: PIO settings for Codec device
> InitPIOCodec: LEAVIN FUNCTION
> Entered InitCodec: Codec initialization routine
> Entered InitCodecDMA: DMA for CODEC
> Registration of the codec device driver Successful
> Request irq successful for Codec device
> camera_main_init:Entered
> Entered camera_reset: LR38638c
> End reset...
> Entered camera_init_cpu: LR38638c
> Error during serial write. Error Code = 0x02
> ERROR in camera_init_cpu( )...
> keypad_main_init:Entered
> Registration of the keypad device driver Successful
> block: queued sectors max/low 13266kB/4422kB, 64 slots per queue
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> Starting kswapd v1.8
> Blkmem copyright 1998,1999 D. Jeff Dionne
> Blkmem copyright 1998 Kenneth Albanowski
> Blkmem 1 disk images:
> 0: 1800000-19573FF [VIRTUAL 1800000-19573FF] (RO)
> loop: loaded (max 8 devices)
> ttyS00 at 0x0000 (irq = 9)
> ttyS01 at 0x0000 (irq = 10)
> ttyS02 at 0x0000 (irq = 11)
> ADS7846 generic module installed
> Configuring TOUCH PANEL REG
> ads7846 touch screen driver initialized
> PPP generic driver version 2.4.1
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 1024 bind 1024)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> wrong magic
> fatfs: bogus cluster size
> fatfs: bogus cluster size
> fatfs: bogus cluster size
> UMSDOS: msdos_read_super failed, mount aborted.
> VFS: Mounted root (romfs filesystem) readonly.
> ^@^P^@.^@$^@.^@^@^@.^@^@.@^H.^B^H^A^@^P.^@.^B^A ^P^P^R
> ^P^P^H^H ^R
> ^B^H^H^@.@       ^P^X
> ^@^A@^@P.^@@!^@^H!^@^@^@^@^@.^A^@(^Bc.@^@^B@^@^@^@^H^@^@^R@
> ^@^@..@^@@^B^@^@^@^AA@^T^@^@^@^@^@^A^@^@^@^B"^@^@.@`.$^@^@^@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
>
> > > Hi, my uclinux seems booting well, but I don't get the shell
> > > prompt. When I do printf() in init.c (\sbin\init)  it's not printed
> > > in my serial console. I belive that the console device are opened
> > > properly but the output goes somewhere else.
> >
> > Never say "seems" (o;
> >
> > How do you know that your console is open?
> >
> > Can you telnet in?
> >
> >
> > Some more info from your side would be needed here like
> > bootup messages and what system you're using...and not
> > "seems to boot" (o;
> >
> >
> > Rick
> >
> >
> > Richard Klingler             mail: richard.klingler at violasystems.com
> > Viola Systems Ltd.           http://www.violasystems.com/
> > Lemminkaisenkatu 32          phon: +358 (0)201 226 226
> > 20520 Turku, Finland         mobile: +358 (0)40 748 4711
> > _______________________________________________
> > uClinux-dev mailing list
> > uClinux-dev at uclinux.org
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by uclinux-dev at uclinux.org

----------------------------------------
Content-Type: text/x-c; charset="iso-8859-1"; name="serial_lh7953X.c"
Content-Transfer-Encoding: base64
Content-Description: 
----------------------------------------




More information about the uClinux-dev mailing list