Booting from flash
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 [email protected]
Quoted 1 line · [email protected] 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.
Quoted 1 line
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.)
Quoted 1 line
The board I'm using is a standard PC architecture.
Wimp.
Quoted 1 line
How do all you guys boot?
I don't, on a PC.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 3 lines · David Woodhouse
Quoted 1 line
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 [email protected]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
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 [email protected]
Quoted 3 lines · Bjorn Eriksson
Quoted 1 line
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 [email protected]
Quoted 6 lines · David Woodhouse
Quoted 1 line · [email protected] 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.
Quoted 4 lines
Quoted 1 line
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.
Quoted 6 lines
(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.)
Quoted 1 line
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 [email protected]
Simplified initrd on flash/ROM.
In reply to Kira Brown 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 [email protected]
Update: Simplified initrd on flash/ROM.
Quoted 4 lines
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()callsget_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 [email protected]
Quoted 4 lines · David Woodhouse
Quoted 1 line
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 [email protected]