linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.muc.de>
To: linuxppc-dev@lists.linuxppc.org
Subject: Re: MBX860: How to boot with initrd ?
Date: Sat, 09 Jan 1999 14:29:20 +0100	[thread overview]
Message-ID: <199901091329.OAA26473@denx.muc.de> (raw)
In-Reply-To: Your message of "Sat, 09 Jan 1999 00:49:17 +0100." <199901082349.AAA13864@denx.muc.de>


F'up to my own message:

In message <199901082349.AAA13864@denx.muc.de> I wrote:
> 
> I'm trying to boot with `initrd' support on a MBX860 system.  I  know
...
> 	Linux/PPC load: console=tty0 console=ttyS0,9600n8
> 	Uncompressing Linux...done.
> 	Now booting the kernel
> 
> Then the system hangs, and I have to reset it.

I guess I should have mentioned that I know that  I  have  to  add  a
"root=/dev/ram"  to  the  command  line  when  booting when using the
generic code. I have modified arch/ppc/boot/misc.c a bit; maybe  this
in of general interest:

--- arch/ppc/boot/misc.c.ORIG	Thu Dec 17 11:39:53 1998
+++ arch/ppc/boot/misc.c	Sat Jan  9 14:05:25 1999
@@ -51,7 +51,15 @@
 char	*cmd_line = cmd_buf;
 
 #if defined(CONFIG_MBX) || defined(CONFIG_FADS)
+#if defined(CONFIG_ROOT_NFS)
 char	*root_string = "root=/dev/nfs";
+#else
+# if defined(CONFIG_BLK_DEV_INITRD)
+char	*root_string = "root=/dev/ram";
+# else
+char	*root_string = "";
+# endif
+#endif
 char	*nfsaddrs_string = "nfsaddrs=";
 char	*nfsroot_string = "nfsroot=";
 char	*defroot_string = "/sys/mbxroot";


And, which makes things even more interesting: there was one kernel
where I was able to boot from the initrd; however, I got some error
messages from the hard disk:

    Linux/PPC load: console=tty0 console=ttyS0,9600n8 root=/dev/ram

    XXX Linux/PPC load: console=tty0 console=ttyS0,9600n8 root=/dev/ram
    Uncompressing Linux...done.
    Now booting the kernel
    Linux version 2.2.0-pre5 (wd@denx.muc.de) (gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)) #3 Sat Jan 9 11:43:50 MET 1999
    Boot arguments: console=tty0 console=ttyS0,9600n8 root=/dev/ram root=/dev/nfs nfsroot=/sys/mbxroot
    time_init: decrementer frequency = 150000000/60
    Calibrating delay loop... 39.63 BogoMIPS
    Memory: 34996k available (592k kernel code, 744k data, 28k init) [c0000000,c2400000]
    POSIX conformance testing by UNIFIX
    PCI: Probing PCI hardware
    Linux NET4.0 for Linux 2.2
    Based upon Swansea University Computer Society NET3.039
    NET4: Unix domain sockets 1.0 for Linux NET4.0.
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP, IGMP
    Starting kswapd v 1.5 
    CPM UART driver version 0.02
    ttyS00 at 0x0280 is a SMC
    ttyS01 at 0x0380 is a SMC
    ttyS02 at 0x0100 is a SCC
    ttyS03 at 0x0200 is a SCC
    pty: 256 Unix98 ptys configured
    RAM disk driver initialized:  16 RAM disks of 4096K size
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: no response (status = 0x80), resetting drive
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: no response (status = 0x80)
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: no response (status = 0xa1), resetting drive
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: no response (status = 0xa1)
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: no response (status = 0xa1), resetting drive
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: no response (status = 0xa1)
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: no response (status = 0x80), resetting drive
    hdc: probing with STATUS(0x80) instead of ALTSTATUS(0x08)
    hdc: no response (status = 0x80)
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: no response (status = 0xa1), resetting drive
    hdg: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdg: no response (status = 0xa1)
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: no response (status = 0xa1), resetting drive
    hdh: probing with STATUS(0x24) instead of ALTSTATUS(0x08)
    hdh: no response (status = 0xa1)
    CPM ENET Version 0.1, 08:00:3e:26:38:4a
    RAMDISK: Compressed image found at block 0
    EXT2-fs warning: checktime reached, running e2fsck is recommended
    VFS: Mounted root (ext2 filesystem).ê

    ### Initial RAM disk starting interactive shell ###
    bash# 

Ok, so I removed the IDE support from  the  configuration  because  I
don't  need  it right now; the kernel did not boot any more. Restored
the old configuration - didn't boot either.

Since then, all kernels hang the same way, and I don't have an idea
what might be wrong..

Wolfgang

-- 
Phone:  (+49)-89-95720-110   Fax: (+49)-89-95720-112   wd@denx.muc.de
Office: (+49)-89-722-27328               Wolfgang.Denk@ICN.Siemens.DE
Harrisberger's Fourth Law of the Lab:
	Experience is directly proportional to the
	amount of equipment ruined.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

  reply	other threads:[~1999-01-09 13:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-08 23:49 MBX860: How to boot with initrd ? Wolfgang Denk
1999-01-09 13:29 ` Wolfgang Denk [this message]
1999-01-09 19:29 ` Cort Dougan
1999-01-10  4:57 ` Dan Malek
1999-01-10 22:46   ` Troy Benjegerdes
     [not found] <Pine.LNX.3.96.990109144040.12262A-100000@persephone.cs.nmt.edu>
1999-01-10  1:53 ` Wolfgang Denk
     [not found] <36986420.3281E1A4@wanadoo.fr>
1999-01-10 22:29 ` Wolfgang Denk
     [not found] <19990111114251.006245@smtp.calvacom.fr>
1999-01-11 21:38 ` 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=199901091329.OAA26473@denx.muc.de \
    --to=wd@denx.muc.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).