support to load kernel to any phys addr

This commit is contained in:
Tomoki Shirasawa
2013-02-04 11:39:09 +09:00
parent 9818e199f6
commit db830fa39e
2 changed files with 41 additions and 32 deletions

View File

@ -1,20 +1,25 @@
#!/bin/sh
set -e
set -x
cp $1 $2
O=`pwd`
exit 0
make -C $3/../arch/x86/kboot O=$O clean
#make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
make -C $3/../arch/x86/kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x21001000
#make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x901001000
make -C $3/../arch/x86/elfboot O=$O clean
make -C $3/../arch/x86/elfboot O=$O
cat elfboot/elfboot kboot/kboot.elf > $2
make -C $3/../arch/x86/kboot O=$O clean
#make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
make -C $3/../arch/x86/kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x31001000
cat elfboot/elfboot kboot/kboot.elf > $2.768M
#set -e
#
#O=`pwd`
#
#make -C $3/../arch/x86/kboot O=$O clean
##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
#make -C $3/../arch/x86/kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x21001000
##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x901001000
#
#make -C $3/../arch/x86/elfboot O=$O clean
#make -C $3/../arch/x86/elfboot O=$O
#
#cat elfboot/elfboot kboot/kboot.elf > $2
#
#make -C $3/../arch/x86/kboot O=$O clean
##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
#make -C $3/../arch/x86/kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x31001000
#cat elfboot/elfboot kboot/kboot.elf > $2.768M