[uClinux-dev] Problem opening console

Selvam selvam at sesl.global.sharp.co.jp
Wed Mar 12 03:55:59 EST 2003


David, I just checked the console_init section seems ok. 
I'm actually getting the console output correct until the
init() opens /dev/console.  You can take a look at  the 
output.

thanks
Selvam.

-------------------------------------------------------------

Welcome to the LH79531 Linux port.
Linux version 2.4.4.0pre0 (root at localhost) (gcc version 2.96 20000519 
(experimental)) #573 Wed Mar 12 16:03:01 SGT 2003
Processor: 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... 9.72 BogoMIPS
Memory: 20MB = 20MB total
Memory: 20120KB available (833K code, 1049969K 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
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-1A7FFFF [VIRTUAL 1800000-1A7FFFF] (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
VFS: Mounted root (romfs filesystem) readonly.
$^A^A^R
^A^A^R
^A^A  @@^@@H^@ ^@ ^@ $^@ 
$$^@^@^@^@^@^@^@^@^@^@P^@^@^@^@@^B^@^H^@^@^@Ä^@^E^@^@^@^A$^@
@^@ ^@^A^HB^@.^B^@a@^@^@.^@^@ .^@^L  ^F^@^@^R
^P      ^@^@^@ Mountingb^A^@^A^@^@^B.^@^EH^E^@^@^@^@`^@ 
^@^B^@..^PA^B"..^B@^A^B^B^@^P^@@^@^@    Q^@ proc on /proc
^@T^@^@^P^@^H!^B^A ^E@^@^@$^@^B" ^A^@^@^B^@B^@^@^@^@Expand.^@^@.@^P^@^@ (^@^B 
^A^E^@^H at B^A@@P^@^L¡.^@. ^@^@^P^@^@.
^PP"^T^B^@^@^@^H  ^BA^@^H^@^B^B@^@!@^@^@^@ ^B^@ ^@^@^B^@^@A^@^B 
^@^@^@^@B^@^H^B^P^B
A^H@^H^@^R
^@^A£^P^@^@^@^@^P$^@^P^@^@^@^AD^A ^@^@ (^@
^@^@^@" ^@@^B .^R
^B . at .^@^@^@^A ^@( ^@^@^@.^B^@^H!^@.^H.^P5^@^@^@^@.@^@^@
! .@^@^Bb^@ .^@^@^T^@^P ^@^@^A^A ^@^E 
^@^@^@.^@.^F.^A^P^@B^@@H^@^@^@^B^@^@^@^@^@.^H  ^P@$ 
.^@^@^@^@^B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
^@A@^@^@@^P^B^@^BT^B.^H^@¢^H.^@^@^F^H^^@.^@^@^@^@^@@@^@^@^P^@^@^A^@^E^L^@^@^@@.^B^@^@.^P^@^H^F.^@^A^@^@ 
^BB^@@@^@^@^@^@.. at 0^T^@^@@ ..^P.  
^@^@^@^L¡^@^@^@^H^@^H^@B^T.^@^T^L^@^@^@^@^@@.^@. ^@^@^@^@
@^@@^@^@.^@^@^A^@ ^P^@P^H. `^L^@@.^@^@^@@.^@^A^B^@@D^@^@^@^B^R
@^@^@.^@^@^A^@ ^P^@P^H. `^L^@@.^@^@^@@.^@^A^B^@@D^@^@^@^B ^H    ^PH^@@^@^H^B 
^HX^@^@^@^@@F@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^P.^@^@@^@H^AH ^@^HB^@J^@  ^B^@^@^@^B^@^@^H^B^A^@^T!^@
^@
^@H^H^@@^@.^@^@^B^@.^@.^B^@^@^H^@^H&^@A^A^@^@^@^@^@^A^T^@^@^T^@^T^B^P 
^@^@^P^H^@^@^BP4^@^@^A^@^A^B      
^@.^@^@^A^@^P^B^@^@^@^T^@^H^@^@^@^@.^B^@."^P@^@^F(^@^@.^@Q^T^@0^@^L ^H 
¢^@^@^@ ^@^@^@. ^@^H^@.^@^@^
---------------------------------------------------------------


On Wednesday 12 March 2003 10:26, David McCullough wrote:
> Jivin Selvam lays it down ...
>
> > Hi, I've problem opening the console device
> >
> > init() , main.c
> >  ------------------------------------------------------------
> >  if (open("/dev/console", O_RDWR, 0) < 0)
> >  ? ? ? ? printk("Warning: unable to open an initial console.\n");
> >  -------------------------------------------------------------
> > When the above line executes I get  junk chars printed on my console.
> > No error opening the console.
>
> Check you baud rate,  it may have changed when init opened the console.
> 9600 is a good try.
>
> > Subsequently when the following line executed,
> > I get continous junk output and certain processes got killed (PID 12, 20
> > sometimes 30).
> >
> > -----------------------------------------
> >  if (execute_command)
> >  	execve(execute_command,argv_init,envp_init);
> >  execve("/sbin/init",argv_init,envp_init);
> >  execve("/etc/init",argv_init,envp_init);
> >  execve("/bin/init",argv_init,envp_init);
> >  execve("/bin/sh",argv_init,envp_init);
> > --------------------------------------------
> >
> > I've no idea what's really wrong. Appreciate any help from you guys.
>
> If it doesn't look like a baudrate problem (ie., you can read some of the
> output) then I suspect your serial driver is unhappy,
>
> Cheers,
> Davidm




More information about the uClinux-dev mailing list