linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: linuxppc-dev@lists.linuxppc.org
Subject: Re: init does not run on 405GP system
Date: Tue, 10 Jun 2003 20:00:32 +0200	[thread overview]
Message-ID: <20030610180031.GX9379@pengutronix.de> (raw)
In-Reply-To: <20030610165256.F21EDC5FD7@atlas.denx.de>

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

On Tue, Jun 10, 2003 at 06:52:51PM +0200, Wolfgang Denk wrote:
> Show us your "hello_world" code. Does it actually open "/dev/console" ?

Attached - source + compiled binary (this one is dynamically linked).
Could you verify that this hello world works with your hardware when
copied to /sbin/init? I would assume it prints out the text and then the
kernel panics because of the return.

> > do not see the sys_write() syscall being called at all. Btw, init on my
> > other rootfs is busybox init. I suppose I should always see someting
> > useful when init is starting.
>
> Why do you assume that?

Normally init makes some output, something like

	message(MAYBE_CONSOLE | LOG, "init started:  %s", bb_msg_full_version);

from busybox-init.

Robert
--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

[-- Attachment #2: hello.c --]
[-- Type: text/plain, Size: 145 bytes --]

#include <stdio.h>

int main(void) {

	FILE *f;

	f = fopen("/dev/console","w");
	fprintf(f,"hello penguin world\n");
	fclose(f);

	return 0;

}

[-- Attachment #3: hello --]
[-- Type: application/octet-stream, Size: 9420 bytes --]

  reply	other threads:[~2003-06-10 18:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-10 14:10 init does not run on 405GP system Robert Schwebel
2003-06-10 14:39 ` Wolfgang Denk
2003-06-10 15:27   ` Robert Schwebel
2003-06-10 15:02 ` Hollis Blanchard
2003-06-10 15:12   ` Robert Schwebel
2003-06-10 16:52     ` Wolfgang Denk
2003-06-10 18:00       ` Robert Schwebel [this message]
2003-06-17  9:26 ` Robert Schwebel
  -- strict thread matches above, loose matches on Subject: below --
2003-06-11  3:21 Bill Fink
2003-06-11  4:53 ` Robert Schwebel
2003-06-11  6:22   ` Bill Fink
2003-06-11  7:11     ` Robert Schwebel
2006-01-12 22:51 Kabir Ahsan-r9aahw
2006-01-13  1:19 ` Wolfgang Denk

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=20030610180031.GX9379@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /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).