Compiling RemixOS kernel

75 views
Skip to first unread message

osvan...@gmail.com

unread,
Feb 12, 2016, 5:29:04 AM2/12/16
to Remix OS for PC
Hi all,

I created a basic defconfig for my device, and afther that i wanted to inlude;
android/configs/android-base.cfg android/configs/android-recommended.cfg
https://github.com/jide-opensource/remixos-kernel/tree/jide_x86_lollipop/android/configs

ARCH=x86_64 scripts/kconfig/merge_config.sh <path_to>/<device>_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
However i get allot messages "not in final .config" and the entries in .config are not changed.

I wonder if i need, ARCH=android-x86_64
becuase there seems to be a custom android-x86_64_defconfig
Any one can help me out on this? Kernel Source: https://github.com/jide-opensource/remixos-kernel

osvan...@gmail.com

unread,
Feb 12, 2016, 5:40:01 AM2/12/16
to Remix OS for PC
This is all i can find in the make file,

 ifeq
($(ARCH),x86)
 ifeq
($(shell uname -m),x86_64)
 KBUILD_DEFCONFIG
:= x86_64_defconfig
 
else
 KBUILD_DEFCONFIG
:= i386_defconfig
 endif
 
else
 KBUILD_DEFCONFIG
:= $(ARCH)_defconfig
 endif



HyperT

unread,
Feb 12, 2016, 7:49:45 AM2/12/16
to Remix OS for PC
The ARCH=x86_64 looks right to me. This is more for the GCC so the right compiler is used. I don't think it matters too much if your using a x86_64 system to compile for x86_64...

Michel Steinbusch

unread,
Feb 12, 2016, 8:43:41 AM2/12/16
to Remix OS for PC
Thanks Hyper,

But i still need this? https://github.com/jide-opensource/remixos-kernel/tree/jide_x86_lollipop/android/configs
I don't get it why it's not writing me a new .config with the recommended options described in there readme.




HyperT

unread,
Feb 12, 2016, 8:52:17 AM2/12/16
to Remix OS for PC
Ah I got ya, That seems to be just taking a minimal _defconfig and adding those base/recommended cfgs to it.

The configs are here: https://github.com/jide-opensource/remixos-kernel/tree/jide_x86_lollipop/arch/x86/configs

so ARCH=x86 is probably what you need to use if you want to use that script; alternatively just put a full _defconfig in that folder

Michel Steinbusch

unread,
Feb 12, 2016, 9:06:51 AM2/12/16
to Remix OS for PC
So  i'm just new to this all, and thank you for your support.

So the android-x86_64_defconfig is like the .config ? can I just rename it to .config and use the -o option make -j8 -o .config ?
I just need CONFIG_R8188EU=y instead of CONFIG_R8188EU=m :)

HyperT

unread,
Feb 12, 2016, 10:58:00 AM2/12/16
to Remix OS for PC
Yeah, also if you issue:
ARCH=x86
make android-x86_64
it automatically uses this _defconfig (copies it to .config in kernel folder)

Michel Steinbusch

unread,
Feb 12, 2016, 4:05:37 PM2/12/16
to Remix OS for PC
Thanks, i was able to compile my first kernel, i tought that the included defconfig had the default stock kernel settings, however it seems i was wrong, When it booted I dident see /dev/sdax etc.
dmesg dident give me anything aswell, it was stuck on detecting android and then followed by lots of dots.


Message has been deleted

HyperT

unread,
Feb 12, 2016, 4:45:27 PM2/12/16
to Remix OS for PC
Check the grub; if you can drop to command line [e or c or something]; then:
ls
ls (hd0,gpt1)/ etc. and see if it reports unknown filesystem.

Michel Steinbusch

unread,
Feb 12, 2016, 5:15:52 PM2/12/16
to Remix OS for PC
Yhea i did that, driver was missing, ACHI was disabled in the kernel config, i enabled it, itś getting past the searching for android and i see my drives now, but no GUI straight into a shell.

HyperT

unread,
Feb 12, 2016, 5:36:06 PM2/12/16
to Remix OS for PC
Have you replaced the system/lib/modules/4.* folder as well?
Checked 'df' and 'mount' from # to see whats mounted.
Typed 'exit' to continue boot?

Just fyi I haven't looked for the module packer script, if you see it.

Michel Steinbusch

unread,
Feb 12, 2016, 6:42:39 PM2/12/16
to Remix OS for PC
I did build modules, but itś confusing i have no idea where they are getting placed lol

HyperT

unread,
Feb 12, 2016, 6:59:23 PM2/12/16
to Remix OS for PC
I believe this folders the .ko's if you can make sense of it.
https://sourceforge.net/p/android-x86/build/ci/marshmallow-x86/tree/core/tasks/kernel.mk

Michel Steinbusch

unread,
Feb 14, 2016, 2:06:17 PM2/14/16
to Remix OS for PC
I figured it out, well i builded it and replaced the modules but still only a shell, iḿ missing something here.

Michel Steinbusch

unread,
Feb 14, 2016, 2:06:22 PM2/14/16
to Remix OS for PC

HyperT

unread,
Feb 14, 2016, 3:21:32 PM2/14/16
to Remix OS for PC
Any output from dmesg/logcat

Does typing 'exit' do anything?

Michel Steinbusch

unread,
Feb 16, 2016, 3:33:53 PM2/16/16
to Remix OS for PC
http://s10.postimg.org/kbiq79zk9/Screenshot_2016_02_16_20_29_15.png

:) i managed it, I think the config file was wrong because i discovered it was using defaults from the current running kernel.

postad...@gmail.com

unread,
Nov 17, 2016, 4:21:37 PM11/17/16
to Remix OS for PC
Can you share the make command to start the compilation ?


I tried this one without success:
make isoimage ARCH=x86_64

got this error:
arch/x86/kernel/SSEPlus_float_REF.c:1:0: error: -mpreferred-stack-boundary=3 is not between 4 and 12



postad...@gmail.com

unread,
Nov 20, 2016, 3:13:43 AM11/20/16
to Remix OS for PC
  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
Reply all
Reply to author
Forward
0 new messages