From: Nick Maximov <maxs@techno.spb.ru>
To: mtd@infradead.org
Subject: [Fwd: [Fwd: Using MTD drivers with Ampro CoreModule/p5e]]
Date: Thu, 22 Jun 2000 18:02:40 +0400 [thread overview]
Message-ID: <39521C80.DE405C7A@techno.spb.ru> (raw)
[-- 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
next reply other threads:[~2000-06-22 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-22 14:02 Nick Maximov [this message]
2000-06-22 14:01 ` [Fwd: [Fwd: Using MTD drivers with Ampro CoreModule/p5e]] David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39521C80.DE405C7A@techno.spb.ru \
--to=maxs@techno.spb.ru \
--cc=mtd@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox