All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Sebastien Articlaux <sebastien_articlaux@yahoo.com>
Cc: Wolfgang Denk <wd@denx.de>, linuxppc-embedded@lists.linuxppc.org
Subject: Re: Hi!
Date: Tue, 14 Mar 2000 22:05:58 +0100	[thread overview]
Message-ID: <200003142105.WAA18574@denx.local.net> (raw)
In-Reply-To: Your message of "Tue, 14 Mar 2000 06:19:13 PST." <20000314141913.16859.qmail@web219.mail.yahoo.com>


Dear Sébastien,

in message <20000314141913.16859.qmail@web219.mail.yahoo.com> you wrote:
>
> Normally there is two ramdisk, the init ramdisk and an
> other,bigger wich contain the complete system.
> and this is linuxrc in the initramdisk wich mount the
> real ramdisk, right?

No. Ususally you have only one ramdisk, if any.


If you have a "normal" bootdevice (like harddisk, or the  network  in
case of a NFS-mounted root filesystem) there is little need to have a
initrd  -  except to perform actions necessary to be performed before
you can access the root device. Probing the hardware and loading  the
modules  which  necessary  to  access  the  device  on whith the root
filesystem is the typical example when you want to run one  of  these
initrd  configurations.  The  "initrc" script is the place whwere you
can put such actions.

The other case is when you don't have  a  regular  boot  device,  for
instance  in  an  embedded  system with normal FLASH memory ("normal"
means that from the system point of view it's just a ROM device  with
a  linear  layout  -  as ooposed to something simulating a disk drive
like the DiskOnChip  systems  and  others  do).  Here  you  have  two
options:  you can implement a ROMFS driver for your flash memory, and
write a boot loader that boots from the ROMFS. Or  you  can  write  a
boot  loader  that  loads just one "image" and starts it; the "image"
would contain a (compressed) Linux kernel,  and  a  (compressed)  ram
disk  image.  The  boot  loader  will  uncompress and start the Linux
kernel, and the Linux kernel will detect and uncompress the initrd  -
and mount it as it's root filesystem. You can imagine that the second
approach  is  usually  much  simpler,  especially  since many systems
already have some type of boot loader to load and start an "image".

That's why the second method is often used in embedded  systems:  you
just  p[ack  everything  you  need  in  your root filesystem into one
ramdisk image, and  mount  this  as  initrd.  You  will  never  mount
another, "real" root filesystem in this case.

> But for us,we just use the initramdisk "as ramdisk"...
> It's a minimal file system but to begin it's ok,
> right?

Minimal in the sense that it has to fit into your local FLASH memory.
But of course it will have to contain all you  application  code  and
ata  files you need for normal system operation. [Or you will have to
mount anther "data storage" device once you're up and running.]

> So now I'm trying to create a good initramdisk.
> I've put the patch for SASH in source, but I must have
> to recompile SASH (that's what I understand when I
> look into your CDK files)

If you want to use SASH you  will  need  a  binary,  right.  SASH  is
probably  a good start to get things working. Later, you might decide
to directly start your application code without any  shell  or  other
Linux tools available any more in your ramdisk image.

> Where can I found the source of SASH if I must
> recompile it?

I just took the source (sash-2.1-4.src.rpm) from one of  the  generic
LinuxPPC  releases  (LinuxPPC  1999 Q3 in my case). Just use a search
engine...

You're in France, so one of the following might be near you:
ftp://ftp.medasys-digital-systems.fr/pub0/linux/parisc/src/sash-2.1-hpux.tar.gz

ftp://ftp.lip6.fr/pub2/linux/distributions/debian/dists/slink/main/source/shells/sash_2.1.orig.tar.gz
ftp://ftp.pasteur.fr/pub/computing/linux/debian/dists/slink/main/source/shells/sash_2.1.orig.tar.gz
ftp://ftp.ath.cena.fr/debian/dists/slink/main/source/shells/sash_2.1.orig.tar.gz
ftp://ftp.fdn.fr/.pub2/debian/dists/slink/main/source/shells/sash_2.1.orig.tar.gz
ftp://ftp.u-picardie.fr/mirror/linux/debian/dists/slink/main/source/shells/sash_2.1.orig.tar.gz

> Then do I must put it in /bin/sash in my initrd and
> make a link?
> ln -s sash sh  to have /bin/sh -> sash  ?

...or you can rename SASH iinto /bin/sh, or configure the  kernel  to
start /bin/sash - whatever you like.

> And need I have to create a linuxrc if I have just the
> initrd? if yes, what must I put in it because I don't
> understand.

You don't need a linuxrc script.


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Perfection is reached, not when there is no longer anything  to  add,
but when there is no longer anything to take away.
                                           - Antoine de Saint-Exupery

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-03-14 21:05 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-14 14:19 Hi! Sebastien Articlaux
2000-03-14 21:05 ` Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-06-16 10:37 Hi! Olga Georgieva
2003-07-14 18:33 Hi! Ferenc Kiraly
2003-07-14 19:29 ` Hi! Dieter Nützel
2004-11-25 13:09 Hi! naroth-qDHaf3XTt0D7Za/I2yyZNw
2005-05-12  7:29 Hi! venkata ramesh
2005-06-05  8:27 Hi!! Alberto Rossi
2005-06-05 12:13 Hi!! Alberto Rossi
2005-06-11 17:00 Hi! Billie Joe
2005-06-11 17:16 ` Hi! Tib
2005-06-11 17:56   ` Hi! Sadus .
2005-06-11 18:21     ` Hi! Tib
2005-06-11 18:22     ` Hi! Tib
2005-06-12 23:48       ` Hi! Ian Laurie
2005-06-13  0:26         ` Hi! Tib
2005-06-13  0:55           ` Hi! Ian Laurie
     [not found]           ` <1118623895l.11527l.1l@server.moose.blogdns.org>
2005-06-13  1:09             ` Hi! Tib
2006-03-11 15:27 HI ! Romero Ryan
2006-08-20 17:48 HI! Doug Shultz
2006-08-20 17:48 HI! Doug Shultz
2007-04-07 16:59 Hi, ms joy
2007-04-07 16:59 Hi, ms joy
2007-04-07 17:01 Hi, ms joy
2007-04-07 17:02 Hi, ms joy
2007-06-03 16:21 Hi! Samantha
2007-07-09 10:12 Hi! Sandy Rojas
2007-07-12 22:08 Hi! Jaime Stinson
2007-07-29 22:30 Hi! Kenya Vasquez
2008-05-27 22:08 Hi ! Miss. Joysin Plany
2008-08-20  8:43 Hi! Eric Anopolsky
2008-08-20 18:25 ` Hi! Chris Mason
2008-08-21 10:47   ` Hi! Miguel Sousa Filipe
2008-08-24  7:02     ` Hi! Steve Long
2008-08-25 21:56       ` Hi! Miguel Sousa Filipe
2009-08-11  8:28 hi, Bill Xie
2009-08-25  7:14 hi, Bill Xie
2009-10-14 20:36 Hi! Justin Yaple
2010-06-02 19:12 [RFC][PATCH 21/26] alsa: ASoC: Add JZ4740 ASoC support Lars-Peter Clausen
2010-06-03 12:48 ` Liam Girdwood
2010-06-03 16:50   ` Lars-Peter Clausen
2010-06-03 17:03     ` Liam Girdwood
2010-06-03 17:16       ` Lars-Peter Clausen
2010-06-03 17:25         ` Liam Girdwood
2010-06-03 18:14           ` Troy Kisky
2010-11-14 13:29             ` hi!!!! dkisky
2010-07-11  8:22 Hi! Мария Сергеева
2012-03-12 12:44 Hi, horia.geanta
     [not found] <20120329170349.Horde.RdBMRSoH6vhPdIflPy3mByA@correio.portugalmail.pt>
     [not found] ` <CACeyogdBUoK-34Rxm_fzbw5OV75u8CiBSfzU=z5UUzv_RBvRQw@mail.gmail.com>
2012-03-31  6:04   ` hi, Kevin
2012-03-31  9:20     ` hi, Andreas Ericsson
2012-05-25 14:52 hi! Klokov Alexey
2012-12-06 17:18 Hi! Marketing Commucation
2014-10-13  9:39 Hi, ann ben
2015-11-20 14:52 Hi , Stephane Hamelet
2015-11-20 14:52 ` Stephane Hamelet
2018-08-12 18:13 hi! audriafb-8Cmw1+NI3eNeoWH0uzbU5w
2018-09-04 20:53 hi! otre-8Cmw1+NI3eNeoWH0uzbU5w
2018-09-06  9:40 hi! zleachae-8Cmw1+NI3eNeoWH0uzbU5w
2020-10-30 15:49 Hi; gabrielthomas9010
2022-10-20 16:54 Hi ????????????????????????????????? mike williams

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=200003142105.WAA18574@denx.local.net \
    --to=wd@denx.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=sebastien_articlaux@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.