Related
bcm4329 wlan drivers code for tegra kernel source
modify by xiaolu
Unzip the file in "drivers/net/wireless" directory
modify tegra_harmony_android_deconfig:
Code:
CONFIG_WLAN=y
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
CONFIG_BCM4329=m
CONFIG_BCM4329_SOFTAP=y
CONFIG_BCM4329_FW_PATH="/system/lib/hw/wlan/fw_bcm4329.bin"
CONFIG_BCM4329_NVRAM_PATH="/system/lib/hw/wlan/nvram.txt"
Run:
Code:
make ARCH=arm tegra_harmony_android_defconfig
Code:
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
CC [M] drivers/net/wireless/bcm4329/linux_osl.o
CC [M] drivers/net/wireless/bcm4329/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/dhd_common.o
CC [M] drivers/net/wireless/bcm4329/dhd_custom_gpio.o
CC [M] drivers/net/wireless/bcm4329/siutils.o
CC [M] drivers/net/wireless/bcm4329/sbutils.o
CC [M] drivers/net/wireless/bcm4329/aiutils.o
CC [M] drivers/net/wireless/bcm4329/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/wl_iw.o
CC [M] drivers/net/wireless/bcm4329/bcmwifi.o
CC [M] drivers/net/wireless/bcm4329/dhd_cdc.o
CC [M] drivers/net/wireless/bcm4329/sha1.o
CC [M] drivers/net/wireless/bcm4329/md5.o
CC [M] drivers/net/wireless/bcm4329/dhd_sdio.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_linux.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc_linux.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.o
CC drivers/regulator/core.o
CC drivers/regulator/tegra-regulator.o
LD drivers/regulator/built-in.o
LD drivers/built-in.o
CC net/ipv4/tcp.o
CC net/ipv4/udp.o
LD net/ipv4/built-in.o
LD net/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 4 modules
CC drivers/net/wireless/bcm4329/bcm4329.mod.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.ko
Makefile for Harmony:
Code:
DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 -DBCMWAPI_WPI \
-DUNRELEASEDCHIP -Wall -Wstrict-prototypes -DDHD_GPL -DDHD_SCHED \
-DBDC -DTOE -DDHD_BCMEVENTS -DSHOW_EVENTS -DSOFTAP -DARP_OFFLOAD_SUPPORT \
-DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DEMBEDDED_PLATFORM -DOEM_ANDROID \
-DPKT_FILTER_SUPPORT -DMMC_SDIO_FORCE_PULLUP -DMMC_SDIO_BROKEN_CCCR_REV -DCUSTOMER_HW4 \
-DCUSTOM_RESET_GPIO_NUM=86 \
-Idrivers/net/wireless/bcm4329 -Idrivers/net/wireless/bcm4329/include
DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o siutils.o sbutils.o aiutils.o \
hndpmu.o dhd_linux_sched.o wl_iw.o bcmwifi.o dhd_cdc.o sha1.o md5.o dhd_sdio.o \
bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc_linux.o
obj-$(CONFIG_BCM4329) += bcm4329.o
bcm4329-objs += $(DHDOFILES)
EXTRA_CFLAGS = $(DHDCFLAGS)
EXTRA_LDFLAGS += --strip-debug
Attach Files
Chenglu said:
Attach Files
Click to expand...
Click to collapse
Thank a lot Xiao1u
will this load properly in to the running kernel without throwing timeouts (either from sdio or platform)?
if so, you rock!
you just saved me from pulling out all my hair and reverse engineering further bits, in getting this to work (i have tried numerous sources to date and few other things to try and get this going).
Very good to have these, what there anything added to them? Or is it stock, but source for them?
Can be used, but is not stable, hoping that someone would improve.
Chenglu said:
Can be used, but is not stable, hoping that someone would improve.
Click to expand...
Click to collapse
as long as it loads and the dongle attaches (without going in to sdio/platform timeouts), they can be worked with (hopefully).
ill report back when i get home tonight.
pershoot said:
as long as it loads and the dongle attaches (without going in to sdio/platform timeouts), they can be worked with (hopefully).
ill report back when i get home tonight.
Click to expand...
Click to collapse
hey pershoot. could you or another please share where u got the 2.6.32.9 source from nvidia. cant find it anywhere and ive got some good ideas/code
EnVolved said:
hey pershoot. could you or another please share where u got the 2.6.32.9 source from nvidia. cant find it anywhere and ive got some good ideas/code
Click to expand...
Click to collapse
kernel source?
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git
check out 10.8.2 and apply viewsonic/tapntap's patch.
Thanks for this. I've got Karmic booting on my G-Tab, and this was one of the items I was having trouble finding (along with X input drivers for our touchscreen).
The driver is somehow still a bit borked. It will add the interface, but as soon as I set an ESSID to connect to, it switches itself to Ad-Hoc mode and won't switch back to Managed. Even in Ad-Hoc, it doesn't seem to be able to throw packets around.
I've yet to check the Bluetooth side of the house.
These results are seen when compiling for a linux (not Android) build.
Has anyone had success with these on their system/setup?
this causes a hardlock upon insertion, but you have gotten ram allocated to the dongle, so that is good progress!
i will take what you have done and see if i can get it working.
i got this working from nvidia. i will upgrade to the latest version and post src.
thx Chenglu for your guidance.
<4>[ 7686.158558]
<4>[ 7686.158563] Dongle Host Driver, version 4.218.223.1
<4>[ 7712.559427] SO340010: gpio_val=0xdb820000, button_val = 0xdbaf0008
<4>[ 7712.650811] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990000
<4>[ 7723.649400] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990008
<4>[ 7723.769207] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990000
<4>[ 7769.914169] sdio_reset_comm():
<4>[ 7769.940586] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 7770.161532] Firmware version = wl0: May 17 2010 22:38:50 version 4.218.223
.1
<4>[ 7770.337920] eth0: Broadcom Dongle Host Driver mac=--:--:--:--:--:--
<4>[ 7770.344216] Enter wl_control_wl_start
<4>[ 7770.348223] Exited wl_control_wl_start
<4>[ 7770.363363]
good job~~~
Chenglu said:
bcm4329 wlan drivers code for tegra kernel source
modify by xiaolu
Unzip the file in "drivers/net/wireless" directory
modify tegra_harmony_android_deconfig:
Code:
CONFIG_WLAN=y
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
CONFIG_BCM4329=m
CONFIG_BCM4329_SOFTAP=y
CONFIG_BCM4329_FW_PATH="/system/lib/hw/wlan/fw_bcm4329.bin"
CONFIG_BCM4329_NVRAM_PATH="/system/lib/hw/wlan/nvram.txt"
Run:
Code:
make ARCH=arm tegra_harmony_android_defconfig
Code:
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
CC [M] drivers/net/wireless/bcm4329/linux_osl.o
CC [M] drivers/net/wireless/bcm4329/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/dhd_common.o
CC [M] drivers/net/wireless/bcm4329/dhd_custom_gpio.o
CC [M] drivers/net/wireless/bcm4329/siutils.o
CC [M] drivers/net/wireless/bcm4329/sbutils.o
CC [M] drivers/net/wireless/bcm4329/aiutils.o
CC [M] drivers/net/wireless/bcm4329/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/wl_iw.o
CC [M] drivers/net/wireless/bcm4329/bcmwifi.o
CC [M] drivers/net/wireless/bcm4329/dhd_cdc.o
CC [M] drivers/net/wireless/bcm4329/sha1.o
CC [M] drivers/net/wireless/bcm4329/md5.o
CC [M] drivers/net/wireless/bcm4329/dhd_sdio.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_linux.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc_linux.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.o
CC drivers/regulator/core.o
CC drivers/regulator/tegra-regulator.o
LD drivers/regulator/built-in.o
LD drivers/built-in.o
CC net/ipv4/tcp.o
CC net/ipv4/udp.o
LD net/ipv4/built-in.o
LD net/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 4 modules
CC drivers/net/wireless/bcm4329/bcm4329.mod.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.ko
Makefile for Harmony:
Code:
DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 -DBCMWAPI_WPI \
-DUNRELEASEDCHIP -Wall -Wstrict-prototypes -DDHD_GPL -DDHD_SCHED \
-DBDC -DTOE -DDHD_BCMEVENTS -DSHOW_EVENTS -DSOFTAP -DARP_OFFLOAD_SUPPORT \
-DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DEMBEDDED_PLATFORM -DOEM_ANDROID \
-DPKT_FILTER_SUPPORT -DMMC_SDIO_FORCE_PULLUP -DMMC_SDIO_BROKEN_CCCR_REV -DCUSTOMER_HW4 \
-DCUSTOM_RESET_GPIO_NUM=86 \
-Idrivers/net/wireless/bcm4329 -Idrivers/net/wireless/bcm4329/include
DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o siutils.o sbutils.o aiutils.o \
hndpmu.o dhd_linux_sched.o wl_iw.o bcmwifi.o dhd_cdc.o sha1.o md5.o dhd_sdio.o \
bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc_linux.o
obj-$(CONFIG_BCM4329) += bcm4329.o
bcm4329-objs += $(DHDOFILES)
EXTRA_CFLAGS = $(DHDCFLAGS)
EXTRA_LDFLAGS += --strip-debug
Click to expand...
Click to collapse
I am just a newb starting out with this on my G tablet....Rom'd and Mod'd with all the goodies BUT I can not connect to my works AES or Radius wifi. will this help me with that or do you know of a way to get this working. This wifi card is the same one thats in the MAN-PAD so if they could fix it, i know you guys can with your superior knowledge....You guys rock....thanks
Isn't this the code?
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/hardware/broadcom/wlan.git;a=summary
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/system/wlan/broadcom.git;a=summary
pershoot said:
kernel source?
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git
check out 10.8.2 and apply viewsonic/tapntap's patch.
Click to expand...
Click to collapse
the second.
i have the latest running (4.218.248.18). just not stable, yet.
need to corner down the process within which they are performing the GPIO reset, for clean insertion and no conflicts, per se.
Does anyone know where to find the bluetooth drivers for this chip?
still working on this.
can't quite pin it down.
it loads quick at custom GPIO 86, but locks up the entire system.
using 84 allows it to load in memory (but fail reset), but is quite unstable (cant probe it for status/proper status (without causing hangs); connection is spotty due to timeouts, etc.).
i am speculating some conflict is ocurring in resource allocation/memory.
im using the latest from AOSP for testing, with the dhd_reset bits in there and CUSTOMER_HW4, so the bus can be enumerated.
i looked inside their module and they are indeed using 86 for reset. a piece of this puzzle is still missing.
chenglu, any luck on your side?
im trying another approach now. i can load the module without doing a reset now. using the nvodm board to figure things out.
still freezing tho. investigating..
Hi everybody.
I use Linaro toolchain 2012.05 GCC 4.7 on my Archlinux x86_64 and when I compile Nexus S stock kernel, I have some errors like these:
Code:
[[email protected] samsung]$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: «include/generated/mach-types.h» è aggiornato.
CC kernel/bounds.s
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
make[1]: *** [kernel/bounds.s] Errore 1
make: *** [prepare0] Errore 2
With GCC 4.6 I have another errors. I want to use GCC 4.7 like Thalamus.
Can you help me?
PS:
Code:
export ARCH=arm
export CROSS_COMPILE=
export PATH=$PATH:~/android-toolchain-eabi/arm-eabi/bin/
Q&A Section would be the right place for this.
http://forum.xda-developers.com/forumdisplay.php?f=927
MattScherbatsky said:
PS:
Code:
export ARCH=arm
export CROSS_COMPILE=
export PATH=$PATH:~/android-toolchain-eabi/arm-eabi/bin/
Click to expand...
Click to collapse
Code:
export ARCH=arm
export CROSS_COMPILE=:~/android-toolchain-eabi/arm-eabi/bin/arm-linux-gnueabihf-
Thank you! Now I have some errors.
LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0x3c64): Section mismatch in reference from the variable s5pv210_driver to the function .init.text:s5pv210_cpu_init()
The variable s5pv210_driver references
the function __init s5pv210_cpu_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: vmlinux.o(.data+0x3c90): Section mismatch in reference from the variable s5pv210_cpufreq_drv to the function .init.text:s5pv210_cpufreq_probe()
The variable s5pv210_cpufreq_drv references
the function __init s5pv210_cpufreq_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: vmlinux.o(.data+0x9118): Section mismatch in reference from the variable herring_device_rfkill to the function .init.text:herring_rfkill_probe()
The variable herring_device_rfkill references
the function __init herring_rfkill_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: vmlinux.o(.data+0xcb98): Section mismatch in reference from the variable s5p_systimer to the function .init.text:s5p_timer_init()
The variable s5p_systimer references
the function __init s5p_timer_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
LZMA arch/arm/boot/compressed/piggy.lzma
AS arch/arm/boot/compressed/piggy.lzma.o
CC arch/arm/boot/compressed/misc.o
In file included from arch/arm/plat-samsung/include/plat/uncompress.h:30:0,
from arch/arm/mach-s5pv210/include/mach/uncompress.h:17,
from arch/arm/boot/compressed/misc.c:33:
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: 'struct uart_port' declared inside parameter list [enabled by default]
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output
make[2]: *** [arch/arm/boot/compressed/vmlinux] Errore 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Errore 2
make: *** [zImage] Errore 2
Click to expand...
Click to collapse
Can I risolve it?
Those are warnings, read up on building kernels more.
I use this guide: http://source.android.com/source/building-kernels.html
You'll really get more help if you post this in the correct section. That's what the Q&A section is for - Questions and Answers.
MattScherbatsky said:
I use this guide: http://source.android.com/source/building-kernels.html
Click to expand...
Click to collapse
Try to use the bfd linker, which is also provided at the linaro prebuild toolchain package. For details look at:
http://forum.xda-developers.com/showpost.php?p=27427105&postcount=8
Hi ! I try to compile stock Memo Pad 10 kernel from source from this tuto :
http://androtab.info/memopad/kernel/
But I have a problem (maybe stupid problem) :
When compile is finish, I don't have zImage file !
Code:
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
So only Image file. What can I do ?
Thanks for any help.
I've been trying for two days now to compile AGNi Kernel with Kexec-hardboot enabled under menuconfig>boot options and every damn time i get this error. If @psndna88 could help me it'd be nice.
here is the terminal
Code:
[email protected]:~/android/kernel$ make -j2 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
CC scripts/mod/empty.o
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/mod/modpost.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/bin2c
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC init/do_mounts_rd.o
CC arch/arm/vfp/vfpdouble.o
CC init/do_mounts_initrd.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC init/initramfs.o
LD arch/arm/mvp/commkm/built-in.o
CC [M] arch/arm/mvp/commkm/check_kconfig.o
CC [M] arch/arm/mvp/commkm/comm_ev_kernel.o
CC [M] arch/arm/mvp/commkm/comm.o
CC init/calibrate.o
CC init/version.o
/tmp/ccdjofq2.s: Assembler messages:
/tmp/ccdjofq2.s:194: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:208: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2328: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2342: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2366: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2380: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2443: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2457: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2624: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2638: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2778: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2792: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2808: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2822: Error: garbage following instruction -- `dmb ish'
scripts/Makefile.build:305: recipe for target 'arch/arm/mvp/commkm/comm.o' failed
make[2]: *** [arch/arm/mvp/commkm/comm.o] Error 1
scripts/Makefile.build:441: recipe for target 'arch/arm/mvp/commkm' failed
make[1]: *** [arch/arm/mvp/commkm] Error 2
Makefile:955: recipe for target 'arch/arm/mvp' failed
make: *** [arch/arm/mvp] Error 2
make: *** Waiting for unfinished jobs....
LD init/mounts.o
LD init/built-in.o
[email protected]:~/android/kernel$
I am trying to compile this kernel because this thread.
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Hopefully this gets the ball rolling.
https://www.essential.com/developer
I'm trying to compile it now.. Maybe I can get it to compile so we can use it to get root with masik
Guess it's time to unlock my bootloader.
hmm have to figure out why it failed:
drivers/bluetooth/btfm_slim.c:26:23: fatal error: btfm_slim.h: No such file or directory
#include <btfm_slim.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'drivers/bluetooth/btfm_slim.o' failed
make[2]: *** [drivers/bluetooth/btfm_slim.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/bluetooth' failed
make[1]: *** [drivers/bluetooth] Error 2
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/msm/qdsp6v2/q6core.o
CC sound/soc/msm/msm-dai-fe.o
LD sound/soc/mxs/built-in.o
CC sound/soc/msm/qdsp6v2/rtac.o
CC sound/soc/msm/qdsp6v2/q6lsm.o
CC sound/soc/msm/msm-cpe-lsm.o
CC sound/soc/msm/qdsp6v2/audio_slimslave.o
CC sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.o
CC sound/soc/msm/msm8998.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
sound/soc/msm/msm8998.c:36:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'sound/soc/msm/msm8998.o' failed
make[3]: *** [sound/soc/msm/msm8998.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LD sound/soc/nuc900/built-in.o
LD sound/sparc/built-in.o
LD sound/soc/msm/qdsp6v2/built-in.o
LD sound/soc/omap/built-in.o
LD sound/spi/built-in.o
LD sound/soc/pxa/built-in.o
LD sound/synth/built-in.o
LD sound/soc/qcom/built-in.o
CC sound/usb/card.o
scripts/Makefile.build:403: recipe for target 'sound/soc/msm' failed
make[2]: *** [sound/soc/msm] Error 2
scripts/Makefile.build:403: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC sound/usb/clock.o
CC sound/usb/endpoint.o
CC sound/usb/format.o
CC sound/usb/helper.o
CC sound/usb/mixer.o
CC sound/usb/mixer_quirks.o
CC sound/usb/mixer_scarlett.o
CC sound/usb/pcm.o
CC sound/usb/proc.o
CC sound/usb/quirks.o
CC sound/usb/stream.o
CC sound/usb/midi.o
LD sound/usb/6fire/built-in.o
LD sound/usb/bcd2000/built-in.o
LD sound/usb/caiaq/built-in.o
LD sound/usb/hiface/built-in.o
LD sound/usb/misc/built-in.o
LD sound/usb/usx2y/built-in.o
CC sound/usb/usb_audio_qmi_v01.o
CC sound/usb/usb_audio_qmi_svc.o
LD sound/usb/snd-usb-audio.o
LD sound/usb/snd-usbmidi-lib.o
LD sound/usb/built-in.o
Makefile:949: recipe for target 'sound' failed
make: *** [sound] Error 2
[email protected]:~/Downloads/Kernel/essential_kernel$
They tweeted that factory images are coming soon as well.
graffixnyc said:
hmm have to figure out why it failed:
drivers/bluetooth/btfm_slim.c:26:23: fatal error: btfm_slim.h: No such file or directory
#include <btfm_slim.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'drivers/bluetooth/btfm_slim.o' failed
make[2]: *** [drivers/bluetooth/btfm_slim.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/bluetooth' failed
make[1]: *** [drivers/bluetooth] Error 2
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/msm/qdsp6v2/q6core.o
CC sound/soc/msm/msm-dai-fe.o
LD sound/soc/mxs/built-in.o
CC sound/soc/msm/qdsp6v2/rtac.o
CC sound/soc/msm/qdsp6v2/q6lsm.o
CC sound/soc/msm/msm-cpe-lsm.o
CC sound/soc/msm/qdsp6v2/audio_slimslave.o
CC sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.o
CC sound/soc/msm/msm8998.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
sound/soc/msm/msm8998.c:36:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.
scripts/Makefile.build:258: recipe for target 'sound/soc/msm/msm8998.o' failed
make[3]: *** [sound/soc/msm/msm8998.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LD sound/soc/nuc900/built-in.o
LD sound/sparc/built-in.o
LD sound/soc/msm/qdsp6v2/built-in.o
LD sound/soc/omap/built-in.o
LD sound/spi/built-in.o
LD sound/soc/pxa/built-in.o
LD sound/synth/built-in.o
LD sound/soc/qcom/built-in.o
CC sound/usb/card.o
scripts/Makefile.build:403: recipe for target 'sound/soc/msm' failed
make[2]: *** [sound/soc/msm] Error 2
scripts/Makefile.build:403: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC sound/usb/clock.o
CC sound/usb/endpoint.o
CC sound/usb/format.o
CC sound/usb/helper.o
CC sound/usb/mixer.o
CC sound/usb/mixer_quirks.o
CC sound/usb/mixer_scarlett.o
CC sound/usb/pcm.o
CC sound/usb/proc.o
CC sound/usb/quirks.o
CC sound/usb/stream.o
CC sound/usb/midi.o
LD sound/usb/6fire/built-in.o
LD sound/usb/bcd2000/built-in.o
LD sound/usb/caiaq/built-in.o
LD sound/usb/hiface/built-in.o
LD sound/usb/misc/built-in.o
LD sound/usb/usx2y/built-in.o
CC sound/usb/usb_audio_qmi_v01.o
CC sound/usb/usb_audio_qmi_svc.o
LD sound/usb/snd-usb-audio.o
LD sound/usb/snd-usbmidi-lib.o
LD sound/usb/built-in.o
Makefile:949: recipe for target 'sound' failed
make: *** [sound] Error 2
[email protected]:~/Downloads/Kernel/essential_kernel$
Click to expand...
Click to collapse
im hoping you get this working
Now was not the best time to discover that I think I forgot to migrate my Linux virtual hard drive file from my previous laptop.
drocny87 said:
im hoping you get this working
Click to expand...
Click to collapse
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
It might be the weekend before I have time to rebuild my Linux VM but if nobody has done it by then I will give it a go.
graffixnyc said:
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
Click to expand...
Click to collapse
im in the same boat as you unfortunately.
Exciting times.
graffixnyc said:
No luck, I keep getting that same error no matter what I try. I don't know enough about building kernels to know how to figure it out [emoji53]
Sent from my PH-1 using Tapatalk
Click to expand...
Click to collapse
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
nathanchance said:
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
Click to expand...
Click to collapse
Would you mind uploading the kernel you built? It'd be great to finally install Magisk on this device.
bmg1001 said:
Would you mind uploading the kernel you built? It'd be great to finally install Magisk on this device.
Click to expand...
Click to collapse
I want to make sure I'm not missing something here. You don't have a build of TWRP right? The image I built is just the kernel, not the entire boot image that you would need to use to flash Magisk. I don't know of a way to dump a boot image off a device without root. I think you'll need to wait for the factory images.
nathanchance said:
I want to make sure I'm not missing something here. You don't have a build of TWRP right? The image I built is just the kernel, not the entire boot image that you would need to use to flash Magisk. I don't know of a way to dump a boot image off a device without root. I think you'll need to wait for the factory images.
Click to expand...
Click to collapse
Oh alright. TWRP isn't necessary to flash Magisk, as you could install it via adb so long as you have the boot.img.
bmg1001 said:
Oh alright. TWRP isn't necessary to flash Magisk, as you could install it via adb so long as you have the boot.img.
Click to expand...
Click to collapse
Yeah so you'll need to wait for them to drop factory images. This is still great for custom kernel developers (aside from the fact they dropped a zip file instead of a git repo but least the source seems relatively clean) and probably for TWRP (though you can use a prebuilt image).
Yeah, simply compiling the stock kernel isn't enough to use magisk. Otherwise we could just use the manufacturer version. Patches for various things need to be applied, such as spoof bootloader lock checks etc. We also need the ramdisk and boot offsets (these can be pulled and figured out from the existing boot image).
I would also wait until we have a safe and guaranteed way of restoring the device to stock.
If you go to Essential's open source page now, you get a 404 error code. Hopefully this means they're uploading factory images at the moment. Wishful thinking can't hurt.
nathanchance said:
Use an out folder.
mkdir out
make O=out mata_defconfig
make O=out -j$(nproc --all)
Just built successfully from their provided source. For the record, I don't own this device, just stumbled upon the thread. Always happy to provide compilation help.
Click to expand...
Click to collapse
Wouldnt you have to specify an ARCH and CROSS_COMPILE to compile it for arm64 though?
ardevd said:
Wouldnt you have to specify an ARCH and CROSS_COMPILE to compile it for arm64 though?
Click to expand...
Click to collapse
I'm assuming he exported them in bash before running make but if not, yeah, you'd need to add ARCH=arm64 CROSS_COMPILE=<path> to each of those make commands