* help with inittab
@ 2006-06-08 20:41 Chris Dumoulin
2006-06-08 20:49 ` Steve Iribarne (GMail)
2006-06-08 21:42 ` Wolfgang Denk
0 siblings, 2 replies; 16+ messages in thread
From: Chris Dumoulin @ 2006-06-08 20:41 UTC (permalink / raw)
To: linuxppc-embedded
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.
I'm guessing that my problems are related to the setup of the RFS, and
more specifically, my inittab file. Here is the output I get at boot time:
Linux version 2.6.15 (cdumoulin@localhost.localdomain) (gcc version
4.0.0 (DENX ELDK 4.0 4.0.0)) #167 PREEMPT Thu Jun 8 6Built 1 zonelists
Kernel command line: console=ttyS0,57600 ip=off
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 62120k available (968k kernel code, 272k data, 76k init, 0k highmem)
Mount-cache hash table entries: 512
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 1404k freed
Linux NoNET1.0 for Linux 2.6
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60
sec (nowayout= 0)
ipmi message handler version 38.0
ipmi device interface
IPMI Watchdog: driver initialized
i8042.c: No controller found.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 24) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
mice: PS/2 mouse device common for all mice
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
And here is my initttab file:
::sysinit:/etc/rc.sh
::askfirst:/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
Any ideas would be appreciated.
Cheers,
Chris Dumoulin
--
*--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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-08 20:41 help with inittab Chris Dumoulin
@ 2006-06-08 20:49 ` Steve Iribarne (GMail)
2006-06-08 21:42 ` Wolfgang Denk
1 sibling, 0 replies; 16+ messages in thread
From: Steve Iribarne (GMail) @ 2006-06-08 20:49 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
On 6/8/06, Chris Dumoulin <cdumoulin@ics-ltd.com> 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.
>
> I'm guessing that my problems are related to the setup of the RFS, and
> more specifically, my inittab file. Here is the output I get at boot time:
> Linux version 2.6.15 (cdumoulin@localhost.localdomain) (gcc version
> 4.0.0 (DENX ELDK 4.0 4.0.0)) #167 PREEMPT Thu Jun 8 6Built 1 zonelists
> Kernel command line: console=ttyS0,57600 ip=off
> PID hash table entries: 512 (order: 9, 8192 bytes)
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
> Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Memory: 62120k available (968k kernel code, 272k data, 76k init, 0k highmem)
> Mount-cache hash table entries: 512
> checking if image is initramfs...it isn't (no cpio magic); looks like an
> initrd
> Freeing initrd memory: 1404k freed
> Linux NoNET1.0 for Linux 2.6
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered
> Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60
> sec (nowayout= 0)
> ipmi message handler version 38.0
> ipmi device interface
> IPMI Watchdog: driver initialized
> i8042.c: No controller found.
> Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
> serial8250: ttyS0 at MMIO 0x0 (irq = 24) is a 16550A
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> loop: loaded (max 8 devices)
> mice: PS/2 mouse device common for all mice
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
>
> And here is my initttab file:
> ::sysinit:/etc/rc.sh
> ::askfirst:/bin/sh
> ::ctrlaltdel:/sbin/reboot
> ::shutdown:/sbin/swapoff -a
> ::shutdown:/bin/umount -a -r
> ::restart:/sbin/init
>
Doesn't seem like you are respawning any login stuff? Where are your
tty's? Change the askfirst to /bin/sh and you should get a shell at
the start assuming you have /bin/sh.
> Any ideas would be appreciated.
>
> Cheers,
> Chris Dumoulin
> --
> *--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
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-08 20:41 help with inittab Chris Dumoulin
2006-06-08 20:49 ` Steve Iribarne (GMail)
@ 2006-06-08 21:42 ` Wolfgang Denk
2006-06-09 2:11 ` Help -- failed to boot up kernel on PPC40 5 Denny
2006-06-09 16:14 ` help with inittab Chris Dumoulin
1 sibling, 2 replies; 16+ messages in thread
From: Wolfgang Denk @ 2006-06-08 21:42 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Sometimes a feeling is all we humans have to go on.
-- Kirk, "A Taste of Armageddon", stardate 3193.9
^ permalink raw reply [flat|nested] 16+ messages in thread
* Help -- failed to boot up kernel on PPC40 5
2006-06-08 21:42 ` Wolfgang Denk
@ 2006-06-09 2:11 ` Denny
2006-06-09 7:40 ` Wolfgang Denk
2006-06-09 16:14 ` help with inittab Chris Dumoulin
1 sibling, 1 reply; 16+ messages in thread
From: Denny @ 2006-06-09 2:11 UTC (permalink / raw)
To: wolfgang denk; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2640 bytes --]
Dear Denk,
I use the linux 2.6.14 of your website, and compile it with the ELDK4.0 succesfully, but when I download it to my PPC405 board, it stopped after initialized the MMU, and encounter an exception in "_start_here".
Logs:
u-boot => tftpboot 0x6000000 uImage
miiphy_register: non unique device name 'ppc_4xx_eth0'
ENET Speed is 100 Mbps - FULL duplex connection
TFTP from server 192.168.65.235; our IP address is 192.168.65.239
Filename 'uImage'.
Load address: 0x6000000
Loading: #################################################################
#####################################
done
Bytes transferred = 521637 (7f5a5 hex)
u-boot => bootm 0x6000000
## Booting image at 0x06000000 ...
Image Name: Linux-2.6.14
Created: 2006-06-09 1:00:37 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 521573 Bytes = 509.3 kB
Load Address: 0x00100000
Entry Point: 0x00100000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Now starting to boot the kernel...
## Current stack ends at 0x07F81A90 => set upper limit to 0x00800000
## cmdline at 0x007FFF00 ... 0x007FFF00
memstart = 0x00000000
memsize = 0x08000000
flashstart = 0xFFFA0000
flashsize = 0x01080000
flashoffset = 0x00029300
sramstart = 0x00000000
sramsize = 0x00000000
bootflags = 0x0000A000
procfreq = 200 MHz
plb_busfreq = 100 MHz
pci_busfreq = 33.333 MHz
ethaddr = 00:01:02:54:12:47
IP addr = 192.168.65.239
baudrate = 9600 bps
Ramdisk image not found, no initrd!
## Transferring control to Linux (at address 0x00100000) ...
booting kernel with FLAT_TREE...
NIP: C000221C XER: 20000000 LR: 00100018 REGS: 07f819a0 TRAP: 0700 DAR: 07FC31D0
MSR: 00021030 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
GPR00: C0002218 07F81A90 00000000 C00003C0 C0000000 00000000 007FFF00 007FFF00
GPR08: 07FAB560 0BEBC200 00000000 00000000 20BDE736 00000000 07FD0D00 007FFF00
GPR16: 00100000 07FCF70C FFFFFFFF 00000000 00800000 007FFF00 07FCAE20 00000002
GPR24: 07F81B50 007FFE70 00780000 007FFF00 007FFF00 00000000 00000000 007FFE70
** Illegal Instruction **
Call backtrace:
Program Check Exception
U-Boot 1.1.4 (Jun 9 2006 - 09:36:28)
...
...
My objdump file is as the following:
...
c0002208: 7c 00 04 ac sync
c000220c: 4c 00 00 64 rfi
c0002210: 48 00 00 00 b c0002210 <finish_tlb_load+0x48>
c0002214 <giveup_fpu>:
c0002214: 4e 80 00 20 blr
c0002218 <start_here>:
c0002218: 3c 40 c0 0f lis r2,-16369
c000221c: 60 42 17 60 ori r2,r2,5984
c0002220: 3c 82 40 00 addis r4,r2,16384
c0002224: 38 84 01 c8 addi r4,r4,456
...
Best Regards!
- Denny
[-- Attachment #2: Type: text/html, Size: 4128 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Help -- failed to boot up kernel on PPC40 5
2006-06-09 2:11 ` Help -- failed to boot up kernel on PPC40 5 Denny
@ 2006-06-09 7:40 ` Wolfgang Denk
0 siblings, 0 replies; 16+ messages in thread
From: Wolfgang Denk @ 2006-06-09 7:40 UTC (permalink / raw)
To: Denny; +Cc: linuxppc-embedded
In message <4488D8D1.00003F.15159@bj163app14.163.com> you wrote:
>
> I use the linux 2.6.14 of your website, and compile it with the ELDK4.0 succesfully, but when I download it to my PPC405 board, it stopped after initialized the MMU, and encounter an exception in "_start_here".
Is this a standard AMCC eval board, or a custom board? Which one?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Those who hate and fight must stop themselves -- otherwise it is not
stopped.
-- Spock, "Day of the Dove", stardate unknown
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-08 21:42 ` Wolfgang Denk
2006-06-09 2:11 ` Help -- failed to boot up kernel on PPC40 5 Denny
@ 2006-06-09 16:14 ` Chris Dumoulin
2006-06-09 18:23 ` Steve Iribarne (GMail)
1 sibling, 1 reply; 16+ messages in thread
From: Chris Dumoulin @ 2006-06-09 16:14 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
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");
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 16:14 ` help with inittab Chris Dumoulin
@ 2006-06-09 18:23 ` Steve Iribarne (GMail)
2006-06-09 19:14 ` Chris Dumoulin
0 siblings, 1 reply; 16+ messages in thread
From: Steve Iribarne (GMail) @ 2006-06-09 18:23 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
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
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 18:23 ` Steve Iribarne (GMail)
@ 2006-06-09 19:14 ` Chris Dumoulin
2006-06-09 20:24 ` Steve Iribarne (GMail)
0 siblings, 1 reply; 16+ messages in thread
From: Chris Dumoulin @ 2006-06-09 19:14 UTC (permalink / raw)
To: Steve Iribarne (GMail); +Cc: linuxppc-embedded
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: help with inittab
@ 2006-06-09 19:19 Scott Coulter
2006-06-09 19:49 ` Chris Dumoulin
2006-06-12 2:02 ` David H. Lynch Jr.
0 siblings, 2 replies; 16+ messages in thread
From: Scott Coulter @ 2006-06-09 19:19 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
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
=20
Cyclone Microsystems =20
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=3Dcyclone.com@ozlabs.org
[mailto:linuxppc-embedded-bounces+scott.coulter=3Dcyclone.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=20
during the kernel boot process, I think it's safe to say that my=20
/dev/ttyS0 is properly configured. Besides passing the kernel argument=20
console=3DttyS0,57600, is there anything else I need to do to properly=20
configure the console? I've looked through my kernel configuration to=20
make sure that any serial device or console related stuff was enabled=20
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=3DttyS0,57600n8 ip=3Doff root=3D/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=3D
>> >arguments on the command line? Is the corresponding device
entry
>> >present in the /dev/directory?
>> >
>> >Best regards,
>> >
>> >Wolfgang Denk
>> >
>> >
>> >
>>
>> --=20
>> *--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
>>
>
--=20
*--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.=20
If misdirected, please notify us by telephone and confirm that it has=20
been deleted from your system and any hard copies destroyed. You are=20
strictly prohibited from using, printing, distributing or disseminating=20
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 19:19 Scott Coulter
@ 2006-06-09 19:49 ` Chris Dumoulin
2006-06-12 2:02 ` David H. Lynch Jr.
1 sibling, 0 replies; 16+ messages in thread
From: Chris Dumoulin @ 2006-06-09 19:49 UTC (permalink / raw)
To: Scott Coulter; +Cc: linuxppc-embedded
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: help with inittab
@ 2006-06-09 19:53 Scott Coulter
2006-06-09 20:43 ` Chris Dumoulin
0 siblings, 1 reply; 16+ messages in thread
From: Scott Coulter @ 2006-06-09 19:53 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
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
=20
Cyclone Microsystems =20
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]=20
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=20
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
> =20
> Cyclone Microsystems =20
> 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=3Dcyclone.com@ozlabs.org
>[mailto:linuxppc-embedded-bounces+scott.coulter=3Dcyclone.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=20
>during the kernel boot process, I think it's safe to say that my=20
>/dev/ttyS0 is properly configured. Besides passing the kernel argument=20
>console=3DttyS0,57600, is there anything else I need to do to properly=20
>configure the console? I've looked through my kernel configuration to=20
>make sure that any serial device or console related stuff was enabled=20
>and configured.
>
>I'm feeling pretty stumped.
>
>- Chris
>
>Steve Iribarne (GMail) wrote:
>
> =20
>
>>On 6/9/06, Chris Dumoulin <cdumoulin@ics-ltd.com> wrote:
>>
>> =20
>>
>>>I've now determined that my kernel seems to stop in the following
>>> =20
>>>
>line
> =20
>
>>>of code, in the function init(void * unused), in init/main.c:
>>>run_init_process("/sbin/init");
>>> =20
>>>
>>Who's init are you using??
>>
>>Are you using Busyboxes or sysinit from GNU?
>>
>>
>> =20
>>
>>>I've determined that it stops at this call by stepping through the
>>> =20
>>>
>code
> =20
>
>>>with a BDI2000.
>>>
>>>My boot arguments are:
>>>console=3DttyS0,57600n8 ip=3Doff root=3D/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
>>> =20
>>>
>see
> =20
>
>>>if I'll get some error message, but I still see nothing. Is it
>>> =20
>>>
>possible
> =20
>
>>>that /sbin/init is dying before it gets to the point of reading
>>> =20
>>>
>inittab?
> =20
>
>>>Any ideas?
>>>
>>>Regards,
>>>Chris Dumoulin
>>>
>>>
>>>Wolfgang Denk wrote:
>>>
>>> =20
>>>
>>>>In message <44888B92.40409@ics-ltd.com> you wrote:
>>>>
>>>>
>>>> =20
>>>>
>>>>>I am using the linux kernel 2.6.15 and initrd ramdisk image from
>>>>> =20
>>>>>
>ELDK
> =20
>
>>>>>4.0. Currently, I seem to be able to boot without errors, but after
>>>>> =20
>>>>>
>
> =20
>
>>>the
>>> =20
>>>
>>>>>root filesystem is mounted, things just stop.
>>>>>
>>>>>
>>>>> =20
>>>>>
>>>>And what's your console device? Are you passing any
>>>> =20
>>>>
>console=3D
> =20
>
>>>>arguments on the command line? Is the corresponding device
>>>> =20
>>>>
>entry
> =20
>
>>>>present in the /dev/directory?
>>>>
>>>>Best regards,
>>>>
>>>>Wolfgang Denk
>>>>
>>>>
>>>>
>>>> =20
>>>>
>>>--=20
>>>*--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)
>>>
>>>
>>> =20
>>>
>-----------------------------------------------------------------------
-
> =20
>
>>>This e-mail is private and confidential and is for the addressee
>>> =20
>>>
>only.
> =20
>
>>>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
>>> =20
>>>
>disseminating
> =20
>
>>>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
>>>
>>> =20
>>>
>
>
> =20
>
--=20
*--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.=20
If misdirected, please notify us by telephone and confirm that it has=20
been deleted from your system and any hard copies destroyed. You are=20
strictly prohibited from using, printing, distributing or disseminating=20
it or any information contained in it save to the intended recipient.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 19:14 ` Chris Dumoulin
@ 2006-06-09 20:24 ` Steve Iribarne (GMail)
0 siblings, 0 replies; 16+ messages in thread
From: Steve Iribarne (GMail) @ 2006-06-09 20:24 UTC (permalink / raw)
To: Chris Dumoulin; +Cc: linuxppc-embedded
On 6/9/06, Chris Dumoulin <cdumoulin@ics-ltd.com> wrote:
> 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.
>
Ok.. so if you are using the init from Busybox, there should be a
softlink and I can't remember where they put it. I think it is the
root file system. I think they call in linuxrc or something like
that. I'd make sure you have that.
**OR** what I did..
Get sysinit from GNU and tell Busybox not to use the init. I've had
this exact same problem and it was my init.
-stv
> - 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.
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 19:53 Scott Coulter
@ 2006-06-09 20:43 ` Chris Dumoulin
0 siblings, 0 replies; 16+ messages in thread
From: Chris Dumoulin @ 2006-06-09 20:43 UTC (permalink / raw)
To: Scott Coulter; +Cc: linuxppc-embedded
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-09 19:19 Scott Coulter
2006-06-09 19:49 ` Chris Dumoulin
@ 2006-06-12 2:02 ` David H. Lynch Jr.
1 sibling, 0 replies; 16+ messages in thread
From: David H. Lynch Jr. @ 2006-06-12 2:02 UTC (permalink / raw)
Cc: Chris Dumoulin, linuxppc-embedded
For debugging or single user purposes you do not need to run init or
have an inittab.
There have been several sugestions that there may be a hardware
problem - there are a number that are possible.
I was stalled here for some time because my UartDriver was
accidentally using the physical IO address instead of the virtual one
and I had created a temporary phys=virtual entry in the tbl that was
conveniently getting blow away just here.
You can try to isolate your problem by changing your boot ramdisk
(inramfs or initrd)
Eliminate or rename /init /sbin/init /linuxrc and any of the other
permutations that linux tries to execute in init/main.c they are all
listed very near where you stopped.
make sure you have /bin/sh
reboot on that ramdisk if you have an "init" related problem then
you should get a standalone shell.
If you have a hardware problem you will likely still stop at the
same place.
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
[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.
0 siblings, 1 reply; 16+ messages in thread
From: Anantharaman Chetan-W16155 @ 2006-06-13 16:26 UTC (permalink / raw)
To: dhlii; +Cc: linuxppc-embedded
I've tried what you've mentioned below, i.e removing the /sbin/init and
just having the /bin/sh in the init/main.c file and I don't get a
standalone shell. I am having a Linux 2.4 Kernel (Montavista 3.1)
running on a PPC405 in a Xilinx Virtex4 FX100 FPGA.
You mentioned it could be a hardware problem. Are there any errata which
could explain the h/w bug?=20
Thanks,
Chetan Anantharaman
----------------------------------------------------------------------
Message: 1
Date: Sun, 11 Jun 2006 22:02:02 -0400
From: "David H. Lynch Jr." <dhlii@dlasys.net>
Subject: Re: help with inittab
Cc: Chris Dumoulin <cdumoulin@ics-ltd.com>,
linuxppc-embedded@ozlabs.org
Message-ID: <448CCB1A.409@dlasys.net>
Content-Type: text/plain; charset=3DISO-8859-1
=20
For debugging or single user purposes you do not need to run init or
have an inittab.
There have been several sugestions that there may be a hardware
problem - there are a number that are possible.
I was stalled here for some time because my UartDriver was
accidentally using the physical IO address instead of the virtual one
and I had created a temporary phys=3Dvirtual entry in the tbl that =
was
conveniently getting blow away just here.
You can try to isolate your problem by changing your boot ramdisk
(inramfs or initrd)
Eliminate or rename /init /sbin/init /linuxrc and any of the other
permutations that linux tries to execute in init/main.c they are all
listed very near where you stopped.
make sure you have /bin/sh
reboot on that ramdisk if you have an "init" related problem then
you should get a standalone shell.
If you have a hardware problem you will likely still stop at the
same place.
=20
--=20
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too
numerous to list.
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction."
Albert Einstein
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: help with inittab
2006-06-13 16:26 ` Anantharaman Chetan-W16155
@ 2006-06-13 21:07 ` David H. Lynch Jr.
0 siblings, 0 replies; 16+ messages in thread
From: David H. Lynch Jr. @ 2006-06-13 21:07 UTC (permalink / raw)
To: Anantharaman Chetan-W16155; +Cc: linuxppc-embedded
My specific problem turned out to be that the serial driver I had
written was still using the physical IO address that I had temporarily
mapped (virtual=physical) during very early boot, and when that
temporary mapping went away I instantly became deaf and dump and it just
happend to go away while starting init.
But for a long time I though I had other problems, so things I tried
included:
Writing a simple "hello world" program and running that from
where the kernel starts init.
I think where the kernel starts init is the first place that
Linux actually starts making use of virtual memory.
I beleive that the way the kernel loads a program involves actually
forcing pagefaults, so alot of things can work, but if paging is not
working perfectly
you will not be able to start another process.
Another thing you should watch out for is that there are two
places Linux looks to start an "init" process.
The first uses whatever might be specified as a commandline
argument (or in your .config, or hardcoded in some BSP's)
If that fails then it starts through a list of potential init
processes until one starts.
I recently had a problem where I wanted to start "/bin/sh" as my
init so I commented out everything else, but left the command line
argument option in and still did not get /bin/sh because it was picking
up the argument from elsewhere.
Anantharaman Chetan-W16155 wrote:
> I've tried what you've mentioned below, i.e removing the /sbin/init and
> just having the /bin/sh in the init/main.c file and I don't get a
> standalone shell. I am having a Linux 2.4 Kernel (Montavista 3.1)
> running on a PPC405 in a Xilinx Virtex4 FX100 FPGA.
>
> You mentioned it could be a hardware problem. Are there any errata which
> could explain the h/w bug?
>
>
> Thanks,
> Chetan Anantharaman
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 11 Jun 2006 22:02:02 -0400
> From: "David H. Lynch Jr." <dhlii@dlasys.net>
> Subject: Re: help with inittab
> Cc: Chris Dumoulin <cdumoulin@ics-ltd.com>,
> linuxppc-embedded@ozlabs.org
> Message-ID: <448CCB1A.409@dlasys.net>
> Content-Type: text/plain; charset=ISO-8859-1
>
>
> For debugging or single user purposes you do not need to run init or
> have an inittab.
> There have been several sugestions that there may be a hardware
> problem - there are a number that are possible.
>
> I was stalled here for some time because my UartDriver was
> accidentally using the physical IO address instead of the virtual one
> and I had created a temporary phys=virtual entry in the tbl that was
> conveniently getting blow away just here.
>
> You can try to isolate your problem by changing your boot ramdisk
> (inramfs or initrd)
>
> Eliminate or rename /init /sbin/init /linuxrc and any of the other
> permutations that linux tries to execute in init/main.c they are all
> listed very near where you stopped.
> make sure you have /bin/sh
>
> reboot on that ramdisk if you have an "init" related problem then
> you should get a standalone shell.
> If you have a hardware problem you will likely still stop at the
> same place.
>
>
>
>
>
>
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2006-06-13 21:12 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 20:41 help with inittab Chris Dumoulin
2006-06-08 20:49 ` Steve Iribarne (GMail)
2006-06-08 21:42 ` Wolfgang Denk
2006-06-09 2:11 ` Help -- failed to boot up kernel on PPC40 5 Denny
2006-06-09 7:40 ` Wolfgang Denk
2006-06-09 16:14 ` help with inittab 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)
-- 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-09 19:53 Scott Coulter
2006-06-09 20:43 ` Chris Dumoulin
[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.
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).