burn_mtd.old is the old dumb script that does insmod by hand.

burn_mtd now uses modprobe
This commit is contained in:
Ronald G. Minnich 2001-12-07 00:50:15 +00:00
parent bc91d65e48
commit 6ad1cb6448
2 changed files with 41 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
# arg1 is the linuxbios.strip to use. default is linuxbios.strip
# arg2 is the stripped, gzipp'ed kernel. Default is vmlinux.bin.gz
v=`uname -r`
# the old script that does insmod by hand is in burn_mtd.old
rmmod docprobe
rmmod doc2001
rmmod docecc
@ -20,9 +20,8 @@ fi
flash_on
insmod /lib/modules/${v}/kernel/drivers/mtd/docecc.o
insmod /lib/modules/${v}/kernel/drivers/mtd/doc2001.o
insmod /lib/modules/${v}/kernel/drivers/mtd/docprobe.o
modprobe doc2001
modprobe docprobe
dd conv=notrunc conv=sync bs=65536 if=${linux} of=vmlinux.bin.gz.block
dd conv=notrunc conv=sync bs=63k if=${linuxbios} of=linuxbios.block

38
util/mtd/burn_mtd.old Executable file
View file

@ -0,0 +1,38 @@
#!/bin/bash
# arg1 is the linuxbios.strip to use. default is linuxbios.strip
# arg2 is the stripped, gzipp'ed kernel. Default is vmlinux.bin.gz
v=`uname -r`
rmmod docprobe
rmmod doc2001
rmmod docecc
if [ $1x = "x" ]; then
linuxbios=linuxbios.strip
else
linuxbios=$1
fi
if [ $2x = "x" ]; then
linux=vmlinux.bin.gz
else
linux=$2
fi
flash_on
insmod /lib/modules/${v}/kernel/drivers/mtd/docecc.o
insmod /lib/modules/${v}/kernel/drivers/mtd/doc2001.o
insmod /lib/modules/${v}/kernel/drivers/mtd/docprobe.o
dd conv=notrunc conv=sync bs=65536 if=${linux} of=vmlinux.bin.gz.block
dd conv=notrunc conv=sync bs=63k if=${linuxbios} of=linuxbios.block
erase /dev/mtd0 0 128
dd conv=notrunc if=docipl of=/dev/mtd0
dd conv=notrunc if=docipl of=/dev/mtd0 seek=1
dd conv=notrunc if=linuxbios.block of=/dev/mtd0 seek=2
dd conv=notrunc if=vmlinux.bin.gz.block of=/dev/mtd0 seek=128
rmmod docprobe
rmmod doc2001
rmmod docecc