ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Ltib - Unable to open an initial console


From: aaron
Subject: Re: [Ltib] Ltib - Unable to open an initial console
Date: Wed, 28 Apr 2010 14:38:27 -0500
User-agent: SquirrelMail/1.4.19

I had a problem opening an initial console.  My problem was in the udev
layer.  I had to open the file

rpm/BUILD/udev-091/extra/10-fsl.rules

and change

KERNEL=="ttyS[0-9]",   NAME="tts/%n",          SYMLINK+="tts%n"

to

KERNEL=="ttyS[0-9]",    NAME="tts/%n",          SYMLINK+="ttyS%n"

In my case, my serial port was ttyS0.  I would see kernel printouts, but I
wouldn't be able to open an initial console.  That was because busybox was
trying to open /dev/ttyS0, but with the way I had my udev set up there was
no such file /dev/ttys0.  Upon closer inspection, I saw that the udev rule
was creating special device file /dev/tts/0, and a symlink to that file
/dev/tts0, but wasn't creating /dev/ttyS0.  By changing the rule I got my
console to come up.  If you're having a problem, you might try looking in
the udev layer.  If you pass an argument to the kernel like
console=something which enables you to see kernel printouts, then that's a
step in the right direction.  Once you can see your kernel printouts, you
might just be missing the actual file in your file system that busybox
tries to open as your default console, which udev might be responsible
for.

> Thx for your answer!
>
> The root file system has this file:  ext2://1/dev/console
> Inittab cant run this file.
> I dont set the pass while I build the kernel?!
> And the boot argument was first: ttyAM1 (NXP board serial port)
> I also tried boot whit console=tty0 and the boot information appeared in
> LCD.
> I connect an USB keyboard to the system and I can only rebbot the system
> with crl +
> alt + del.The warning message dont disappeared.
>
> I can run some program in /bin when I write to the etc/inittab
> What I have to do to running my helloworld.out?
> The inittab can runing only the programs in /bin. :(
>
>
>> Hi Peter,
>>
>> Make sure you have a /dev/console on your target filesystem similar to
>> (i.e 5,1):
>>
>> crw------- 1 root root 5, 1 2010-04-03 11:38 /dev/console
>>
>> Make sure you pass (or have as a default) some console device in the
>> kernel boot arguments, e.g for the first serial port:
>>
>> console=/dev/ttyS0
>>
>> There are many more possibilities, but presumably that BSP should work
>> in the default configuration? maybe someone with that board can confirm
>> this.
>>
>> Regards, Stuart
>>
>> Péter wrote:
>>> Hi all,
>>>
>>> I need some help. I have a NXP board with LH7a404 processor.
>>> I build the kernel and root file system. After im booting the kernel,
>>> always I have  a warning message.WARNING: Unable to open an initial
>>> console.
>>>
>>> I looked for any help in web but I dont find the good solution.
>>>
>>> The kernel is running! I can do all command in etc/inittab. (for
>>> example:  ::sysinit:/bin/ls > example.txt)But I cant runnig my
>>> programs (for example:  hello.out <- this program must create a
>>> file and write to the file Hello world!)
>>> Can anybody help me? :(
>>>
>>> Péter
>
>
>
>
> ----------------------------------------------------------------------------------
> Képtáram:   http://rapid.xfree.hu
> Blogom:     http://rapid.blog.xfree.hu
> Videótáram: http://rapid.video.xfree.hu
>
> Szótár: http://szotar.xfree.hu ( 587119 szópár )
> Unatkozik? >>> http://video.xfree.hu
>
> Szeretsz pókerezni ? Gyere és játssz Online a többiekkel!
> http://www.xpoker.hu - A közösségi póker
>
>
>
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]