* Re: Beginner with DoC
1999-12-14 22:31 Brian K. Michalk
@ 1999-12-14 18:04 ` George Williams
1999-12-16 21:35 ` Dvir Oren
0 siblings, 1 reply; 7+ messages in thread
From: George Williams @ 1999-12-14 18:04 UTC (permalink / raw)
To: Brian K. Michalk; +Cc: mtd
Brian,
> So, what nodes am I supposed to make?
I ran MAKEDEV in the util directory (it creates a lot of nodes).
> 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).
> 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.
> 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
--
George Williams
Sony Electronics
3300 Zanker Road SJ-1A6
San Jose CA 95134
+1 408 955 4918
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Beginner with DoC
@ 1999-12-14 22:31 Brian K. Michalk
1999-12-14 18:04 ` George Williams
0 siblings, 1 reply; 7+ messages in thread
From: Brian K. Michalk @ 1999-12-14 22:31 UTC (permalink / raw)
To: mtd
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.
--
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 majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Beginner with DoC
1999-12-14 18:04 ` George Williams
@ 1999-12-16 21:35 ` Dvir Oren
0 siblings, 0 replies; 7+ messages in thread
From: Dvir Oren @ 1999-12-16 21:35 UTC (permalink / raw)
To: mtd
[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 941 bytes --]
> > 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 <dvir@lucidvon.com>
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
[-- Attachment #2: Attachment information. --]
[-- Type: text/plain, Size: 470 bytes --]
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: Unknown
[-- Attachment #3: boot.b6-21 --]
[-- Type: Application/Octet-stream, Size: 4540 bytes --]
[-- Attachment #4: Text from file 'lilo21-patch' --]
[-- Type: text/plain, Size: 2158 bytes --]
--- lilo.h.orig Sun Oct 17 14:47:05 1999
+++ lilo.h Sun Oct 17 14:45:45 1999
@@ -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.orig Wed Oct 14 22:24:20 1998
+++ geometry.c Sun Oct 17 14:29:49 1999
@@ -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.orig Sun Oct 17 14:50:40 1999
+++ Makefile Sun Oct 17 14:51:36 1999
@@ -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.orig Sun Oct 17 14:52:08 1999
+++ common.h Sun Oct 17 14:28:33 1999
@@ -7,6 +7,7 @@
#define COMMON_H
#include <sys/stat.h>
+#include <linux/types.h>
#include <linux/genhd.h>
#include "lilo.h"
[-- Attachment #5: Attachment information. --]
[-- Type: text/plain, Size: 470 bytes --]
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
[-- Attachment #6: Lilo6-21 --]
[-- Type: Application/Octet-stream, Size: 177469 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Beginner with DoC
[not found] <199912162127.PAA21998@sisko.awpi.com>
@ 1999-12-16 22:11 ` Brian K. Michalk
0 siblings, 0 replies; 7+ messages in thread
From: Brian K. Michalk @ 1999-12-16 22:11 UTC (permalink / raw)
To: Dvir Oren; +Cc: mtd
> > insmod mtd -- cool
> > insmod doc2000 -- cool
>
> You'll need to insmod nftl, as well.
>
> > 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.
>
> Instead of that, run the MAKEDEV script included in mtd.
> fla are for M-Systems drivers, not MTD.
Ahhh. I was just about to send you my log, then I thought, hmmm,
I ought to try fdisk /dev/nftla1. Bingo. It works.
Interesting thing is that fdisk shows four partitions already on the
chip. I'll delete them and see what sort of damage I can do now
Thanks for the help.
--
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 majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Beginner with DoC
@ 1999-12-17 15:57 Brian Michalk
1999-12-17 16:04 ` David Woodhouse
0 siblings, 1 reply; 7+ messages in thread
From: Brian Michalk @ 1999-12-17 15:57 UTC (permalink / raw)
To: Dvir Oren; +Cc: mtd
Spoken like a person whose been bitten.
I did not get the kernel drivers to compile properly, but gave up as soon as
I found out that the patch was for the kernel drivers.
My application is pretty interesting ... at least for me. It's for data
collection in a vehicle, and the computer is essentially a remote embedded
PC. For years I wanted something like this with a UNIX I could afford. Now
with DOC, I can have my computer, log in to it and do anything I would have
been able to do with a full blown computer out there.
I've always fiddled with the various stamps, flashlight controllers, and
lots of ZWorld controllers, but this is going to be much better.
PS: To whom it may concern:
May I make a suggestion (as a newcomer)? This list has the "reply to" set
to the original author. I'll bet there are a lot of private email
conversations going on that could answer a lot of the problems for people
like me. It would be nice if the replyto were set to the list as well as
the original author.
-----Original Message-----
From: Dvir Oren <dviro@ibm.net>
To: Brian K. Michalk <michalk@sisko.awpi.com>
Date: Friday, December 17, 1999 9:16 AM
Subject: Re: Beginner with DoC
> Interesting thing is that fdisk shows four partitions already on the
> chip. I'll delete them and see what sort of damage I can do now
> Thanks for the help.
>
When fdisk is concerned, if something appears odd, I don't mess
with it before I understand what has happened. I once had to play
around with the names of the devices since I had a program that
would not install itself to anything but partitions that are named
/dev/hda-hdd. So I renamed /dev/fla to /dev/hda, and installed it.
However, when I ran fdisk, I got confused with all the names, and
instead of destroying the flash, I destroyed my hard disk! Luckily,
most was recovered.
If you manage to install MTD drivers in the kernel, and not as
modules, let me know. For some reason it doesn't work for me.
---------------
Dvir Oren
<dviro@hotpop.com>
<http://thor.prohosting.com/~dviro>
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Beginner with DoC
1999-12-17 15:57 Beginner with DoC Brian Michalk
@ 1999-12-17 16:04 ` David Woodhouse
0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 1999-12-17 16:04 UTC (permalink / raw)
To: Brian Michalk; +Cc: Dvir Oren, mtd
michalk@alerta.net said:
> PS: To whom it may concern: May I make a suggestion (as a newcomer)?
> This list has the "reply to" set to the original author. I'll bet
> there are a lot of private email conversations going on that could
> answer a lot of the problems for people like me. It would be nice if
> the replyto were set to the list as well as the original author.
No.
http://www.unicom.com/pw/reply-to-harmful.html
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Beginner with DoC
@ 1999-12-17 16:48 Brian Michalk
0 siblings, 0 replies; 7+ messages in thread
From: Brian Michalk @ 1999-12-17 16:48 UTC (permalink / raw)
To: David Woodhouse; +Cc: Dvir Oren, mtd
Okay. Read the URL, and understand. That said, it would be nice if
everyone would reply to the group for all of the emails.
I'll be quiet now.
-----Original Message-----
From: David Woodhouse <dwmw2@infradead.org>
To: Brian Michalk <michalk@alerta.net>
Cc: Dvir Oren <dviro@ibm.net>; mtd@infradead.org <mtd@infradead.org>
Date: Friday, December 17, 1999 10:05 AM
Subject: Re: Beginner with DoC
>
>michalk@alerta.net said:
>> PS: To whom it may concern: May I make a suggestion (as a newcomer)?
>> This list has the "reply to" set to the original author. I'll bet
>> there are a lot of private email conversations going on that could
>> answer a lot of the problems for people like me. It would be nice if
>> the replyto were set to the list as well as the original author.
>
>No.
>
>http://www.unicom.com/pw/reply-to-harmful.html
>
>--
>dwmw2
>
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-12-17 16:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-17 15:57 Beginner with DoC Brian Michalk
1999-12-17 16:04 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
1999-12-17 16:48 Brian Michalk
[not found] <199912162127.PAA21998@sisko.awpi.com>
1999-12-16 22:11 ` Brian K. Michalk
1999-12-14 22:31 Brian K. Michalk
1999-12-14 18:04 ` George Williams
1999-12-16 21:35 ` Dvir Oren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox