OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / Documentation / HITACHI-BigSurIV_ROMBoot-HOWTO
1 -------------------------------
2 HITACHI BigSurIV ROM Boot patch
3 -------------------------------
4
5
6 This patch will add an additional option in the kernel configuration to have
7 the kernel boot from ROM instead of needing to be copied to RAM first.
8
9 To apply this patch, go into the following directory,
10
11 cd uClinux-dist
12 and run
13 patch -p0 < $PATCH_LOCATION/linux-sh-ROMBoot.patch
14
15
16 This will give you a new option in the kernel configuration called
17 "Boot kernel from ROM". Select this option if you want to have the
18 kernel code segment running from ROM.
19
20 Then you will need to give the offset into the ROM where you wish
21 to store/run the image from.
22
23 You will then need to modify your boot loader to jump into the specified
24 offset + 0x1000. So if the offset is specified as 0x100000 (the default),
25 then your boot loader needs to jump to 0x101000 to boot the kernel.
26
27 Also, remove any code for copying the image into RAM. Any copying that
28 needs to be done will be done by the kernel itself.