ppcrcd/trunk: TODO conf.dir/usr/lib/ppcrcd/memtest

sparky cvs at pld-linux.org
Fri Mar 3 17:08:39 CET 2006


Author: sparky
Date: Fri Mar  3 17:08:33 2006
New Revision: 7080

Modified:
   ppcrcd/trunk/TODO
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/memtest
Log:
- memtest needs rework


Modified: ppcrcd/trunk/TODO
==============================================================================
--- ppcrcd/trunk/TODO	(original)
+++ ppcrcd/trunk/TODO	Fri Mar  3 17:08:33 2006
@@ -8,19 +8,18 @@
 
 * init scripts:
 	- need check
-	- opts: swap=, noswap - to be added
 	- nonvram - need check
 	- md / lvm disks autodetect
 	- check what udev can do for me
+	- memtest requires rewriting
 
 * pkgs:
 	- diskdruid	- where can I find it ?
 	- mkfs.jffs2
 	- arj		- messes in binary file without using ELF utils
-	- john		- test fails
+	- john		- test hungs
 	- acx100
 	- hfsplusutils  - broken ?
-	- uudeview	- what is transfig for ?
 	- grub2
 
 * fix:

Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/memtest
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/memtest	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/memtest	Fri Mar  3 17:08:33 2006
@@ -11,7 +11,8 @@
 /sbin/blockdev --flushbufs /dev/ram0
 
 for MOD in $(cat /proc/cmdline | tr "[:blank:]" "\n" | egrep "^(module|modpre)=" | \
-	sed "s/^module=//" | tr "," " "); do
+	sed "s/^[a-z]*=//" | tr "," " "); do
+	echo "Loading module: $MOD"
 	modprobe $MOD
 done
 
@@ -21,15 +22,15 @@
 free
 
 AMOUNT=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
-let $((AMOUNT-=4000))
+let $((AMOUNT-=16000))
 
 echo "*** Starting memtest"
-echo "* at start it will fail few (many) times"
+echo "* it may fail few (many) times"
 echo "* Trying $AMOUNT kilobytes"
 sleep 5
 
 while ! memtest ${AMOUNT}K; do
-	let $((AMOUNT-=500))
+	let $((AMOUNT-=1000))
 	[ $AMOUNT -le 0 ] && break
 	echo "* Trying $AMOUNT kilobytes"
 	sleep 1


More information about the pld-cvs-commit mailing list