public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [Fwd: [Fwd: Using MTD drivers with Ampro CoreModule/p5e]]
@ 2000-06-22 14:02 Nick Maximov
  2000-06-22 14:01 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Maximov @ 2000-06-22 14:02 UTC (permalink / raw)
  To: mtd

[-- Attachment #1: Type: text/plain, Size: 3493 bytes --]

 
  I have got new minimodule Ampro CM/p5e with M-Systems DiskOnChip2000
  installed. First I tried to use M-Systems binary drivers to access
  device and got it worked but was unable to set up Linux to load
  from Flash (because supplied patched lilo does not works on).
 
  I have no HDD connected to CM/p5e but have my own host with Red Hat
  6.2. On this machine I compiled kernel for my CM/p5e. (Kernel version
is
  2.2.14.5-0)
 
  Now I want to try to work with Grub and MTD drivers to get whole
  things up. First problem is that I cannot locate the latest version
  of grub. FSF site redirects me to GNU and there is just alpha version
  of 0.5 that is not recomended by David.
 
  Could anyone tell me step-by-step what should I do?
 
  I have utility disk from Ampro with DoC firmware (DOC2.FFF and
  DOC123.EXB). I followed instructions in M-Systems manual
  "Using DoC under Linux OS" and update firmware using DOC.FFF image.
  Then I successfully built the new kernel with drivers dowloaded
  from M-System's site. Then I have created rescue diskset
  with new kernel and successfully boot and got access to /dev/fla.
  I successfully to fdisked it and mke2fsed it and even cp there some
  files. And at this point my success is gone. I spent time trying to
  make FlashDisk bootable but nothing is works.
 
  I tried to install drivers from latest mtd and got compilation errors.
  So I was unable even got read access with mtd drivers :-(
 
 gcc -D__KERNEL__ -I/usr/src/linux-2.2.14/include -Wall
 -Wstrict-prototypes -O2 -
 fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
 -m486 -malig
 n-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE
 -DMODVERSIONS -
 include /usr/src/linux-2.2.14/include/linux/modversions.h
 -I/root/mtd/kernel/../
 include  -c -o nftl.o nftl.c
 nftl.c: In function `NFTL_setup':
 nftl.c:145: warning: long unsigned int format, unsigned int arg (arg 3)
 nftl.c: In function `NFTL_foldchain':
 nftl.c:435: warning: implicit declaration of function
 `__constant_cpu_to_le16'
 nftl.c:435: case label does not reduce to an integer constant
 nftl.c:439: case label does not reduce to an integer constant
 nftl.c:445: case label does not reduce to an integer constant
 nftl.c:446: case label does not reduce to an integer constant
 nftl.c:436: warning: unreachable code at beginning of switch statement
 nftl.c: In function `NFTL_readblock':
 nftl.c:728: case label does not reduce to an integer constant
 nftl.c:731: case label does not reduce to an integer constant
 nftl.c:734: case label does not reduce to an integer constant
 nftl.c:735: case label does not reduce to an integer constant
 nftl.c:729: warning: unreachable code at beginning of switch statement
 nftl.c: In function `NFTL_findwriteunit':
 nftl.c:799: case label does not reduce to an integer constant
 nftl.c:802: case label does not reduce to an integer constant
 nftl.c:803: case label does not reduce to an integer constant
 nftl.c:804: case label does not reduce to an integer constant
 nftl.c:800: warning: unreachable code at beginning of switch statement
 nftl.c: At top level:
 nftl.c:1158: warning: `init_module' defined but not used
 nftl.c:1202: warning: `cleanup_module' defined but not used
 make[2]: *** [nftl.o] Error 1
 make[2]: Leaving directory `/root/mtd/kernel'
 make[1]: *** [_mod_/root/mtd/kernel] Error 2
 make[1]: Leaving directory `/usr/src/linux-2.2.14'
 make: *** [all] Error 2
 [root@maverick mtd]#
 
  Please help!!!
 
 --nick

[-- Attachment #2: Type: message/rfc822, Size: 6028 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 3441 bytes --]

 
 I have got new minimodule Ampro CM/p5e with M-Systems DiskOnChip2000
 installed. First I tried to use M-Systems binary drivers to access 
 device and got it worked but was unable to set up Linux to load 
 from Flash (because supplied patched lilo does not works on).
 
 I have no HDD connected to CM/p5e but have my own host with Red Hat
6.2.
 On this machine I compiled kernel for my CM/p5e. (Kernel version is
 2.2.14.5-0)
 
 Now I want to try to work with Grub and MTD drivers to get whole 
 things up. First problem is that I cannot locate the latest version
 of grub. FSF site redirects me to GNU and there is just alpha version 
 of 0.5 that is not recomended by David.
 
 Could anyone tell me step-by-step what should I do?
 
 I have utility disk from Ampro with DoC firmware (DOC2.FFF and
 DOC123.EXB). I followed instructions in M-Systems manual 
 "Using DoC under Linux OS" and update firmware using DOC.FFF image. 
 Then I successfully built the new kernel with drivers dowloaded 
 from M-System's site. Then I have created rescue diskset
 with new kernel and successfully boot and got access to /dev/fla.
 I successfully to fdisked it and mke2fsed it and even cp there some
 files. And at this point my success is gone. I spent time trying to
make
 FlashDisk bootable but nothing is works.
 
 I tried to install drivers from latest mtd and got compilation errors.
 So I was unable even got read access with mtd drivers :-(

gcc -D__KERNEL__ -I/usr/src/linux-2.2.14/include -Wall
-Wstrict-prototypes -O2 -
fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-m486 -malig
n-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE
-DMODVERSIONS -
include /usr/src/linux-2.2.14/include/linux/modversions.h
-I/root/mtd/kernel/../
include  -c -o nftl.o nftl.c
nftl.c: In function `NFTL_setup':
nftl.c:145: warning: long unsigned int format, unsigned int arg (arg 3)
nftl.c: In function `NFTL_foldchain':
nftl.c:435: warning: implicit declaration of function
`__constant_cpu_to_le16'
nftl.c:435: case label does not reduce to an integer constant
nftl.c:439: case label does not reduce to an integer constant
nftl.c:445: case label does not reduce to an integer constant
nftl.c:446: case label does not reduce to an integer constant
nftl.c:436: warning: unreachable code at beginning of switch statement
nftl.c: In function `NFTL_readblock':
nftl.c:728: case label does not reduce to an integer constant
nftl.c:731: case label does not reduce to an integer constant
nftl.c:734: case label does not reduce to an integer constant
nftl.c:735: case label does not reduce to an integer constant
nftl.c:729: warning: unreachable code at beginning of switch statement
nftl.c: In function `NFTL_findwriteunit':
nftl.c:799: case label does not reduce to an integer constant
nftl.c:802: case label does not reduce to an integer constant
nftl.c:803: case label does not reduce to an integer constant
nftl.c:804: case label does not reduce to an integer constant
nftl.c:800: warning: unreachable code at beginning of switch statement
nftl.c: At top level:
nftl.c:1158: warning: `init_module' defined but not used
nftl.c:1202: warning: `cleanup_module' defined but not used
make[2]: *** [nftl.o] Error 1
make[2]: Leaving directory `/root/mtd/kernel'
make[1]: *** [_mod_/root/mtd/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.14'
make: *** [all] Error 2
[root@maverick mtd]#       
 
 Please help!!!
 
--nick

[-- Attachment #2.1.2: Type: message/rfc822, Size: 1781 bytes --]

From: Nick Maximov <maxs@techno.spb.ru>
To: MTD Mailing list <Majordomo@infradead.org>
Subject: Using MTD drivers with Ampro CoreModule/p5e
Date: Thu, 22 Jun 2000 17:43:59 +0400
Message-ID: <3952181F.8F8E4C9A@techno.spb.ru>

I have got new minimodule Ampro CM/p5e with M-Systems DiskOnChip2000
installed.
First I tried to use M-Systems binary drivers to access device and got
it
worked but was unable to set up Linux to load from Flash (because
supplied
patched lilo does not works on).

I have no HDD connected to CM/p5e but have my own host with Red Hat 6.2. 
On this machine I compiled kernel for my CM/p5e. (Kernel version is
2.2.14.5-0)

Now I want to try to work with Grub and MTD drivers to get whole things
up.
First problem is that I cannot locate the latest version of grub. FSF
site
redirects me to GNU and there is just alpha version of 0.5 that is not
recomended by
David.

Could anyone tell me step-by-step what should I do?

I have utility disk from Ampro with DoC firmware (DOC2.FFF and
DOC123.EXB).
I followed instructions in M-Systems manual "Using DoC under Linux OS"
and
update firmware using DOC.FFF image. Then I successfully built the new
kernel
with drivers dowloaded from M-System's site. Then I have created rescue
diskset
with new kernel and successfully boot and got access to /dev/fla. 
I successfully to fdisked it and mke2fsed it and even cp there some
files.
And at this point my success is gone. I spent time trying to make
FlashDisk
bootable but nothing is works.

Please help!!!

--nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-22 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-22 14:02 [Fwd: [Fwd: Using MTD drivers with Ampro CoreModule/p5e]] Nick Maximov
2000-06-22 14:01 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox