This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ti-SDK am335x additional drivers

Hi,

I am using the Beaglebone Black and have the Matrix-Gui running on a 4.3" touchscreen. The question is how to now add drivers to the device to run a wifi dongle such as mt7601 chipset?

This works for Angstrom release as the opkg sources are available, but I like the Matrix-Gui. It seems the Arago linux in the Ti-SDK has no sources for opkg ?

I have followed guides to compile the drivers in the system, but without the sources for opkg, I cannot install build-essential or kernel-dev utilities?

Many Thanks,

Nigel

  • Nigel, why don't you cross-compile the drivers? The toolchain that comes with our SDK is located inside <ti-sdk-am335x-evm-06.00.00.00_dir>/linux-devkit/sysroots/i686-arago-linux/usr/bin/.

    Best regards,
    Miroslav

  • Thanks,

    I will give it a go... Downloading the SDK now. I used a pre-compiled eMMC flasher from element14 who provided the LCD panel.

  • Hi,

    I have attempted to Cross Compile the needed drivers. I have the compiler in my path which seems ok. However, when I attempt to compile I get errors.

    It seems this is due to the compiler using my Ubuntu host kernel headers from /usr/src/linux-headers-3.11.0-15 directory

    Question is how to tell the compiler to use the ti-sdk kernel dir for compilation?

    Many Thanks!

  • Nigel, I found this thread: http://forum.stmlabs.com/showthread.php?tid=11422

    I managed to successfully cross-compile the drivers, but I won't be able to test anything since I don't have the hardware.

    You should open the Makefile.inc file after you extract the driver code archive and edit the following lines:

    Change this:

    ifeq ($(PLATFORM),PC)
    # Linux 2.6
    LINUX_SRC = /lib/modules/$(shell uname -r)/build
    # Linux 2.4 Change to your local setting
    #LINUX_SRC = /usr/src/linux-2.4
    LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
    CROSS_COMPILE =
    endif

    to this:

    ifeq ($(PLATFORM),PC)
    # Linux 2.6
    LINUX_SRC = /home/users/mkiradzhiyski/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11
    # Linux 2.4 Change to your local setting
    #LINUX_SRC = /usr/src/linux-2.4
    LINUX_SRC_MODULE = /home/users/mkiradzhiyski/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11/drivers/net/wireless/
    CROSS_COMPILE = arm-linux-gnueabihf-
    endif

    Then run "make all".

    After the build has completed, make the following folder inside your target's file system:

    sudo mkdir -p /etc/Wireless/RT2870STA

    Then copy the following .dat file to that folder and also copy the three generated kernel objects to the specified folder below:

    sudo cp RT2870STA.dat <path_to_target_rootfs>/etc/Wireless/RT2870STA
    sudo cp MODULE/os/linux/mt7601Usta.ko <path_to_target_rootfs>/lib/modules/3.2.0/kernel/drivers/net/wireless/
    sudo cp UTIL/os/linux/mtutil7601Usta.ko <path_to_target_rootfs>/lib/modules/3.2.0/kernel/drivers/net/wireless/
    sudo cp NETIF/os/linux/mtnet7601Usta.ko <path_to_target_rootfs>/lib/modules/3.2.0/kernel/drivers//net/wireless/

    If the /wireless folder doesn't exist, create it.

    Then start your target board and run:

    depmod -a

    Best regards,
    Miroslav

  • Perfect!

    The modules are now loading when the dongle is inserted into the USB port.

    Many Thanks!

  • Hi Again,

    I'm not sure if I should open another thread here but, I now cannot seem to get the interface up. Ifconfig ra0 shows:

    ra0       Link encap:Ethernet  HWaddr 00:0C:43:00:5E:E6
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:298 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:90406 (88.2 KiB)  TX bytes:0 (0.0 B)

    It never obtains an IP address:

    In my /etc/network/interfaces:

    auto ra0
    iface ra0 inet dhcp
    wpa-ssid "my access point"
    wpa-psk "my password"

    (Obviously "my access point" and "my password" are replaced with actual values for my router.

    Any ideas?

    Thanks.

  • The configuration seems correct. Can you provide any log messages after running "ifup ra0" (or the log from the system boot)?

    Best regards,
    Miroslav

  • ifup ra0: 

    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing

    log from boot:

    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (yanglsh@embest-tech) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #13 Wed Nov 6 14:55:53 CST 2013
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES2.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 512896k/512896k available, 11392k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05dd000   (5972 kB)
    [    0.000000]       .init : 0xc05dd000 - 0xc0618000   ( 236 kB)
    [    0.000000]       .data : 0xc0618000 - 0xc0682df0   ( 428 kB)
    [    0.000000]        .bss : 0xc0682e14 - 0xc06b1f64   ( 189 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000061] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089233] pid_max: default: 32768 minimum: 301
    [    0.089324] Security Framework initialized
    [    0.089416] Mount-cache hash table entries: 512
    [    0.089721] CPU: Testing write buffer coherency: ok
    [    0.109069] omap_hwmod: pruss: failed to hardreset
    [    0.109985] print_constraints: dummy:
    [    0.110260] NET: Registered protocol family 16
    [    0.111877] OMAP GPIO hardware version 0.1
    [    0.113800] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.115264]  omap_i2c.1: alias fck already exists
    [    0.115936]  omap2_mcspi.1: alias fck already exists
    [    0.116088]  omap2_mcspi.2: alias fck already exists
    [    0.116821]  edma.0: alias fck already exists
    [    0.116821]  edma.0: alias fck already exists
    [    0.116821]  edma.0: alias fck already exists
    [    0.136383] bio: create slab <bio-0> at 0
    [    0.138061] SCSI subsystem initialized
    [    0.139343] usbcore: registered new interface driver usbfs
    [    0.139587] usbcore: registered new interface driver hub
    [    0.139709] usbcore: registered new device driver usb
    [    0.139953] registerd cppi-dma Intr @ IRQ 17
    [    0.139984] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
    [    0.139984] Cppi41 Init Done
    [    0.140014] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.140228] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.141082] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.142150] tps65910 1-002d: could not be detected
    [    0.143157] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.144012] Switching to clocksource gp timer
    [    0.155517] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.155670] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.155944] MUSB0 controller's USBSS revision = 4ea20800
    [    0.155944] musb0: Enabled SW babble control
    [    0.156677] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
    [    0.156799] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.157043] MUSB1 controller's USBSS revision = 4ea20800
    [    0.157043] musb1: Enabled SW babble control
    [    0.157379] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.157440] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.157562] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.157562] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.157562] usb usb1: Product: MUSB HDRC host driver
    [    0.157592] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.157592] usb usb1: SerialNumber: musb-hdrc.1
    [    0.158233] hub 1-0:1.0: USB hub found
    [    0.158264] hub 1-0:1.0: 1 port detected
    [    0.158691] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
    [    0.159027] NET: Registered protocol family 2
    [    0.159179] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.159423] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.159637] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.159759] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.159790] TCP reno registered
    [    0.159790] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.159790] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.159973] NET: Registered protocol family 1
    [    0.160156] RPC: Registered named UNIX socket transport module.
    [    0.160186] RPC: Registered udp transport module.
    [    0.160186] RPC: Registered tcp transport module.
    [    0.160186] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.160369] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.177215] VFS: Disk quotas dquot_6.5.2
    [    0.177276] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.177856] msgmni has been set to 1001
    [    0.180267] alg: No test for stdrng (krng)
    [    0.180816] io scheduler noop registered
    [    0.180816] io scheduler deadline registered
    [    0.180877] io scheduler cfq registered (default)
    [    0.181793] Could not set LED4 to fully on
    [    0.214904] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.795745] console [ttyO0] enabled
    [    0.799835] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.807586] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.815277] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.822937] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.830627] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.838653] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.852508] brd: module loaded
    [    0.859405] loop: module loaded
    [    0.862823] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.869323] i2c-core: driver [tsl2550] using legacy resume method
    [    0.875762] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.974578] No daughter card found
    [    0.978149] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.993347] Board name: A335BNLT
    [    0.996704] Board version: 0A6A
    [    1.000000] The board is a AM335x Beaglebone Black.
    [    1.007110] tps65217 1-0024: TPS65217 ID 0xe version 1.2
    [    1.014617] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.021575] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
    [    1.030059] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
    [    1.038482] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
    [    1.046997] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
    [    1.055389] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
    [    1.063629] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
    [    1.072021] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
    [    1.079284]  omap_hsmmc.0: alias fck already exists
    [    1.084777]  omap_hsmmc.1: alias fck already exists
    [    1.090393] Invalid type of lcd, set to default!
    [    1.095275]  da8xx_lcdc.0: alias fck already exists
    [    1.100677] da8xx_lcdc da8xx_lcdc.0: GLCD: Found 4.3inch_LCD panel
    [    1.114929] Console: switching to colour frame buffer device 60x34
    [    1.127166] _omap_mux_get_by_name: Could not find signal gpmc_be1n.gpio1_28
    [    1.135986] registered am33xx_sr device
    [    1.141967] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.149261] omap2-nand driver initializing
    [    1.153686] OneNAND driver initializing
    [    1.158721] CAN device driver interface
    [    1.162719] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.214630] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.221099] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    1.228210] davinci_mdio.0: probed
    [    1.231781] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [    1.240631] usbcore: registered new interface driver zd1201
    [    1.246612] usbcore: registered new interface driver cdc_ether
    [    1.252899] usbcore: registered new interface driver cdc_eem
    [    1.258941] usbcore: registered new interface driver dm9601
    [    1.264831] cdc_ncm: 04-Aug-2011
    [    1.268310] usbcore: registered new interface driver cdc_ncm
    [    1.274261] Initializing USB Mass Storage driver...
    [    1.279541] usbcore: registered new interface driver usb-storage
    [    1.285827] USB Mass Storage support registered.
    [    1.290985] mousedev: PS/2 mouse device common for all mice
    [    1.297637] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
    [    1.306457] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.313812] am33xx-rtc: already running
    [    1.318359] i2c /dev entries driver
    [    1.322692] Linux video capture interface: v2.00
    [    1.328094] usbcore: registered new interface driver uvcvideo
    [    1.334442] USB Video Class driver (1.1.1)
    [    1.455749] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.463531] cpuidle: using governor ladder
    [    1.468536] cpuidle: using governor menu
    [    1.477966] omap4_aes_mod_init: loading AM33X AES driver
    [    1.483947] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    1.490814] omap4_aes_probe: probe() done
    [    1.495788] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    1.502227] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    1.513641] omap4_sham_probe: probe() done
    [    1.524353] usbcore: registered new interface driver usbhid
    [    1.530578] usbhid: USB HID core driver
    [    1.535491] tiadc tiadc: attached adc driver
    [    1.540924] usbcore: registered new interface driver snd-usb-audio
    [    1.550537] ALSA device list:
    [    1.553985]   No soundcards found.
    [    1.557891] oprofile: hardware counters not available
    [    1.563476] oprofile: using timer interrupt.
    [    1.568298] nf_conntrack version 0.5.0 (8014 buckets, 32056 max)
    [    1.575378] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.581359] TCP cubic registered
    [    1.585083] NET: Registered protocol family 17
    [    1.590057] can: controller area network core (rev 20090105 abi 8)
    [    1.596893] NET: Registered protocol family 29
    [    1.601867] can: raw protocol (rev 20090105)
    [    1.606658] can: broadcast manager protocol (rev 20090105 t)
    [    1.612915] Registering the dns_resolver key type
    [    1.618225] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.626892] ThumbEE CPU extension supported.
    [    1.631744] mux: Failed to setup hwmod io irq -22
    [    1.637481] Power Management for AM33XX family
    [    1.642639] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.649658] Copied the M3 firmware to UMEM
    [    1.654327] Cortex M3 Firmware Version = 0x181
    [    1.662170] create_regulator: DCDC2: Failed to create debugfs directory
    [    1.670074] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
    [    1.678314] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
    [    1.685668] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.700561] clock: disabling unused clocks to save power
    [    1.711639] mmc1: new high speed MMC card at address 0001
    [    1.718261] mmcblk0: mmc1:0001 MMC02G 1.78 GiB
    [    1.723571] mmcblk0boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
    [    1.730346] mmcblk0boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
    [    1.739227]  mmcblk0: p1 p2
    [    1.745056]  mmcblk0boot1: unknown partition table
    [    1.752410]  mmcblk0boot0: unknown partition table
    [    1.761840] Detected MACID=90:59:af:62:1b:df
    [    1.767578] cpsw: Detected MACID = 90:59:af:62:1b:e1
    [    1.774444] input: gpio-keys as /devices/platform/gpio-keys/input/input1
    [    1.782348] omap_rtc am33xx-rtc: setting system clock to 2013-06-26 02:20:22 UTC (1372213222)
    [    1.801391] kjournald starting.  Commit interval 5 seconds
    [    1.807525] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    1.815063] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
    [    1.822814] Freeing init memory: 236K
    INIT: version 2.88 booting
    Starting udev
    [    3.679016] Disabling lock debugging due to kernel taint
    [    4.529083] mt7601Usta: module license 'unspecified' taints kernel.
    [    5.007385] rtusb init rtusbSTA --->
    [    5.012298]
    [    5.012298]
    [    5.012329] === pAd = e0b01000, size = 860448 ===
    [    5.012329]
    [    5.023376] <-- RTMPAllocTxRxRingMemory, Status=0
    [    5.029205] <-- RTMPAllocAdapterBlock, Status=0
    [    5.034271] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x8
    [    5.040252] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x4
    [    5.046203] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x5
    [    5.052185] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x6
    [    5.058166] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x7
    [    5.064117] RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x9
    [    5.073913] NVM is EFUSE
    [    5.076934] Endpoint(8) is for In-band Command
    [    5.081909] Endpoint(4) is for WMM0 AC0
    [    5.086242] Endpoint(5) is for WMM0 AC1
    [    5.090576] Endpoint(6) is for WMM0 AC2
    [    5.094879] Endpoint(7) is for WMM0 AC3
    [    5.099212] Endpoint(9) is for WMM1 AC0
    [    5.103546] Endpoint(84) is for Data-In
    [    5.107879] Endpoint(85) is for Command Rsp
    [    5.113250] usbcore: registered new interface driver rtusbSTA
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [    5.880676] EXT3-fs (mmcblk0p2): using internal journal
    ALSA: Restoring mixer settings...
    Configuring network interfaces... /usr/sbin/alsactl: load_state:1686: No soundcards found...
    [    6.622131] net eth0: CPSW phy found : id is : 0x7c0f1
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    [   15.846832] FW Version:0.1.00 Build:7640
    [   15.851287] Build Time:201302052146____
    [   15.855987] ILM Length = 45380(bytes)
    [   15.860137] DLM Length = 0(bytes)
    [   15.865295] Loading FW....
    [   15.905273] #
    [   15.913879] RTMP_TimerListAdd: add timer obj e0b81934!
    [   15.919586] RTMP_TimerListAdd: add timer obj e0b8194c!
    [   15.925292] RTMP_TimerListAdd: add timer obj e0b81964!
    [   15.930969] RTMP_TimerListAdd: add timer obj e0b8191c!
    [   15.936676] RTMP_TimerListAdd: add timer obj e0b818d4!
    [   15.942352] RTMP_TimerListAdd: add timer obj e0b818ec!
    [   15.948059] RTMP_TimerListAdd: add timer obj e0b1676c!
    [   15.953765] RTMP_TimerListAdd: add timer obj e0b031e8!
    [   15.959442] RTMP_TimerListAdd: add timer obj e0b03204!
    [   15.965148] RTMP_TimerListAdd: add timer obj e0b167c4!
    [   15.970825] RTMP_TimerListAdd: add timer obj e0b05cf8!
    [   15.976531] RTMP_TimerListAdd: add timer obj e0b053a8!
    [   15.982238] RTMP_TimerListAdd: add timer obj e0b05cdc!
    [   15.987915] RTMP_TimerListAdd: add timer obj e0b05f1c!
    [   15.993621] RTMP_TimerListAdd: add timer obj e0b05d14!
    [   15.999298] RTMP_TimerListAdd: add timer obj e0b05d30!
    [   16.005004] RTMP_TimerListAdd: add timer obj e0b05d4c!
    [   16.010681] RTMP_TimerListAdd: add timer obj e0b1673c!
    [   16.016387] RTMP_TimerListAdd: add timer obj e0b167ac!
    [   16.022155] RTMP_TimerListAdd: add timer obj e0b05f4c!
    [   16.027862] RTMP_TimerListAdd: add timer obj e0b05f64!
    [   16.033538] RTMP_TimerListAdd: add timer obj e0b05f7c!
    [   16.039245] RTMP_TimerListAdd: add timer obj e0b05f94!
    [   16.064300] cfg_mode=9
    [   16.067138] wmode_band_equal(): Band Equal!
    [   16.072448] Key1Str is Invalid key length(0) or Type(0)
    [   16.078338] Key2Str is Invalid key length(0) or Type(0)
    [   16.084167] Key3Str is Invalid key length(0) or Type(0)
    [   16.090026] Key4Str is Invalid key length(0) or Type(0)
    [   16.097137] 1. Phy Mode = 14
    [   16.100494] 2. Phy Mode = 14
    [   16.103820] NVM is Efuse and its size =1d[1e0-1fc]
    [   16.121551] 3. Phy Mode = 14
    [   16.124908] AntCfgInit: primary/secondary ant 0/1
    [   16.318603] ---> InitFrequencyCalibration
    [   16.323120] InitFrequencyCalibrationMode:Unknow mode = 3
    [   16.329040] InitFrequencyCalibration: frequency offset in the EEPROM = 55(0x37)
    [   16.337036] <--- InitFrequencyCalibration
    [   16.341583] RTMPSetPhyMode: channel is out of range, use first channel=1
    [   16.350585] MCS Set = ff 00 00 00 01
    [   16.366577] <==== rt28xx_init, Status=0
    [   16.371337] 0x1300 = 00064300
    [   16.374786] RTMPDrvOpen(1):Check if PDMA is idle!
    [   16.380096] RTMPDrvOpen(2):Check if PDMA is idle!
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Performing wifi calibration...
    rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
    Error: Module wl12xx_sdio is not currently loaded
    nl80211 not found.
    Starting network benchmark server: netserver.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    Starting Lighttpd Web Server: 2013-06-26 02:20:47: (log.c.166) server started
    lighttpd.
    /
    Starting Matrix GUI application.

    Thanks,

  • What security is your network using? Are you sure it is WPA?

    Can you try disabling the wireless network security and editing the /etc/network/interfaces file:

    wireless-mode managed
    wireless-essid <your_network_id>

    Best regards,
    Miroslav

  • I believe it is WPA2 as before I used Angstrom distribution and used wpa_passphrase for setting in /var/lib/connman/wifi.config and it worked well...

    Unfortunately, I cannot change the security in the office environment (too many other users)

    Thanks,

  • Sorry, Nigel, I'm out of ideas. Perhaps if you can find a separate router for test purposes, you can try this.

    Best regards,
    Miroslav

  • Can you try using wpa_supplicant? I was looking at config.mk and it looks like the driver includes support for wpa_supplicant.

    Steve K.

  • Hi,

    wpa_supplicant has worked with the following settings in wpa_supplicant.conf:

    # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
    network={
            ssid="My Access Point"
            psk="My Passphrase"
            priority=5
    }

  • Hi, sir:

    i am to change the Makefile.inc below:

    ifeq ($(PLATFORM),PC)
    # Linux 2.6
    LINUX_SRC = /home/hank/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11
    # Linux 2.4 Change to your local setting
    #LINUX_SRC = /usr/src/linux-2.4
    LINUX_SRC_MODULE = /home/hank/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11/drivers/net/wireless/
    CROSS_COMPILE = arm-linux-gnueabihf-
    endif

    Then run "make all".

    why i get the error message:

    hank-virtual-machine:~/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ make all
    make -C tools
    make[1]: Entering directory `/home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
    /home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
    cp -f os/linux/Makefile.6 /home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
    make -C /home/hank/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11 SUBDIRS=/home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
    make[1]: Entering directory `/home/hank/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11'
      CC [M]  /home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
    arm-linux-gnueabihf-gcc: error: unrecognized command line option  -m64
    arm-linux-gnueabihf-gcc: error: unrecognized command line option  -mno-red-zone
    arm-linux-gnueabihf-gcc: error: unrecognized command line option  -mcmodel=kernel
    arm-linux-gnueabihf-gcc: error: unrecognized command line option  -maccumulate-outgoing-args
    make[2]: *** [/home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o] Error 1
    make[1]: *** [_module_/home/hank/tt/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
    make[1]: Leaving directory `/home/hank/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11'
    make: *** [LINUX] Error 2


  • I think the errors are that you are seeing are an ARM compiler not understanding x86 options. When you left PLATFORM = PC in Makefile.inc, their makefiles assume x86. It has been several years since I built the wifi drivers, but I do remember that Makefile.inc had a list of PLATFORM = near the top. What I did was comment out PLATFORM = PC and un-comment PLATFORM = DM6446. And the modify the ifeq for DM6446 and add the path to the kernl source and I think the cross compiler. And then there was a config.mk I had to modify. In there I did something to CFLAGS or CFLAGS_EXTRA.

    Steve K.