lkml.org 
[lkml]   [2000]   [Aug]   [11]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 10 Aug 2000 23:36:13 +0200
FromPavel Machek <>
SubjectRe: Loading initrd over serial line
Hi!

> >  This patch should load initrd over serial line. On r38xx it works for
> > me, but kernel crashes after that and I do not know who to blame. It
> > needs some ifdefs and it needs making some functions public...
> 
> > You'll need program that looks for 'X' and sends block of data to use
> > this.
> 
> Cute, if somewhat sick.
> 
> It'd be far nicer to use ramfs, though. What I'd like to do is compile a
> statically-linked combination of tar(1) and rz(1), which will untar the
> tarball it receives into a fresh ramfs.
> 
> Q: If you don't have initrd, where do you put this binary? 
> 
> A: In the kernel. Provide it with a set of pages which are to be put into 
> the user-space side of process #1, rather then exec'ing /sbin/init.

Actually, on MIPS r39xx initrd is linked to kernel, so I'd simply put
tar+rz into initrd which is linked to kernel. I thought about that
solution, and it would probably would work, but tar+rz can be pretty
big, and I was trying to minimize size. (Everything needs to be
uploaded over serial line -> size==speed).
								Pavel


-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [from the cache]
©2003-2008