linux-mips
[Top] [All Lists]

how to reused the initrd ram?

To: linux-mips <linux-mips@linux-mips.org>
Subject: how to reused the initrd ram?
From: zhuzhenhua <zzh.hust@gmail.com>
Date: Sun, 4 Jun 2006 14:05:54 +0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HqQ6d2BleEleT8Ukz/90dNRwcOSXSWCPrwUCEtlOnTx53x5u1HWUsJW+6Ns5BCgft3nikr+fpDn7umbVRJxYeHzmSZKDzX3lLpR4xMCY6j+8tCuE1UOgdEWLB5BTOcfCAy7Kxbbb0jEDwVgsubPNo7QXLL0Etyd1JBJhIJVql8w=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
my board has 64M sdram, when i boot nfs root, it show Mem total about 62M
and if i boot initrd and then switch to nfs root, it show mem total
about 54M,and freeramdisk does nothing to it.

my kernel commandline is
root=/dev/nfs init=/linuxrc rd_start=0x80a00000 rd_size=0x260000
ramdisk_size=8192 ip=bootp

and in my initrd, the linuxrc is
#!/bin/nash
mount -t proc /proc /proc
echo Mounting root filesystem
mount -o nolock,rsize=1024,wsize=1024 --ro -t nfs
10.10.10.2:/root/nfsroot/rootfs /sysroot
pivot_root /sysroot /sysroot/initrd
umount /initrd/proc

and in my nfs root, i type
$umount initrd
$freeramdisk /dev/ram0

it only flushed bufferd mem, and do nothing to the mem total.
i wonder how to reused the initrd mem?

BTW, if i change the kernel comandline to root=/dev/ram0 ...
it will show messages as
"Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel"


Thanks for any hints
Best Regards

zhuzhenhua

<Prev in Thread] Current Thread [Next in Thread>
  • how to reused the initrd ram?, zhuzhenhua <=