From 8239f21126d76946c87d7a7100129417bf03181a Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 5 Jan 2001 16:20:58 +0000 Subject: [PATCH] updated howto and the burn_mtd utility --- HOWTO/SiS630 | 23 +++++++++++++++++------ util/mtd/burn_mtd | 16 ++++++++-------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/HOWTO/SiS630 b/HOWTO/SiS630 index 1e4e39593d..5c29c9f80d 100644 --- a/HOWTO/SiS630 +++ b/HOWTO/SiS630 @@ -68,9 +68,11 @@ The steps for loading linuxbios are simple: 2) get a 2.4.0-test12 kernel, patch it, then build it 3) config and build linuxbios 4) Get the MTD utilities from http://www.linux-mtd.infradead.org/ -5) put a Disk On Chip into the flash socket -6) Burn the chip -7) hit reset. You're up. + and build the 'erase' utility +5) Set up the 'flash_on' program in your path +6) put a Disk On Chip into the flash socket +7) Burn the chip +8) hit reset. You're up. --- Step 0) @@ -226,9 +228,18 @@ o You now need to figure out where you want to put your build images. You're now ready to burn the Disk On Chip, but first .... Step 4) Get the MTD utilities from http://www.linux-mtd.infradead.org/ + cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd + cd mtd-xxyyzz/util + make + (You need the erase utility) Install the erase utility where it is in your path. -Step 5) +Step 5) Set up flash_on utiliy + flash_on.c is found in freebios/util/sis/flash_on.c + cd to that directory, make the utility, and put it in your path + (i.e. /usr/bin or in your private path) + +Step 6) NOTE: BE ADVISED THAT THIS STEP CAN HURT OR KILL YOU! YOU ARE WORKING WITH A POWERED-ON COMPUTER AT THIS POINT. THE COMPUTER NEEDS TO BE OPENED UP, AND YOU NEED TO REMOVE A CHIP @@ -250,12 +261,12 @@ Step 5) done this, or are not trained, or have a history of getting hurt by hardware, DON'T DO IT. -Step 6) Run the following script: +Step 7) Run the following script: Run the burn_mtd script from util/mtd Here's how it looks when you run it: -Step 7) Hit reset. Linuxbios should come up in a few seconds. +Step 8) Hit reset. Linuxbios should come up in a few seconds. If it doesn't work: diff --git a/util/mtd/burn_mtd b/util/mtd/burn_mtd index b953dab276..03ea7bc2d9 100755 --- a/util/mtd/burn_mtd +++ b/util/mtd/burn_mtd @@ -17,19 +17,19 @@ else linux=$2 fi -../flash/flash_on +flash_on insmod /lib/modules/${v}/kernel/drivers/mtd/doc2001.o insmod /lib/modules/${v}/kernel/drivers/mtd/docprobe.o -dd conv=sync bs=65536 if=${linux} of=vmlinux.bin.gz.block -dd conv=sync bs=63k if=${linuxbios} of=linuxbios.block +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 if=docipl of=/dev/mtd0 -dd if=docipl of=/dev/mtd0 seek=1 -dd if=linuxbios.block of=/dev/mtd0 seek=2 -dd if=vmlinux.bin.gz.block of=/dev/mtd0 seek=128 +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 doc2001 rmmod docprobe