Author Topic: Building Android ICS(A10) Image  (Read 5714 times)

titan

  • Guest
Building Android ICS(A10) Image
« on: January 22, 2014, 04:32:04 am »
I am trying to build Android ICS(A10) Image as it descripted here (http://docs.cubieboard.org/tutorials/cb1/installation/building_android_ics_a10_image)

But i have build problem

Code: [Select]
make[1]: Entering directory `/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux'
Makefile:57: Found LINUXVER=3.0.8
Makefile:58: Found LINUXDIR=/home/cb-A10/lichee/linux-3.0
CC = arm-none-linux-gnueabi-gcc (ver=4.5.1; host=dtitancomp; processor=i686)
Making objdir dhd-cdc-sdmmc-gpl-3.0.8
TARGET is dhd-cdc-sdmmc-gpl
mkdir -p dhd-cdc-sdmmc-gpl-3.0.8
make -C dhd-cdc-sdmmc-gpl-3.0.8 -f /home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../../dhd/linux/Makefile SRCBASE=/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../.. modules
make[2]: Entering directory `/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/dhd-cdc-sdmmc-gpl-3.0.8'
/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../../dhd/linux/Makefile:57: Found LINUXVER=3.0.8
/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../../dhd/linux/Makefile:58: Found LINUXDIR=/home/cb-A10/lichee/linux-3.0
test -r .//home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../../dhd/sys/dhd_linux.c || ln -s /home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/../../dhd/sys/dhd_linux.c .
ln: failed to create symbolic link `./dhd_linux.c': File exists
make[2]: *** [dhd_linux.o] Error 1
make[2]: Leaving directory `/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux/dhd-cdc-sdmmc-gpl-3.0.8'
make[1]: *** [objdir] Error 2
make[1]: Leaving directory `/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux'
make: *** [dhd-cdc-sdmmc-gpl] Error 2
make: Leaving directory `/home/cb-A10/lichee/linux-3.0/modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux'

As I understood there is problem with wifi module.

Make version: GNU Make 3.81
Debian wheezy
I had trying use chroot to Ubuntu 12.04 - no result

Can anybody help me?
« Last Edit: January 22, 2014, 05:46:12 am by titan »

Offline tista

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Building Android ICS(A10) Image
« Reply #1 on: January 22, 2014, 08:24:20 pm »
Hi, are you using x86 or x86_64?

titan

  • Guest
Re: Building Android ICS(A10) Image
« Reply #2 on: January 23, 2014, 01:56:41 am »
Hi, thanks for replay.
I am using  x86.

uname -a
Linux dtitancomp 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux
« Last Edit: January 23, 2014, 02:04:35 am by titan »

Offline tista

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Building Android ICS(A10) Image
« Reply #3 on: January 29, 2014, 06:00:08 am »
You will need a 64 bit environment to build Android upwards of Gingerbread and up.

http://source.android.com/source/initializing.html#setting-up-a-linux-build-environment

jujiaqi

  • Guest
Re: Building Android ICS(A10) Image
« Reply #4 on: February 09, 2014, 08:59:44 pm »
I have the same problem, and I'm working with ubuntu 12.04 X86-64

jujiaqi

  • Guest
Re: Building Android ICS(A10) Image
« Reply #5 on: February 09, 2014, 09:43:30 pm »
I'v solved this problem.
I commened some wifi drivers in file "cb-A10/lichee/linux-3.0/scripts/build_sun4i_crane.sh",this is the diff message:
Code: [Select]
--- build_sun4i_crane.sh.player 2013-10-17 17:09:04.000000000 +0800
+++ build_sun4i_crane.sh 2014-02-10 10:32:23.866573492 +0800
@@ -97,13 +97,13 @@
  #cp -f modules.* ${LICHEE_MOD_DIR}
 
  #copy bcm4330 firmware and nvram.txt
- cp drivers/net/wireless/bcm4330/firmware/bcm4330.bin ${LICHEE_MOD_DIR}
- cp drivers/net/wireless/bcm4330/firmware/bcm4330.hcd ${LICHEE_MOD_DIR}
- cp drivers/net/wireless/bcm4330/firmware/nvram.txt ${LICHEE_MOD_DIR}/bcm4330_nvram.txt
- cp drivers/net/wireless/bcm4330/firmware/mw269v3_fw.bin ${LICHEE_MOD_DIR}
- cp drivers/net/wireless/bcm4330/firmware/mw269v3_nvram.txt ${LICHEE_MOD_DIR}
- cp drivers/net/wireless/rtxx7x/RT2870STA.dat ${LICHEE_MOD_DIR}
- cp drivers/net/wireless/rtxx7x/RT2870STACard.dat ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/bcm4330/firmware/bcm4330.bin ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/bcm4330/firmware/bcm4330.hcd ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/bcm4330/firmware/nvram.txt ${LICHEE_MOD_DIR}/bcm4330_nvram.txt
+# cp drivers/net/wireless/bcm4330/firmware/mw269v3_fw.bin ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/bcm4330/firmware/mw269v3_nvram.txt ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/rtxx7x/RT2870STA.dat ${LICHEE_MOD_DIR}
+# cp drivers/net/wireless/rtxx7x/RT2870STACard.dat ${LICHEE_MOD_DIR}
 }
 
 build_modules()
@@ -128,33 +128,33 @@
  )
 
  #build swl-n20 sdio wifi module
- make -C modules/wifi/nano-c047.12 LICHEE_MOD_DIR=${LICHEE_MOD_DIR} KERNEL_DIR=${LICHEE_KDIR} \
- CONFIG_CHIP_ID=${CONFIG_CHIP_ID} HOST=${CROSS_COMPILE} INSTALL_DIR=${LICHEE_MOD_DIR} all install
+# make -C modules/wifi/nano-c047.12 LICHEE_MOD_DIR=${LICHEE_MOD_DIR} KERNEL_DIR=${LICHEE_KDIR} \
+# CONFIG_CHIP_ID=${CONFIG_CHIP_ID} HOST=${CROSS_COMPILE} INSTALL_DIR=${LICHEE_MOD_DIR} all install
 
  #build ar6302 sdio wifi module
- make -C modules/wifi/ar6302/AR6K_SDK_ISC.build_3.1_RC.329/host CROSS_COMPILE=${CROSS_COMPILE} \
-         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
-         all install
+# make -C modules/wifi/ar6302/AR6K_SDK_ISC.build_3.1_RC.329/host CROSS_COMPILE=${CROSS_COMPILE} \
+#         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
+#         all install
         
  #build ar6003 sdio wifi module
- make -C modules/wifi/ar6003/AR6kSDK.build_3.1_RC.514/host CROSS_COMPILE=${CROSS_COMPILE} \
-         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
-         all
+# make -C modules/wifi/ar6003/AR6kSDK.build_3.1_RC.514/host CROSS_COMPILE=${CROSS_COMPILE} \
+#         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
+#         all
  #build usi-bmc4329 sdio wifi module
- make -C modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} dhd-cdc-sdmmc-gpl
+# make -C modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} dhd-cdc-sdmmc-gpl
  #build bcm40181 sdio wifi module 5.90.125.69.2
- make -C modules/wifi/bcm40181/5.90.125.69.2/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 dhd-cdc-sdmmc-gpl
+# make -C modules/wifi/bcm40181/5.90.125.69.2/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 dhd-cdc-sdmmc-gpl
  #build bcm40183 sdio wifi module
- make -C modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 dhd-cdc-sdmmc-gpl
+# make -C modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 dhd-cdc-sdmmc-gpl
 
  #copy gps driver to module
  cp modules/gps/gps.ko_ $LICHEE_MOD_DIR/gps.ko
@@ -186,32 +186,32 @@
  )
 
  #build swl-n20 sdio wifi module
- make -C modules/wifi/nano-c047.12 LICHEE_MOD_DIR=${LICHEE_MOD_DIR} KERNEL_DIR=${LICHEE_KDIR} \
- CONFIG_CHIP_ID=${CONFIG_CHIP_ID} HOST=${CROSS_COMPILE} INSTALL_DIR=${LICHEE_MOD_DIR} clean
+# make -C modules/wifi/nano-c047.12 LICHEE_MOD_DIR=${LICHEE_MOD_DIR} KERNEL_DIR=${LICHEE_KDIR} \
+# CONFIG_CHIP_ID=${CONFIG_CHIP_ID} HOST=${CROSS_COMPILE} INSTALL_DIR=${LICHEE_MOD_DIR} clean
 
  #build ar6302 sdio wifi module
- make -C modules/wifi/ar6302/AR6K_SDK_ISC.build_3.1_RC.329/host CROSS_COMPILE=${CROSS_COMPILE} \
-         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
-         clean
+# make -C modules/wifi/ar6302/AR6K_SDK_ISC.build_3.1_RC.329/host CROSS_COMPILE=${CROSS_COMPILE} \
+#         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
+#         clean
  #build ar6003 sdio wifi module
- make -C modules/wifi/ar6003/AR6kSDK.build_3.1_RC.514/host CROSS_COMPILE=${CROSS_COMPILE} \
-         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
-         clean
+# make -C modules/wifi/ar6003/AR6kSDK.build_3.1_RC.514/host CROSS_COMPILE=${CROSS_COMPILE} \
+#         ARCH=arm KERNEL_DIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} INSTALL_DIR=${LICHEE_MOD_DIR} \
+#         clean
  #build usi-bmc4329 sdio wifi module
- make -C modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} clean
+# make -C modules/wifi/usi-bcm4329/v4.218.248.15/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} clean
  #build bcm40181 sdio wifi module 5.90.125.69.2
- make -C modules/wifi/bcm40181/5.90.125.69.2/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} clean
+# make -C modules/wifi/bcm40181/5.90.125.69.2/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} clean
  #build bcm40183 sdio wifi module
- make -C modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux \
- CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
- LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
- INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 clean
+# make -C modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux \
+# CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm LINUXVER=${KERNEL_VERSION} \
+# LICHEE_MOD_DIR=${LICHEE_MOD_DIR} LINUXDIR=${LICHEE_KDIR} CONFIG_CHIP_ID=${CONFIG_CHIP_ID} \
+# INSTALL_DIR=${LICHEE_MOD_DIR} OEM_ANDROID=1 clean
 }
 
 #####################################################################


goldmoon

  • Guest
Re: Building Android ICS(A10) Image
« Reply #6 on: June 07, 2014, 06:45:22 pm »
    I solved this problem in this way:
1. delete the dir ".../cb-A10/lichee/linux-3.0/modules/wifi/bcm40181/5.90.125.69.2/open-src/src/dhd/linux/dhd-cdc-sdmmc-gpl-3.0.8"
2. delete the dir ".../cb-A10/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux/dhd-cdc-sdmmc-gpl-3.0.8"
    then it works~