Beginner with DoC
Subsystems (2)
My system:
Advantech biscuit PC
DoC2000, 72 megabyte
Linux (slackware) 2.2.6
Eventually I want to be able to boot off of the DoC, but for now, I'll settle for making the kernel modules work. I read the documentation I could find, but still had problems. Here's what I did:
Downloaded mtd-19991025.tar.gz, extracted, compiled.
I get a compile error for the various utilities.
Download mtd-19991025.diff, patch and compile -- no help,
so I comment out the offending utilities.
insmod mtd -- cool
insmod doc2000 -- cool
Okay, now I want to see if I can see them with fdisk, but I've
got only a few clues as to the nodes. I tried mknod fla b 62 0 through fla4 for major IDs 62, 90, 31, 93, and 44. Fdisk never finds any of the devices.
So, what nodes am I supposed to make?
Thanks for the help.
Signature · 7 lines
Brian Michalk <http://www.awpi.com/michalk> Life is what you make of it ... never wish you had done something. Aviator, experimental aircraft builder, motorcyclist, SCUBA diver musician, home-brewer, entrepreneur and SINGLE! To unsubscribe, send "unsubscribe mtd" to [email protected]
Brian,
Quoted 1 line
So, what nodes am I supposed to make?
I ran MAKEDEV in the util directory (it creates a lot of nodes).
Quoted 2 lines
insmod mtd -- cool
insmod doc2000 -- cool
insmod nftl.o
Now you should be able to mount /dev/nftla1 provided it has a filesystem on it.
You can run fdisk on /dev/nftla to create partitions, etc.
Look at /dev/mtd0 (I captured it with dd) and you can see the start of the firmware bios extension (0x55aa).
Quoted 1 line
I get a compile error for the various utilities.
I also had trouble building the utils. It goes wrong with
../include/linux/mtd/mtd.h:6: parse error
My kernel sources are in /usr/src/linux and I think this is where the Makefile expects them.
Quoted 2 lines
Eventually I want to be able to boot off of the DoC, but for now, I'll settle for making the kernel modules work.
Same here. Now I'm doing what some others on this list have suggested and using syslinux to boot the kernel with an initial ramdisk.
George
Signature · 8 lines
George Williams Sony Electronics 3300 Zanker Road SJ-1A6 San Jose CA 95134 +1 408 955 4918 To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines
Quoted 2 lines
Eventually I want to be able to boot off of the DoC, but for now, I'll settle for making the kernel modules work.
Same here. Now I'm doing what some others on this list have suggested and using syslinux to boot the kernel with an initial ramdisk.
I'm using the patched LILO to boot off the flash, and works like a charm (there is a limit to the size of the kernel, though). It was a bit difficult to patch lilo version 21, and create all the necessary files, but it now works.
Not everybody can afford DOS for each of their units, and freedos isn't exactly ideal, at least with the bit I played with it.
I'm attaching my patched lilo-21, my patch file, and the boot.b file. Feel free to use it.
---------
Dvir Oren <[email protected]>
Lucid VON Ltd. <http://www.lucidvon.com>
Twin Towers 2, Suite 406, P.O.Box 159
35 Jabotinsky street, Ramat-Gan 52511, ISRAEL
Tel:+972 3 6137214 Fax:+972 3 6137215
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: boot.b6-21
Date: 17 Oct 1999, 15:36
Size: 4540 bytes.
Type: Unknownlilo.h renamed from lilo.h.orig +1 -0
@@ -38,6 +38,7 @@#define MAJOR_DAC960 48/* First Mylex DAC960 PCI RAID controller */ #define MAJOR_IDE5 55/* IDE on fifth interface */ #define MAJOR_IDE6 57/* IDE on sixth interface */ +#define MAJOR_FL 62/* M-Systems Disk On Chip 2000 */ #define MAX_IMAGES ((SECTOR_SIZE*2-2)/sizeof(IMAGE_DESCR))/* maximum number of images */
geometry.c renamed from geometry.c.orig +7 -2
@@ -120,7 +120,7 @@MAJOR (dev) ==MAJOR_IDE3 ||MAJOR (dev) ==MAJOR_IDE4 ||MAJOR (dev) ==MAJOR_IDE5 ||MAJOR (dev) ==MAJOR_IDE6 ||MAJOR (dev) ==MAJOR_XT ||MAJOR (dev) ==MAJOR_SD || -MAJOR (dev) ==MAJOR_ESDI ||MAJOR (dev) ==MAJOR_DAC960 ; +MAJOR (dev) ==MAJOR_ESDI ||MAJOR (dev) ==MAJOR_DAC960 ||MAJOR (dev) ==MAJOR_FL ; }
@@ -305,8 +305,11 @@/* fall through */ case MAJOR_ESDI :/* fall through */ +case MAJOR_FL : +/* fall through */ case MAJOR_XT : - geo->device =0x80 +(MINOR (device) >>6 )+(MAJOR (device) ==MAJOR_HD ? + geo->device =0x80 +(MINOR (device) >>6 )+( + (MAJOR (device) ==MAJOR_HD ||MAJOR (device) ==MAJOR_FL ) ?0 :last_dev (MAJOR_HD ,64 ));if (ioctl (fd,HDIO_GETGEO ,&hdprm) <0 ) die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
@@ -377,6 +380,8 @@case MAJOR_IDE6 :/* fall through */ case MAJOR_ESDI : +/* fall through */ +case MAJOR_FL :/* fall through */ case MAJOR_XT :return MINOR (device) >>6 ?0 : !last_dev (MAJOR_HD ,64 );
Makefile renamed from Makefile.orig +4 -0
@@ -38,6 +38,10 @@ sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` GO=-DGO=0x`sed '/go/s/^.*go 0 \(....\) A.*$$/\1/p;d' first.lis` +#patched lilo +CONFIG+= -DLCF_LARGE_EBDA +PCONFIG+= -DLCF_LARGE_EBDA + SHELL=/bin/sh CC=cc CPP=$(CC) -E
common.h renamed from common.h.orig +1 -0
@@ -7,6 +7,7 @@#define COMMON_H #include <sys/stat.h> +#include <linux/types.h> #include <linux/genhd.h> #include "lilo.h"
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: Lilo6-21
Date: 17 Oct 1999, 15:36
Size: 177469 bytes.
Type: Unknown