Zbr's days.
June
Sun Mon Tue Wed Thu Fri Sat
         
3
2007
Months
Jun

About :: TODO :: Blog :: RSS :: Old blog :: Projects :: GIT :: Gallery :: Notes

Sun, 03 Jun 2007

Boot loader source code.


Interested reader can find bootloader code, which resides in MBR and reads kernel from offset of 1 segment using standard SuperH IPL (aka BIOS), in archive.
Size of the image it reads should be less than 1179648 bytes, otherwise you will need to increase that parameter (see comments). One can also change offset from where to read a kernel image. There is also compilation and CF writing script, which is easily understandible.
To write kernel image (with default parameters in bootlaoder) you just need to run following command:

dd if=arch/sh/boot/zImage of=/dev/sdb obs=512 seek=1
where /dev/sdb should be replaced with device node for the compact flash attached to your host system.

Remember, that it does not support anything besides booting (i.e. no partition tables, no command line).

/devel/sh :: Link / Comments (0)

Please solve this captcha to be allowed to post (need to reload in a minute): 5 - 48

Comments are closed for this story.