From: Chris Dumoulin <cdumoulin@ics-ltd.com>
To: Scott Coulter <scott.coulter@cyclone.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: help with inittab
Date: Fri, 09 Jun 2006 16:43:21 -0400 [thread overview]
Message-ID: <4489DD69.4020107@ics-ltd.com> (raw)
In-Reply-To: <43EB80E07C42E1408726E4905FB96B0466C6C5@CYBORG3.cyclone.com>
Scott, you are my saviour. The problem was in fact the IRQ setting. I
changed the IRQ and now I get a shell, prompt, and everything. I never
would have thought to check the UART settings, since I was getting
output during kernel boot-up, I thought everything was good.
Thanks again,
Chris
Scott Coulter wrote:
>Chris,
>
>I was getting linux 2.6.15 running an MPC8560 board with an external
>UART. In my board specific code that was setting up the Programmable
>Interrupt Controller (openpic), I had a problem with a loop index and
>the external interrupts were not getting setup correctly, but the
>internal interrupts were...
>
>Once I fixed the loop, there was output from the init process...
>
>What type of board are you running on? Do you have the UART interrupt
>configured correctly (interrupt level high or low, interrupt input
>definition, etc.)?
>
>
>Scott
>
>
>
>
>
>___________________________________________________________________
>
> Scott N. Coulter
> Senior Software Engineer
>
> Cyclone Microsystems
> 370 James Street Phone: 203.786.5536 ext. 118
> New Haven, CT 06513-3051 Email: scott.coulter@cyclone.com
> U.S.A. Web: http://www.cyclone.com
>___________________________________________________________________
>
>-----Original Message-----
>From: Chris Dumoulin [mailto:cdumoulin@ics-ltd.com]
>Sent: Friday, June 09, 2006 3:50 PM
>To: Scott Coulter
>Cc: linuxppc-embedded@ozlabs.org
>Subject: Re: help with inittab
>
>Hi Scott,
>That is where my output stops. What was the cause of your interrupt
>problem? Were you able to fix it?
>
>- Chris
>
>Scott Coulter wrote:
>
>
>
>>Chris,
>>
>>Does your serial output stop after "Freeing unused kernel memory..."
>>
>>If it does, you may have an interrupt problem with the UART. I had to
>>track down that very problem the other day. As a test, even if my UART
>>interrupt was purposely misconfigured, I still saw all of the output up
>>to and including "Freeing unused kernel memory..."
>>
>>Scott
>>
>>
>>
>>
>>___________________________________________________________________
>>
>> Scott N. Coulter
>> Senior Software Engineer
>>
>> Cyclone Microsystems
>> 370 James Street Phone: 203.786.5536 ext. 118
>> New Haven, CT 06513-3051 Email: scott.coulter@cyclone.com
>> U.S.A. Web: http://www.cyclone.com
>>___________________________________________________________________
>>
>>-----Original Message-----
>>From: linuxppc-embedded-bounces+scott.coulter=cyclone.com@ozlabs.org
>>[mailto:linuxppc-embedded-bounces+scott.coulter=cyclone.com@ozlabs.org]
>>On Behalf Of Chris Dumoulin
>>Sent: Friday, June 09, 2006 3:15 PM
>>To: Steve Iribarne (GMail)
>>Cc: linuxppc-embedded@ozlabs.org
>>Subject: Re: help with inittab
>>
>>The init is from Busybox. Since I'm getting output from my serial port
>>during the kernel boot process, I think it's safe to say that my
>>/dev/ttyS0 is properly configured. Besides passing the kernel argument
>>console=ttyS0,57600, is there anything else I need to do to properly
>>configure the console? I've looked through my kernel configuration to
>>make sure that any serial device or console related stuff was enabled
>>and configured.
>>
>>I'm feeling pretty stumped.
>>
>>- Chris
>>
>>Steve Iribarne (GMail) wrote:
>>
>>
>>
>>
>>
>>>On 6/9/06, Chris Dumoulin <cdumoulin@ics-ltd.com> wrote:
>>>
>>>
>>>
>>>
>>>
>>>>I've now determined that my kernel seems to stop in the following
>>>>
>>>>
>>>>
>>>>
>>line
>>
>>
>>
>>
>>>>of code, in the function init(void * unused), in init/main.c:
>>>>run_init_process("/sbin/init");
>>>>
>>>>
>>>>
>>>>
>>>Who's init are you using??
>>>
>>>Are you using Busyboxes or sysinit from GNU?
>>>
>>>
>>>
>>>
>>>
>>>
>>>>I've determined that it stops at this call by stepping through the
>>>>
>>>>
>>>>
>>>>
>>code
>>
>>
>>
>>
>>>>with a BDI2000.
>>>>
>>>>My boot arguments are:
>>>>console=ttyS0,57600n8 ip=off root=/dev/ram0 rw
>>>>
>>>>My current inittab is:
>>>>::sysinit:/etc/rc.sh
>>>>::ctrlaltdel:/sbin/reboot
>>>>::shutdown:/sbin/swapoff -a
>>>>::shutdown:/bin/umount -a -r
>>>>::restart:/sbin/init
>>>>::respawn:/bin/sh
>>>>
>>>>I've tried adding an "echo" command to the /etc/rc.sh script that is
>>>>called, but I don't see any output. I've also trying changing the
>>>>::sysinit line in inittab to point to some non-existent script, to
>>>>
>>>>
>>>>
>>>>
>>see
>>
>>
>>
>>
>>>>if I'll get some error message, but I still see nothing. Is it
>>>>
>>>>
>>>>
>>>>
>>possible
>>
>>
>>
>>
>>>>that /sbin/init is dying before it gets to the point of reading
>>>>
>>>>
>>>>
>>>>
>>inittab?
>>
>>
>>
>>
>>>>Any ideas?
>>>>
>>>>Regards,
>>>>Chris Dumoulin
>>>>
>>>>
>>>>Wolfgang Denk wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>In message <44888B92.40409@ics-ltd.com> you wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>I am using the linux kernel 2.6.15 and initrd ramdisk image from
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>ELDK
>>
>>
>>
>>
>>>>>>4.0. Currently, I seem to be able to boot without errors, but after
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>
>>
>>
>>
>>>>the
>>>>
>>>>
>>>>
>>>>
>>>>>>root filesystem is mounted, things just stop.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>And what's your console device? Are you passing any
>>>>>
>>>>>
>>>>>
>>>>>
>>console=
>>
>>
>>
>>
>>>>>arguments on the command line? Is the corresponding device
>>>>>
>>>>>
>>>>>
>>>>>
>>entry
>>
>>
>>
>>
>>>>>present in the /dev/directory?
>>>>>
>>>>>Best regards,
>>>>>
>>>>>Wolfgang Denk
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>--
>>>>*--Christopher Dumoulin--*
>>>>Software Team Leader
>>>>
>>>><http://ics-ltd.com/>
>>>><http://ics-ltd.com/>
>>>>
>>>>Interactive Circuits and Systems Ltd.
>>>>5430 Canotek Road
>>>>Ottawa, ON
>>>>K1J 9G2
>>>>(613)749-9241
>>>>1-800-267-9794 (USA only)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>-----------------------------------------------------------------------
>>
>>
>-
>
>
>>
>>
>>
>>
>>>>This e-mail is private and confidential and is for the addressee
>>>>
>>>>
>>>>
>>>>
>>only.
>>
>>
>>
>>
>>>>If misdirected, please notify us by telephone and confirm that it has
>>>>been deleted from your system and any hard copies destroyed. You are
>>>>strictly prohibited from using, printing, distributing or
>>>>
>>>>
>>>>
>>>>
>>disseminating
>>
>>
>>
>>
>>>>it or any information contained in it save to the intended recipient.
>>>>_______________________________________________
>>>>Linuxppc-embedded mailing list
>>>>Linuxppc-embedded@ozlabs.org
>>>>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>>
>
>
>
>
--
*--Christopher Dumoulin--*
Software Team Leader
<http://ics-ltd.com/>
<http://ics-ltd.com/>
Interactive Circuits and Systems Ltd.
5430 Canotek Road
Ottawa, ON
K1J 9G2
(613)749-9241
1-800-267-9794 (USA only)
------------------------------------------------------------------------
This e-mail is private and confidential and is for the addressee only.
If misdirected, please notify us by telephone and confirm that it has
been deleted from your system and any hard copies destroyed. You are
strictly prohibited from using, printing, distributing or disseminating
it or any information contained in it save to the intended recipient.
next prev parent reply other threads:[~2006-06-09 20:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 19:53 help with inittab Scott Coulter
2006-06-09 20:43 ` Chris Dumoulin [this message]
[not found] <mailman.9.1150164003.18626.linuxppc-embedded@ozlabs.org>
2006-06-13 16:26 ` Anantharaman Chetan-W16155
2006-06-13 21:07 ` David H. Lynch Jr.
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 19:19 Scott Coulter
2006-06-09 19:49 ` Chris Dumoulin
2006-06-12 2:02 ` David H. Lynch Jr.
2006-06-08 20:41 Chris Dumoulin
2006-06-08 20:49 ` Steve Iribarne (GMail)
2006-06-08 21:42 ` Wolfgang Denk
2006-06-09 16:14 ` Chris Dumoulin
2006-06-09 18:23 ` Steve Iribarne (GMail)
2006-06-09 19:14 ` Chris Dumoulin
2006-06-09 20:24 ` Steve Iribarne (GMail)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4489DD69.4020107@ics-ltd.com \
--to=cdumoulin@ics-ltd.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=scott.coulter@cyclone.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).