public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* boot from diskonchip millenium
@ 2002-08-05 16:48 Glen
  2002-08-05 17:26 ` Ilguiz Latypov
  0 siblings, 1 reply; 6+ messages in thread
From: Glen @ 2002-08-05 16:48 UTC (permalink / raw)
  To: linux-mtd

I'm having trouble finding a solution to boot from the diskonchip
millenium. 
The available grub patches seem to do absolutely nothing useful, and the
only lilo references I can find assume you are using msys's software.  


If someone can point me in the right direction, I would appreciate it.  

-g

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

* Re: boot from diskonchip millenium
  2002-08-05 16:48 boot from diskonchip millenium Glen
@ 2002-08-05 17:26 ` Ilguiz Latypov
  2002-08-05 23:20   ` Glen
  0 siblings, 1 reply; 6+ messages in thread
From: Ilguiz Latypov @ 2002-08-05 17:26 UTC (permalink / raw)
  To: Glen; +Cc: linux-mtd

On 5 Aug 2002, Glen wrote:

> The available grub patches seem to do absolutely nothing useful,

Interesting.  Are there any messages on screen during the system boot?  

Are there any errors in compiling and setting up the bootloader as
explained in README_DiskOnChip?  The latter file can be seen only after
applying the patch, sorry.

Have you tried the --enable-diskonchip-biosnetboot configuration parameter
and toggled the BIOS network boot option?

> the only lilo references I can find assume you are using msys's
> software.

One has to implement a simple BIOS INT 13h interface. I guess you can
re-use the GRUB MTD firmware open source code including its
bdev_diskonchip.c NFTL driver.

Once this is done, you would erase all /dev/mtd0 blocks preceding the NFTL
layer and run lilo against /dev/mtd0 so that it can install itself and the
list of filesystem block numbers relative to device /dev/nftla.  These
numbers are persistent.  This is unlike to locations of flash erase blocks
abstracted by the NFTL layer.

Ilguiz

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

* Re: boot from diskonchip millenium
  2002-08-05 17:26 ` Ilguiz Latypov
@ 2002-08-05 23:20   ` Glen
  2002-08-06  4:15     ` Ilguiz Latypov
  0 siblings, 1 reply; 6+ messages in thread
From: Glen @ 2002-08-05 23:20 UTC (permalink / raw)
  To: Ilguiz Latypov; +Cc: linux-mtd

Well, I've gotten a bit farther.  
Since I would prefer grub, we'll go that route.  

For description, we'll say I have the mtd-source in /mtd and grub in
/grub-0.92.


First, I compiled grub with --enable-diskonchip-mil, --enable-ext2fs,
and --enable-vfat

# cp /grub-0.92/stage2/pre_stage2 /mtd/grub
# /mtd/util/doc_loadbios /dev/mtd/0 /mtd/grub/grub_firmware  

This didn't seem to present any results, as the bios didn't recognize a
bootloader at all.  

Then I tried running doc_loadbios with the grub_firmware generated from
within /grub-0.92/stage1.  

Now the bios recognizes and runs the boot loader, but it can't seem to
read my diskonchip filesystem.  

I've been loosely following the directions at:
http://lists.infradead.org/pipermail/linux-mtd/2001-October/003475.html


I'm a bit confused.  
What's the difference between the grub_firmware generated by grub and
grub_firmware generated by mtd?  

-g




First, I tried loading the grub_firmware that was generated from <mtd
source>/grub.  
On Mon, 2002-08-05 at 13:26, Ilguiz Latypov wrote:
> 
> On 5 Aug 2002, Glen wrote:
> 
> > The available grub patches seem to do absolutely nothing useful,
> 
> Interesting.  Are there any messages on screen during the system boot?  
> 
> Are there any errors in compiling and setting up the bootloader as
> explained in README_DiskOnChip?  The latter file can be seen only after
> applying the patch, sorry.
> 
> Have you tried the --enable-diskonchip-biosnetboot configuration parameter
> and toggled the BIOS network boot option?
> 
> > the only lilo references I can find assume you are using msys's
> > software.
> 
> One has to implement a simple BIOS INT 13h interface. I guess you can
> re-use the GRUB MTD firmware open source code including its
> bdev_diskonchip.c NFTL driver.
> 
> Once this is done, you would erase all /dev/mtd0 blocks preceding the NFTL
> layer and run lilo against /dev/mtd0 so that it can install itself and the
> list of filesystem block numbers relative to device /dev/nftla.  These
> numbers are persistent.  This is unlike to locations of flash erase blocks
> abstracted by the NFTL layer.
> 
> Ilguiz
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

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

* Re: boot from diskonchip millenium
  2002-08-05 23:20   ` Glen
@ 2002-08-06  4:15     ` Ilguiz Latypov
  2002-08-06 17:54       ` Glen
  0 siblings, 1 reply; 6+ messages in thread
From: Ilguiz Latypov @ 2002-08-06  4:15 UTC (permalink / raw)
  To: Glen; +Cc: linux-mtd

On 5 Aug 2002, Glen wrote:

> Now the bios recognizes and runs the boot loader, but it can't seem to
> read my diskonchip filesystem.  

Great, now on to the next step: what are the informational and error
messages?  Have you set up an NFTL layer on the chip?  Perhaps, you are
trying to install JFFS2 not NFTL?  Can you mount a flash filesystem when
booted from hard disk?  What is the content of your menu.lst file?

> I've been loosely following the directions at:
> http://lists.infradead.org/pipermail/linux-mtd/2001-October/003475.html

There is a newer instruction at

   http://lists.infradead.org/pipermail/linux-mtd/2002-June/005240.html

> What's the difference between the grub_firmware generated by grub and
> grub_firmware generated by mtd?  

I believe the original patch to GRUB worked only with DoC 2000.

Ilguiz

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

* Re: boot from diskonchip millenium
  2002-08-06  4:15     ` Ilguiz Latypov
@ 2002-08-06 17:54       ` Glen
  2002-08-06 18:04         ` Ilguiz Latypov
  0 siblings, 1 reply; 6+ messages in thread
From: Glen @ 2002-08-06 17:54 UTC (permalink / raw)
  To: Ilguiz Latypov; +Cc: linux-mtd

Ok.  
When the machine boots up, several lines scroll by...unfortunately too
fast for me to see.  

Then, about 50 lines scroll that say: 
Attempting to open /boot/grub/menu.lst 0x0 0x0
Attempting to open /boot/grub/menu.lst 0x0 0x1
Attempting to open /boot/grub/menu.lst 0x0 0x2
...and so on...

I then get a grub> prompt

"grub> geometry" reports: 
Error 11: Unrecognized device string

"grub> root" reports:
(dc0): Filesystem type unknown, using whole disk


I am using nftl_format to prepare the DOC (I don't even know what jffs2
is at this point).
The command used was nftl_format /dev/mtd/0 98304
After the nftl_format, I fdisk, format the partition, mount it, and copy
the kernel and grub conf.  

I've tried using both ext2 and vfat filesystems, with the same results. 


/boot/grub/menu.lst (on the DOC) is as follows:

default 0
timeout 5
title DOC Linux
	kernel (dc0,0)/boot/vmlinuz-2.4.18 root=/dev/nftl/disc0/part1

I've also tried: 

default 0
timeout 5
title DOC Linux
	kernel (dc0,0)/boot/vmlinuz-2.4.18 root=/dev/nftla1

and: 

default 0
timeout 5
title DOC Linux
	kernel (dc0)/boot/vmlinuz-2.4.18 root=/dev/nftl/disc0/part1


Ideas??

-g


On Tue, 2002-08-06 at 00:15, Ilguiz Latypov wrote:
> 
> On 5 Aug 2002, Glen wrote:
> 
> > Now the bios recognizes and runs the boot loader, but it can't seem to
> > read my diskonchip filesystem.  
> 
> Great, now on to the next step: what are the informational and error
> messages?  Have you set up an NFTL layer on the chip?  Perhaps, you are
> trying to install JFFS2 not NFTL?  Can you mount a flash filesystem when
> booted from hard disk?  What is the content of your menu.lst file?
> 
> > I've been loosely following the directions at:
> > http://lists.infradead.org/pipermail/linux-mtd/2001-October/003475.html
> 
> There is a newer instruction at
> 
>    http://lists.infradead.org/pipermail/linux-mtd/2002-June/005240.html
> 
> > What's the difference between the grub_firmware generated by grub and
> > grub_firmware generated by mtd?  
> 
> I believe the original patch to GRUB worked only with DoC 2000.
> 
> Ilguiz
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

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

* Re: boot from diskonchip millenium
  2002-08-06 17:54       ` Glen
@ 2002-08-06 18:04         ` Ilguiz Latypov
  0 siblings, 0 replies; 6+ messages in thread
From: Ilguiz Latypov @ 2002-08-06 18:04 UTC (permalink / raw)
  To: Glen; +Cc: linux-mtd

On 6 Aug 2002, Glen wrote:

> Attempting to open /boot/grub/menu.lst 0x0 0x0
> Attempting to open /boot/grub/menu.lst 0x0 0x1

I believe there were attempts to open configuration file on disk 0xe0
(DiskOnChip fake BIOS drive number just for the GRUB's internal BIOS disk
access API).  This always happens when the grub_firmware was compiled by
running aclocal/autoconf/automake commands from README_DiskOnChip and
specifying the --enable-diskonchip-mil option.  [The latest patches are
0.92 and 2002-07-29].
 
> Ideas??

If you created a partition within NFTL layer, the "root (dc0,0)" command 
would be worth trying.

Ilguiz

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

end of thread, other threads:[~2002-08-06 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-05 16:48 boot from diskonchip millenium Glen
2002-08-05 17:26 ` Ilguiz Latypov
2002-08-05 23:20   ` Glen
2002-08-06  4:15     ` Ilguiz Latypov
2002-08-06 17:54       ` Glen
2002-08-06 18:04         ` Ilguiz Latypov

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