JideTechnology / remixos-kernel

linux kernel source used in Remix OS
Other
142 stars 56 forks source link

Doesn't Build #4

Open uudruid74 opened 7 years ago

uudruid74 commented 7 years ago

Anyone else not able to make this thing build?

drivers/net/wireless/wl isn't in the official tree and its causing the make to crap out because there is no Makefile. I think someone committed the patches instead of the actual files. Can someone clean this mess up? I don't know what was done to it to be able to fix it.

UPDATE: Got it built by editting makefile and kbuild to not reference the empty wl directory, but someone messed up.

postadelmaga commented 7 years ago

Can you provide me some help on this ? ( share the makefile ) I want to compile the kernel just as it is in the normal release of remix os and then I will mod it to add intel atom support.

I tried this one but It is not working ( maybe because of the makefile ) make isoimage TARGET_PRODUCT=android-x86_64_defconfig got this error arch/x86/kernel/SSEPlus_float_REF.c:1:0: error: -mpreferred-stack-boundary=3 is not between 4 and 12

jide-opensource commented 7 years ago

To build the kernel, you need the Android source code:

  1. download Android-x86 source code (branch marshmallow-x86) from http://www.android-x86.org/getsourcecode
  2. replace kernel folder with Remix OS Kernel
  3. source build/envsetup.sh
  4. lunch android_x86_64-userdebug
  5. make kernel
youling257 commented 7 years ago

@jide-opensource ,how to build jide_chuwi_vi10_plus_r51 source ?

youling257 commented 7 years ago

https://osdn.net/projects/android-x86/scm/git/build/blobs/marshmallow-x86/core/tasks/kernel.mk

rules to get source of Broadcom 802.11a/b/g/n hybrid device driver

based on broadcomsetup.sh of Kyle Evans

WL_PATH := $(KERNEL_DIR)/drivers/net/wireless/broadcom/wl ifeq ($(wildcard $(WL_PATH)/build.mk),) WL_PATH := $(KERNEL_DIR)/drivers/net/wireless/wl endif -include $(WL_PATH)/build.mk

erenoglu commented 7 years ago

I'm also unable to build the kernel. I'm getting stuck like @postadelmaga on arch/x86/kernel/SSEPlus_float_REF.c:1:0: error: -mpreferred-stack-boundary=3 is not between 4 and 12

Would it be possible to have an explicit how-to build for us novice users? (I did build samsung ARM kernels before & some linux kernels, so have some experience but not expert).

Also, to build the Broadcom drivers, one need to patch kernel/drivers/net/wireless/wl/build.mk like below on the $(WL_SRC): part, to correct the link to the broadcom STA driver:

$(WL_SRC): @echo Downloading $(@F)... $(hide) curl https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$(@F) > $@

I got this from the patch here: https://git.solus-project.com/packages/broadcom-sta/commit/?h=broadcom-sta-6.30.223.271-88

Edit: I just built the default kernel from http://www.android-x86.org/getsourcecode using instructions of @jide-opensource and it built without any issues. I do not understand why this remixos-kernel does not build.

cwhuang1 commented 7 years ago

Due to some reasons the code must be built with gcc 4.6. You can get the toolchain:

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6

Then configure your buildspec.mk by adding this line:

CROSS_COMPILE := $(abspath prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin)/x86_64-linux-