grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[grub-devel] loongson-2f mini-pc (fuloong) elf image generation.


From: Javier Vasquez
Subject: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.
Date: Sun, 28 Oct 2012 10:31:49 -0600

As it was announced on 2.0 release, I attempted to compile/install
vanilla grub on a mini-pc, with 4.7 gcc...

I just used:

./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install

After installing I removed old grub generated stuff, and ran:

sudo grub-install --boot-directory=/boot --target=mipsel-loongson
--recheck /dev/sda

That automatically generate a /boot/grub.elf image.  Then after
editing /etc/default/grub I ran:

sudo grub-mkconfig -o /boot/grub/grub.cfg

So far so good...  I already have as a /boot/boot.cfg menu entry, one
dedicated to use the grub elf image:

title   Boot with GNU GRUB2
        kernel  (wd0,0)/grub.elf
        args    console=tty no_auto_cmd

When rebooting, and selecting to use the grub.elf image, I get the
grub menu, and apparently it works, cause after the timeout expires it
selects the first grub menu entry, and everything works.  However a
bad thing is that the usb keyboard does not work on the grub menu.

I then tried to manually generate a grub.elf image by running:

sudo grub-mkimage -O mipsel-fuloong-elf -o /boot/grub.elf linux ata
usb_keyboard ohci part_msdos ext2 xfs part_gpt ls halt reboot usbms
usb gzio search lspci help ahci blocklist date elf pata configfile
echo

And the grub.elf generated got worse, cause not only I still didn't
get the usb keyboard to work, but the menu was not loaded, the only
thing available was the grub prompt, which is useless without
keyboard, :-)

I also tried:

sudo grub-mkimage -O mipsel-fuloong-elf -o /boot/grub.elf linux ata
usb_keyboard ohci part_msdos ext2 xfs part_gpt ls halt reboot usbms
gzio search lspci help ahci blocklist date elf pata configfile echo

But that didn't make any difference.

Then I said, well perhaps the latest bzr revision has some fix in it.
And I went through the slower procees of "./autogen.sh" prior to the
same configure, and make steps...

That didn't help either.  Teh automatically generated elf image works
but without usb keyboard support, and the manually generated one
doesn't work either as 2.0 didn't...

Any hints?

Thanks,

-- 
Javier.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]