Kernel build failed for wireless driver

719 views
Skip to first unread message

Harshad Joshi

unread,
Jan 21, 2018, 10:07:29 AM1/21/18
to Android-x86
I have synced latest android-x86 repository and trying to build noughat image..everything compiled before kernel build failed and gave this error 

/home/harshad/android/kernel/scripts/Makefile.build:44: /home/harshad/android/kernel/drivers/net/wireless/broadcom/wl/Makefile: No such file or directory
make[6]: *** No rule to make target '/home/harshad/android/kernel/drivers/net/wireless/broadcom/wl/Makefile'.  Stop.
make[5]: *** [/home/harshad/android/kernel/scripts/Makefile.build:544: drivers/net/wireless/broadcom/wl] Error 2
make[4]: *** [/home/harshad/android/kernel/scripts/Makefile.build:544: drivers/net/wireless/broadcom] Error 2
make[3]: *** [/home/harshad/android/kernel/scripts/Makefile.build:544: drivers/net/wireless] Error 2
make[2]: *** [/home/harshad/android/kernel/scripts/Makefile.build:544: drivers/net] Error 2
make[2]: *** Waiting for unfinished jobs....
  LD [M]  drivers/mtd/onenand/onenand.o
  LD      drivers/mtd/tests/built-in.o
  CC [M]  drivers/mtd/mtdcore.o
  LD      drivers/mtd/ubi/built-in.o
  CC [M]  drivers/mtd/ubi/vtbl.o
  CC [M]  drivers/mtd/ubi/vmt.o
  CC [M]  drivers/mtd/ubi/upd.o
  CC [M]  drivers/mtd/mtdsuper.o
  CC [M]  drivers/mtd/ubi/build.o
  CC [M]  drivers/mtd/ubi/cdev.o
  CC [M]  drivers/mtd/mtdconcat.o
  CC [M]  drivers/mtd/ubi/kapi.o
  CC [M]  drivers/mtd/ubi/eba.o
  CC [M]  drivers/mtd/ubi/io.o
  CC [M]  drivers/mtd/ubi/wl.o
  CC [M]  drivers/mtd/mtdpart.o
  CC [M]  drivers/mtd/ubi/attach.o
  CC [M]  drivers/mtd/mtdchar.o
  CC [M]  drivers/mtd/ofpart.o
  CC [M]  drivers/mtd/ubi/misc.o
  CC [M]  drivers/mtd/ubi/debug.o
  CC [M]  drivers/mtd/mtd_blkdevs.o
  CC [M]  drivers/mtd/ubi/gluebi.o
  CC [M]  drivers/mtd/mtdblock.o
  LD [M]  drivers/mtd/ubi/ubi.o
  CC [M]  drivers/mtd/ftl.o
  CC [M]  drivers/mtd/nftlcore.o
  CC [M]  drivers/mtd/nftlmount.o
  CC [M]  drivers/mtd/inftlcore.o
  CC [M]  drivers/mtd/inftlmount.o
  CC [M]  drivers/mtd/rfd_ftl.o
  CC [M]  drivers/mtd/ssfdc.o
  CC [M]  drivers/mtd/sm_ftl.o
  CC [M]  drivers/mtd/mtdoops.o
  LD      drivers/mtd/built-in.o
  LD [M]  drivers/mtd/mtd.o
  LD [M]  drivers/mtd/nftl.o
  LD [M]  drivers/mtd/inftl.o
make[1]: *** [/home/harshad/android/kernel/Makefile:991: drivers] Error 2
make[1]: Leaving directory '/home/harshad/android/out/target/product/x86/obj/kernel'
make: *** [Makefile:150: sub-make] Error 2
make: Leaving directory '/home/harshad/android/kernel'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1
make: Leaving directory '/home/harshad/android'

#### make failed to build some targets (04:58:13 (hh:mm:ss)) ####

harshad@harshad-pc ~/android $ 


I searched for particular error on google but couldent find proper solution for it. Please help.

--
Harshad Joshi

zhongtian xie

unread,
Jan 21, 2018, 10:26:56 AM1/21/18
to andro...@googlegroups.com
2018-01-21 23:07 GMT+08:00 Harshad Joshi <firew...@gmail.com>:
I have synced latest android-x86 repository and trying to build noughat image..everything compiled before kernel build failed and gave this error 

/home/harshad/android/kernel/scripts/Makefile.build:44: /home/harshad/android/kernel/drivers/net/wireless/broadcom/wl/Makefile: No such file or directory

Please check "kernel/drivers/net/wireless/broadcom/wl/" , the broadcom wireless driver download with build process(due to Copyright problem);

 

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

zhongtian xie

unread,
Jan 21, 2018, 10:29:02 AM1/21/18
to andro...@googlegroups.com
This is my bcm wireless driver  content:

android/android-x86$ ls kernel/drivers/net/wireless/broadcom/wl/
build.mk  hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz  Kconfig  lib64  linux-48.patch  linux-recent.patch  Makefile  src  wl.patch

hj91

unread,
Jan 21, 2018, 12:20:59 PM1/21/18
to Android-x86
i cant find it on broadcom site, can you mail it to me please?
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

zhongtian xie

unread,
Jan 22, 2018, 12:04:45 AM1/22/18
to andro...@googlegroups.com
You don't need add the driver manualy,  there is build.mk in "kernel/drivers/net/wireless/broadcom/wl/build.mk" to download the driver during the build.

This is build.mk content:
# parts of build/core/tasks/kernel.mk

WL_ENABLED := $(if $(wildcard $(WL_PATH)),$(shell grep ^CONFIG_WL=[my] $(KERNEL_CONFIG_FILE)))
WL_SRC := $(WL_PATH)/hybrid-v35$(if $(filter x86,$(TARGET_KERNEL_ARCH)),,_64)-nodebug-pcoem-6_30_223_271.tar.gz
WL_LIB := $(WL_PATH)/lib$(if $(filter x86,$(TARGET_KERNEL_ARCH)),32,64)
$(WL_SRC):
        @echo Downloading $(@F)...

$(WL_LIB): $(WL_SRC) $(wildcard $(WL_PATH)/*.patch)
        $(hide) tar zxf $< -C $(@D) --overwrite -m && \
                rm -rf $@ && mv $(@D)/lib $@ && touch $@ && \
                patch -p1 -d $(@D) -i wl.patch && \
                patch -p1 -d $(@D) -i linux-recent.patch && \
                patch -p1 -d $(@D) -i linux-48.patch

$(INSTALLED_KERNEL_TARGET): $(if $(WL_ENABLED),$(WL_LIB))
~               

You need to make sure you have access to this URL above;

Good luck!
                                                     

To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+unsubscribe@googlegroups.com.

hj91

unread,
Jan 22, 2018, 10:38:30 AM1/22/18
to Android-x86
these are details of my file

# parts of build/core/tasks/kernel.mk

WL_ENABLED := $(if $(wildcard $(WL_PATH)),$(shell grep ^CONFIG_WL=[my] $(KERNEL_CONFIG_FILE)))
WL_SRC := $(WL_PATH)/hybrid-v35$(if $(filter x86,$(TARGET_KERNEL_ARCH)),,_64)-nodebug-pcoem-6_30_223_271.tar.gz
WL_LIB := $(WL_PATH)/lib$(if $(filter x86,$(TARGET_KERNEL_ARCH)),32,64)
$(WL_SRC):
@echo Downloading $(@F)...

$(WL_LIB): $(WL_SRC) $(wildcard $(WL_PATH)/*.patch)
        $(hide) tar zxf $< -C $(@D) --overwrite -m && \
                rm -rf $@ && mv $(@D)/lib $@ && touch $@ && \
                patch -p1 -d $(@D) -i wl.patch && \
                patch -p1 -d $(@D) -i linux-recent.patch && \
                patch -p1 -d $(@D) -i linux-48.patch

$(INSTALLED_KERNEL_TARGET): $(if $(WL_ENABLED),$(WL_LIB))



is this ok? 

Mauro Rossi

unread,
Jan 22, 2018, 2:29:04 PM1/22/18
to Android-x86
The build/download scripts are ok.
The problem is that download happens at build time, if the destination URL is not reachable (temporary  broadcom server downtime, being offiline from internet or having some proxy/filter blocking broadcom servers)
then the build will fail.

If Broadcom servers are accessible, the build will not fail.
Mauro

Harshad Joshi

unread,
Jan 23, 2018, 5:57:41 AM1/23/18
to Android-x86
I get - document not found when I click this link 


Is there any other link I can download this file from ?

There is a GitHub link,but I am not sure if it's the same gzip as our requirement .

--sent from mobile device--

You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86+unsubscribe@googlegroups.com.

TianJian Wu

unread,
Jan 23, 2018, 11:08:57 PM1/23/18
to Android-x86
I believe this is because broadcom change its driver tar file location after certain android-x86 released.

You can just search the file name and download it .

Also you may switch to newer android-x86 version.  Both android-x86_7.1_rc1 and rc2 work fine.

Or you just ignore build broadcom wl driver if broadcom wifi chip is not on your hardware.  Those driver module build are just for a wider hardware support but not necessary for your specific hardware.

hj91於 2018年1月23日星期二 UTC+8下午6時57分41秒寫道:
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

Chih-Wei Huang

unread,
Jan 23, 2018, 11:18:25 PM1/23/18
to Android-x86
2018-01-24 12:08 GMT+08:00 TianJian Wu <tcwu...@gmail.com>:
> I believe this is because broadcom change its driver tar file location after
> certain android-x86 released.

Thank you for pointing it out.
Seems the new link is:
https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz

> You can just search the file name and download it .
>
> Also you may switch to newer android-x86 version. Both android-x86_7.1_rc1
> and rc2 work fine.
>
> Or you just ignore build broadcom wl driver if broadcom wifi chip is not on
> your hardware. Those driver module build are just for a wider hardware
> support but not necessary for your specific hardware.

Exactly. You can just remove
CONFIG_WL=m
from kernel/arch/x86/configs/android-x86_64_defconfig
if you don't need it.

Harshad Joshi

unread,
Jan 24, 2018, 2:28:16 AM1/24/18
to Android-x86
Thank you. I will update the new link in build script and check it. 

--sent from mobile device--

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86+unsubscribe@googlegroups.com.

Chih-Wei Huang

unread,
Feb 2, 2018, 5:13:13 AM2/2/18
to Android-x86
2018-01-24 15:27 GMT+08:00 Harshad Joshi <firew...@gmail.com>:
> Thank you. I will update the new link in build script and check it.

I'm confused.

The current link in build.mk is exactly the correct one as shown:

https://osdn.net/projects/android-x86/scm/git/kernel/blobs/kernel-4.9/drivers/net/wireless/broadcom/wl/build.mk

It's set since Jun 4 2016 and no changed at all.

So what problem did you have exactly?


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Harshad Joshi

unread,
Feb 2, 2018, 5:35:45 AM2/2/18
to Android-x86
I removed the broadcom link and it got built successfully. 

Now I have issues in building marshmallow firmware and I have posted of Mesa Radeon driver build issue in group. 

--sent from mobile device--

Carmelo Carbonara

unread,
May 4, 2018, 12:38:47 AM5/4/18
to Android-x86
Having the same problem; picking up where this topic left off.
I was intending to build for androidx86 (32 bit version)...
only pre-built iso 32 bit version worked on both of my machines.
They are both x86_64 Arch with 32,64 bit CPU op-mode(s) non-UEFI machines

Dell Latitude E6400
Dell Inspiron 570

last repo sync ...-b nougat-x86  5/2/2018


This is my bcm wireless driver  content:

/android-x86$ ls kernel/drivers/net/wireless/broadcom/wl/
build.mk                                      linux-48.patch
hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz  linux-recent.patch
Kconfig                                       wl.patch


no Makefile here ? should there be one?

console output:


/home/admin/admMnt/buildOS/andOS/android-x86/kernel/scripts/Makefile.build:44: /home/admin/admMnt/buildOS/andOS/android-x86/kernel/drivers/net/wireless/broadcom/wl/Makefile: No such file or directory
make
[6]: *** No rule to make target '/home/admin/admMnt/buildOS/andOS/android-x86/kernel/drivers/net/wireless/broadcom/wl/Makefile'.  Stop.
/home/admin/admMnt/buildOS/andOS/android-x86/kernel/scripts/Makefile.build:645: recipe for target 'drivers/net/wireless/broadcom/wl' failed
make
[5]: *** [drivers/net/wireless/broadcom/wl] Error 2
.
.
.



As per the discussion above, it looks like the build.mk file does have the correct URL for the wl driver but it is not downloaded during the build.

I downloaded the ~linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz and put it in the folder and re-ran the build but to no avail; stopped at the same error.

Any pointers appreciated; I'd like to get the wl drivers setup from the build.


 

Carmelo Carbonara

unread,
May 5, 2018, 1:29:05 PM5/5/18
to Android-x86


...any suggestions on this?

Carmelo Carbonara

unread,
May 6, 2018, 1:41:17 AM5/6/18
to Harshad Joshi, andro...@googlegroups.com
Linux  3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux

Distributor ID:    Debian
Description:    Debian GNU/Linux 8.10 (jessie)
Release:    8.10
Codename:    jessie

On Sat, May 5, 2018, 11:44 PM Harshad Joshi <firew...@gmail.com> wrote:
what linux distro you are using for compiling this android version?

On Sat, May 5, 2018 at 10:59 PM, Carmelo Carbonara <cpcnet...@gmail.com> wrote:


...any suggestions on this?

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.



--
Harshad Joshi

Chih-Wei Huang

unread,
May 6, 2018, 10:27:21 PM5/6/18
to Android-x86
2018-05-06 1:29 GMT+08:00 Carmelo Carbonara <cpcnet...@gmail.com>:
>
> ...any suggestions on this?

How did you build the iso exactly?

Try to touch kernel/drivers/net/wireless/broadcom/wl/*.gz

The Makefile of wl is generated on fly after the
tarball is downloaded.
You can check
kernel/drivers/net/wireless/broadcom/wl/build.mk
and follow the commands to do it manually.

Besides, did you build 32-bit or 64-bit kernel?
For 64-bit kernel you need to download
hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz

Harshad Joshi

unread,
May 6, 2018, 10:29:32 PM5/6/18
to Android-x86
I will try building Android-x86 with 32 bit kernel. Lets see if it compiles well. 

--sent from mobile device--

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

Carmelo Carbonara

unread,
May 6, 2018, 10:30:46 PM5/6/18
to andro...@googlegroups.com
I built the 32bit, I see they're different ones... I'll try touch and try it again

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

Carmelo Carbonara

unread,
May 6, 2018, 10:35:34 PM5/6/18
to andro...@googlegroups.com
.. I unset the CONFIG_WL option to let the build keep running

So the Makefile is extracted from the tar.gz file, Ok.



On Sun, May 6, 2018, 10:27 PM Chih-Wei Huang <cwh...@android-x86.org> wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QK8Hu9b_Aa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages