* booting from doc
@ 2001-02-12 15:51 David Hamm
2001-02-13 12:07 ` Mendel Mobach
0 siblings, 1 reply; 8+ messages in thread
From: David Hamm @ 2001-02-12 15:51 UTC (permalink / raw)
To: mtd
Is anyone booting from disk on chip with LILO. I've tried several different
methods but still can't do it. I'm using lilo 21.6, kernel 2.4.0 with mtd
modules. I get the following info when I "fdisk /dev/nftla"
DiskOnChip Millennium found at address 0xD0000
Cannot calculate an NFTL geometry to match size of 0x7cf0.
Using C:999 H:16 S:2 (== 0x7ce0 sects)
DINFO yields
DiskOnChip 2000(R) found at D000:0000
Drive letter : D
Disk size : 15,992 Kbytes
SoftWare version : 4.2
TrueFFS Compatibility : 3.3.2
FirmWare size : 48 Kbytes
Also Lilo won't install because it doesn't know how to handle device 5d01.
If you see anyting that might cause a problem or be different than what you are
doing please let me know. Thanks
---------------------------------
David Hamm
Systems Analyst
Imaging Technologies Services Inc.
email: dhamm@itrepro.com
voice: 404-870-6663
---------------------------------
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from doc
2001-02-12 15:51 booting from doc David Hamm
@ 2001-02-13 12:07 ` Mendel Mobach
0 siblings, 0 replies; 8+ messages in thread
From: Mendel Mobach @ 2001-02-13 12:07 UTC (permalink / raw)
To: mtd@infradead.org
David Hamm wrote:
>
> Is anyone booting from disk on chip with LILO. I've tried several different
> methods but still can't do it. I'm using lilo 21.6, kernel 2.4.0 with mtd
> modules. I get the following info when I "fdisk /dev/nftla"
> DiskOnChip Millennium found at address 0xD0000
> Cannot calculate an NFTL geometry to match size of 0x7cf0.
> Using C:999 H:16 S:2 (== 0x7ce0 sects)
I have only DOC 2000 chips, sorry
>
<snap of dos>
> Also Lilo won't install because it doesn't know how to handle device 5d01.
did you use the mtd-lilo from the cvs tree???
That knows how to handle device 5d01
(major: 93 minor 01 = /dev/nftl/disc0/part1 with devfs)
if you want my lilo.conf you can get it.
> If you see anyting that might cause a problem or be different than what you are
> doing please let me know. Thanks
<snap of signature>
Regards
Mendel Mobach
--
Mendel Mobach aka BugBlue - mendel@mobach.nl - bugblue@dds.nl
ICQ: 40200278 - IRC: BugBlue (ircnet:#ne2000 undernet:#groningen)
/"\ | [Student]
\ / | [IPv6 tester]
X ASCII RIBBON CAMPAIGN | [coder]
/ \ AGAINST HTML MAIL | [Possible security tester]
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* booting from DOC
@ 2003-11-24 11:09 stephen
2003-12-01 0:08 ` Denis Dowling
0 siblings, 1 reply; 8+ messages in thread
From: stephen @ 2003-11-24 11:09 UTC (permalink / raw)
To: linux-mtd
Hi All,
didn't get a reply from my last post , which was me rambling on a bit too
much or my text sounds arrogant? (sorry if it does i am just a newbie)
I've been reading Karim Yaghmours book, got much further now, maybe someone
can put me straight on a couple of things? (hopefully)
first of all I managed to install grub using 'doc_loadbios' so it replaces
the DOC's SPL , then I managed to use 'nftl_format' and formatted from
memory address '98304' which isn't the size of the grub boot loader but I
assume represents '16384 + 81920' , '81920' being the last erase offset,
from here I managed to 'fdisk nftla' and created a new partition
'/dev/nftla1', I can format this partition and safely read and write data. I
compiled all the DOC files as modules, I didn't patch the kernel I decided
to use a clean '2.4.19' kernel' , I also couldn't compile the latest CVS
tools ;/ so I went back to a previous snapshot
'Mtd-snapshot-20020708.tar.bz2' , this compiled fine (mainly I couldnt
compile nftl_format and something to do with empty LIST_HEAD structures,
blktrans.h with the latest CVS). I also realised that 'grub-0.92' needed
patching so i did that and repeated the steps with 'doc_loadbios' and
realised the last erase offset was now '65536' so the boot loader is smaller
and my new partition begins at offset '81920', plus this should have
contained 'ctrlbypass' as part of the grub compiled with patch.
The grub loader boots from the DOC but stops at the grub prompt, how do I
get grub to boot my kernel image ?
in karims book it talks about building a root filesystem and
/boot/grub/menu.lst but I can't see how this can run without the modules
loaded needed by the kernel (e.g. docecc.o, doc2000.o etc) confused ;/ ...
kind regards
Stephen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from DOC
[not found] <E1AOFNr-0001Yk-QS@pentafluge.infradead.org>
@ 2003-11-25 7:09 ` Felix Frey
2003-11-26 8:15 ` Ilguiz Latypov
0 siblings, 1 reply; 8+ messages in thread
From: Felix Frey @ 2003-11-25 7:09 UTC (permalink / raw)
To: linux-mtd
> The grub loader boots from the DOC but stops at the grub prompt, how do I
> get grub to boot my kernel image ?
> in karims book it talks about building a root filesystem and
> /boot/grub/menu.lst but I can't see how this can run without the modules
> loaded needed by the kernel (e.g. docecc.o, doc2000.o etc) confused ;/ ...
Grub stage2 contains the code which can access a filesystem (and the DoC, of
course)
For a step-by-step howto, read these instructions:
http://www.lakeshoremicro.com/diskonchip-grub-howto.html
For more infos on grub, IBM has written a nice tutorial:
http://www-106.ibm.com/developerworks/edu/l-dw-linuxgrub-i.html?S_TACT=103AMW03&S_CMP=EDU
Felix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from DOC
2003-11-25 7:09 ` booting from DOC Felix Frey
@ 2003-11-26 8:15 ` Ilguiz Latypov
0 siblings, 0 replies; 8+ messages in thread
From: Ilguiz Latypov @ 2003-11-26 8:15 UTC (permalink / raw)
To: linux-mtd
On Tue, Nov 25, 2003 at 08:09:17AM +0100, Felix Frey wrote:
> For more infos on grub, IBM has written a nice tutorial:
Not to mention the GRUB's HTML and info manual. May be supplied as
grub-doc package, but the GRUB source tree always has it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from DOC
2003-11-24 11:09 stephen
@ 2003-12-01 0:08 ` Denis Dowling
2003-12-01 11:45 ` stephen
0 siblings, 1 reply; 8+ messages in thread
From: Denis Dowling @ 2003-12-01 0:08 UTC (permalink / raw)
To: stephen; +Cc: linux-mtd
----- Original Message -----
From: "stephen" <lcbr17306@blueyonder.co.uk>
To: <linux-mtd@lists.infradead.org>
Sent: Monday, November 24, 2003 10:09 PM
Subject: booting from DOC
> Hi All,
>
> didn't get a reply from my last post , which was me rambling on a bit too
> much or my text sounds arrogant? (sorry if it does i am just a newbie)
>
> I've been reading Karim Yaghmours book, got much further now, maybe
someone
> can put me straight on a couple of things? (hopefully)
>
> first of all I managed to install grub using 'doc_loadbios' so it replaces
> the DOC's SPL , then I managed to use 'nftl_format' and formatted from
> memory address '98304' which isn't the size of the grub boot loader but I
> assume represents '16384 + 81920' , '81920' being the last erase offset,
> from here I managed to 'fdisk nftla' and created a new partition
> '/dev/nftla1', I can format this partition and safely read and write data.
I
> compiled all the DOC files as modules, I didn't patch the kernel I decided
> to use a clean '2.4.19' kernel' , I also couldn't compile the latest CVS
> tools ;/ so I went back to a previous snapshot
> 'Mtd-snapshot-20020708.tar.bz2' , this compiled fine (mainly I couldnt
> compile nftl_format and something to do with empty LIST_HEAD structures,>
blktrans.h with the latest CVS).
My last patch fixes this :-)
> I also realised that 'grub-0.92' needed
> patching so i did that and repeated the steps with 'doc_loadbios' and
> realised the last erase offset was now '65536' so the boot loader is
smaller
> and my new partition begins at offset '81920', plus this should have
> contained 'ctrlbypass' as part of the grub compiled with patch.
I cannot get ctrlbypass working with grub at the moment. Code looks correct
but always boots to the grub prompt even if I hold down the control key.
Very strange.
>
> The grub loader boots from the DOC but stops at the grub prompt, how do I
> get grub to boot my kernel image ?
At the grub prompt type "kernel (" then TAB this should show all filesystems
that grub supports.
> in karims book it talks about building a root filesystem and
> /boot/grub/menu.lst but I can't see how this can run without the modules
> loaded needed by the kernel (e.g. docecc.o, doc2000.o etc) confused ;/ ...
It is grub that needs to know how to read /boot/grub/menu.lst not the
kernel. If you have applied the correct patches to grub then it should be
able to read the ext2 partition and load the menu file. I am trying to get
grub and DoC working at the moment so should be able to help you out with
questions. Also have a look at
http://lakeshoremicro.com/diskonchip-grub-howto.html
Regards,
Denis.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from DOC
2003-12-01 0:08 ` Denis Dowling
@ 2003-12-01 11:45 ` stephen
2003-12-01 12:34 ` stephen
0 siblings, 1 reply; 8+ messages in thread
From: stephen @ 2003-12-01 11:45 UTC (permalink / raw)
To: Denis Dowling; +Cc: linux-mtd
Hi Denis,
ye got it sussed now, I managed to patch correctly (i think this was the
main problem) then the kernel I was using wouldn't load my root filesystem,
kept coming out with:
VFS: unable to mount root filesystem on 5d:02
i assumed that 5d = major number , 02 = minor number, so I figured that 02
was referring to the correct partition number but was unable to read it, so
i re-compiled the kernel and the mtd drivers as 'built-ins', as soon as I
did that I now have my partitions:
nftla:
nftla1, nftla2
nftla1 is a 2MB partition /boot, contains my kernel image and menu.lst (grub
can read this no problem), nftla2 is 30 MB root filesystem, all I did was:
rdev <kernelimage> /dev/nftla2
I assumed this changed the ramdisk word in the kernel, plus of course I:
ldconfig -r /mnt/rootfs
which sits on /dev/nftla2 this sets up the root filesystem up for libraries
etc, also I had all to strip all my libraries, using:
objcopy --strip-debug FROM TO
most of this information can be found at:
http://www.tldp.org/HOWTO/Bootdisk-HOWTO/index.html
probably my favourite 'howto' apart from 'Beej's socket programming', hehe
thanks for your advice,
kind regards
stephen
----- Original Message -----
From: "Denis Dowling" <dpd@alphalink.com.au>
To: "stephen" <lcbr17306@blueyonder.co.uk>
Cc: "linux-mtd" <linux-mtd@lists.infradead.org>
Sent: Monday, December 01, 2003 12:08 AM
Subject: Re: booting from DOC
>
> ----- Original Message -----
> From: "stephen" <lcbr17306@blueyonder.co.uk>
> To: <linux-mtd@lists.infradead.org>
> Sent: Monday, November 24, 2003 10:09 PM
> Subject: booting from DOC
>
>
> > Hi All,
> >
> > didn't get a reply from my last post , which was me rambling on a bit
too
> > much or my text sounds arrogant? (sorry if it does i am just a newbie)
> >
> > I've been reading Karim Yaghmours book, got much further now, maybe
> someone
> > can put me straight on a couple of things? (hopefully)
> >
> > first of all I managed to install grub using 'doc_loadbios' so it
replaces
> > the DOC's SPL , then I managed to use 'nftl_format' and formatted from
> > memory address '98304' which isn't the size of the grub boot loader but
I
> > assume represents '16384 + 81920' , '81920' being the last erase offset,
> > from here I managed to 'fdisk nftla' and created a new partition
> > '/dev/nftla1', I can format this partition and safely read and write
data.
> I
> > compiled all the DOC files as modules, I didn't patch the kernel I
decided
> > to use a clean '2.4.19' kernel' , I also couldn't compile the latest CVS
>
> > tools ;/ so I went back to a previous snapshot
> > 'Mtd-snapshot-20020708.tar.bz2' , this compiled fine (mainly I couldnt
> > compile nftl_format and something to do with empty LIST_HEAD
structures,>
> blktrans.h with the latest CVS).
> My last patch fixes this :-)
>
> > I also realised that 'grub-0.92' needed
> > patching so i did that and repeated the steps with 'doc_loadbios' and
> > realised the last erase offset was now '65536' so the boot loader is
> smaller
> > and my new partition begins at offset '81920', plus this should have
> > contained 'ctrlbypass' as part of the grub compiled with patch.
>
> I cannot get ctrlbypass working with grub at the moment. Code looks
correct
> but always boots to the grub prompt even if I hold down the control key.
> Very strange.
>
> >
> > The grub loader boots from the DOC but stops at the grub prompt, how do
I
> > get grub to boot my kernel image ?
>
> At the grub prompt type "kernel (" then TAB this should show all
filesystems
> that grub supports.
>
> > in karims book it talks about building a root filesystem and
> > /boot/grub/menu.lst but I can't see how this can run without the modules
> > loaded needed by the kernel (e.g. docecc.o, doc2000.o etc) confused ;/
...
>
> It is grub that needs to know how to read /boot/grub/menu.lst not the
> kernel. If you have applied the correct patches to grub then it should be
> able to read the ext2 partition and load the menu file. I am trying to get
> grub and DoC working at the moment so should be able to help you out with
> questions. Also have a look at
> http://lakeshoremicro.com/diskonchip-grub-howto.html
>
> Regards,
> Denis.
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: booting from DOC
2003-12-01 11:45 ` stephen
@ 2003-12-01 12:34 ` stephen
0 siblings, 0 replies; 8+ messages in thread
From: stephen @ 2003-12-01 12:34 UTC (permalink / raw)
To: linux-mtd
Hi,
I just tested your patch on latest CVS (i think), maybe ill login to
CVS again and try:
patching file include/linux/mtd/nftl.h
patching file util/Makefile
Hunk #1 FAILED at 10
1 out of 1 hunk FAILED -- saving rejects to file util/Makefile.rej
patching file util/nftl_format.c
patching file util/nftldump.c
then:
make nftl_format
works fine!
btw also I tried to trace this error , having no previous experience in
LIST_HEAD structures I didn't really know what to look for, I sort of
figured that I needed to Initialise these structures somewhere was I correct
in this assumption?
kind regards
stephen
----- Original Message -----
From: "stephen" <lcbr17306@blueyonder.co.uk>
To: "Denis Dowling" <dpd@alphalink.com.au>
Cc: <linux-mtd@lists.infradead.org>
Sent: Monday, December 01, 2003 11:45 AM
Subject: Re: booting from DOC
> Hi Denis,
>
> ye got it sussed now, I managed to patch correctly (i think this was the
> main problem) then the kernel I was using wouldn't load my root
filesystem,
> kept coming out with:
>
> VFS: unable to mount root filesystem on 5d:02
>
> i assumed that 5d = major number , 02 = minor number, so I figured that 02
> was referring to the correct partition number but was unable to read it,
so
> i re-compiled the kernel and the mtd drivers as 'built-ins', as soon as I
> did that I now have my partitions:
>
> nftla:
>
> nftla1, nftla2
>
> nftla1 is a 2MB partition /boot, contains my kernel image and menu.lst
(grub
> can read this no problem), nftla2 is 30 MB root filesystem, all I did was:
>
> rdev <kernelimage> /dev/nftla2
>
> I assumed this changed the ramdisk word in the kernel, plus of course I:
>
> ldconfig -r /mnt/rootfs
>
> which sits on /dev/nftla2 this sets up the root filesystem up for
libraries
> etc, also I had all to strip all my libraries, using:
>
> objcopy --strip-debug FROM TO
>
> most of this information can be found at:
>
> http://www.tldp.org/HOWTO/Bootdisk-HOWTO/index.html
>
> probably my favourite 'howto' apart from 'Beej's socket programming', hehe
>
> thanks for your advice,
>
> kind regards
>
> stephen
> ----- Original Message -----
> From: "Denis Dowling" <dpd@alphalink.com.au>
> To: "stephen" <lcbr17306@blueyonder.co.uk>
> Cc: "linux-mtd" <linux-mtd@lists.infradead.org>
> Sent: Monday, December 01, 2003 12:08 AM
> Subject: Re: booting from DOC
>
>
> >
> > ----- Original Message -----
> > From: "stephen" <lcbr17306@blueyonder.co.uk>
> > To: <linux-mtd@lists.infradead.org>
> > Sent: Monday, November 24, 2003 10:09 PM
> > Subject: booting from DOC
> >
> >
> > > Hi All,
> > >
> > > didn't get a reply from my last post , which was me rambling on a bit
> too
> > > much or my text sounds arrogant? (sorry if it does i am just a newbie)
> > >
> > > I've been reading Karim Yaghmours book, got much further now, maybe
> > someone
> > > can put me straight on a couple of things? (hopefully)
> > >
> > > first of all I managed to install grub using 'doc_loadbios' so it
> replaces
> > > the DOC's SPL , then I managed to use 'nftl_format' and formatted from
> > > memory address '98304' which isn't the size of the grub boot loader
but
> I
> > > assume represents '16384 + 81920' , '81920' being the last erase
offset,
> > > from here I managed to 'fdisk nftla' and created a new partition
> > > '/dev/nftla1', I can format this partition and safely read and write
> data.
> > I
> > > compiled all the DOC files as modules, I didn't patch the kernel I
> decided
> > > to use a clean '2.4.19' kernel' , I also couldn't compile the latest
CVS
> >
> > > tools ;/ so I went back to a previous snapshot
> > > 'Mtd-snapshot-20020708.tar.bz2' , this compiled fine (mainly I couldnt
> > > compile nftl_format and something to do with empty LIST_HEAD
> structures,>
> > blktrans.h with the latest CVS).
> > My last patch fixes this :-)
> >
> > > I also realised that 'grub-0.92' needed
> > > patching so i did that and repeated the steps with 'doc_loadbios' and
> > > realised the last erase offset was now '65536' so the boot loader is
> > smaller
> > > and my new partition begins at offset '81920', plus this should have
> > > contained 'ctrlbypass' as part of the grub compiled with patch.
> >
> > I cannot get ctrlbypass working with grub at the moment. Code looks
> correct
> > but always boots to the grub prompt even if I hold down the control key.
> > Very strange.
> >
> > >
> > > The grub loader boots from the DOC but stops at the grub prompt, how
do
> I
> > > get grub to boot my kernel image ?
> >
> > At the grub prompt type "kernel (" then TAB this should show all
> filesystems
> > that grub supports.
> >
> > > in karims book it talks about building a root filesystem and
> > > /boot/grub/menu.lst but I can't see how this can run without the
modules
> > > loaded needed by the kernel (e.g. docecc.o, doc2000.o etc) confused ;/
> ...
> >
> > It is grub that needs to know how to read /boot/grub/menu.lst not the
> > kernel. If you have applied the correct patches to grub then it should
be
> > able to read the ext2 partition and load the menu file. I am trying to
get
> > grub and DoC working at the moment so should be able to help you out
with
> > questions. Also have a look at
> > http://lakeshoremicro.com/diskonchip-grub-howto.html
> >
> > Regards,
> > Denis.
> >
> >
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-12-01 12:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1AOFNr-0001Yk-QS@pentafluge.infradead.org>
2003-11-25 7:09 ` booting from DOC Felix Frey
2003-11-26 8:15 ` Ilguiz Latypov
2003-11-24 11:09 stephen
2003-12-01 0:08 ` Denis Dowling
2003-12-01 11:45 ` stephen
2003-12-01 12:34 ` stephen
-- strict thread matches above, loose matches on Subject: below --
2001-02-12 15:51 booting from doc David Hamm
2001-02-13 12:07 ` Mendel Mobach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox