chakibz / bcmon

Automatically exported from code.google.com/p/bcmon
0 stars 0 forks source link

setup.sh error #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download gs2_bundle
2. unzip it
3. sh setup.sh

What is the expected output? What do you see instead?
LOADING MODULE
insmod: can't insert 'dhd.ko': invalid module format

What version of the product are you using? On what operating system?
r5 on cm9.0.0 (stable)

Original issue reported on code.google.com by 01ttouch on 18 Sep 2012 at 7:10

GoogleCodeExporter commented 8 years ago
Using cm9.1.0. Having the exact same issue.

Original comment by ric...@riachdesign.com on 18 Sep 2012 at 7:40

GoogleCodeExporter commented 8 years ago
Is the gs2_bundle bcm4330?  I was just looking at the setup script and thought 
I saw something odd... driver file name is:
DRIVER_FLNM="bcm4329.ko"
and 
FW_PATH="$CUR_DIR/fw_bcm4330.bcmon.bin"

issue with the grep as well probably.

https://code.google.com/p/bcmon/source/browse/trunk/bcm4330/scripts/setup.sh

#!/system/bin/sh
CUR_DIR=`dirname $0`
CUR_DIR=`readlink -f $CUR_DIR`
DRIVER_NAME="dhd"
DRIVER_FLNM="bcm4329.ko"
FW_PATH="$CUR_DIR/fw_bcm4330.bcmon.bin"

IS_BCM_LOADED=`lsmod | grep bcm4329 | wc -l`

if [ $IS_BCM_LOADED == 1 ]; then 
        IS_BCM_PATCHED=`grep "bcmon_loaded" /proc/kallsyms | wc -l`
        if [ $IS_BCM_PATCHED == 0 ]; then 
                echo Original module loaded. disabling WiFi 
                svc wifi disable
        fi
fi
echo LOADING MODULE
rmmod $DRIVER_NAME 2>/dev/null
insmod $DRIVER_FLNM firmware_path=$FW_PATH
ifconfig eth0 up

Original comment by richa...@gmail.com on 18 Sep 2012 at 8:15

GoogleCodeExporter commented 8 years ago
this is the script for the nexus not the gs2

Original comment by 01ttouch on 19 Sep 2012 at 9:17

GoogleCodeExporter commented 8 years ago
the driver name in the gs2 script was fixed.

Original comment by Sho...@gmail.com on 19 Sep 2012 at 2:11

GoogleCodeExporter commented 8 years ago
Using stock CM9 on sgs2, the issue still remains.

# sh setup.sh
Original module loaded. disabling WiFi
LOADING MODLE
insmod: can't insert 'dhd.ko': invalid module format
ERROR: SIOCGIFFLAGS (No such device)

This occurs while using the gs2_bundle: 
http://bcmon.googlecode.com/svn/trunk/bundles/gs2_bundle.zip

Basically, this issue in the first post is still active.  I'm learning on how 
to build the driver from source, but until then, my bug reports are the best 
that I can do for now.

Original comment by ric...@riachdesign.com on 20 Sep 2012 at 2:22

GoogleCodeExporter commented 8 years ago
issue still remains...
also sgs2 has a bcm4330 not 4329

Original comment by 01ttouch on 20 Sep 2012 at 3:16

GoogleCodeExporter commented 8 years ago
Hello!!  I tried to run mode monitoring Xperia S LT26i bcm4330
I have same error 
insmod: can't insert 'dhd.ko': invalid module format
ERROR: SIOCGIFFLAGS (No such device)

Original comment by zixelm...@gmail.com on 23 Nov 2012 at 9:01

GoogleCodeExporter commented 8 years ago
I make it on cm9.1.0 and Miui same same error

Original comment by zixelm...@gmail.com on 23 Nov 2012 at 9:03