I just did a build of OZ the other night:
Linux collie 2.4.18-rmk7-pxa3-embedix #1 Tue, 14 Jun 2005 03:05:30 +0000 armv4l unknown
And when I do a cat /proc/partitions I get:
major minor #blocks name
60 0 999424 mmcda
60 1 999392 mmcda1
60 0 999424 mmcda
60 1 999392 mmcda1
60 0 999424 mmcda
.....
Into infinity... this is a kernel bug...
I'm not a kernel developer so I hacked a fix into the /etc/sdcontrol script instead....
At line 104 of /etc/sdcontrol edit as follows:
# Read available partitions from /proc/partitions.
PROC_PARTITIONS=`cat /proc/partitions | head -$(expr $(cat /proc/partitions | head -10 | grep -n " 0 " | head -2 | tail -1 | cut -d: -f1) - 1)`
# OK_PARTS="`cat /proc/partitions |awk '{print $4}'| grep mmcd`"
OK_PARTS="`echo $PROC_PARTITIONS |awk '{print $4}'| grep mmcd`"
echo $PROC_PARTITIONS |awk '{print $4}'| grep mmcd > "$LOGFILE-part"
Cheers,
-G