[Arm-dev] supported 64bit hardware
Uli Middelberg
uli at middelberg.de
Tue Dec 13 19:48:47 UTC 2016
Am 13.12.2016 um 20:29 schrieb Lomovtsev, Vadim:
> I believe you're trying to build arm64 kernel rpm by make rpm-pkg command, correct?
Yes, I do.
> And I also faced similar issue some time ago with my kernel and was able to fix it setting properly UTS_MACHINE variable.
>
> Could you give me a link or version to kernel sources to let me take a look github or any other ?
Thats very kind. I'm using my own copy of HK's kernel source repository
https://github.com/aa64/linux/tree/odroidc2-3.14.y
I needed to rework the patch a little bit ...
---
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 18ea69f..e7a552e 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -25,10 +25,12 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
KBUILD_CPPFLAGS += -mbig-endian
AS += -EB
LD += -EB
+UTS_MACHINE := aarch64_be
else
KBUILD_CPPFLAGS += -mlittle-endian
AS += -EL
LD += -EL
+UTS_MACHINE := aarch64_be
endif
comma = ,
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index f535a85..2564dfd 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -11,6 +11,8 @@ CFLAGS_REMOVE_ftrace.o = -pg
CFLAGS_REMOVE_insn.o = -pg
CFLAGS_REMOVE_return_address.o = -pg
+CFLAGS_setup.o = -DUTS_MACHINE='"$(UTS_MACHINE)"'
+
# Object file lists.
arm64-obj-y := cputable.o debug-monitors.o entry.o irq.o fpsimd.o \
entry-fpsimd.o process.o ptrace.o setup.o signal.o \
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index ae7e607..46973ea 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -42,7 +42,7 @@ create_package() {
debarch=hppa ;;
mips*)
debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
- arm64)
+ aarch64)
debarch=arm64 ;;
arm*)
debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20161213/46bc4b96/attachment-0001.sig>
More information about the Arm-dev
mailing list