Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: when the kernel location conflicts with the uboot that loads it
On Mon, Jan 24, 2011 at 3:55 PM, Jonathan A. Kollasch
<jakllsch%kollasch.net@localhost> wrote:
> Hi,
>
> I've got a Marvell Orion-based NAS (HP MV2120), the MARVELL_NAS kernel
> is linked at 0x8000, a location that causes the loading kernel to clobber
> the in-RAM U-Boot. Do I really need to duplicate a whole bunch of config
> files just to move the kernel base to 0x400000?
>
> I admit that 4MiB seems rather high, but that's where HP's Linux for this
> thing was loaded.
>
> Jonathan Kollasch
>
Hi,
I changed just 3 lines for my DNS323. Diff is at the end
$ grep 200000 *marvell*
mk.marvell:KERNEL_BASE_PHYS=0x00200000
mk.marvell:KERNEL_BASE_VIRT=0xc0200000
std.marvell:makeoptions LOADADDRESS="0xc0200000"
Lwazi
diff -r d51c1d1009e2 -r ce80a68078e9 src/sys/arch/evbarm/conf/mk.marvell
--- a/src/sys/arch/evbarm/conf/mk.marvell Sat Sep 25 17:05:06 2010 -0400
+++ b/src/sys/arch/evbarm/conf/mk.marvell Sat Oct 16 12:02:30 2010 -0400
@@ -5,8 +5,8 @@
_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh
-KERNEL_BASE_PHYS=0x00008000
-KERNEL_BASE_VIRT=0xc0008000
+KERNEL_BASE_PHYS=0x00200000
+KERNEL_BASE_VIRT=0xc0200000
.if ${USETOOLS} == "yes"
MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage
diff -r d51c1d1009e2 -r ce80a68078e9 src/sys/arch/evbarm/conf/std.marvell
--- a/src/sys/arch/evbarm/conf/std.marvell Sat Sep 25 17:05:06 2010 -0400
+++ b/src/sys/arch/evbarm/conf/std.marvell Sat Oct 16 12:02:30 2010 -0400
@@ -17,6 +17,6 @@
options COM_REGMAP
options KERNEL_BASE_EXT=0xc0000000
-makeoptions LOADADDRESS="0xc0008000"
+makeoptions LOADADDRESS="0xc0200000"
makeoptions BOARDMKFRAG="${THISARM}/conf/mk.marvell"
options ARM_INTR_IMPL="<arch/arm/marvell/mvsoc_intr.h>"
Home |
Main Index |
Thread Index |
Old Index