next up previous contents index
Next: Where are we? Up: Setting up an initial Previous: Bundle the Linux kernel   Contents   Index


Building the bootloader

Everything's ready to get glued together. The only thing we need is a bootloader that helps us to get our stuff into the memory and execute it:

$ cd BUILD
$ tar -xvzf ../SRC/sh-boot-20010831-1455.tar.gz -C .
$ patch -p0 < ../SRC/sh-boot-20010831-1455.diff

The next steps create a file kernel-boot.bin that contains the Linux kernel and the initial ramdisk. So, these steps have to be done every time, you change either the Linux kernel or something within the initial ramdisk (e.g. copy a new program to it or modify the configuration):

$ cd sh-boot/tools/dreamcast
$ cp ../../../../KERNEL/linux/arch/sh/boot/zImage \
  ./zImage.bin
$ cp ../../../../initrd.bin .
$ make scramble kernel-boot.bin

Now, you've got two possibilities.

Congratulations. You overcome the first steps.


next up previous contents index
Next: Where are we? Up: Setting up an initial Previous: Bundle the Linux kernel   Contents   Index
Christian Berger 2004-10-19