[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: makedev fixes, etc.




I resently did an install on an Transtac box, with a double aic7xxx
something on the motherboard.
The 2.0.36 kernel based resc.disc did fail, but when I put a
vanilla 2.2.4 kernel on the resc.disc it did succed and I could finish the
install.
Also the SuSE made kernel based on 2.0.36 also worked.

So whatever didn't work on 2.0.36 is fixed with 2.2.4 for this
motherboard, and also SuSE made something work for 2.0.36.

To make 2.0.37pre floppies follow the instructions below.
Hope this will hepl.

Cheers,
/Karl

-------------------------------------------------------------------------------
Karl Hammar		Aspö Data		karl@kalle.csb.ki.se
Lilla Aspö 2340		+46 173 140 57
S-742 94 Östhammar				Professional Linux Solutions
Sweden			+46 70 511 97 84 (mobile)
-------------------------------------------------------------------------------

Overall steps are:
1, get source and patch
2, make kernel and modules
3, make floppies

1, get source and patch:
------------------------

Fetch patch in e.g. ftp://ftp.uk.kernel.org
/pub/linux/kernel/people/alan/2.0.37pre/2.0.37/2.0.37-pre-patch-9.bz2,
and a vanilla 2.0.36 kernel (I have not tested it against debian's 2.0.36),
in /pub/linux/kernel/linux-2.0.36.tar.gz

2, make kernel and modules:
---------------------------

Either learn the boot-floppies package or do it manually.

Here is what I have done:

# mkdir /usr/local/src
# cd /usr/local/src
# tar zxf /home/ftp/pub/kernel/linux-2.0.36.tar.gz 
# cd linux/
# cp /home/ftp/pub/kernel/2.0.37-pre-patch-9.bz2 .
# bzip2 -d 2.0.37-pre-patch-9.bz2 
# ls -lF
total 2742
-rw-r--r--   1 root     root      2679941 apr 20 12:38 2.0.37-pre-patch-9
-rw-r--r--   1 1046     1046        18458 jul 13  1998 COPYING
-rw-r--r--   1 1046     1046        39362 nov 15 19:32 CREDITS
drwxr-xr-x   6 1046     1046         1024 nov 15 19:32 Documentation/
-rw-r--r--   1 1046     1046        10421 nov 15 19:32 MAINTAINERS
-rw-r--r--   1 1046     1046        10106 nov 15 19:32 Makefile
-rw-r--r--   1 1046     1046        12056 jun 26  1996 README
-rw-r--r--   1 1046     1046         4643 nov 15 19:32 Rules.make
drwxr-xr-x   8 1046     1046         1024 apr 22  1996 arch/
drwxr-xr-x  11 1046     1046         1024 jun 30  1996 drivers/
drwxr-xr-x  20 1046     1046         2048 nov 15 19:33 fs/
drwxr-xr-x  12 1046     1046         1024 dec  2  1997 include/
drwxr-xr-x   2 1046     1046         1024 nov 15 19:33 init/
drwxr-xr-x   2 1046     1046         1024 nov 15 19:33 ipc/
drwxr-xr-x   2 1046     1046         1024 nov 15 19:48 kernel/
drwxr-xr-x   2 1046     1046         1024 dec  2  1997 lib/
drwxr-xr-x   2 1046     1046         1024 nov 15 19:33 mm/
drwxr-xr-x   2 1046     1046         1024 jun  5  1996 modules/
drwxr-xr-x  15 1046     1046         1024 nov 15 19:33 net/
drwxr-xr-x   3 1046     1046         1024 nov 15 19:33 scripts/
# sh scripts/patch-kernel 		# don't work
Current kernel version is 2.0.37
# patch -p1 < 2.0.37-pre-patch-9 	# patch manually
patching file `CREDITS'
patching file `Documentation/Configure.help'
patching file `Documentation/README.DAC960'
patching file `Documentation/ide.txt'
patching file `Documentation/isdn/README'
patching file `Documentation/more-than-900MB-RAM.txt'
...
patching file `net/ipv4/rarp.c'
patching file `net/netrom/af_netrom.c'
patching file `net/netsyms.c'
patching file `scripts/Menuconfig'
patching file `scripts/tkgen.c'
patching file `scripts/tkparse.c'
patching file `scripts/tkparse.h'

	I think this should work
# cp /usr/src/kernel-source-2.0.36/.config .

	But I did this
# make menuconfig
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/local/src/linux/scripts/lxdialog'
...

	you do need floppy, ram disks, initrd, and drivers for boot
	devices (ide, scsi) compiled in as a convenience you can
	let cdrom be compiled in instead of being a module let all
	network card drivers be modules, so the user can choose them
	themselves compile in minix and ext2, iso9660 and msdos should be
	avaiable also
...
and do a 'make dep ; make clean' if you want to be sure all
the files are correctly re-made.

	a zImage is too big when you include all scsi drivers
# make dep;make clean; make bzImage
gcc -I/usr/local/src/linux/include -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
make[1]: Entering directory `/usr/local/src/linux/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/local/src/linux/arch/i386/boot'
scripts/mkdep init/*.c > .tmpdepend
...
Boot sector 512 bytes.
Setup is 4408 bytes.
System is 437 kB
sync
make[1]: Leaving directory `/usr/local/src/linux/arch/i386/boot'
# make modules
make[1]: Entering directory `/usr/local/src/linux/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/local/src/linux/kernel'
...

	make sure you don't have /lib/modules/2.0.37 already
# make modules_install
Installing modules under /lib/modules/2.0.37/block
Installing modules under /lib/modules/2.0.37/net
Installing modules under /lib/modules/2.0.37/scsi
Installing modules under /lib/modules/2.0.37/fs
# cd /

3, make floppies:
-----------------

	insert a spare floppy to become the resc. floopy
	take no chances with floppies, with this you'll detect defective floppies
# superformat /dev/fd0
 Verifying cylinder 79, head 1 
mformat -s18 -t80 -h2 -S2 -M512  a:

# dd if=/home/ftp/pub/debian/dists/slink/main/disks-i386/current/resc1440.bin of=/dev/fd0 
2880+0 poster in
2880+0 poster ut
# mount /dev/fd0 /mnt
# cd /mnt
# ls -lF
total 1408
-rwxr-xr-x   1 root     root         1086 mar  3 16:16 debian.txt*
-rwxr-xr-x   1 root     root          559 mar  3 16:16 f1.txt*
-rwxr-xr-x   1 root     root          717 mar  3 16:16 f10.txt*
-rwxr-xr-x   1 root     root          415 mar  3 16:16 f2.txt*
-rwxr-xr-x   1 root     root          775 mar  3 16:16 f3.txt*
-rwxr-xr-x   1 root     root          993 mar  3 16:16 f4.txt*
-rwxr-xr-x   1 root     root          927 mar  3 16:16 f5.txt*
-rwxr-xr-x   1 root     root         1176 mar  3 16:16 f9.txt*
-rwxr-xr-x   1 root     root         1104 mar  3 16:16 install.sh*
-r-xr-xr-x   1 root     root         5488 mar  3 16:16 ldlinux.sys*
-rwxr-xr-x   1 root     root       715260 mar  3 16:16 linux*
-rwxr-xr-x   1 root     root          174 mar  3 16:16 rdev.sh*
-rwxr-xr-x   1 root     root          903 mar  3 16:16 readme.txt*
-rwxr-xr-x   1 root     root       702664 mar  3 16:16 root.bin*
-rwxr-xr-x   1 root     root          934 mar  3 16:16 syslinux.cfg*
-rwxr-xr-x   1 root     root            7 mar  3 16:16 type.txt*
# cp /usr/local/src/linux/arch/i386/boot/bzImage linux 
# vi debian.txt install.sh		# change 2.0.36 to 2.0.37
# ./rdev.sh 
+ set -e
+ readonly Arch=i386
+ Arch=i386
+ '[' i386 '!=' m68k ']'
+ rdev -R /mnt/linux 1
+ rdev -r /mnt/linux 0
+ rdev -v /mnt/linux -1
+ rdev /mnt/linux /dev/ram0
# cd /
# umount /mnt					# a 2.0.37 resc disk is ready

	insert a spare floppy to become the drv. floopy
	take no chances with floppies, with this you'll detect defective floppies
# superformat /dev/fd0
 Verifying cylinder 79, head 1 
mformat -s18 -t80 -h2 -S2 -M512  a:

# dd if=/home/ftp/pub/debian/dists/slink/main/disks-i386/current/resc1440.bin of=/dev/fd0 
2880+0 poster in
2880+0 poster ut
# mount /dev/fd0 /mnt
# ls -lF /mnt
total 1359
-rwxr-xr-x   1 root     root          797 mar  3 16:16 install.sh*
-rwxr-xr-x   1 root     root        75261 mar  3 16:16 modconf.tgz*
-rwxr-xr-x   1 root     root         1954 mar  3 16:16 modcont*
-rwxr-xr-x   1 root     root      1278900 mar  3 16:16 modules.tgz*
-rwxr-xr-x   1 root     root        32765 mar  3 16:16 pcmcia.tgz*
-rwxr-xr-x   1 root     root            8 mar  3 16:16 type.txt*
# tar zcf /mnt/modules.tgz lib/modules/2.0.37 
# cd /lib/modules/2.0.37
# for i in *
>   do echo -n "dir_content_$i=\""
>   cd $i
>   for f in *
>     do echo -n $f | sed -e 's/.o$/ /'
>   done
>   cd ..
>   echo \"
> done > /mnt/modcont 
# umount /mnt/					# a 2.0.37 drv disk is ready

-------------------------------------------------------------------------------

On Sun, 18 Apr 1999, Marcelo E. Magallon wrote:

> On Sat, Apr 17, 1999 at 04:05:15PM -0400, Adam Di Carlo wrote:
> 
> > The only remaining crucial problem is the AIC7xxx bugs.  Doesn't
> > anyone on these lists here have an adaptec device which experiences
> > problems?  Couldn't we try the newer adaptec drivers either from
> > adaptec or from Alan Cox's patches to 2.0.36?
> 
> I'm to take a look at this tomorrow Monday and Wednesday, too.  I'll also
> ask at the local LUG.  At least one person has reported problems with a 2940
> (kernel boots, loads SCSI drivers, hangs), and I have seen _LOTS_ of trouble
> with on-board 788x's (/me thinks all 788x's are on-board adapters).  I know
> RH's latest install floppies work with these cards.
> 
> Pointers, please.  Where do I get patches from? Is really enough to replace
> `linux' on the rescue floppy or do I have to replace something else? Any set
> of boot parameters I should try (I know override_term solved some of the
> problems I had before, and so did stpwlev)?
> 
> 						Marcelo
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: