account arrowhead-down arrowhead-up cart mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Kernel 3.18, arch/arm64/configs/aosp_tone_kagura_defconfig file missing

Adept
Message 1 of 4
4,695 Views
Message 1 of 4

Kernel 3.18, arch/arm64/configs/aosp_tone_kagura_defconfig file missing

While trying to build my own 3.18 Kernel for Xperia XZ/kagura/msm8996 by following the Kernel build guide on

 

https://developer.sonymobile.com/open-devices/how-to-build-and-flash-a-linux-kernel/how-to-build-and...

 

im getting the error:

 

Can't find default configuration "arch/arm64/configs/aosp_tone_kagura_defconfig"!

 

Here is what i did/get:

--------------------------------------------------------------------------------------------------

[root@ROG ~/android]# git clone https://github.com/sonyxperiadev/kernel
Cloning into 'kernel'...
remote: Counting objects: 5780286, done.
remote: Compressing objects: 100% (106/106), done.
remote: Total 5780286 (delta 88), reused 90 (delta 56), pack-reused 5780124
Receiving objects: 100% (5780286/5780286), 1.35 GiB | 5.44 MiB/s, done.
Resolving deltas: 100% (4800317/4800317), done.
Checking out files: 100% (47847/47847), done.
[root@ROG ~/android]# cd kernel
[root@ROG ~/android/kernel]# git branch -r
  origin/HEAD -> origin/aosp/LA.BR.1.3.3_rb2.14
  origin/aosp/A8064AAAAANLYA161333
  origin/aosp/AU_LINUX_ANDROID_LA.BF.2.1_RB1.05.00.00.173.012
  origin/aosp/AU_LINUX_ANDROID_LA.BF64.1.1_RB1.05.00.00.172.042
  origin/aosp/AU_LINUX_ANDROID_LA.BF64.1.1_RB1.05.00.02.172.061
  origin/aosp/AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.02.019.067
  origin/aosp/LA.BF64.1.1_rb1.27
  origin/aosp/LA.BF64.1.2.2_rb4.7
  origin/aosp/LA.BR.1.3.3_rb2.14
  origin/aosp/LA.UM.5.5.r1
  origin/aosp/LA.UM.5.7.r1
  origin/aosp/LNX.LA.3.5.1-01110-8x74.0
  origin/aosp/LNX.LA.3.5.1-03010-8x74.0
  origin/aosp/LNX.LA.3.5.2.2-03010-8x74.0
  origin/bcmdhd
  origin/drivers
  origin/misc-dev
  origin/misc-qcom
  origin/misc-up
  origin/nozomi/M8260AAABQNLZA30145
  origin/platform
  origin/prima
  origin/revert-1093-interactive
  origin/revert-1272-LA.BR.1.3.3_rb2.14_msm8939_mdss
  origin/yuga-aosp
[root@ROG ~/android/kernel]# git checkout
Your branch is up-to-date with 'origin/aosp/LA.BR.1.3.3_rb2.14'.
[root@ROG ~/android/kernel]# make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE aosp_tone_kagura_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm64/configs/aosp_tone_kagura_defconfig"!
***
make[1]: *** [/home/sw/android/kernel/scripts/kconfig/Makefile:108: aosp_tone_kagura_defconfig] Fehler 1
make: *** [Makefile:507: aosp_tone_kagura_defconfig] Error 2

#### make failed to build some targets (2 seconds) ####

[root@ROG ~/android/kernel]#

-------------------------------------------------------------------------------

I tried to use the aosp_tone_kagura_defconfig file from

 

https://github.com/AdrianDC/android_kernel_sony_msm/tree/cm-14.1/arch/arm64/configs

 

but it doesn't work. I'm a beginner. I have no clue what exactly is needed in this file.

 

How can i fix this? Where can i get the right aosp_tone_kagura_defconfig file for the AOSP Kernel?

3 REPLIES 3
Adept
Message 2 of 4
4,692 Views
Message 2 of 4

Re: Kernel 3.18, arch/arm64/configs/aosp_tone_kagura_defconfig file missing

I tried branch LA.UM.5.5.r1 and LA.UM.5.7.r1 which have a aosp_tone_kagura_defconfig file in arch/arm64/configs.
I did a "make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE aosp_tone_kagura_defconfig".

I get a lot of warnings about enexpected data like this :

arch/arm64/configs/aosp_tone_kagura_defconfig:7:warning: unexpected data

...

arch/arm64/configs/aosp_tone_kagura_defconfig:3297:warning: unexpected data

#
# configuration written to .config
#

#### make completed successfully (1 seconds) ####

--------------------------------------------------------------------------------

Then i tried make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 8

which ends up with this :

--------------------------------------------------------------------------------

scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
make[1]: Für das Ziel „dtbs“ ist nichts zu tun.
make[1]: Für das Ziel „dtbs“ ist nichts zu tun.
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
<stdin>:1226:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
  CHK     include/generated/compile.h
  CC      mm/page_alloc.o
  CC      mm/shmem.o
  CC      mm/util.o
  CC      mm/mmzone.o
  CC      mm/vmstat.o
  CC      mm/backing-dev.o
mm/page_alloc.c: In function '__rmqueue_cma':
mm/page_alloc.c:1200:12: error: 'struct zone' has no member named 'cma_alloc'
   if (!zone->cma_alloc)
            ^
mm/page_alloc.c:1201:43: error: 'MIGRATE_CMA' undeclared (first use in this function)
    page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
                                           ^
mm/page_alloc.c:1201:43: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:308: mm/page_alloc.o] Fehler 1
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
  CC      drivers/amba/bus.o
  CC      drivers/clocksource/clksrc-of.o
In file included from include/linux/amba/bus.h:22:0,
                 from drivers/amba/bus.c:18:
include/linux/regulator/consumer.h:374:1: error: expected identifier or '(' before '{' token
 {
 ^
include/linux/regulator/consumer.h:371:19: warning: 'regulator_register_ocp_notification' declared 'static' but never defined [-Wunused-function]
 static inline int regulator_register_ocp_notification(
                   ^
make[2]: *** [scripts/Makefile.build:309: drivers/amba/bus.o] Fehler 1
make[1]: *** [scripts/Makefile.build:455: drivers/amba] Fehler 2
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
  LD      drivers/firewire/built-in.o
  LD      drivers/firmware/built-in.o
  CC      drivers/clocksource/arm_arch_timer.o
  CC      lib/bcd.o
  CC      lib/div64.o
  CC      lib/sort.o
  CC      lib/parser.o
  CC      lib/halfmd4.o
  CC      lib/debug_locks.o
  CC      lib/random32.o
  CC      lib/bust_spinlocks.o
  CC      lib/hexdump.o
  CC      lib/kasprintf.o
  CC      lib/bitmap.o
  CC      lib/scatterlist.o
  CC      lib/gcd.o
  CC      lib/lcm.o
  CC      lib/list_sort.o
  CC      lib/uuid.o
  LD      drivers/clocksource/built-in.o
  CC      lib/flex_array.o
make: *** [Makefile:821: drivers] Error 2
make: *** Waiting for unfinished jobs....
  CC      lib/iovec.o
  CC      lib/bsearch.o
  CC      lib/find_last_bit.o
make: *** [Makefile:821: mm] Error 2
  CC      lib/find_next_bit.o
  CC      lib/llist.o
  CC      lib/memweight.o
  CC      lib/kfifo.o
  CC      lib/string_helpers.o
  CC      lib/kstrtox.o
  CC      lib/iomap.o
  CC      lib/pci_iomap.o
  CC      lib/iomap_copy.o
  CC      lib/devres.o
  CC      lib/hweight.o
  CC      lib/bitrev.o
  HOSTCC  lib/gen_crc32table
  CC      lib/swiotlb.o
  CC      lib/iommu-helper.o
  CC      lib/syscall.o
  CC      lib/checksum.o
  CC      lib/strncpy_from_user.o
  CC      lib/strnlen_user.o
  CC      lib/argv_split.o
  CC      lib/bug.o
  CC      lib/cmdline.o
  CC      lib/ctype.o
  CC      lib/dec_and_lock.o
  CC      lib/decompress.o
  CC      lib/dump_stack.o
  CC      lib/earlycpio.o
  CC      lib/extable.o
  CC      lib/fdt.o
  CC      lib/fdt_ro.o
  CC      lib/fdt_rw.o
  CC      lib/fdt_strerror.o
  CC      lib/fdt_sw.o
  CC      lib/fdt_wip.o
  CC      lib/flex_proportions.o
  CC      lib/idr.o
  CC      lib/int_sqrt.o
  CC      lib/ioremap.o
  CC      lib/irq_regs.o
  CC      lib/is_single_threaded.o
  CC      lib/klist.o
  CC      lib/kobject.o
  CC      lib/kobject_uevent.o
  CC      lib/md5.o
  CC      lib/memcopy.o
  CC      lib/plist.o
  CC      lib/prio_heap.o
  CC      lib/proportions.o
  CC      lib/radix-tree.o
  CC      lib/ratelimit.o
  CC      lib/rbtree.o
  CC      lib/reciprocal_div.o
  CC      lib/sha1.o
  CC      lib/show_mem.o
  CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  GEN     lib/crc32table.h
  CC      lib/crc32.o
  LD      lib/built-in.o
  AR      lib/lib.a

#### make failed to build some targets (7 seconds) ####

---------------------------------------------------------------------------

Any idea?

 

 

 

Developer World
Message 3 of 4
4,655 Views
Message 3 of 4

Re: Kernel 3.18, arch/arm64/configs/aosp_tone_kagura_defconfig file missing

Hi,

 

you should use the following commands:

 

make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 8 aosp_platform_device_defconfig

make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 8

 

if you want to use the device config and to build the kernel

 

Regards

Alin

 

Developer World
Message 4 of 4
4,654 Views
Message 4 of 4

Re: Kernel 3.18, arch/arm64/configs/aosp_tone_kagura_defconfig file missing

Hi

 

attached are the kernel versions used my our devices:

kernle 3.10 - aosp/LA.BR.1.3.3_rb2.14
kernle 3.18 - aosp/LA.UM.5.5.r1
kernel  4.4 - aosp/LA.UM.5.7.r1

 

Please note that tone support started with 3.18 kernel  and you can not build a 3.10 kernel for this device

 

Regards

Alin