Skip to contentSkip to conversation

Initial GRUB2 on Yeeloong

Announce Vladimir 'phcoder' Serbinenko 2 participants 3 messages Oct 25, 2009 – Dec 6, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Vladimir 'phcoder' Serbinenko

Hello, I'm here to announce that grub2 port for yeeloong has already had its first output. You can see it here:
http://robertmh.files.wordpress.com/2009/10/grub-yeeloong.jpeg (Thanks to Robert Millan for hosting the image)
On the image you can see standard shell waiting for input. What already works: booting as ELF from pmon, loading modules, graphics output if gfx card is already inited (is a case when booted from pmon), platform-independent parts
What doesn't work: keyboard and disks

Now keyboard works

Quoted 6 lines

Not checked: linux booting (works on qemu)
It also has stubs (e.g. "rtc" is just counting number of calls) and hardcodes (e.g. RAM size) but is already something. Compiling:
get mips branch of http://repo.or.cz/w/grub2/phcoder.git

git branch removed due to general move to bazaar. Now it's available under http://bzr.savannah.gnu.org/r/grub/people/phcoder/mips/

Quoted 6 lines

./autogen.sh
./configure --target=mipsel --with-platform=yeeloong
make
Create a font.bin as explained here: http://grub.enbug.org/gfxterm
./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal

Now it's:

./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal at_keyboard

Quoted 4 lines

Boot it as if it was linux kernel
Enjoy starring at unresponsive prompt

Signature · 3 lines
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git 
#2 lore raw
Quoted 8 lines · Vladimir 'phcoder' Serbinenko
Quoted 6 lines

What already works: booting as ELF from pmon, loading modules, graphics output if gfx card is already inited (is a case when booted from pmon), platform-independent parts
What doesn't work: keyboard and disks

Now keyboard works

Another update: Now internal disk and Linux loading work. Because of bzr reconstruction I can't push it on it. Interested persons can just mail me and I'll send you a tarball

Quoted 7 lines
Quoted 7 lines

./autogen.sh
./configure --target=mipsel --with-platform=yeeloong
make
Create a font.bin as explained here: http://grub.enbug.org/gfxterm
./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal

Quoted 5 lines

Now it's:

./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal at_keyboard

./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal at_keyboard ata linux part_msdos ext2

Signature · 3 lines
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git 
#3 lore raw
Quoted 3 lines · Vladimir 'phcoder' Serbinenko
Quoted 1 line
Quoted 1 line

Create a font.bin as explained here: http://grub.enbug.org/gfxterm

./grub-mkimage -O elf -o grub.elf -d . -f font.bin sm712 gfxterm sh normal at_keyboard ata linux part_msdos ext2

Hi,

Vladimir's port of GRUB to the Yeeloong has been merged in GRUB experimental tree, and is now packaged and will be available in metad in a few hours.

There's no grub-install yet. For those of you who want to try, install the grub-yeeloong package and follow Vladimir's instructions (quoted above).

When running system-wide grub-mkimage, you may skip the "-d ." flag (in fact, you probably have to).

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."