Trying to boot linux off a 2MiB M-Sys DoC2000 chip
Hi
For the last couple of weeks I've been getting closer and closer to booting a kernel from my 2MiB DoC. :)
I managed to get grub installed onto the DoC yesterday (very exciting stuff), and I have a ext2 partition (about 1.8MiB in size)
My question is, how do I configure grub to know how to boot off the DoC? I can get it to boot off an IDE HDD (root hd(0,0); kernel /boot/bzImage; boot) but how would grub know how to access the DoC's kernel?
Would doc-lilo be a better alternative?
Thanks in advance for any help!
Regards,
Gonzalo.
Quoted 3 lines · Gonzalo Servat
My question is, how do I configure grub to know how to boot off the DoC? I can get it to boot off an IDE HDD (root
hd(0,0); kernel/boot/bzImage; boot) but how would grub know how to access the DoC's kernel?
Try
root (dc0)
kernel /boot/vmlinuz root=/dev/nftla ro
for a filesystem on top of /dev/nftla or
root (dc0,0)
kernel /boot/vmlinuz root=/dev/ntla1
for one on top of /dev/nftla1. The first line may point to a different partition that would hold the kernel image. Such separation allows to let GRUB boot a kernel off an ext2 partition. The kernel in turn can mount another ext3 partition under "/". GRUB is not aware of ext3.
Ilguiz
Quoted 14 lines · Ilguiz Latypov
Quoted 3 lines · Gonzalo Servat
My question is, how do I configure grub to know how to boot off the DoC? I can get it to boot off an IDE HDD (root
hd(0,0); kernel/boot/bzImage; boot) but how would grub know how to access the DoC's kernel?Try
root (dc0)
kernel/boot/vmlinuzroot=/dev/nftla rofor a filesystem on top of
/dev/nftlaor
Quoted 7 lines
root (dc0,0)
kernel/boot/vmlinuzroot=/dev/ntla1for one on top of
/dev/nftla1. The first line may point to a different partition that would hold the kernel image. Such separation allows to let GRUB boot a kernel off an ext2 partition. The kernel in turn can mount another ext3 partition under "/". GRUB is not aware of ext3.
Hi Ilguiz. Thanks for your reply.
I tried this and Grub doesn't like "dc0". It says "Error 23: Error while parsing number" .. I tried doing tab completion after the 'dc' but it kept giving me the same error.
The DiskOnChip is on /dev/mtd0 and my first partition is /dev/nftla1 (ext2)
I configured /boot/grub/{menu.lst,grub.conf} on the DOC but since Grub doesn't seem to be able to read the DOC, it can't read the menu.lst.
Any help would be greatly appreciated.
Thanks!
Regards,
Gonzalo
Quoted 4 lines
Ilguiz
Gonzalo,
Did you see the recent instruction on applying the MTD DiskOnChip patch to GRUB? It's in
http://lists.infradead.org/pipermail/linux-mtd/2002-June/005240.html
Ilguiz
Quoted 2 lines · Gonzalo Servat
I tried this and Grub doesn't like "dc0". It says "Error 23: Error while parsing number"
Quoted 7 lines · Ilguiz Latypov
Gonzalo,
Did you see the recent instruction on applying the MTD DiskOnChip patch to GRUB? It's in
http://lists.infradead.org/pipermail/linux-mtd/2002-June/005240.html
Ah, great. Thanks for that!
I followed the instructions and as I was trying to compile grub-0.92, in the stage2 directory it gave me lots of 'overriding old commands for target xxxxxxxxxxx' and 'ignorning old commands for target xxxxxxxxxxxxx'
where xxxxxxxxxx was for example: nbloader.exec, pxeloader.exe, diskless.exec, etc.
After all those errors I got a lot of "undefined reference to terminal" and "undefined reference to debug" and a few other undefined references and after an undef reference to 'chain_stage2' it exited and didn't finish compiling. Any ideas?
Thanks again
Gonzalo.
Quoted 9 lines
Ilguiz
Quoted 2 lines · Gonzalo Servat
I tried this and Grub doesn't like "dc0". It says "Error 23: Error while parsing number"