From 63a271200ea50f4878e4549ee489c7a38fa27231 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 8 Feb 2007 13:51:35 +0000 Subject: [PATCH] Make /dev/c1* device nodes on disk and on the boot ramdisk. . include c1* nodes in std in MAKEDEV . this requires a slightly larger shell . this requires a larger blocksize on the boot ramdisk (to fit /dev/ in direct blocks for mkfs with a proto file) . also more inodes and kB's on the boot ramdisk --- commands/ash/Makefile | 2 +- commands/scripts/MAKEDEV.sh | 10 +++++++--- drivers/memory/ramdisk/Makefile | 2 +- drivers/memory/ramdisk/proto | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/commands/ash/Makefile b/commands/ash/Makefile index b444ace2f..c0c505886 100755 --- a/commands/ash/Makefile +++ b/commands/ash/Makefile @@ -50,7 +50,7 @@ all: sh sh: $(OBJS) $(CC) $(CFLAGS) -fnone -o sh $(OBJS) $(LIBS) - install -S 100k sh + install -S 116k sh install: /usr/bin/ash /usr/bin/sh /bin/sh /bin/bigsh diff --git a/commands/scripts/MAKEDEV.sh b/commands/scripts/MAKEDEV.sh index efc547298..2a2677ac7 100755 --- a/commands/scripts/MAKEDEV.sh +++ b/commands/scripts/MAKEDEV.sh @@ -14,6 +14,10 @@ case $#:$1 in c0d2 c0d2p0 c0d2p0s0 c0d3 c0d3p0 c0d3p0s0 \ c0d4 c0d4p0 c0d4p0s0 c0d5 c0d5p0 c0d5p0s0 \ c0d6 c0d6p0 c0d6p0s0 c0d7 c0d7p0 c0d7p0s0 \ + c1d0 c1d0p0 c1d0p0s0 c1d1 c1d1p0 c1d1p0s0 \ + c1d2 c1d2p0 c1d2p0s0 c1d3 c1d3p0 c1d3p0s0 \ + c1d4 c1d4p0 c1d4p0s0 c1d5 c1d5p0 c1d5p0s0 \ + c1d6 c1d6p0 c1d6p0s0 c1d7 c1d7p0 c1d7p0s0 \ tty ttyc1 ttyc2 ttyc3 tty00 tty01 tty02 tty03 \ ttyp0 ttyp1 ttyp2 ttyp3 ttyp4 ttyp5 ttyp6 ttyp7 ttyp8 ttyp9 \ ttypa ttypb ttypc ttypd ttype ttypf \ @@ -132,7 +136,7 @@ do $e mknod $n$p b $maj $m alldev="$alldev $n$p" done - $e chmod 600 $alldev + echo $alldev | xargs $e chmod 600 ;; c[0-3]d[0-7]p[0-3]s[0-3]) # Disk subpartition. @@ -149,7 +153,7 @@ do alldev="$alldev ${n}${p}s${s}" done done - $e chmod 600 $alldev + echo $alldev | xargs $e chmod 600 ;; c[0-3]t[0-7]|c[0-3]t[0-7]n) # Tape devices. @@ -206,7 +210,7 @@ do g=`echo $g | tr 'pqrs' '0123'` n=`expr $dev : '.\\(.\\)'` # Which pty in the group. case $n in - [a-f]) n=1`echo $n | tr 'abcdef' '012345'` + [a-f]) n=1`/bin/echo $n | tr 'abcdef' '012345'` esac $e mknod tty$dev c 4 `expr $g '*' 16 + $n + 128` diff --git a/drivers/memory/ramdisk/Makefile b/drivers/memory/ramdisk/Makefile index 40f62e3e3..c9722b307 100644 --- a/drivers/memory/ramdisk/Makefile +++ b/drivers/memory/ramdisk/Makefile @@ -23,7 +23,7 @@ bintoc: bintoc.c $(CC) -o $@ bintoc.c image: proto.gen mtab rc $(PROGRAMS) $(EXTRA) - mkfs -B 2048 image proto.gen || { rm -f image; false; } + mkfs image proto.gen || { rm -f image; false; } at_wini: ../../at_wini/at_wini install -s ../../$@/$@ $@ diff --git a/drivers/memory/ramdisk/proto b/drivers/memory/ramdisk/proto index 3d651985d..bbe4c0bb8 100644 --- a/drivers/memory/ramdisk/proto +++ b/drivers/memory/ramdisk/proto @@ -1,5 +1,5 @@ boot -280 310 +125 400 d--755 0 0 bin d--755 0 0 at_wini ---755 0 0 at_wini -- 2.44.0