Re: Loading initrd over serial line

From: Pavel Machek (pavel@suse.cz)
Date: Thu Aug 10 2000 - 16:36:13 EST


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/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:24 EST