[DEV] Custom kernel info

Search This thread

schubeir

Senior Member
Apr 30, 2011
420
118
Mumbai
ok so you guys have a prima wifi chip that had its source excluded from the kernel source, as well as a few other things. trying to merge in some of the stuff and see if i can get the modules to compile.

Is it possible that the USB-OTG is also a part of a different module and if we can find that module and include it in the boot.img, we can have USB OTG on our grand2?

just wondering.


schubeir
 

shabbypenguin

Inactive Recognized Developer
May 30, 2010
4,895
5,361
36
Is it possible that the USB-OTG is also a part of a different module and if we can find that module and include it in the boot.img, we can have USB OTG on our grand2?

just wondering.


schubeir

usb otg is eitehr enabled from teh factory or a change in teh defconfig, shouldnt be any modules involved. if enabling it in the defconfig doesnt do it than your device just cant do it, for some hardware reasons. some cant support teh data, some cant handle the voltage etc.
 
  • Like
Reactions: schubeir

schubeir

Senior Member
Apr 30, 2011
420
118
Mumbai
usb otg is eitehr enabled from teh factory or a change in teh defconfig, shouldnt be any modules involved. if enabling it in the defconfig doesnt do it than your device just cant do it, for some hardware reasons. some cant support teh data, some cant handle the voltage etc.

hi,
thanx for the prompt reply. i do not really understand the technicalities, but i appreciate your immediate response. is the enabling it in defconfig very difficult or complicated?or is it not a part of a kernel and needs to be separately addressed?


sorry to be bothering you.

schubeir
 

##W4TCH0UT##

Senior Member
Oct 7, 2013
1,629
2,115
25
\\___TheMiddleOfNowhere___//
hi,
thanx for the prompt reply. i do not really understand the technicalities, but i appreciate your immediate response. is the enabling it in defconfig very difficult or complicated?or is it not a part of a kernel and needs to be separately addressed?


sorry to be bothering you.

schubeir

It's very easy.

Sent from my GT-I9082 using Tapatalk

---------- Post added at 08:04 AM ---------- Previous post was at 08:03 AM ----------


But it doesn't compile. Can you help me out?

EDIT:Heres's the full usage:
Code:
./mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --dt dtb --second_offset 0x00f00000 --tags_offset 0x01e00000 --cmdline 'console=null androidboot.console=null androidboot.hardware=qcom user_debug=31 maxcpus=4 msm_rtb.filter=0x3F' --kernel zImage --ramdisk ramdisk.cpio.gz -o newboot.img
usage: mkbootimg
       --kernel <filename>
       --ramdisk <filename>
       [ --second <2ndbootloader-filename> ]
       [ --cmdline <kernel-commandline> ]
       [ --board <boardname> ]
       [ --base <address> ]
       [ --pagesize <pagesize> ]
       -o|--output <filename>


Sent from my GT-I9082 using Tapatalk
 
Last edited:

shabbypenguin

Inactive Recognized Developer
May 30, 2010
4,895
5,361
36
It's very easy.

Sent from my GT-I9082 using Tapatalk

---------- Post added at 08:04 AM ---------- Previous post was at 08:03 AM ----------



But it doesn't compile. Can you help me out?

EDIT:Heres's the full usage:
Code:
./mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --dt dtb --second_offset 0x00f00000 --tags_offset 0x01e00000 --cmdline 'console=null androidboot.console=null androidboot.hardware=qcom user_debug=31 maxcpus=4 msm_rtb.filter=0x3F' --kernel zImage --ramdisk ramdisk.cpio.gz -o newboot.img
usage: mkbootimg
       --kernel <filename>
       --ramdisk <filename>
       [ --second <2ndbootloader-filename> ]
       [ --cmdline <kernel-commandline> ]
       [ --board <boardname> ]
       [ --base <address> ]
       [ --pagesize <pagesize> ]
       -o|--output <filename>


Sent from my GT-I9082 using Tapatalk

you need to use a more updated mkbootimg, the usage doesnt list dt at all

edit: here ive attached teh one ive been using
 

Attachments

  • mkbootimg_dtb.zip
    15.9 KB · Views: 17
Last edited:
  • Like
Reactions: ##W4TCH0UT##

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    https://mega.co.nz/#!gUQR1YCa!40Jek-QVjYMWc5AEt5hPeh0S-48kMxv7lOVl1xXhBZw

    here is a flashable kernel, nothing has been done to it except compile from stock sources. no i wont make any changes, i dont plan on doing a custom kernel for a phone i dont even know what it looks like. this is purely so that people who actually have teh phone can learn on how to make a kernel. if you decide to flash this make sure to do a backup first as it has different modules for wifi etc.

    source can be found at https://mega.co.nz/#!URh0HJyT!41SiQTCPO_wkd13wVd4l-36bRJoT5yeUms70uduGGBM i used the ML4 tar.
    1
    Not booting fone vibrate once and stuck in bootloop .

    Sent from my SM-G7102 using Tapatalk 2
    1
    Is it possible that the USB-OTG is also a part of a different module and if we can find that module and include it in the boot.img, we can have USB OTG on our grand2?

    just wondering.


    schubeir

    usb otg is eitehr enabled from teh factory or a change in teh defconfig, shouldnt be any modules involved. if enabling it in the defconfig doesnt do it than your device just cant do it, for some hardware reasons. some cant support teh data, some cant handle the voltage etc.
    1
    @aapav01, @mukulsoni, I just compiled a SELinux enabled and 4.4 compatible zImage. You can use it to compile cm11. Will post the links now:good::victory:
    1
    It's very easy.

    Sent from my GT-I9082 using Tapatalk

    ---------- Post added at 08:04 AM ---------- Previous post was at 08:03 AM ----------



    But it doesn't compile. Can you help me out?

    EDIT:Heres's the full usage:
    Code:
    ./mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --dt dtb --second_offset 0x00f00000 --tags_offset 0x01e00000 --cmdline 'console=null androidboot.console=null androidboot.hardware=qcom user_debug=31 maxcpus=4 msm_rtb.filter=0x3F' --kernel zImage --ramdisk ramdisk.cpio.gz -o newboot.img
    usage: mkbootimg
           --kernel <filename>
           --ramdisk <filename>
           [ --second <2ndbootloader-filename> ]
           [ --cmdline <kernel-commandline> ]
           [ --board <boardname> ]
           [ --base <address> ]
           [ --pagesize <pagesize> ]
           -o|--output <filename>


    Sent from my GT-I9082 using Tapatalk

    you need to use a more updated mkbootimg, the usage doesnt list dt at all

    edit: here ive attached teh one ive been using