[Top] [All Lists]

how to reused the initrd ram?

To: linux-mips <>
Subject: how to reused the initrd ram?
From: zhuzhenhua <>
Date: Sun, 4 Jun 2006 14:05:54 +0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta;; 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;
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
mount -t proc /proc /proc
echo Mounting root filesystem
mount -o nolock,rsize=1024,wsize=1024 --ro -t nfs /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


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