public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Booting from flash
@ 2000-07-31 15:18 David Vrabel
  2000-07-31 15:29 ` David Woodhouse
  0 siblings, 1 reply; 9+ messages in thread
From: David Vrabel @ 2000-07-31 15:18 UTC (permalink / raw)
  To: mtd

Hi,

How would I go about getting linux to boot of flash. If I'm using FTL do
I need to make GRUB/LILO understand FTL?  The board I'm using is a
standard PC architecture.

How do all you guys boot?

David Vrabel.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 15:18 Booting from flash David Vrabel
@ 2000-07-31 15:29 ` David Woodhouse
  2000-07-31 15:48   ` Kira Brown
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: David Woodhouse @ 2000-07-31 15:29 UTC (permalink / raw)
  To: David Vrabel; +Cc: mtd


dvrabel@arcom.co.uk said:
>  How would I go about getting linux to boot of flash.

See Jason's stuff in the boot/ directory of my CVS tree. I haven't looked 
at it. Other people are booting off flash quite happily.

> If I'm using FTL do I need to make GRUB/LILO understand FTL?  

Yes. But why are you using FTL? It's patented and you're not permitted to 
use it on non-PCMCIA devices. You should probably be using JFFS instead.

(You'd need to get your bootloader to understand JFFS, too, but keep an eye 
on handhelds.org where that task is fairly high up on the TODO list.)

> The board I'm using is a standard PC architecture.

Wimp.

> How do all you guys boot?

I don't, on a PC. 

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 15:29 ` David Woodhouse
@ 2000-07-31 15:48   ` Kira Brown
  2000-07-31 18:56     ` Bjorn Eriksson
  2000-08-01  8:38   ` Booting from flash David Vrabel
  2000-08-05  5:22   ` root
  2 siblings, 1 reply; 9+ messages in thread
From: Kira Brown @ 2000-07-31 15:48 UTC (permalink / raw)
  To: David Woodhouse; +Cc: David Vrabel, mtd



On Mon, 31 Jul 2000, David Woodhouse wrote:

> > The board I'm using is a standard PC architecture.
> 
> Wimp.

Does the SC4x0 count as a non-standard PC architecture?

kira.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 15:48   ` Kira Brown
@ 2000-07-31 18:56     ` Bjorn Eriksson
  2000-07-31 21:15       ` Kira Brown
  0 siblings, 1 reply; 9+ messages in thread
From: Bjorn Eriksson @ 2000-07-31 18:56 UTC (permalink / raw)
  To: mtd


> > > The board I'm using is a standard PC architecture.
> >
> > Wimp.
>
> Does the SC4x0 count as a non-standard PC architecture?

 Sure, if you're booting it using your own boot loader w/o BIOS. <ignore me>


//Björnen



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 18:56     ` Bjorn Eriksson
@ 2000-07-31 21:15       ` Kira Brown
  2000-08-02 18:07         ` Simplified initrd on flash/ROM Bjorn Eriksson
  0 siblings, 1 reply; 9+ messages in thread
From: Kira Brown @ 2000-07-31 21:15 UTC (permalink / raw)
  To: Bjorn Eriksson; +Cc: mtd



On Mon, 31 Jul 2000, Bjorn Eriksson wrote:

> > Does the SC4x0 count as a non-standard PC architecture?
> 
>  Sure, if you're booting it using your own boot loader w/o BIOS. <ignore me>

We write our own BIOSen, is that sufficient?

kira.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 15:29 ` David Woodhouse
  2000-07-31 15:48   ` Kira Brown
@ 2000-08-01  8:38   ` David Vrabel
  2000-08-05  5:22   ` root
  2 siblings, 0 replies; 9+ messages in thread
From: David Vrabel @ 2000-08-01  8:38 UTC (permalink / raw)
  To: mtd

David Woodhouse wrote:
> 
> dvrabel@arcom.co.uk said:
> >  How would I go about getting linux to boot of flash.
> 
> See Jason's stuff in the boot/ directory of my CVS tree. I haven't looked
> at it. Other people are booting off flash quite happily.

Thanks.

> > If I'm using FTL do I need to make GRUB/LILO understand FTL?
> 
> Yes. But why are you using FTL? It's patented and you're not permitted to
> use it on non-PCMCIA devices. You should probably be using JFFS instead.

Woah! This sort of restriction should be listed in the README or website
to prevent dumb people like me from using it by mistake.
 
> (You'd need to get your bootloader to understand JFFS, too, but keep an eye
> on handhelds.org where that task is fairly high up on the TODO list.)
> 
> > The board I'm using is a standard PC architecture.
> 
> Wimp.

Not my fault. I just work here.  In fact I'm just a lowly student
working during summer hence all the clueless questions.
 
David Vrabel



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Simplified initrd on flash/ROM.
  2000-07-31 21:15       ` Kira Brown
@ 2000-08-02 18:07         ` Bjorn Eriksson
  2000-08-02 21:07           ` Update: " Bjorn Eriksson
  0 siblings, 1 reply; 9+ messages in thread
From: Bjorn Eriksson @ 2000-08-02 18:07 UTC (permalink / raw)
  To: mtd


 Does anyone know why I'm not allowed to call ioremap() in
i386/kernel/setup.c:setup_arch()? It fails with the message 'kmem_alloc:
NULL ptr (name=unknown)' when __ioremap() calls get_vm_area(size).

 I'm trying to instruct rd.c to read an initrd directly from my ROM which
I've mapped directly above RAM on my hardware. I've got 16MB RAM @ 0-15MB
and 1MB ROM @ 16MB. The actual code is: (BE_EMBEDDED_DEVICE is #defined)

#ifdef CONFIG_BLK_DEV_INITRD
  #if defined(BE_EMBEDDED_DEVICE)
	initrd_start = ioremap(EPROM_start+ROMDISK_start,
EPROM_size-ROMDISK_start); //remap ~ 1MB @ 16MB
	initrd_end = initrd_start+EPROM_size-ROMDISK_start;
  #else
    if (LOADER_TYPE) {
        initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0;
        initrd_end = initrd_start+INITRD_SIZE;
        if (initrd_end > memory_end) {
            printk("initrd extends beyond end of memory "
                "(0x%08lx > 0x%08lx)\ndisabling initrd\n",
                initrd_end,memory_end);
            initrd_start = 0;
        }
    }
  #endif
#endif

 I'm trying to simplify my initrd set-up a bit. The old code was distinctly
trial n' error using ROM disk - rom.c (O.Xymoron's modified loop.c I've
modified to work in 2.2.x). I'd rather use simple initrd support with gzip
compression.


//Björnen.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Update: Simplified initrd on flash/ROM.
  2000-08-02 18:07         ` Simplified initrd on flash/ROM Bjorn Eriksson
@ 2000-08-02 21:07           ` Bjorn Eriksson
  0 siblings, 0 replies; 9+ messages in thread
From: Bjorn Eriksson @ 2000-08-02 21:07 UTC (permalink / raw)
  To: mtd


>  Does anyone know why I'm not allowed to call ioremap() in
> i386/kernel/setup.c:setup_arch()? It fails with the message 'kmem_alloc:
> NULL ptr (name=unknown)' when __ioremap() calls get_vm_area(size).

 Rudely replying to my self... I obviously didn't research this enough
before posting. The reason seems to be that the slab allocator isn't
initialised yet at this point so the kmalloc() call in get_vm_area() fails.

 I guess I'll have to defer the initialisation till later on in the boot
process.


//Björnen.




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

* Re: Booting from flash
  2000-07-31 15:29 ` David Woodhouse
  2000-07-31 15:48   ` Kira Brown
  2000-08-01  8:38   ` Booting from flash David Vrabel
@ 2000-08-05  5:22   ` root
  2 siblings, 0 replies; 9+ messages in thread
From: root @ 2000-08-05  5:22 UTC (permalink / raw)
  To: David Woodhouse; +Cc: David Vrabel, mtd


On Mon, 31 Jul 2000, David Woodhouse wrote:

> >  How would I go about getting linux to boot of flash.
> 
> See Jason's stuff in the boot/ directory of my CVS tree. I haven't looked 
> at it. Other people are booting off flash quite happily.

Since JFFS is working so nice someone really needs to write a version that
can speak JFFS, then you will have a complete solution! 

I have no time though, we are moving offices suddenly :<

Jason



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

end of thread, other threads:[~2000-08-05  5:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-31 15:18 Booting from flash David Vrabel
2000-07-31 15:29 ` David Woodhouse
2000-07-31 15:48   ` Kira Brown
2000-07-31 18:56     ` Bjorn Eriksson
2000-07-31 21:15       ` Kira Brown
2000-08-02 18:07         ` Simplified initrd on flash/ROM Bjorn Eriksson
2000-08-02 21:07           ` Update: " Bjorn Eriksson
2000-08-01  8:38   ` Booting from flash David Vrabel
2000-08-05  5:22   ` root

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