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 #!/bin/sh
set -e set -x
cp $1 $2
O=`pwd` exit 0
make -C $3/../arch/x86/kboot O=$O clean #set -e
#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 #O=`pwd`
#make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x901001000 #
#make -C $3/../arch/x86/kboot O=$O clean
make -C $3/../arch/x86/elfboot O=$O clean ##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
make -C $3/../arch/x86/elfboot O=$O #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
cat elfboot/elfboot kboot/kboot.elf > $2 #
#make -C $3/../arch/x86/elfboot O=$O clean
make -C $3/../arch/x86/kboot O=$O clean #make -C $3/../arch/x86/elfboot O=$O
#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
cat elfboot/elfboot kboot/kboot.elf > $2.768M #
#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

View File

@ -1,20 +1,24 @@
#!/bin/sh #!/bin/sh
set -e cp $1 $2
O=`pwd` exit 0
make -C $3/../arch/x86/kboot O=$O clean #set -e
#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=0x101001000 #O=`pwd`
#make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x901001000 #
#make -C $3/../arch/x86/kboot O=$O clean
make -C $3/../arch/x86/elfboot O=$O clean ##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x3a001000
make -C $3/../arch/x86/elfboot O=$O #make -C $3/../arch/x86/kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x101001000
##make -C $3/../kboot O=$O KIMAGE="$O/$1" LOAD_PA=0x901001000
cat elfboot/elfboot kboot/kboot.elf > $2 #
#make -C $3/../arch/x86/elfboot O=$O clean
make -C $3/../arch/x86/kboot O=$O clean #make -C $3/../arch/x86/elfboot O=$O
#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=0x201001000 #cat elfboot/elfboot kboot/kboot.elf > $2
cat elfboot/elfboot kboot/kboot.elf > $2.8G #
#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=0x201001000
#cat elfboot/elfboot kboot/kboot.elf > $2.8G