[TOOL] Honor 6 Kernel Toolbox

Search This thread

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,495
57,090
Bad Neustadt
To make our lifes a little bit easier, i've created a "toolbox" for linux which allows you to easily brew custom kernels.
It includes kernel sources (fixed to build properly), arm-eabi-4.7 toolchain, a stock ramdisk, mkbootimg and a handy script which does the dirty job for you.

Please make sure that bash, git, repo, cpio and gzip packages are installed on your system!

How to get it?
Code:
mkdir h60
cd h60
repo init -u https://github.com/codeworkx/h60.git -b kk
repo sync

Usage:
Code:
./build.sh bootimage l04    ->    creates boot.img for the specified variant.
./build.sh kernel       ->    builds just the zImage
./build.sh unpack boot.img  ->    unpacks boot/recovery images
./build.sh clean        ->    runs mrproper

Let it rain custom kernels!
Have fun!
 
Last edited:

Steve Giordano

Senior Member
Jan 24, 2012
213
103
Palermo
Hi @codeworkx i have this error:
Code:
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
drivers/built-in.o: In function `store_config':
/home/stefano/Scrivania/h60_kernel_toolbox-master/kernel/drivers/huawei/ext_modem/viacbp82d/spi/rnic_adapter.c:102: undefined reference to `RNIC_ConfigRmnetStatus'
make: *** [vmlinux] Errore 1
~/Scrivania/h60_kernel_toolbox-master
Failed to build zImage!

stefano@stefano-desktop:~/Scrivania/h60_kernel_toolbox-master$

Why? :(
 

root-expert

Inactive Recognized Developer
Sep 28, 2014
471
504
Greece
@codeworkx I got this error while trying to compile the l02 kernel:
Code:
  MODPOST vmlinux.o
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
drivers/built-in.o: In function `store_config':
/home/chris/Desktop/h60_kernel_toolbox-master/kernel/drivers/huawei/ext_modem/viacbp82d/spi/rnic_adapter.c:102: undefined reference to `RNIC_ConfigRmnetStatus'
make: *** [vmlinux] Error 1
~/Desktop/h60_kernel_toolbox-master
Failed to build zImage!

I saw that is happens when the modem driver failed to build. But how I can solve it...? Thanks.
 

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,495
57,090
Bad Neustadt
@codeworkx I got this error while trying to compile the l02 kernel:
Code:
  MODPOST vmlinux.o
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
drivers/built-in.o: In function `store_config':
/home/chris/Desktop/h60_kernel_toolbox-master/kernel/drivers/huawei/ext_modem/viacbp82d/spi/rnic_adapter.c:102: undefined reference to `RNIC_ConfigRmnetStatus'
make: *** [vmlinux] Error 1
~/Desktop/h60_kernel_toolbox-master
Failed to build zImage!

I saw that is happens when the modem driver failed to build. But how I can solve it...? Thanks.

Make sure that you're using python2.
 

root-expert

Inactive Recognized Developer
Sep 28, 2014
471
504
Greece
Then post the error message of modem build.
It clearly says what's going wrong.

I think this is it:
Code:
drivers/built-in.o: In function `store_config':
/home/chris/Desktop/h60_kernel_toolbox-master/kernel/drivers/huawei/ext_modem/viacbp82d/spi/rnic_adapter.c:102: undefined reference to `RNIC_ConfigRmnetStatus'
 

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,495
57,090
Bad Neustadt
I think this is it:
Code:
drivers/built-in.o: In function `store_config':
/home/chris/Desktop/h60_kernel_toolbox-master/kernel/drivers/huawei/ext_modem/viacbp82d/spi/rnic_adapter.c:102: undefined reference to `RNIC_ConfigRmnetStatus'

No it's not. That's an error from kernel build.
And this error happens because the modem build way before the kernel build even starts has failed.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    To make our lifes a little bit easier, i've created a "toolbox" for linux which allows you to easily brew custom kernels.
    It includes kernel sources (fixed to build properly), arm-eabi-4.7 toolchain, a stock ramdisk, mkbootimg and a handy script which does the dirty job for you.

    Please make sure that bash, git, repo, cpio and gzip packages are installed on your system!

    How to get it?
    Code:
    mkdir h60
    cd h60
    repo init -u https://github.com/codeworkx/h60.git -b kk
    repo sync

    Usage:
    Code:
    ./build.sh bootimage l04    ->    creates boot.img for the specified variant.
    ./build.sh kernel       ->    builds just the zImage
    ./build.sh unpack boot.img  ->    unpacks boot/recovery images
    ./build.sh clean        ->    runs mrproper

    Let it rain custom kernels!
    Have fun!
    7
    Update:
    • fixed some problems
    • added colored output
    • added unpack function
    • added support for l02, l04, l12
    7
    Update:
    • updated to latest available B310 sources
    6
    Update:
    • added L04 ramdisk
    3
    Hi @codeworkx
    Can you build a stock kernel for h60-l04 with add only doubletap2wake and sweep2wake ?
    Many users would like this.
    Thanks and sorry for my bad english!