aloksinha2001 / picuntu-3.0.8-alok

Integrated kernel for Picuntu 3.0.8-alok+
Other
36 stars 34 forks source link

MT5931 Wifi and MT6622 Bluetooth support #2

Open Galland opened 11 years ago

Galland commented 11 years ago

Thanks for adding the Rikomagic Mediatek code. From my side, I've found more Linux-like drivers in this repo: git://github.com/Anderxale/7300-kern.git

Take a look at folder: 7300-kern/common/drivers/amlogic/wifi/mtk_5931/

UPDATE: The repo has been deleted!! I cloned it a couple weeks ago. I'll reupload the mtk folder to a repo of my own

usumfabricae commented 11 years ago

I'm going to fix Kconfig to enable iMito as a selectable BOARD in order to fix changes to GPIO only when selecting this board. I'll keep you updated.

RubCaj commented 11 years ago

Hello usumfabricae, very good hard work, thank you! Sorry for the late response, had to take other family tasks.

I used your git as he is git clone https://github.com/usumfabricae/Linux3188 INITRAM path changes according to my needs and baked kernel, flashed img and: dmesg excerpts: [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.36+ (root@z9ubi64) (gcc version 4.6.2 20111004 (prerelease) (Linaro GCC 4.6-2011.10) ) #1 SMP PREEMPT Sun Jun 30 12:56:33 CEST 2013 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: RK30board [ 0.000000] Ignoring tag cmdline (using the default kernel command line) [ 0.000000] memory reserve: Memory(base:0x96000000 size:8M) reserved for [ 0.000000] memory reserve: Memory(base:0x94000000 size:32M) reserved for [ 0.000000] memory reserve: Memory(base:0x93800000 size:8M) reserved for [ 0.000000] memory reserve: Memory(base:0x93000000 size:8M) reserved for [ 0.000000] memory reserve: Memory(base:0x91c00000 size:20M) reserved for [ 0.000000] memory reserve: Total reserved 76M [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] CPU SRAM: copied sram code from c0d70000 to fef00010 - fef02148 [ 0.000000] CPU SRAM: copied sram data from c0d72138 to fef02148 - fef028bc [ 0.000000] sramlog: : <W 24 n n \ B > 2 DV % 6Y DX k o ('E [ 0.000000] Omegamoon >> board_clock_init called [ 0.000000] rk30_dvfs_init [ 0.000000] Omegamoon >> Current GPU frequency is 148MHz [ 0.000000] Omegamoon >> Current CPU frequency is 816MHz [ 0.000000] Omegamoon >> aclk_cpu = 272 MHz [ 0.000000] Omegamoon >> hclk_cpu = 136 MHz [ 0.000000] Omegamoon >> pclk_cpu = 68 MHz [ 0.000000] Omegamoon >> aclk_periph = 148 MHz [ 0.000000] Omegamoon >> hclk_periph = 148 MHz [ 0.000000] Omegamoon >> pclk_periph = 74 MHz [ 0.000000] L310 cache controller enabled [ 0.000000] l2x0: 16 ways, CACHE_ID 0x4100c0c8, AUX_CTRL 0x76050001, Cache size: 524288 B [ 0.000000] DDR DEBUG: version 1.00 20130427 [ 0.000000] DDR DEBUG: Omegamoon >> ddr_init(21, 400) called... [ 0.000000] DDR DEBUG: Omegamoon >> loops_per_us is 0 at this point [ 0.000000] DDR DEBUG: Omegamoon >> Adjusted loops_per_us to 300 [ 0.000000] DDR DEBUG: DDR3 Device [ 0.000000] DDR DEBUG: Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Total Capability=1024MB [ 0.000000] DDR DEBUG: Omegamoon >> ddr_init called, SKIPPING ddr_adjust_config [ 0.000000] DDR DEBUG: Omegamoon >> ddr_init called, SKIPPING ddr_change_freq [ 0.000000] DDR DEBUG: Omegamoon >> ddr_init called, just before clk_set_rate [ 0.000000] DDR DEBUG: init success!!! freq=300MHz [ 0.000000] DDR DEBUG: DTONE=0x1, DTERR=0x0, DTIERR=0x0, DTPASS=0x5, DGSL=1 extra clock, DGPS=90 [ 0.000000] DDR DEBUG: DTONE=0x1, DTERR=0x0, DTIERR=0x0, DTPASS=0x4, DGSL=1 extra clock, DGPS=90 [ 0.000000] DDR DEBUG: DTONE=0x1, DTERR=0x0, DTIERR=0x0, DTPASS=0x4, DGSL=1 extra clock, DGPS=90 [ 0.000000] DDR DEBUG: DTONE=0x1, DTERR=0x0, DTIERR=0x0, DTPASS=0x4, DGSL=1 extra clock, DGPS=90 [ 0.000000] DDR DEBUG: ZERR=0, ZDONE=1, ZPD=0x0, ZPU=0x0, OPD=0x0, OPU=0x0 [ 0.000000] DDR DEBUG: DRV Pull-Up=0xa, DRV Pull-Dwn=0xb [ 0.000000] DDR DEBUG: ODT Pull-Up=0x4, ODT Pull-Dwn=0x4 [ 0.000000] rk30_iomux_init [ 0.000000] Boot mode: RECOVERY (2) flag: RECOVER (0xc3524203) [ 0.000000] On node 0 totalpages: 242688 [ 0.000000] free_area_init_node: node 0, pgdat c0d6ecc0, node_mem_map c17f7000 [ 0.000000] Normal zone: 1744 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 202032 pages, LIFO batch:31 [ 0.000000] HighMem zone: 304 pages used for memmap [ 0.000000] HighMem zone: 38608 pages, LIFO batch:7 [ 0.000000] PERCPU: Embedded 7 pages/cpu @c1fff000 s6976 r8192 d13504 u32768 [ 0.000000] pcpu-alloc: s6976 r8192 d13504 u32768 alloc=8*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 240640 [ 0.000000] Kernel command line: root=LABEL=linuxroot init=/sbin/init loglevel=8 rootfstype=ext4 rootwait mtdparts=rk29xxnand:0x00002000@0x00000000(parameter),0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery) [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] allocated 4194304 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Memory: 796MB 152MB = 948MB total [ 0.000000] Memory: 937132k/937132k available, 111444k reserved, 155648K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xf7000000 - 0xfe800000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf6800000 ( 872 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .init : 0xc0408000 - 0xc06ee000 (2968 kB) [ 0.000000] .text : 0xc06ee000 - 0xc0d15d1c (6304 kB) [ 0.000000] .data : 0xc0d16000 - 0xc0d6f800 ( 358 kB) [ 0.000000] .bss : 0xc0d73024 - 0xc17f6dc0 (10768 kB) [ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:448 [ 0.000000] rk30_gpio_init: 176 gpio irqs in 6 banks [ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [tty0] enabled, bootconsole disabled [ 0.010651] Calibrating delay loop (skipped) preset value.. 1631.46 BogoMIPS (lpj=8157341) [ 0.010679] pid_max: default: 32768 minimum: 301 [ 0.010933] Mount-cache hash table entries: 512 [ 0.011578] Initializing cgroup subsys debug [ 0.011600] Initializing cgroup subsys cpuacct [ 0.011662] Initializing cgroup subsys memory [ 0.011700] Initializing cgroup subsys devices [ 0.011715] Initializing cgroup subsys freezer [ 0.011729] Initializing cgroup subsys blkio [ 0.011774] CPU: Testing write buffer coherency: ok [ 0.102480] CPU1: Booted secondary processor [ 0.102518] Brought up 2 CPUs [ 0.102544] SMP: Total of 2 processors activated (3262.93 BogoMIPS). [ 0.102948] devtmpfs: initialized [ 0.110632] NET: Registered protocol family 16 [ 0.110709] last_log: 0xf1500000 map to 0xf7004000 and copy to 0xc0d77328 (version 2.1) [ 0.124567] DVFS MSG: AVS Value(index=0): 0 0 0 0 0 0 0 0 0 0 [ 0.134927] lcdc0 is used as primary display device contoller! [ 0.134967] warning:lcdc1 not add to system! [ 0.235209] rk29sdk_wifi_bt_gpio_control_init: init finished [ 0.249226] bio: create slab at 0 [ 0.249861] SCSI subsystem initialized [ 0.250079] usbcore: registered new interface driver usbfs [ 0.250177] usbcore: registered new interface driver hub [ 0.250295] usbcore: registered new device driver usb [ 0.250571] rk30_i2c rk30_i2c.0: i2c-0: RK30 I2C adapter [ 0.250759] rk30_i2c rk30_i2c.1: i2c-1: RK30 I2C adapter [ 0.250911] rk30_i2c rk30_i2c.2: i2c-2: RK30 I2C adapter [ 0.251047] rk30_i2c rk30_i2c.3: i2c-3: RK30 I2C adapter [ 0.251182] rk30_i2c rk30_i2c.4: i2c-4: RK30 I2C adapter [ 0.251376] rk30-adc rk30-adc: rk30 adc: driver initialized [ 0.251678] timed_gpio_probe [ 0.251785] Advanced Linux Sound Architecture Driver Version 1.0.24. [ 0.252255] Bluetooth: Core ver 2.16 [ 0.252325] NET: Registered protocol family 31 [ 0.252359] Bluetooth: HCI device and connection manager initialized [ 0.252405] Bluetooth: HCI socket layer initialized [ 0.252440] Bluetooth: L2CAP socket layer initialized [ 0.252746] cfg80211: Calling CRDA to update world regulatory domain [ 0.253488] rk fb probe ok! [ 0.280768] tps65910_pre_init,line=20 [ 0.283782] TPS65910 Set default voltage. [ 0.285856] tps65910_pre_init,line=262 [ 0.296118] tps65910_post_init,line=271 [ 0.296152] tps65910_post_init:g_pmic_type=2 [ 0.298518] tps65910_post_init vdd_cpu =1200000mV end [ 0.300907] tps65910_post_init vdd2 =1200000mV end [ 0.312664] tps65910_post_init vio =3300000mV end [ 0.313696] tps65910_post_init vaux1 =2500000mV end [ 0.318355] tps65910_post_init,line=299 END [ 0.318389] tps65910_i2c_probe:irq=356,irq_base=384,gpio_base=384 [ 0.328323] tps65910-rtc tps65910-rtc: rtc core: registered tps65910 as rtc0 [ 0.331065] tps65910_rtc_probe:ok [ 0.331146] Switching to clocksource timer1 [ 0.331402] lcdc0:reg_phy_base = 0x1010c000,reg_vir_base:0xf70a0000 [ 0.331466] fb0:win1 [ 0.331472] fb1:win0 [ 0.331477] fb2:win2 [ 0.331589] rk30 lcdc0 clk enable... [ 0.331751] rk30 lcdc0 clk disable... [ 0.331789] lcdc0: dclk:148500000>>fps:60 rk30_load_screen for lcdc0 ok! [ 0.331958] Switched to NOHz mode on CPU #0 [ 0.332517] Switched to NOHz mode on CPU #1 [ 0.391930] fb0:phy:94000000>>vir:f8000000>>len:0x2000000 [ 0.392135] rk30_lcdc_open>>open:1>>cnt:0 [ 0.392270] rk30 lcdc0 clk enable... [ 0.392279] lcdc0 wakeup from standby! [ 0.392289] lcdc0 win1 open [ 0.392298] lcdc0 win1 open,atv layer:1 [ 0.392520] win1_set_par for lcdc0>>format:2>>>xact:1920>>yact:1080>>xsize:1920>>ysize:1080>>xvir:1920>>yvir:1080>>xpos:192>>ypos:41>> [ 0.392700] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 0.410356] Console: switching to colour frame buffer device 240x67 [ 0.410387] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 0.436940] rk_fb_register>>>>>fb0 [ 0.437234] rk_fb_register>>>>>fb1 [ 0.437491] rk_fb_register>>>>>fb2 [ 0.437566] rk30 lcdc0 probe ok! [ 0.437725] pwm_regulator_probe:n_voltages=19 [ 0.437968] pwm_regulator.0: driver initialized [ 0.454713] NET: Registered protocol family 2 [ 0.454939] IP route cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.455455] TCP established hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.457444] TCP bind hash table entries: 65536 (order: 7, 786432 bytes) [ 0.458629] TCP: Hash tables configured (established 131072 bind 65536) [ 0.458756] TCP reno registered [ 0.458826] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.458982] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.459461] NET: Registered protocol family 1 [ 0.576935] rk30-tsadc rk30-tsadc: initialized [ 0.577119] PMU: registered new PMU device of type 0 [ 0.578088] DVFS WARNING: vd_cpu : selector=86,but volt <=0

[ 0.579201] Loaded driver for PL330 DMAC-1 rk29-pl330 [ 0.579308] DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12 [ 0.579506] Loaded driver for PL330 DMAC-2 rk29-pl330 [ 0.579610] DBUFF-64x8bytes Num_Chans-7 Num_Peri-20 Num_Events-14 [ 0.580392] highmem bounce pool size: 64 pages [ 0.580679] ashmem: initialized [ 0.586810] fuse init (API version 7.16) [ 0.587170] msgmni has been set to 1526 [ 0.588151] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.588304] io scheduler noop registered [ 0.589984] io scheduler deadline registered [ 0.591760] io scheduler cfq registered (default) [ 0.593350] io scheduler vr registered [ 0.594879] io scheduler sio registered [ 0.602447] rga: Driver loaded succesfully [ 0.756890]

hdmi-part

[ 0.804467] usbcore: registered new interface driver asix [ 0.806470] usbcore: registered new interface driver cdc_ether [ 0.808400] usbcore: registered new interface driver net1080 [ 0.810138] Rockchip WiFi SYS interface (V1.00) ... [ 0.812027] Initializing USB Mass Storage driver... [ 0.813922] usbcore: registered new interface driver usb-storage [ 0.815771] USB Mass Storage support registered. [ 0.817688] usbcore: registered new interface driver usbserial [ 0.819578] USB Serial support registered for generic [ 0.821468] usbcore: registered new interface driver usbserial_generic [ 0.823339] usbserial: USB Serial Driver core [ 0.825218] USB Serial support registered for GSM modem (1-port) [ 0.827005] usbcore: registered new interface driver option [ 0.828809] option: v0.7.2:USB Driver for GSM modems

other hdmi-part

[ 1.041228] [ 1.042019] DWC_OTG: ^^^^^^^^^^^^^^^^^Device Mode [ 1.042053] usb20_otg usb20_otg: DWC OTG Controller [ 1.042100] usb20_otg usb20_otg: new USB bus registered, assigned bus number 1 [ 1.042164] usb20_otg usb20_otg: irq 48, io mem 0x00000000 [ 1.042183] DWC_OTG: dwc_otg_hcd_start controller in device mode,everest [ 1.042303] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.042325] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.042345] usb usb1: Product: DWC OTG Controller [ 1.042359] usb usb1: Manufacturer: Linux 3.0.36+ dwc_otg_hcd [ 1.042376] usb usb1: SerialNumber: usb20_otg [ 1.043305] hub 1-0:1.0: USB hub found [ 1.043345] hub 1-0:1.0: 1 port detected [ 1.046158] DWC_OTG: host20_driver_probe host2.0 reg addr: 0x101c0000 remap:0xf7180000 [ 1.063712] HDMI: [ 1.063716] hdmi_work_queue() - evt= 4 4 [ 1.066801] RK30 HDMI: [rk30_hdmi_detect_hotplug] value c0 [ 1.066809] [ 1.069913] HDMI: hdmi_work_queue() - hpd is 2 hotplug is 2 [ 1.071494] HDMI: hdmi_work_queue() - exit [ 1.071500] [ 1.256542] DWC_OTG: ^^^^^^^^^^^^^^^^^^Host Mode [ 1.258115] usb20_host usb20_host: DWC OTG Controller [ 1.259650] usb20_host usb20_host: new USB bus registered, assigned bus number 2 [ 1.261128] usb20_host usb20_host: irq 49, io mem 0x00000000 [ 1.262759] DWC_OTG: Init: Port Power? op_state=1 [ 1.264343] DWC_OTG: Init: Power Port (0) [ 1.265878] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.267431] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.269029] usb usb2: Product: DWC OTG Controller [ 1.270564] usb usb2: Manufacturer: Linux 3.0.36+ host20_hcd [ 1.272115] usb usb2: SerialNumber: usb20_host [ 1.273915] hub 2-0:1.0: USB hub found [ 1.275472] hub 2-0:1.0: 1 port detected [ 1.277905] android_usb gadget: Mass Storage Function, version: 2009/09/11 [ 1.279512] android_usb gadget: Number of LUNs=2 [ 1.281016] lun0: LUN: removable file: (no medium) [ 1.282563] lun1: LUN: removable file: (no medium) [ 1.284207] android_usb gadget: android_usb ready [ 1.285853] input: rk29-keypad as /devices/platform/rk29-keypad/input/input0 [ 1.287738] usbcore: registered new interface driver xpad [ 1.289597] using rtc device, tps65910, for alarms [ 1.289882] lirc_dev: IR Remote Control driver registered, major 251 [ 1.293004] IR NEC protocol handler initialized [ 1.294456] IR RC5(x) protocol handler initialized [ 1.296046] IR RC6 protocol handler initialized [ 1.297620] IR JVC protocol handler initialized [ 1.299135] IR Sony protocol handler initialized [ 1.300668] IR RC5 (streamzap) protocol handler initialized [ 1.302235] IR LIRC bridge handler initialized [ 1.303764] Linux video capture interface: v2.00 [ 1.305443] usbcore: registered new interface driver uvcvideo [ 1.306986] USB Video Class driver (v1.1.0) [ 1.308530] def_ref_volt: 2500mV, curr_ref_volt: 2500mV [ 1.310557] device-mapper: uevent: version 1.0.3 [ 1.312392] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com [ 1.314222] Bluetooth: HCI UART driver ver 2.2 [ 1.315873] Bluetooth: HCI H4 protocol initialized [ 1.317483] Bluetooth: HCI BCSP protocol initialized [ 1.319139] Bluetooth: HCILL protocol initialized [ 1.320747] Bluetooth: HCIATH3K protocol initialized [ 1.322338] Bluetooth: BlueFRITZ! USB driver ver 1.2 [ 1.323909] usbcore: registered new interface driver bfusb [ 1.325480] Bluetooth: Generic Bluetooth USB driver ver 0.6 [ 1.326906] usbcore: registered new interface driver btusb [ 1.328443] Bluetooth: Generic Bluetooth SDIO driver ver 0.1 [ 1.330221] [imoseyon] interactiveX enter [ 1.331891] cpuidle: using governor ladder [ 1.333455] cpuidle: using governor menu [ 1.350243] [ 1.350247] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc0] [ 1.350262] .Line3910..The End of SDMMC-probe Ver.5.03 The last modify date is 2013-02-21. [sd_mmc] [ 1.350596] .Line3910..The End of SDMMC-probe Ver.5.03 The last modify date is 2013-02-21. [sdio] [ 1.352358] usbcore: registered new interface driver usbhid [ 1.352374] usbhid: USB HID core driver [ 1.361471] logger: created 256K log 'log_main' [ 1.363109] logger: created 256K log 'log_events' [ 1.364666] logger: created 256K log 'log_radio' [ 1.364952] rk29_sdmmc_change_clk_div..1935.. newDiv=62, newCLK=299Khz [sd_mmc] [ 1.367674] logger: created 256K log 'log_system' [ 1.369959] asoc: hdmi-audio-codec <-> rk29_i2s.0 mapping ok [ 1.371838] ALSA device list: [ 1.373368] #0: ROCKCHIP HDMI [ 1.374975] GACT probability NOT on [ 1.376444] Mirror/redirect action on [ 1.377794] u32 classifier [ 1.379232] Actions configured [ 1.380654] Netfilter messages via NETLINK v0.30. [ 1.382172] nf_conntrack version 0.5.0 (14642 buckets, 58568 max) [ 1.384044] ctnetlink v0.93: registering with nfnetlink. [ 1.385611] NF_TPROXY: Transparent proxy support initialized, version 4.1.0 [ 1.387212] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. [ 1.388971] xt_time: kernel timezone is -0000 [ 1.390617] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.392325] arp_tables: (C) 2002 David S. Miller [ 1.393694] TCP cubic registered [ 1.395489] NET: Registered protocol family 10 [ 1.397516] Mobile IPv6 [ 1.399038] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.400723] IPv6 over IPv4 tunneling driver [ 1.402873] NET: Registered protocol family 17 [ 1.404411] NET: Registered protocol family 15 [ 1.405941] Bridge firewalling registered [ 1.407473] Bluetooth: RFCOMM TTY layer initialized [ 1.408977] Bluetooth: RFCOMM socket layer initialized [ 1.410270] Bluetooth: RFCOMM ver 1.11 [ 1.411733] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.413226] Bluetooth: BNEP filters: protocol multicast [ 1.413237] [ 1.413240] mmc_attach_sd..1219.. ===== Begin to identify card as SD-card. [mmc0] [ 1.417685] NET: Registered protocol family 35 [ 1.419317] lib80211: common routines for IEEE802.11 drivers [ 1.420830] lib80211_crypt: registered algorithm 'NULL' [ 1.422414] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 1.422540] rk30-camera version: v0.2.31 Zoom by ipp [ 1.425757] get cif ldo failed! [ 1.427218] get cif ldo failed! [ 1.430085] tps65910-rtc tps65910-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 1.432234] usbcore: registered new interface driver snd-usb-audio [ 1.433358] get cif ldo failed! [ 1.433386] camera 34-0-ov5642_back: Probe ov5642_back failed [ 1.433466] rk30-camera version: v0.2.31 Zoom by ipp [ 1.438903] Warning: unable to open an initial console. [ 1.438971] get cif ldo failed! [ 1.438991] get cif ldo failed! [ 1.444061] Freeing init memory: 2968K [ 1.448047] get cif ldo failed! [ 1.449944] camera 33-0-ov2659_front: Probe ov2659_front failed [ 1.502716] udevd[93]: starting version 175 [ 1.587155] rk29_sdmmc_change_clk_div..1935.. newDiv=0, newCLK=37125Khz [sd_mmc] [ 1.589269] mmc0: new high speed SDHC card at address aaaa [ 1.600135] mmcblk0: mmc0:aaaa SU08G 7.40 GiB [ 1.607001] [ 1.607007] msdos_partition..461... ==== Begin to parse sdcard-partition. [mmc0] [ 1.610556] msdos_partition..530... ==== The sdcard has MBR. [mmc0] [ 1.612511] msdos_partition..543... ==== partition-1, size=7760896KB [mmc0] [ 1.614520] msdos_partition..571... ==== main partition-1....[mmc0] [ 1.616515] mmcblk0: p1 [ 1.627946] mmc_rescan_try_freq..1718.. ===== Initialize SD-card successfully. [mmc0] [ 1.631757] [ 1.631762] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc1] [ 1.661653] usb 2-1: new high speed USB device number 2 using usb20_host [ 1.861156] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null) [ 1.871702] usb 2-1: New USB device found, idVendor=0409, idProduct=005a [ 1.874055] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.876856] hub 2-1:1.0: USB hub found [ 1.879188] hub 2-1:1.0: 4 ports detected [ 2.161757] usb 2-1.1: new high speed USB device number 3 using usb20_host [ 2.273626] usb 2-1.1: New USB device found, idVendor=0b95, idProduct=772a [ 2.287026] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.300815] usb 2-1.1: Product: AX88x72A [ 2.311716] usb 2-1.1: Manufacturer: ASIX Elec. Co\xffffffe0\xffffffbd\xffffffb2\xffffffbd\xffffffb2p. [ 2.322528] usb 2-1.1: SerialNumber: 000002 [ 3.027456] ASIX USB Ethernet Adapter:v4.1.1 12:55:59 Jun 30 2013 [ 3.027520] <6> http://www.asix.com.tw [ 3.051095] ----> axusbnet_probe 1276:bind ASIX AX88772A USB 2.0 Ethernet [ 3.056848] eth%d: status ep1in, 8 bytes period 11 [ 3.065377] eth0: register 'asix' at usb-usb20_host-1.1, ASIX AX88772A USB 2.0 Ethernet, 00:10:13:ae:a4:ba [ 3.161450] usb 2-1.2: new low speed USB device number 4 using usb20_host [ 3.235690] init: ureadahead main process (169) terminated with status 5 [ 3.302992] usb 2-1.2: New USB device found, idVendor=04d9, idProduct=2519 [ 3.306135] usb 2-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 3.309166] usb 2-1.2: Product: 2.4G Wireless Touchpad Keyboard [ 3.335048] input: 2.4G Wireless Touchpad Keyboard as /devices/platform/usb20_host/usb2/2-1/2-1.2/2-1.2:1.0/input/input1 [ 3.337746] generic-usb 0003:04D9:2519.0001: input,hidraw0: USB HID v1.10 Keyboard [2.4G Wireless Touchpad Keyboard] on usb-usb20_host-1.2/input0 [ 3.364793] input: 2.4G Wireless Touchpad Keyboard as /devices/platform/usb20_host/usb2/2-1/2-1.2/2-1.2:1.1/input/input2 [ 3.367696] generic-usb 0003:04D9:2519.0002: input,hidraw1: USB HID v1.10 Mouse [2.4G Wireless Touchpad Keyboard] on usb-usb20_host-1.2/input1 [ 3.492889] init: mounted-proc main process (175) terminated with status 1 [ 3.722290] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null) [ 4.227543] udevd[353]: starting version 175 [ 4.643540] initRssiHistory. [ 4.643566] MT5931 SDIO WiFi driver (Powered by Rockchip,Ver 2.12) init. [ 4.643604] initWlan [ 4.643616] ## Calling platform_driver_register [ 4.643727] ## wifi_probe [ 4.643749] wifi_set_power = 1 [ 4.643780] rk29sdk_wifi_power: 1 [ 5.010502] wifi turn on power [ 5.010521] wifi_set_carddetect = 1 [ 5.010534] rk29sdk_wifi_set_carddetect:1 [ 5.010550] mmc1: slot status change detected(0-1) [ 5.010612] rk29_sdmmc_change_clk_div..1935.. newDiv=42, newCLK=294Khz [sdio] [ 5.010961] wl_android_wifictrl_func_add success. [ 5.197829] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.201265] [ 5.201271] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc1] [ 5.251761] [ 5.251766] mmc_attach_sdio..801.. ===== Begin to identify card as SDIO-card. [mmc1] [ 5.298955] rk29_sdmmc_change_clk_div..1935.. newDiv=0, newCLK=24750Khz [sdio] [ 5.299931] mmc1: new high speed SDIO card at address 0001 [ 5.300539] wireless_dev prWdev(0xf027a200) allocated [ 5.300567] wiphy (0xf0106120) allocated [ 5.300592] net_device prDev(0xf019d000) allocated [ 5.312281] Open FW image: WIFI_RAM_CODE done [ 5.323318] Allocating 4096 bytes for COMMON MGMT MEMORY POOL. [ 5.323356] Virtual Address = f708a000 for COMMON MGMT MEMORY POOL. [ 5.323370] Allocating 11136 bytes for SW_RFB_T. [ 5.323398] Virtual Address = f70eb000 for SW_RFB_T. [ 5.323410] Allocating 13312 bytes for MSDU_INFO_T. [ 5.323426] Virtual Address = f70ef000 for MSDU_INFO_T. [ 5.549158] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.561336] DWC_OTG: frame_number 0x37ad, start 0x37a7, complete: 1Using embedded MAC address[wifi] wlan%d netif_carrier_off [ 5.618134] tx_thread starts running... [ 5.623289] MAC address: 00:0c:d4:05:40:fd [ 5.624203] mmc_rescan_try_freq..1675.. ===== Initialize SDIO successfully. [mmc1] [ 5.676076] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.908786] DWC_OTG: frame_number 0x289, start 0x27f, complete: 1 [ 6.160828] eth0: open: enable queueing (rx 44, tx 60) mtu 1500 ASIX framing [ 6.160993] eth0: rxqlen 0 --> 10 [ 6.161115] eth0: rxqlen 10 --> 20 [ 6.161295] eth0: rxqlen 20 --> 30 [ 6.161394] eth0: rxqlen 30 --> 40 [ 6.161476] eth0: rxqlen 40 --> 44 [ 6.421488] Set Wi-Fi PS mode to CAM (0) [ 6.422119] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 6.652295] DWC_OTG: frame_number 0x19c5, start 0x19bf, complete: 1 [ 8.466242] eth0: ax88772a - Link status is: 0 [ 9.449344] initRssiHistory. [ 9.461197] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 9.461572] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 9.469043] --> mtk_cfg80211_set_default_key() [ 9.469349] initRssiHistory. [ 9.469438] [wifi] wlan0 netif_carrier_off [ 9.472247] cfg80211: Calling CRDA to update world regulatory domain [ 9.496945] cfg80211: World regulatory domain updated: [ 9.496971] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 9.497004] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 9.497035] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 9.497066] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 9.497097] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 9.497127] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.130266] eth0: ax88772a - Link status is: 1 [ 12.478623] initRssiHistory. [ 12.489928] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 12.500365] --> mtk_cfg80211_set_default_key() [ 12.500522] initRssiHistory. [ 12.500675] [wifi] wlan0 netif_carrier_off [ 12.502395] cfg80211: Calling CRDA to update world regulatory domain [ 12.521162] cfg80211: World regulatory domain updated: [ 12.521187] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 12.521317] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 12.521352] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 12.521383] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 12.521414] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 12.521446] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 15.865631] initRssiHistory. [ 15.887449] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 15.924874] --> mtk_cfg80211_set_default_key()

and so on:

iwconfig wlan0 IEEE 802.11bgn ESSID:"WLAN-SPEEDPORT W920V" Mode:Managed Frequency:2.412 GHz Access Point: 00:24:FE:A8:67:0F Bit Rate:54 Mb/s Tx-Power=off RTS thr=0 B Fragment thr:off Encryption key:_--**-**-**-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_--** Power Management:off Link Quality=0/100 Signal level=-60 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

lxcbr0 no wireless extensions.

after ifconfig wlan0 up

wlan0 Disconnected ESSID:"" Mode:Managed Access Point: 00:00:00:00:0C:40 Tx-Power=off RTS thr=0 B Fragment thr:off Encryption key:_--**-**-**-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_--** Power Management:off Link Quality=0/100 Signal level=-56 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 dmesg [ 1092.520976] initRssiHistory. [ 1092.545371] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 1092.581473] --> mtk_cfg80211_set_default_key() [ 1092.583321] initRssiHistory. [ 1092.583677] [wifi] wlan0 netif_carrier_off [ 1092.593962] cfg80211: Calling CRDA to update world regulatory domain [ 1092.673970] cfg80211: World regulatory domain updated: [ 1092.673992] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1092.674020] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1092.674043] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1092.674066] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1092.674088] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1092.674114] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1100.482221] initRssiHistory. [ 1100.505472] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 1100.542426] --> mtk_cfg80211_set_default_key() [ 1100.544807] initRssiHistory. [ 1100.545046] [wifi] wlan0 netif_carrier_off [ 1100.550421] cfg80211: Calling CRDA to update world regulatory domain [ 1100.563702] cfg80211: World regulatory domain updated: [ 1100.563723] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1100.563750] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1100.563786] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1100.563808] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1100.563832] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1100.563854] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) root@rk3066dev:~#

RubCaj commented 11 years ago
  1. with 6622

gpio_debug

[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.36+ (root@z9ubi64) (gcc version 4.6.2 20111004 (prerelease) (Linaro GCC 4.6-2011.10) ) #2 SMP PREEMPT Sun Jun 30 13:36:50 CEST 2013 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: RK30board [ 0.251619] timed_gpio_probe [ 0.251729] Advanced Linux Sound Architecture Driver Version 1.0.24. ... [ 0.252200] Bluetooth: Core ver 2.16 [ 0.252270] NET: Registered protocol family 31 [ 0.252305] Bluetooth: HCI device and connection manager initialized [ 0.252350] Bluetooth: HCI socket layer initialized [ 0.252385] Bluetooth: L2CAP socket layer initialized [ 0.252701] cfg80211: Calling CRDA to update world regulatory domain [ 0.253452] rk fb probe ok! [ 0.280738] tps65910_pre_init,line=20 [ 0.283761] TPS65910 Set default voltage. [ 0.285835] tps65910_pre_init,line=262 [ 0.296077] tps65910_post_init,line=271 [ 0.296109] tps65910_post_init:g_pmic_type=2 [ 0.298478] tps65910_post_init vdd_cpu =1200000mV end [ 0.300865] tps65910_post_init vdd2 =1200000mV end [ 0.312722] tps65910_post_init vio =3300000mV end [ 0.313754] tps65910_post_init vaux1 =2500000mV end [ 0.318410] tps65910_post_init,line=299 END [ 0.318445] tps65910_i2c_probe:irq=356,irq_base=384,gpio_base=384 [ 0.328377] tps65910-rtc tps65910-rtc: rtc core: registered tps65910 as rtc0 [ 0.331129] tps65910_rtc_probe:ok [ 0.331212] Switching to clocksource timer1 ...

...

[ 1.198296] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com [ 1.200123] Bluetooth: HCI UART driver ver 2.2 [ 1.201795] Bluetooth: HCI H4 protocol initialized [ 1.203415] Bluetooth: HCI BCSP protocol initialized [ 1.205051] Bluetooth: HCILL protocol initialized [ 1.206682] Bluetooth: HCIATH3K protocol initialized [ 1.208250] Bluetooth: BlueFRITZ! USB driver ver 1.2 [ 1.209646] usbcore: registered new interface driver bfusb [ 1.211209] Bluetooth: Generic Bluetooth USB driver ver 0.6 [ 1.212798] usbcore: registered new interface driver btusb [ 1.214347] Bluetooth: Generic Bluetooth SDIO driver ver 0.1 [ 1.216123] [imoseyon] interactiveX enter [ 1.217769] cpuidle: using governor ladder [ 1.219333] cpuidle: using governor menu [ 1.236106] [ 1.236110] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc0] [ 1.236124] .Line3910..The End of SDMMC-probe Ver.5.03 The last modify date is 2013-02-21. [sd_mmc] [ 1.236441] .Line3910..The End of SDMMC-probe Ver.5.03 The last modify date is 2013-02-21. [sdio] [ 1.238116] usbcore: registered new interface driver usbhid [ 1.238140] usbhid: USB HID core driver [ 1.250662] rk29_sdmmc_change_clk_div..1935.. newDiv=62, newCLK=299Khz [sd_mmc] [ 1.252597] logger: created 256K log 'log_main' [ 1.254271] logger: created 256K log 'log_events' [ 1.255873] logger: created 256K log 'log_radio' [ 1.257432] logger: created 256K log 'log_system' ####################################################### [ 1.258864] mt6622_probe. [ 1.260251] gpio_request: gpio-281 (BT_RESET) status -16 [ 1.261833] mt6622 reset_gpio is busy! [ 1.263365] mt6622: probe of mt6622 failed with error -1 ####################################################### ... [ 1.298594] Bridge firewalling registered [ 1.298956] Bluetooth: RFCOMM TTY layer initialized [ 1.298982] Bluetooth: RFCOMM socket layer initialized [ 1.299000] Bluetooth: RFCOMM ver 1.11 [ 1.299017] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.299032] Bluetooth: BNEP filters: protocol multicast [ 1.299108] NET: Registered protocol family 35 [ 1.299486] lib80211: common routines for IEEE802.11 drivers [ 1.299508] lib80211_crypt: registered algorithm 'NULL' [ 1.299700] VFP support v0.3: rk30-camera version: v0.2.31 Zoom by ipp [ 1.319321] implementor 41 architecture 3 part 30 variant 9 rev 4 [ 1.321182] get cif ldo failed! [ 1.322693] get cif ldo failed! [ 1.327133] get cif ldo failed! [ 1.328571] camera 34-0-ov5642_back: Probe ov5642_back failed [ 1.330050] rk30-camera version: v0.2.31 Zoom by ipp [ 1.331548] tps65910-rtc tps65910-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 1.332023] get cif ldo failed! [ 1.332032] get cif ldo failed! [ 1.336999] usbcore: registered new interface driver snd-usb-audio [ 1.338284] get cif ldo failed! [ 1.338318] camera 33-0-ov2659_front: Probe ov2659_front failed [ 1.341742] Warning: unable to open an initial console. [ 1.343399] Freeing init memory: 2968K [ 1.399029] udevd[94]: starting version 175 [ 1.505735] rk29_sdmmc_change_clk_div..1935.. newDiv=0, newCLK=37125Khz [sd_mmc] [ 1.507528] mmc0: new high speed SDHC card at address aaaa [ 1.509347] mmcblk0: mmc0:aaaa SU08G 7.40 GiB [ 1.516287] [ 1.516292] msdos_partition..461... ==== Begin to parse sdcard-partition. [mmc0] [ 1.518128] msdos_partition..530... ==== The sdcard has MBR. [mmc0] [ 1.519990] msdos_partition..543... ==== partition-1, size=7760896KB [mmc0] [ 1.522152] msdos_partition..571... ==== main partition-1....[mmc0] [ 1.524019] mmcblk0: p1 [ 1.525999] mmc_rescan_try_freq..1718.. ===== Initialize SD-card successfully. [mmc0] [ 1.527991] [ 1.527997] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc1] [ 1.551332] usb 2-1: new high speed USB device number 2 using usb20_host ########################################################################## [ 4.957580] MT5931 SDIO WiFi driver (Powered by Rockchip,Ver 2.12) init. [ 4.957614] initWlan [ 4.957630] ## Calling platform_driver_register [ 4.957721] ## wifi_probe [ 4.957738] wifi_set_power = 1 [ 4.957755] rk29sdk_wifi_power: 1 [ 5.299039] wifi turn on power [ 5.299062] wifi_set_carddetect = 1 [ 5.299078] rk29sdk_wifi_set_carddetect:1 [ 5.299097] mmc1: slot status change detected(0-1) [ 5.299162] rk29_sdmmc_change_clk_div..1935.. newDiv=42, newCLK=294Khz [sdio] [ 5.299547] wl_android_wifictrl_func_add success. [ 5.491399] [ 5.491407] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc1] [ 5.535750] [ 5.535756] mmc_attach_sdio..801.. ===== Begin to identify card as SDIO-card. [mmc1] [ 5.578902] rk29_sdmmc_change_clk_div..1935.. newDiv=0, newCLK=24750Khz [sdio] [ 5.579945] mmc1: new high speed SDIO card at address 0001 [ 5.580525] wireless_dev prWdev(0xf01f9c00) allocated [ 5.580573] wiphy (0xf0378120) allocated [ 5.580609] net_device prDev(0xf0016800) allocated [ 5.591265] Open FW image: WIFI_RAM_CODE done [ 5.602051] Allocating 4096 bytes for COMMON MGMT MEMORY POOL. [ 5.602097] Virtual Address = f708a000 for COMMON MGMT MEMORY POOL. [ 5.602125] Allocating 11136 bytes for SW_RFB_T. [ 5.602162] Virtual Address = f70eb000 for SW_RFB_T. [ 5.602188] Allocating 13312 bytes for MSDU_INFO_T. [ 5.602218] Virtual Address = f70ef000 for MSDU_INFO_T. [ 5.695788] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.798399] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.877097] Using embedded MAC address[wifi] wlan%d netif_carrier_off [ 5.903838] tx_thread starts running... [ 5.918109] MAC address: 00:0c:d4:05:40:fd [ 5.928075] mmc_rescan_try_freq..1675.. ===== Initialize SDIO successfully. [mmc1] [ 6.039407] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 6.298875] <6>lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 6.489544] eth0: open: enable queueing (rx 44, tx 60) mtu 1500 ASIX framing [ 6.489705] eth0: rxqlen 0 --> 10 [ 6.489880] eth0: rxqlen 10 --> 20 [ 6.490017] eth0: rxqlen 20 --> 30 [ 6.490275] eth0: rxqlen 30 --> 40 [ 6.490332] eth0: rxqlen 40 --> 44 [ 6.691504] Set Wi-Fi PS mode to CAM (0) [ 6.691982] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 8.283002] eth0: ax88772a - Link status is: 0 [ 9.818957] eth0: ax88772a - Link status is: 1 [ 10.729708] initRssiHistory. [ 10.749368] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 10.749651] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 10.756820] --> mtk_cfg80211_set_default_key() [ 10.757035] initRssiHistory. [ 10.757163] [wifi] wlan0 netif_carrier_off [ 10.758853] cfg80211: Calling CRDA to update world regulatory domain [ 10.783895] cfg80211: World regulatory domain updated: [ 10.783920] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 10.783953] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.783985] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 10.784020] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 10.784051] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.784080] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.766362] initRssiHistory. [ 13.785218] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 13.792081] --> mtk_cfg80211_set_default_key() [ 13.792422] initRssiHistory. [ 13.792488] [wifi] wlan0 netif_carrier_off ########################################################################## aso

usumfabricae commented 11 years ago

Did you tested branch https://github.com/usumfabricae/Linux3188/tree/MT5931_MT6622. From your log i see there's a conflict on Blutooth gpio. I've fixed in the last commit of this branch. I did also a lot of changes on other gpios to match the original Android kernel. Do you have a chance to test it?

RubCaj commented 11 years ago

Ok, I hope that I have caught everything from branch https://github.com/usumfabricae/Linux3188/tree/MT5931_MT6622 and the right config. Settings, had some probs with hci_uart lsmod: root@rk3066dev:/pub/source/GPIO_DUMP/module# lsmod Module Size Used by user_gpio_drv 1947 0 hci_uart 13248 0 bt_hwctl 4657 1 hci_uart hci_vhci 2684 0 wlan 327956 0

Maybe I've overlooked something simple, but the problem persists, that the ESSID is lost once an IP is requested (dhclient wlan0)

complete dmesg: https://github.com/RubCaj/dmesg/issues/1#issuecomment-20253735

in short excerpt: [ 4.246955] MT5931 SDIO WiFi driver (Powered by Rockchip,Ver 2.12) init. [ 4.246986] initWlan [ 4.246997] ## Calling platform_driver_register [ 4.247080] ## wifi_probe [ 4.247099] wifi_set_power = 1 [ 4.247117] rk29sdk_wifi_power: 1 [ 4.771474] DWC_OTG: frame_number 0x21cd, start 0x21c7, complete: 1 [ 4.771506] DWC_OTG: frame_number 0x21cd, start 0x21c7, complete: 1 [ 4.819972] lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.054817] lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.066882] wifi turn on power [ 5.066917] wifi_set_carddetect = 1 [ 5.066936] rk29sdk_wifi_set_carddetect:1 [ 5.066962] mmc1: slot status change detected(0-1) [ 5.067069] rk29_sdmmc_change_clk_div..1935.. newDiv=42, newCLK=294Khz [sdio] [ 5.073237] wl_android_wifictrl_func_add success. [ 5.129831] lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.235980] Bluetooth: Virtual HCI driver ver 1.3 [ 5.261405] [ 5.261411] drivers/mmc/core/core.c...1824.. ===== mmc_rescan Begin....[mmc1] [ 5.304887] mt6622_probe. [ 5.304914] [MT6622] mt_bt_power_init [ 5.309094] [ 5.309099] mmc_attach_sdio..801.. ===== Begin to identify card as SDIO-card. [mmc1] [ 5.342667] rk29_sdmmc_change_clk_div..1935.. newDiv=0, newCLK=24750Khz [sdio] [ 5.343834] mmc1: new high speed SDIO card at address 0001 [ 5.344288] wireless_dev prWdev(0xf01ec000) allocated [ 5.344339] wiphy (0xefc98120) allocated [ 5.344377] net_device prDev(0xf0171000) allocated [ 5.539328] DWC_OTG: frame_number 0x39cc, start 0x39c7, complete: 1 [ 5.539376] DWC_OTG: frame_number 0x39cc, start 0x39c7, complete: 1Open FW image: WIFI_RAM_CODE done [ 5.573741] Allocating 4096 bytes for COMMON MGMT MEMORY POOL. [ 5.573807] Virtual Address = f708a000 for COMMON MGMT MEMORY POOL. [ 5.573840] Allocating 11136 bytes for SW_RFB_T. [ 5.573882] Virtual Address = f70f0000 for SW_RFB_T. [ 5.573916] Allocating 13312 bytes for MSDU_INFO_T. [ 5.573955] Virtual Address = f70f4000 for MSDU_INFO_T. [ 5.728888] lcdc0>>win1_display>>y_addr:0x94000000>>uv_addr:0x95000000 [ 5.856416] Using embedded MAC address[wifi] wlan%d netif_carrier_off [ 5.861681] tx_thread starts running... [ 5.868689] MAC address: 00:0c:d4:05:40:fd [ 5.869878] mmc_rescan_try_freq..1675.. ===== Initialize SDIO successfully. [mmc1] [ 6.025974] eth0: open: enable queueing (rx 44, tx 60) mtu 1500 ASIX framing [ 6.026144] eth0: rxqlen 0 --> 10 [ 6.026334] eth0: rxqlen 10 --> 20 [ 6.026435] eth0: rxqlen 20 --> 30 [ 6.026517] eth0: rxqlen 30 --> 40 [ 6.026566] eth0: rxqlen 40 --> 44 [ 6.068356] Set Wi-Fi PS mode to CAM (0) [ 6.069178] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 6.546310] Bluetooth: HCI UART driver ver 2.2 [ 6.546369] Bluetooth: HCI H4 protocol initialized [ 6.546444] Bluetooth: HCI BCSP protocol initialized [ 6.546502] Bluetooth: HCILL protocol initialized [ 8.331387] eth0: ax88772a - Link status is: 0 [ 9.995395] eth0: ax88772a - Link status is: 1 [ 10.127904] initRssiHistory. [ 10.145864] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 10.146121] [wifi] wlan0 netif_carrier_on [ssid:WLAN-SPEEDPORT W920V 00:24:fe:a8:67:0f] [ 10.154849] --> mtk_cfg80211_set_default_key() [ 10.155345] initRssiHistory. [ 10.155412] [wifi] wlan0 netif_carrier_off [ 10.157398] cfg80211: Calling CRDA to update world regulatory domain [ 10.182683] cfg80211: World regulatory domain updated: [ 10.182709] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 10.182743] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.182778] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 10.182809] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 10.182840] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.182871] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

usumfabricae commented 11 years ago

I've run it for a couple of hour without an problem on an open wifi (just have to add it to allowed macaddr). I've not tested with an encrypted one, i'll try it next we. Could you try setting DBG=1 in cflags in mt5931 makefile i think we should see soumthing in AAa state changing.

usumfabricae commented 11 years ago

I'm keeping modules to change them without reflashing even if i have to do some tricks in order to compile and install them in the right order :) If it works i'm going to move some of them back into kernel image (Bluetooth staff). Right Now i'm trying to see whether i can trace and collect blutooth firmware setup to remove libblutooth_mtk and place it somwhere else (likelly in bt module)

RubCaj commented 11 years ago

DBG=1 in MT5931 Makefile https://github.com/RubCaj/dmesg/issues/1#issuecomment-20271761 (part1 - 3)

ifconfig wlan0 down iwconfig wlan0 essid "WLAN_ROUTER" iwconfig wlan0 key s:1234567890123456

iwconfig: wlan0 IEEE 802.11bgn ESSID:"WLANROUTER" Mode:Managed Frequency:2.412 GHz Access Point: 00:24:FE:A8:67:0F Bit Rate:54 Mb/s Tx-Power=off RTS thr=0 B Fragment thr:off Encryption key:***-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_--*** Power Management:off Link Quality=0/100 Signal level=-59 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

and ifconfig wlan0 up results in: wlan0 Disconnected ESSID:"" Mode:Managed Access Point: 00:00:00:00:03:40 Tx-Power=off RTS thr=0 B Fragment thr:off Encryption key:_--**-**-**-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_--** Power Management:off Link Quality=0/100 Signal level=-59 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

and new dmesg after dmesg -c

[ 1616.718631] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =14 [ 1616.718880] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.719780] [MT5931]: 0xf732c000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.721805] Release: i = 1 aucFreeBufferCount = 14 [ 1616.721915] Release: i = 5 aucFreeBufferCount = 1 [ 1616.722277] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =15 [ 1616.722536] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.723097] [MT5931]: 0xf732c000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.723661] Release: i = 1 aucFreeBufferCount = 14 [ 1616.723755] Release: i = 5 aucFreeBufferCount = 1 [ 1616.724451] nicConfigPowerSaveProfile: (INIT TRACE) eNetTypeIndex:0, ePwrMode:0, fgEnCmdEvent:1 [ 1616.724671] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =16 [ 1616.724868] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.726026] Release: i = 1 aucFreeBufferCount = 14 [ 1616.726123] Release: i = 5 aucFreeBufferCount = 1 [ 1616.726390] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =17 [ 1616.726575] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.727265] [MT5931]: 0xf732e000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.729940] Release: i = 1 aucFreeBufferCount = 14 [ 1616.730036] Release: i = 5 aucFreeBufferCount = 1 [ 1616.731176] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =18 [ 1616.731405] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.731930] [MT5931]: 0xf732e000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.732047] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =19 [ 1616.732284] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1616.734702] [MT5931]: 0xf7330000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.735262] Release: i = 1 aucFreeBufferCount = 14 [ 1616.735361] Release: i = 5 aucFreeBufferCount = 1 [ 1616.735668] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =20 [ 1616.735889] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.736430] [MT5931]: 0xf7330000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.740695] Release: i = 1 aucFreeBufferCount = 14 [ 1616.740790] Release: i = 5 aucFreeBufferCount = 1 [ 1616.749952] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =21 [ 1616.750171] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.750897] [MT5931]: 0xf7332000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.751662] Release: i = 1 aucFreeBufferCount = 14 [ 1616.751759] Release: i = 5 aucFreeBufferCount = 1 [ 1616.752022] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =22 [ 1616.752210] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.752852] [MT5931]: 0xf7332000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.757948] Release: i = 1 aucFreeBufferCount = 14 [ 1616.758054] Release: i = 5 aucFreeBufferCount = 1 [ 1616.758385] wlanSendSetQueryCmd: (REQ TRACE) [ 1616.764239] +++++ pending frame 1 len = 90 +++++ [ 1616.764663] [ 1616.764690] +++++ pending frame 2 len = 54 +++++ [ 1616.765909] ucCmdSeqNum =23 [ 1616.766695] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.773742] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1616.774019] ----- pending frame 1 ----- [ 1616.774605] Release: i = 1 aucFreeBufferCount = 14 [ 1616.774702] Release: i = 5 aucFreeBufferCount = 1 [ 1616.774962] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_NORMAL_TR] -> [AIS_STATE_ONLINE_SCAN] [ 1616.776016] [MT5931]: 0xf7334000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.778465] scnFsmSteps: (SCN STATE) TRANSITION: [SCAN_STATE_IDLE] -> [SCAN_STATE_SCANNING] [ 1616.778648] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =24 [ 1616.778778] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.779516] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1616.779745] ----- pending frame 0 ----- [ 1616.783167] Release: i = 1 aucFreeBufferCount = 14 [ 1616.783186] Release: i = 5 aucFreeBufferCount = 0 [ 1616.783236] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =25 [ 1616.783271] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.783405] [MT5931]: 0xf7334000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.783498] Release: i = 1 aucFreeBufferCount = 14 [ 1616.783516] Release: i = 5 aucFreeBufferCount = 1 [ 1616.783566] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =26 [ 1616.783610] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1616.783691] [MT5931]: 0xf7336000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.783716] Release: i = 1 aucFreeBufferCount = 14 [ 1616.783727] Release: i = 5 aucFreeBufferCount = 1 [ 1616.783757] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =27 [ 1616.783797] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1616.783943] Release: i = 1 aucFreeBufferCount = 14 [ 1616.783958] Release: i = 5 aucFreeBufferCount = 1 [ 1616.784019] [MT5931]: 0xf7336000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1616.784128] Release: i = 1 aucFreeBufferCount = 14 [ 1616.784146] Release: i = 5 aucFreeBufferCount = 1 [ 1616.786314] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,1,2 [ 1616.812158] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =28 [ 1616.812256] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.812509] Release: i = 1 aucFreeBufferCount = 14 [ 1616.812531] Release: i = 5 aucFreeBufferCount = 1 [ 1616.812785] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =29 [ 1616.812890] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1616.813125] Release: i = 1 aucFreeBufferCount = 14 [ 1616.813147] Release: i = 5 aucFreeBufferCount = 1 [ 1616.881491] [ 1616.881518] +++++ pending frame 1 len = 208 +++++ [ 1616.883227] [ 1616.883254] +++++ pending frame 2 len = 308 +++++ [ 1616.984124] [ 1616.984150] +++++ pending frame 3 len = 78 +++++ [ 1617.133255] [ 1617.133282] +++++ pending frame 4 len = 308 +++++ [ 1617.384024] [ 1617.384051] +++++ pending frame 5 len = 308 +++++ [ 1617.585039] [ 1617.585066] +++++ pending frame 6 len = 205 +++++ [ 1617.587335] [ 1617.587362] +++++ pending frame 7 len = 148 +++++ [ 1617.825084] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1617.825557] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.825697] ----- pending frame 6 ----- [ 1617.827132] Release: i = 1 aucFreeBufferCount = 14 [ 1617.827227] Release: i = 5 aucFreeBufferCount = 1 [ 1617.827774] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.827906] ----- pending frame 5 ----- [ 1617.829266] Release: i = 1 aucFreeBufferCount = 14 [ 1617.829358] Release: i = 5 aucFreeBufferCount = 1 [ 1617.829938] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.830067] ----- pending frame 4 ----- [ 1617.831343] Release: i = 1 aucFreeBufferCount = 14 [ 1617.831437] Release: i = 5 aucFreeBufferCount = 1 [ 1617.832032] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.832159] ----- pending frame 3 ----- [ 1617.833699] Release: i = 1 aucFreeBufferCount = 14 [ 1617.833793] Release: i = 5 aucFreeBufferCount = 1 [ 1617.834545] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.834694] ----- pending frame 2 ----- [ 1617.844123] Release: i = 1 aucFreeBufferCount = 14 [ 1617.844223] Release: i = 5 aucFreeBufferCount = 1 [ 1617.844595] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.844711] ----- pending frame 1 ----- [ 1617.846248] Release: i = 1 aucFreeBufferCount = 14 [ 1617.846340] Release: i = 5 aucFreeBufferCount = 1 [ 1617.846750] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1617.846860] ----- pending frame 0 ----- [ 1617.848176] Release: i = 1 aucFreeBufferCount = 14 [ 1617.848267] Release: i = 5 aucFreeBufferCount = 1 [ 1617.952374] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,1,2 [ 1617.954437] [ 1617.954463] +++++ pending frame 1 len = 208 +++++ [ 1617.984410] [ 1617.984440] +++++ pending frame 2 len = 70 +++++ [ 1617.986607] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =30 [ 1617.986802] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1617.988292] [MT5931]: 0xf7338000(192) allocated (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1617.990230] Release: i = 1 aucFreeBufferCount = 14 [ 1617.990344] Release: i = 5 aucFreeBufferCount = 1 [ 1617.991757] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =31 [ 1617.991943] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1617.992557] [MT5931]: 0xf7338000(192) freed (drivers/net/wireless/mt5931/os/linux/gl_init.c:wlanSetMulticastListWorkQueue) [ 1617.994975] Release: i = 1 aucFreeBufferCount = 14 [ 1617.995075] Release: i = 5 aucFreeBufferCount = 1 [ 1618.004205] [ 1618.004231] +++++ pending frame 3 len = 110 +++++ [ 1618.114465] [ 1618.114492] +++++ pending frame 4 len = 228 +++++ [ 1618.117092] [ 1618.117119] +++++ pending frame 5 len = 388 +++++ [ 1618.119411] [ 1618.119439] +++++ pending frame 6 len = 195 +++++ [ 1618.132049] [ 1618.132076] +++++ pending frame 7 len = 110 +++++ [ 1618.365092] [ 1618.365120] +++++ pending frame 8 len = 388 +++++ [ 1618.367096] [ 1618.367123] +++++ pending frame 9 len = 195 +++++ [ 1618.615628] [ 1618.615656] +++++ pending frame 10 len = 388 +++++ [ 1618.617644] [ 1618.617671] +++++ pending frame 11 len = 195 +++++ [ 1618.658153] [ 1618.658181] +++++ pending frame 12 len = 221 +++++ [ 1618.660520] [ 1618.660548] +++++ pending frame 13 len = 132 +++++ [ 1618.816696] [ 1618.816724] +++++ pending frame 14 len = 225 +++++ [ 1618.820424] [ 1618.820451] +++++ pending frame 15 len = 228 +++++ [ 1618.822009] [ 1618.822036] +++++ pending frame 16 len = 183 +++++ [ 1618.992786] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1618.993220] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1618.993379] ----- pending frame 15 ----- [ 1618.995751] Release: i = 1 aucFreeBufferCount = 14 [ 1618.995861] Release: i = 5 aucFreeBufferCount = 1 [ 1618.996362] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1618.996485] ----- pending frame 14 ----- [ 1618.998033] Release: i = 1 aucFreeBufferCount = 14 [ 1618.998129] Release: i = 5 aucFreeBufferCount = 1 [ 1618.998570] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1618.998679] ----- pending frame 13 ----- [ 1618.999308] Release: i = 1 aucFreeBufferCount = 14 [ 1618.999397] Release: i = 5 aucFreeBufferCount = 1 [ 1618.999911] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.000047] ----- pending frame 12 ----- [ 1619.001387] Release: i = 1 aucFreeBufferCount = 14 [ 1619.001478] Release: i = 5 aucFreeBufferCount = 1 [ 1619.002092] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.002263] ----- pending frame 11 ----- [ 1619.003784] Release: i = 1 aucFreeBufferCount = 14 [ 1619.003882] Release: i = 5 aucFreeBufferCount = 1 [ 1619.005179] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.005574] ----- pending frame 10 ----- [ 1619.014754] Release: i = 1 aucFreeBufferCount = 14 [ 1619.014847] Release: i = 5 aucFreeBufferCount = 1 [ 1619.015339] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.015449] ----- pending frame 9 ----- [ 1619.017041] Release: i = 1 aucFreeBufferCount = 14 [ 1619.017133] Release: i = 5 aucFreeBufferCount = 1 [ 1619.017554] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.017662] ----- pending frame 8 ----- [ 1619.019238] Release: i = 1 aucFreeBufferCount = 14 [ 1619.019329] Release: i = 5 aucFreeBufferCount = 1 [ 1619.019729] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.019836] ----- pending frame 7 ----- [ 1619.021380] Release: i = 1 aucFreeBufferCount = 14 [ 1619.021470] Release: i = 5 aucFreeBufferCount = 1 [ 1619.021870] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.021976] ----- pending frame 6 ----- [ 1619.023534] Release: i = 1 aucFreeBufferCount = 14 [ 1619.023624] Release: i = 5 aucFreeBufferCount = 1 [ 1619.026333] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.026447] ----- pending frame 5 ----- [ 1619.027142] Release: i = 1 aucFreeBufferCount = 14 [ 1619.027232] Release: i = 5 aucFreeBufferCount = 1 [ 1619.027745] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.027859] ----- pending frame 4 ----- [ 1619.029459] Release: i = 1 aucFreeBufferCount = 14 [ 1619.029550] Release: i = 5 aucFreeBufferCount = 1 [ 1619.029970] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.030076] ----- pending frame 3 ----- [ 1619.031835] Release: i = 1 aucFreeBufferCount = 14 [ 1619.031852] Release: i = 5 aucFreeBufferCount = 1 [ 1619.031911] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.031931] ----- pending frame 2 ----- [ 1619.032264] Release: i = 1 aucFreeBufferCount = 14 [ 1619.032281] Release: i = 5 aucFreeBufferCount = 1 [ 1619.032345] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.032362] ----- pending frame 1 ----- [ 1619.032690] Release: i = 1 aucFreeBufferCount = 14 [ 1619.032705] Release: i = 5 aucFreeBufferCount = 1 [ 1619.032766] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.032785] ----- pending frame 0 ----- [ 1619.033106] Release: i = 1 aucFreeBufferCount = 14 [ 1619.033122] Release: i = 5 aucFreeBufferCount = 1 [ 1619.119746] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,1,2 [ 1619.185533] [ 1619.185560] +++++ pending frame 1 len = 228 +++++ [ 1619.888894] [ 1619.888921] +++++ pending frame 2 len = 233 +++++ [ 1619.891063] [ 1619.891090] +++++ pending frame 3 len = 161 +++++ [ 1619.895016] [ 1619.895045] +++++ pending frame 4 len = 183 +++++ [ 1619.896958] [ 1619.896986] +++++ pending frame 5 len = 175 +++++ [ 1619.955267] scnFsmSteps: (SCN STATE) TRANSITION: [SCAN_STATE_SCANNING] -> [SCAN_STATE_IDLE] [ 1619.956000] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_ONLINE_SCAN] -> [AIS_STATE_NORMAL_TR] [ 1619.957000] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1619.957473] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.957655] ----- pending frame 4 ----- [ 1619.958930] Release: i = 1 aucFreeBufferCount = 14 [ 1619.959029] Release: i = 5 aucFreeBufferCount = 1 [ 1619.959440] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.959581] ----- pending frame 3 ----- [ 1619.959839] initRssiHistory. [ 1619.960326] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =32 [ 1619.960657] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1619.961975] Release: i = 1 aucFreeBufferCount = 14 [ 1619.962068] Release: i = 5 aucFreeBufferCount = 1 [ 1619.962335] wlanoidSetAuthMode: (RSN TRACE) New auth mode: WPA2 PSK [ 1619.962674] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.962803] ----- pending frame 2 ----- [ 1619.963117] wlanoidSetEncryptionStatus: (REQ TRACE) ENCRYPTION_STATUS 6 [ 1619.963293] wlanoidSetEncryptionStatus: (RSN TRACE) Enable Encryption3 [ 1619.964381] Release: i = 1 aucFreeBufferCount = 14 [ 1619.964475] Release: i = 5 aucFreeBufferCount = 1 [ 1619.964807] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_NORMAL_TR] -> [AIS_STATE_DISCONNECTING] [ 1619.965060] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1619.965171] nicTxCmd: (INIT TRACE) Wait Cmd TxSeqNum:209 [ 1619.965599] Acquire: TC = 5 aucFreeBufferCount = 0 [ 1619.965766] ----- pending frame 1 ----- [ 1619.970107] Release: i = 1 aucFreeBufferCount = 14 [ 1619.970209] Release: i = 5 aucFreeBufferCount = 1 [ 1619.970749] nicRxProcessEventPacket: (INIT TRACE) EVENT_ID_TX_DONE PacketSeq:209 ucStatus: 0 SN: 871 [ 1619.970999] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =33 [ 1619.971212] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =34 [ 1619.971397] qmFlushStaTxQueues: (QM TRACE) QM: Enter qmFlushStaTxQueues(0) [ 1619.971621] ----- pending frame 0 ----- [ 1619.971717] EVENT-ROAMING ABORT: Current Time = 1319960 [ 1619.971860] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =35 [ 1619.972011] roamingFsmSteps: (ROAMING STATE) TRANSITION: [ROAMING_STATE_DECISION] -> [ROAMING_STATE_IDLE] [ 1619.972196] secClearPmkid: (RSN TRACE) secClearPmkid [ 1619.981067] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_DISCONNECTING] -> [AIS_STATE_IDLE] [ 1619.981305] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =36 [ 1619.981525] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_IDLE] -> [AIS_STATE_SEARCH] [ 1619.981775] rsnPerformPolicySelection: (RSN TRACE) rsnPerformPolicySelection [ 1619.981945] rsnPerformPolicySelection: (RSN TRACE) eEncStatus 6 1 0x4ac0f00 [ 1619.982132] rsnPerformPolicySelection: (RSN TRACE) Selected pairwise/group cipher: 00-0f-ac-04/00-0f-ac-02 [ 1619.982367] rsnPerformPolicySelection: (RSN TRACE) Selected AKM suite: 00-0f-ac-02 [ 1619.982554] rsnPerformPolicySelection: (RSN TRACE) rsnPerformPolicySelection [ 1619.982706] rsnPerformPolicySelection: (RSN TRACE) eEncStatus 6 1 0x4ac0f00 [ 1619.982872] rsnPerformPolicySelection: (RSN TRACE) Selected pairwise/group cipher: 00-0f-ac-04/00-0f-ac-02 [ 1619.983057] rsnPerformPolicySelection: (RSN TRACE) Selected AKM suite: 00-0f-ac-02 [ 1619.983207] scanSearchBssDescByPolicy: (SCN TRACE) Candidate [00:24:fe:a8:67:0f]: RCPI = 108, Primary [06:24:fe:ea:87:c2]: RCPI = 74 [ 1619.983489] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_SEARCH] -> [AIS_STATE_REQ_CHANNEL_JOIN] [ 1619.984052] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =37 [ 1619.984243] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1619.984572] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1619.994195] Acquire: TC = 4 aucFreeBufferCount = 1 [ 1619.994557] Acquire: TC = 4 aucFreeBufferCount = 0 [ 1619.995091] Release: i = 1 aucFreeBufferCount = 14 [ 1619.995182] Release: i = 5 aucFreeBufferCount = 1 [ 1619.995520] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1619.995810] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1619.996826] Release: i = 1 aucFreeBufferCount = 14 [ 1619.996920] Release: i = 5 aucFreeBufferCount = 1 [ 1619.998498] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_REQ_CHANNEL_JOIN] -> [AIS_STATE_JOIN] [ 1619.998694] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =38 [ 1619.998838] saaFsmSteps: (SAA STATE) TRANSITION: [AA_STATE_IDLE] -> [SAA_STATE_SEND_AUTH1] [ 1619.998984] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =39 [ 1619.999135] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1619.999574] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1620.000092] Acquire: TC = 4 aucFreeBufferCount = 1 [ 1620.000266] nicTxCmd: (INIT TRACE) Wait Cmd TxSeqNum:210 [ 1620.000829] Release: i = 1 aucFreeBufferCount = 14 [ 1620.000918] Release: i = 5 aucFreeBufferCount = 1 [ 1620.001915] Release: i = 1 aucFreeBufferCount = 14 [ 1620.002007] Release: i = 5 aucFreeBufferCount = 1 [ 1620.002554] nicRxProcessEventPacket: (INIT TRACE) EVENT_ID_TX_DONE PacketSeq:210 ucStatus: 0 SN: 872 [ 1620.002798] saaFsmSteps: (SAA STATE) TRANSITION: [SAA_STATE_SEND_AUTH1] -> [SAA_STATE_WAIT_AUTH2] [ 1620.003590] saaFsmSteps: (SAA STATE) TRANSITION: [SAA_STATE_WAIT_AUTH2] -> [SAA_STATE_SEND_ASSOC1] [ 1620.007140] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1620.007445] nicTxCmd: (INIT TRACE) Wait Cmd TxSeqNum:211 [ 1620.027039] Release: i = 1 aucFreeBufferCount = 14 [ 1620.027056] Release: i = 5 aucFreeBufferCount = 1 [ 1620.028452] nicRxProcessEventPacket: (INIT TRACE) EVENT_ID_TX_DONE PacketSeq:211 ucStatus: 0 SN: 873 [ 1620.028494] saaFsmSteps: (SAA STATE) TRANSITION: [SAA_STATE_SEND_ASSOC1] -> [SAA_STATE_WAIT_ASSOC2] [ 1620.028528] saaFsmSteps: (SAA STATE) TRANSITION: [SAA_STATE_WAIT_ASSOC2] -> [AA_STATE_IDLE] [ 1620.028558] mqmProcessAssocRsp: (QM TRACE) QM: (fgIsWmmSupported=1, fgSupportQoS=1) [ 1620.028584] mqmParseEdcaParameters: (QM TRACE) QM: (fgIsWmmSupported=1, fgIsQoS=1) [ 1620.028607] mqmProcessAssocRsp: (QM TRACE) MQM: Assoc_Rsp Parsing (QoS Enabled=1) [ 1620.028630] sizeof(AC_QUE_PARMS_T): 10 [ 1620.028644] sizeof(CMD_UPDATE_WMM_PARMS): 44 [ 1620.028658] sizeof(WIFI_CMD_T): 8 [ 1620.028671] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =40 [ 1620.028696] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =41 [ 1620.028720] secFsmEventStart: (RSN TRACE) secFsmRunEventStart [ 1620.028737] secFsmEventStart: (RSN TRACE) secFsmRunEventStart for sta 00:24:fe:a8:67:0f network 0 [ 1620.028766] secSetPortBlocked: (RSN TRACE) The STA 00:24:fe:a8:67:0f port BLOCK [ 1620.028790] secSetPortBlocked: (RSN TRACE) The STA 00:24:fe:a8:67:0f port OPEN [ 1620.028813] secFsmSteps: (RSN STATE) [ 1620.028828] 00:24:fe:a8:67:0f TRANSITION: [SEC_STATE_INIT] -> [SEC_STATE_CHECK_OK] [ 1620.028838] [ 1620.028858] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =42 [ 1620.034666] EVENT-ROAMING START: Current Time = 1320030 [ 1620.034692] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =43 [ 1620.034727] roamingFsmSteps: (ROAMING STATE) TRANSITION: [ROAMING_STATE_IDLE] -> [ROAMING_STATE_DECISION] [ 1620.034767] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_JOIN] -> [AIS_STATE_NORMAL_TR] [ 1620.034811] kalUpdateRxCSUMOffloadParam: (RX TRACE) RX: "non-IPv4/IPv6" Packet [ 1620.034843] kalRxIndicatePkts: (RX TRACE) prSkb->head = 0xf03ff918, prSkb->cb = 0xefd6b000 [ 1620.034873] kalRxIndicatePkts len = 99 [ 1620.034990] kalPacketAlloc: (RX TRACE) prSkb->head = 0xf038e000, prSkb->cb = 0xf038e000 [ 1620.035065] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1620.035238] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1620.035338] ------------[ cut here ]------------ [ 1620.035383] WARNING: at net/wireless/sme.c:482 __cfg80211_connect_result+0x284/0x2f4() [ 1620.035421] from [ 1620.035453] from [ 1620.035488] from [ 1620.035524] from [ 1620.035560] from [ 1620.035594] from [ 1620.035630] from [ 1620.035661] from [ 1620.035692] from [ 1620.035723] from [ 1620.035748] ---[ end trace 5bf23b4f822d1878 ]--- [ 1620.038475] [ 1620.038481] +++++ pending frame 0 len = 135 +++++ [ 1620.038932] Acquire: TC = 4 aucFreeBufferCount = 1 [ 1620.039004] Acquire: TC = 4 aucFreeBufferCount = 0 [ 1620.039105] Release: i = 1 aucFreeBufferCount = 14 [ 1620.039138] Release: i = 5 aucFreeBufferCount = 1 [ 1620.039370] Release: i = 1 aucFreeBufferCount = 14 [ 1620.039390] Release: i = 5 aucFreeBufferCount = 1 [ 1620.039475] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1620.039578] Release: i = 1 aucFreeBufferCount = 14 [ 1620.039595] Release: i = 5 aucFreeBufferCount = 1 [ 1620.039847] Release: i = 1 aucFreeBufferCount = 14 [ 1620.039866] Release: i = 5 aucFreeBufferCount = 1 [ 1620.041938] kalUpdateRxCSUMOffloadParam: (RX TRACE) RX: "non-IPv4/IPv6" Packet [ 1620.041987] kalRxIndicatePkts: (RX TRACE) prSkb->head = 0xf0292f18, prSkb->cb = 0xefd8c000 [ 1620.042025] kalRxIndicatePkts len = 171 [ 1620.042322] [ 1620.042329] +++++ pending frame 0 len = 113 +++++ [ 1620.042632] initRssiHistory. [ 1620.042676] kalPacketAlloc: (RX TRACE) prSkb->head = 0xf038d000, prSkb->cb = 0xf038d000 [ 1620.044018] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_NORMAL_TR] -> [AIS_STATE_DISCONNECTING] [ 1620.044062] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1620.044131] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1620.044148] nicTxCmd: (INIT TRACE) Wait Cmd TxSeqNum:212 [ 1620.047246] Release: i = 1 aucFreeBufferCount = 14 [ 1620.047271] Release: i = 5 aucFreeBufferCount = 1 [ 1620.047365] nicRxProcessEventPacket: (INIT TRACE) EVENT_ID_TX_DONE PacketSeq:212 ucStatus: 0 SN: 874 [ 1620.047419] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =44 [ 1620.047458] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =45 [ 1620.047488] qmFlushStaTxQueues: (QM TRACE) QM: Enter qmFlushStaTxQueues(0) [ 1620.047526] EVENT-ROAMING ABORT: Current Time = 1320040 [ 1620.047553] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =46 [ 1620.047593] roamingFsmSteps: (ROAMING STATE) TRANSITION: [ROAMING_STATE_DECISION] -> [ROAMING_STATE_IDLE] [ 1620.047638] secClearPmkid: (RSN TRACE) secClearPmkid [ 1620.047660] aisFsmSteps: (AIS STATE) TRANSITION: [AIS_STATE_DISCONNECTING] -> [AIS_STATE_IDLE] [ 1620.047701] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =47 [ 1620.047785] wlanSendSetQueryCmd: (REQ TRACE) ucCmdSeqNum =48 [ 1620.047819] Acquire: TC = 4 aucFreeBufferCount = 3 [ 1620.047883] Acquire: TC = 4 aucFreeBufferCount = 2 [ 1620.047942] Acquire: TC = 4 aucFreeBufferCount = 1 [ 1620.048030] Acquire: TC = 4 aucFreeBufferCount = 0 [ 1620.048142] Release: i = 1 aucFreeBufferCount = 14 [ 1620.048167] Release: i = 5 aucFreeBufferCount = 1 [ 1620.048232] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1620.048280] Acquire: TC = 4 aucFreeBufferCount = 0 [ 1620.048393] Release: i = 1 aucFreeBufferCount = 14 [ 1620.048411] Release: i = 5 aucFreeBufferCount = 1 [ 1620.048493] qmHandleEventBssAbsencePresence: (QM TRACE) NAF=0,0,0 [ 1620.048648] Release: i = 1 aucFreeBufferCount = 14 [ 1620.048670] Release: i = 5 aucFreeBufferCount = 1 [ 1620.584134] [ 1620.584161] +++++ pending frame 1 len = 90 +++++ [ 1620.595090] ----- pending frame 0 ----- [ 1620.731225] [ 1620.731251] +++++ pending frame 1 len = 229 +++++ [ 1620.736266] [ 1620.736293] +++++ pending frame 2 len = 179 +++++ [ 1620.742404] ----- pending frame 1 ----- [ 1620.742534] ----- pending frame 0 -----

usumfabricae commented 11 years ago

In the mean while, after downloading 2gig, I think I found Bt mtk: mt6577_FULL_AOSP_SOURCE-master/mediatek/source/external/bluetooth/driver

cloned it under my account just in case.

@RubCaj Could you test it with an open Wifi just to check if the problem is in the interface with the device or if it's on the encryption part of the module?

I see there's a missing part with some dump: [ 1620.035338] ------------[ cut here ]------------ [ 1620.035383] .... .... .... [ 1620.035748] ---[ end trace 5bf23b4f822d1878 ]--- Since it's missing I cannot understand if it's Debug related or if it was there also befor enabling debug

usumfabricae commented 11 years ago

I have also bluetooth working properly. No further changes to kernel just a couple of utility: hciattach and libbluetooth_mtk.so and an other to power up and down bluetooth device

Not yet tested all the stack but at least scan works.

I'll update under my repo later in the evening

Here's the log:

root@(none):/home/ubuntu/bt# ./hciattach -n -t10 -s 115200 /dev/ttyS0 mtk dlopen OK mtk e bt_restore OK Function address: 0x401196a9 0x40119aa9 pre_init_uart OK QUA QUi mtk.c 443 LOG PRIMA IFDEF Device [BDAddr 7e-46-46-66-22-e0][CapId 40][LinkKeyType 01] [UintKey 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00] [Encryption 00 02 10][PinCodeType 00][Voice 60 00][Codec 23 00 00 00] [Radio 06 80 00 06 03 06][Sleep 03 40 1f 40 1f 00 04][BtFTR 80 00][TxPWOffset ff ff ff] [ECLK_SEL 00] Init Device BT_InitDevice BT load firmware patch Open /system/etc/firmware/MTK_MT6622_E2_Patch.nb0 Patch file size 7464 Rewinded GORM_INIT GORM_Init GORMcmd_HCC_Read_Local_Version OpCode 0x1001 len 0 GORMcmd_HCC_Simulate_MT6612 OpCode 0xfccc len 1 GORMcmd_HCC_Fix_UART_Escape OpCode 0xfcd0 len 8 GORMcmd_HCC_GetHwVersion OpCode 0xfcd1 len 4 GORMcmd_HCC_GetGormVersion OpCode 0xfcd1 len 4 Host baud 115200 HCI_VS_UART_CONFIG 01 77 fc 02 08 00 setup_uart_param 115200 0 standard baudrate: 115200 -> 0x00001002 Can't set serial_struct: Invalid argument Download patch success GORMcmd_HCC_Set_Local_BD_Addr Use Nvram BD address Write BD address: 7e-46-46-66-22-e0 OpCode 0xfc1a len 6 GORMcmd_HCC_Set_CapID OpCode 0xfc7f len 1 GORMcmd_HCC_Set_LinkKeyType OpCode 0xfc1b len 1 GORMcmd_HCC_Set_UnitKey OpCode 0xfc75 len 16 GORMcmd_HCC_Set_Encryption OpCode 0xfc76 len 3 GORMcmd_HCC_Set_PinCodeType OpCode 0x0c0a len 1 GORMcmd_HCC_Set_Voice OpCode 0x0c26 len 2 GORMcmd_HCC_Set_PCM OpCode 0xfc72 len 4 GORMcmd_HCC_Set_Radio OpCode 0xfc79 len 6 GORMcmd_HCC_Set_Sleep_Timeout OpCode 0xfc7a len 7 GORMcmd_HCC_Set_BT_FTR OpCode 0xfc7d len 2 GORMcmd_HCC_Set_Chip_Feature OpCode 0xfc1e len 8 GORMcmd_HCC_Set_OSC_Info OpCode 0xfc7b len 5 GORMcmd_HCC_Set_LPO_Info OpCode 0xfc7c len 10 GORMcmd_HCC_Set_RF_Desense OpCode 0xfc20 len 6 GORMcmd_HCC_Set_PTA OpCode 0xfc74 len 10 GORMcmd_HCC_RESET OpCode 0x0c03 len 0 GORMcmd_HCC_Enable_PTA OpCode 0xfcd2 len 1 GORMcmd_HCC_Set_WiFi_Ch OpCode 0xfcd3 len 2 GORMcmd_HCC_Set_AFH_Mask OpCode 0x0c3f len 10 GORMcmd_HCC_Set_Sleep_Control_Reg GORMcmd_HCC_Set_FW_Reg OpCode 0xfcd0 len 8 mtk() success

Device setup complete

root@(none):~# hciconfig hci0 down root@(none):~# hciconfig hci0 up
root@(none):~# hcitool scan
Scanning ... 34:BB:1F:37:17:F3 BlackBerry 9360

usumfabricae commented 11 years ago

Tested WIFI on encrypted connection (used WPA2 with Hostspot from my Blackberry) the only problem I had in the beginning is the essid name that was a bit too long

I've configured wpa_supplicant: cat /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=wlan0 update_config=1

network={ ssid="BBFDA" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="password" }

Started wpa_supplicant wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: Trying to associate with 34:bb:1f:37:17:fd (SSID='BBFDA' freq=2437 MHz) wlan0: Associated with 00:00:00:00:00:00 wlan0: CTRL-EVENT-DISCONNECTED bssid=34:bb:1f:37:17:fd reason=0 wlan0: Associated with 34:bb:1f:37:17:fd wlan0: CTRL-EVENT-DISCONNECTED bssid=34:bb:1f:37:17:fd reason=0 wlan0: Associated with 34:bb:1f:37:17:fd wlan0: WPA: Key negotiation completed with 34:bb:1f:37:17:fd [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to 34:bb:1f:37:17:fd completed (auth) [id=0 id_str=]

Then dhclient wlan0

ifconfig

wlan0 Link encap:Ethernet HWaddr 00:0c:e7:b0:29:63
inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:e7ff:feb0:2963/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4788 (4.7 KB) TX bytes:1888 (1.8 KB)

ping www.google.com

PING www.google.com (149.3.176.122) 56(84) bytes of data. 64 bytes from 149.3.176.122: icmp_req=1 ttl=56 time=51.4 ms 64 bytes from 149.3.176.122: icmp_req=2 ttl=56 time=42.7 ms 64 bytes from 149.3.176.122: icmp_req=3 ttl=56 time=39.0 ms

aloksinha2001 commented 11 years ago

Great work... kudos.

Do you think, we are ready to put a pull request on to picuntu...

Alok


http://www.linkedin.com/profile/view?id=12406006&trk=tab_pro http://aloksinha2001.blogspot.in

On Sat, Jul 6, 2013 at 7:51 PM, usumfabricae notifications@github.comwrote:

Tested WIFI on encrypted connection (used WPA2 with Hostspot from my Blackberry) the only problem I had in the beginning is the essid name that was a bit too long

I've configured wpa_supplicant: cat /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=wlan0 update_config=1

network={ ssid="BBFDA" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="password" }

Started wpa_supplicant wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: Trying to associate with 34:bb:1f:37:17:fd (SSID='BBFDA' freq=2437 MHz) wlan0: Associated with 00:00:00:00:00:00 wlan0: CTRL-EVENT-DISCONNECTED bssid=34:bb:1f:37:17:fd reason=0 wlan0: Associated with 34:bb:1f:37:17:fd wlan0: CTRL-EVENT-DISCONNECTED bssid=34:bb:1f:37:17:fd reason=0 wlan0: Associated with 34:bb:1f:37:17:fd wlan0: WPA: Key negotiation completed with 34:bb:1f:37:17:fd [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to 34:bb:1f:37:17:fd completed (auth) [id=0 id_str=]

Then dhclient wlan0 ifconfig

wlan0 Link encap:Ethernet HWaddr 00:0c:e7:b0:29:63

inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:e7ff:feb0:2963/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4788 (4.7 KB) TX bytes:1888 (1.8 KB) ping www.google.com

PING www.google.com (149.3.176.122) 56(84) bytes of data. 64 bytes from 149.3.176.122: icmp_req=1 ttl=56 time=51.4 ms 64 bytes from 149.3.176.122: icmp_req=2 ttl=56 time=42.7 ms 64 bytes from 149.3.176.122: icmp_req=3 ttl=56 time=39.0 ms

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-20555043 .

usumfabricae commented 11 years ago

I see there're still something to fix In gpio for my device and it seems they're not the same of other boards. I would define a new board just for this device before sending the pull request. Just not to messup other guys work. Anyway if you wish to have a look the changes at kernel are https://github.com/usumfabricae/Linux3188/tree/MT5931_MT6622 branch and https://github.com/usumfabricae/MT6622_hciattach for bluetooth utilities

HurroWorld commented 11 years ago

Hi all. So is there support for the MT5931 WiFi chip-set yet? Or is the only way for me to get Linux working on my MK802IIIs for me to buy a USB adapter?

usumfabricae commented 11 years ago

I'll commit the last changes next we. It works on my device but i saw it seems to be an error on mk802iiis on wifi registration see rubcaj log. @houareau If you wish to test it i can help trying to fix.

HurroWorld commented 11 years ago

@usumfabricae I would love to help test it, I may need some direction though.. do I need to compile anything?

usumfabricae commented 11 years ago

https://github.com/usumfabricae/Linux3188.git Here you'll find the kernel source with all the fixes in it.

@houareau do you have already installed Picuntu on your device (flashing the recovery image and setting up the root filesystem on external card) ?

Galland commented 11 years ago

@houareau here is a guide to compiling the kernel for RK chips: http://hwswbits.blogspot.com/2013/03/compiling-picuntu-kernel-ubuntu-linux.html

Just substitute the git references with the one by usumfabricae above

HurroWorld commented 11 years ago

@usumfabricae Yup picuntu is all installed and filesystem setup. I've used this http://www.slatedroid.com/topic/41453-pre-alpha-02-ubuntu-linux-for-mk802-iii-ug802-mk808/

@Galland Thanks for the guide! So do I replace all the git refrences or just git clone https://github.com/Galland/rk3x_kernel_3.0.36.git with the one from umsumfabricae above, or all of them?

It's probably some ridiculous hour there, so I'm just going to try it out and see what happens. will let you know if I come right.

Galland commented 11 years ago

@houareau you have to change all references to rk3x_kernel_3.0.36 (the git clone you've identified and the same as folder name used in several next commands). The other gits are tools required for compiling.

You may want to try the latest Picuntu: version 0.9 RC3, you can download the linuxroot here: https://www.dropbox.com/s/0rm8i7mohgyhws6/picuntu-linuxroot-0.9-RC3.tgz and here a good guide on how to get it into a uSD: https://www.miniand.com/wiki/Part+2b-Creating+the+linuxroot+filesystem+manually

HurroWorld commented 11 years ago

@Galland Great stuff, nearly there! Im getting an error on the last step though, can you spot where I'm going wrong?

tools/mkbootimg --kernel Linux3188/arch/arm/boot/Image --ramdisk initramfs/fakeramdisk.gz --base 60400000 --pagesize 16384 --ramdiskaddr 62000000 -o recovery.img

error: could not load kernel 'Linux3188/arch/arm/boot/Image'

bazuchan commented 11 years ago

I have tried this kernel on my MK802IIIS and can't get wlfi to associate. It scans, but not associates.

wpa_supplicant says:

<3>CTRL-EVENT-SCAN-RESULTS <3>Trying to associate with 58:97:1e:b2:d2:01 (SSID='MR_Guest' freq=2437 MHz) <3>Associated with 58:97:1e:b2:d2:01 <4>WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=58:97:1e:b2:d2:01) <3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 dmesg: [ 675.842021] initRssiHistory. [ 675.860443] [wifi] wlan1 netif_carrier_on [ssid:MR_Guest 58:97:1e:b2:d2:01] [ 675.901236] --> mtk_cfg80211_set_default_key() [ 675.904562] initRssiHistory. [ 675.904620] [wifi] wlan1 netif_carrier_off [ 675.906060] cfg80211: Calling CRDA for country: RU [ 683.773180] initRssiHistory. root@picuntu:~# lsmod Module Size Used by lib80211_crypt_wep 2342 0 lib80211_crypt_tkip 7377 0 lib80211_crypt_ccmp 4223 0 wlan 327956 0
usumfabricae commented 11 years ago

@bazuchan could you try using an open wifi (no encription) and set DBG=1 in mt5931 makefile?

bazuchan commented 11 years ago

Sorry, association thing was my mistake - wrong wpa_supplicant driver. Now I connected and wifi works well with wpa (no problems like described by RubCaj).

HurroWorld commented 11 years ago

Can you post a link with your recovery image?

On Thursday, July 11, 2013, bazuchan wrote:

Sorry, association thing was my mistake - wrong wpa_supplicant driver. Now I connected and wifi works well with wpa (no problems like described by RubCaj).

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-20838895 .

bazuchan commented 11 years ago

Sure. http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar

usumfabricae commented 11 years ago

Since it seems to work at least on two devices :) i'm going to send a pull request. Whois the best one to address it @Galland or @aloksinha2001 ?

Galland commented 11 years ago

Both, please? :-D

HurroWorld commented 11 years ago

Thanks guys, working like a charm here too!

tux880 commented 11 years ago

hi i have a mk802iiis too and would like to try this can someone point me in the right direction, do i need to flash the recovery.img?

HurroWorld commented 11 years ago

@tux880 Have you got picuntu installed yet?

tux880 commented 11 years ago

well no... lol, i was holding off untill wifi,

HurroWorld commented 11 years ago

@tux880 Me too :-) Here is the guide for the install https://www.miniand.com/wiki/Part+1-Getting+Started

The latest version of picuntu is here https://www.dropbox.com/s/0rm8i7mohgyhws6/picuntu-linuxroot-0.9-RC3.tgz

And the recovery image that bazuchan posted http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar (you need to copy the firmware to the linux file system on the sd card aswell)

tux880 commented 11 years ago

@houareau brilliant thank you :+1:

tux880 commented 11 years ago

@houareau .... never mind i flashed original Rom flashed recovery... but now lol i cant boot linux i get to booting then hangs at some small text i cant read? has this something to do with the pre-picuntu.sh and it being RC3

houlahoop commented 10 years ago

Hello folks.

Thank you all for your hard work, your efforts have finally enabled me,a complete linux newbie, to get the internal wifi on my MK802IIIs up and stable.

I still have a problem with Bluetooth though, perhaps I need the modifed hciattach binary and patches by Bazuchan or some other modules loaded?

@Bazuchan: If this is so, would you mind putting up a link to the binarys etc and some short instructions? I have yet to compile anything in linux...

If anyone can help, perhaps this info may be useful:

root@picuntu:~# lsmod Module Size Used by sr9700 6407 0 dm9601 5416 0 cpufreq_userspace 1726 0 cpufreq_conservative 5035 0 cpufreq_powersave 676 0 vpu_service 11804 0 i2c_algo_bit 4522 0 hci_vhci 2684 0 hci_uart 13248 0 bt_hwctl 4657 1 hci_uart wlan 327956 0 mali_drm 5284 1 drm 133592 2 mali_drm mali 101593 0 disp_ump 807 0 ump 25656 4 mali,disp_ump rk29_ipp 5253 0 (Yes, I haven't got Mali working yet either and I don't know if all these modules are needed)

root@picuntu:~# dmesg | grep bt [ 0.235058] rk29sdk_wifi_bt_gpio_control_init: init finished [ 7.233628] [MT6622] mt_bt_power_init

root@picuntu:~# dmesg | grep tooth [ 0.251829] Bluetooth: Core ver 2.16 [ 0.251959] Bluetooth: HCI device and connection manager initialized [ 0.252007] Bluetooth: HCI socket layer initialized [ 0.252044] Bluetooth: L2CAP socket layer initialized [ 1.177240] Bluetooth: RFCOMM TTY layer initialized [ 1.177260] Bluetooth: RFCOMM socket layer initialized [ 1.177271] Bluetooth: RFCOMM ver 1.11 [ 1.177281] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.177298] Bluetooth: BNEP filters: protocol multicast [ 8.479822] Bluetooth: HCI UART driver ver 2.2 [ 8.479868] Bluetooth: HCI H4 protocol initialized [ 8.479893] Bluetooth: HCI BCSP protocol initialized [ 8.479922] Bluetooth: HCILL protocol initialized [ 8.612523] Bluetooth: Virtual HCI driver ver 1.3

root@picuntu:~# hciattach -n -t10 -s 115200 /dev/ttyS0 mtk Unknown device type or id

root@picuntu:~# ifup hci0 Ignoring unknown interface hci0=hci0.

ifconfig -a shows no hci0 or mtk device

Any assistance appreciated.

houlahoop commented 10 years ago

Um, hello again. Perhaps I should add I am running Picuntu homeio by JustinTime4Tea on my MK802IIIs using the recovery image and firmware by bazuchan.

bazuchan commented 10 years ago

@houlahoop I'm not a developer, I just tested wifi on my stick ;) I haven't tested bluetooth since I don't need it.

usumfabricae commented 10 years ago

I have it working on my device (iMito) didn't have a chance to test it on MK802IIIs yet.

You definitely need modified version of hciattach in order to download the firmware on the bt device. Sources are under https://github.com/usumfabricae/MT6622_hciattach

I'll post compiled the binaries next we.

2013/7/29 houlahoop notifications@github.com

Hello folks.

Thank you all for your hard work, your efforts have finally enabled me,a complete linux newbie, to get the internal wifi on my MK802IIIs up and stable.

I still have a problem with Bluetooth though, perhaps I need the modifed hciattach binary and patches by Bazuchan or some other modules loaded?

@Bazuchan https://github.com/Bazuchan: If this is so, would you mind putting up a link to the binarys etc and some short instructions? I have yet to compile anything in linux...

If anyone can help, perhaps this info may be useful:

root@picuntu:~# lsmod Module Size Used by sr9700 6407 0 dm9601 5416 0 cpufreq_userspace 1726 0 cpufreq_conservative 5035 0 cpufreq_powersave 676 0 vpu_service 11804 0 i2c_algo_bit 4522 0 hci_vhci 2684 0 hci_uart 13248 0 bt_hwctl 4657 1 hci_uart wlan 327956 0 mali_drm 5284 1 drm 133592 2 mali_drm mali 101593 0 disp_ump 807 0 ump 25656 4 mali,disp_ump rk29_ipp 5253 0 (Yes, I haven't got Mali working yet either and I don't know if all these modules are needed)

root@picuntu:~# dmesg | grep bt [ 0.235058] rk29sdk_wifi_bt_gpio_control_init: init finished [ 7.233628] [MT6622] mt_bt_power_init

root@picuntu:~# dmesg | grep tooth [ 0.251829] Bluetooth: Core ver 2.16 [ 0.251959] Bluetooth: HCI device and connection manager initialized [ 0.252007] Bluetooth: HCI socket layer initialized [ 0.252044] Bluetooth: L2CAP socket layer initialized [ 1.177240] Bluetooth: RFCOMM TTY layer initialized [ 1.177260] Bluetooth: RFCOMM socket layer initialized [ 1.177271] Bluetooth: RFCOMM ver 1.11 [ 1.177281] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.177298] Bluetooth: BNEP filters: protocol multicast [ 8.479822] Bluetooth: HCI UART driver ver 2.2 [ 8.479868] Bluetooth: HCI H4 protocol initialized [ 8.479893] Bluetooth: HCI BCSP protocol initialized [ 8.479922] Bluetooth: HCILL protocol initialized [ 8.612523] Bluetooth: Virtual HCI driver ver 1.3

root@picuntu:~# hciattach -n -t10 -s 115200 /dev/ttyS0 mtk Unknown device type or id

root@picuntu:~# ifup hci0 Ignoring unknown interface hci0=hci0.

ifconfig -a shows no hci0 or mtk device

Any assistance appreciated.

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-21695802 .

BerberNeri commented 10 years ago

Any success in turning on the internal Wifi of UG007II? It has the same chip as MK802IIIS. I tried these drivers and kernel posted here (http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar), but no success. The wlan.ko is loaded, but I can not do anything. No adapter in network manager. ifconfig doesn't help. If I type iwconfig - I see wlan0. I can post some screenshots if anyone would like to help me, but I need to know what is important for the diagnosis.

aloksinha2001 commented 10 years ago

Right now. I am facing the similar problem.... On Aug 2, 2013 8:14 AM, "BerberNeri" notifications@github.com wrote:

Any success in turning on the internal Wifi of UG007II? It has the same chip as MK802IIIS. I tried these drivers and kernel posted here ( http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar), but no success. The wlan.ko is loaded, but I can not do anything. No adapter in network settings. ifconfig doesn't help. I can post some screenshots if anyone would like to help me, but I need to know what is important for the diagnosis.

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-22001953 .

usumfabricae commented 10 years ago

I think it's related to GPIO registers and pin used to connect to WIFI reset and power-on pins. I did some changes to configure the right pin for IMITO and MK802IIIs.

You should change them accordingly with your board.

The easiest way to find them (if you don't have a schematic) is to use the android version of the OS and dump, switching on and off Wifi and bluetooth and dump Gpio register (befor and after) or to try dumping all the lables during gpio set-up (try using: https://github.com/usumfabricae/GPIO_DUMP)

After fixing them all the rest should be ok.

2013/8/2 aloksinha2001 notifications@github.com

Right now. I am facing the similar problem.... On Aug 2, 2013 8:14 AM, "BerberNeri" notifications@github.com wrote:

Any success in turning on the internal Wifi of UG007II? It has the same chip as MK802IIIS. I tried these drivers and kernel posted here ( http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar), but no success. The wlan.ko is loaded, but I can not do anything. No adapter in network settings. ifconfig doesn't help. I can post some screenshots if anyone would like to help me, but I need to know what is important for the diagnosis.

— Reply to this email directly or view it on GitHub< https://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-22001953>

.

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-22002240 .

BerberNeri commented 10 years ago

I'm not a linux man. That's a little bit difficult for me( Maximum I can do - to burn kernel and to copy the modules and to do some primitive operations in a command promt. I can try but I need someone to guide me if someone wants to spend his time on it). By the way I think the IMITO board and UG007 are identical. If it's possible to upload your kernel and modules?

usumfabricae commented 10 years ago

I could help, but not in the short term, do not have access to my pc. We need header or source of the kernel you are using under Android. Could you check on device info which is the kernel you are using with android? Then I can compile all the stuff for you and give you working binary and test instructions.

p.s. You need to root your Android device and install busybox on it.

2013/8/2 BerberNeri notifications@github.com

I'm not a linux man. That's a little bit difficult for me( Maximum I can do - to burn kernel and to copy the modules and to do some primitive operations in a command promt. I can try but I need someone to guide me if someone wants to spend his time on it).

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-22002758 .

BerberNeri commented 10 years ago

Super. The Android is rooted. I use iMito_RK3066_V411_121212_Finless_15 rom. The kernel version is 3.0.8+ SMP PREEMPT Wes Dec 12 11:17:50 CST 2012. Just installed Busybox. For linux I use kernel 3.0.36+ from here (http://files.yume.ru/files/mk802iiis-recovery-and-modules.tar). And linux image from here (http://www.slatedroid.com/topic/77977-ubuntu-1210-complete-armmk808rk3066-desktop-solution-new-homeio-release-chromiumtrue-flash-gles-goodies-xbmc-easy-setup-and-much-more/)

usumfabricae commented 10 years ago

@BerberNeri

download binaries from: https://github.com/usumfabricae/GPIO_DUMP/blob/master/build/android/3.0.8+/gpio?raw=true https://github.com/usumfabricae/GPIO_DUMP/blob/master/build/android/3.0.8+/user-gpio-drv.ko?raw=true

and save onto Android device: adb push gpio /data/local/tmp/. adb push user-gpio-drv.ko /data/local/tmp/.

then open a shell on android device (adb shell) check that you are root then: cd /data/local/tmp/. insmod user-gpio-drv.ko ./gpio dump gpio

dmesg

Upload the GPIO messages printed by the dmesg output should look like:

<4>[ 547.487886] GPIO gpio3 277 mmc1-clk <4>[ 547.491472] GPIO gpio3 278 (null) <4>[ 547.494885] GPIO gpio3 279 wifi_power <4>[ 547.498645] GPIO gpio3 280 (null) <4>[ 547.502057] GPIO gpio3 281 wifi reset <4>[ 547.505818] GPIO gpio3 282 BT_EINT <4>[ 547.509317] GPIO gpio3 283 (null)
BerberNeri commented 10 years ago

Should I have Android Debug Bridge? From the first link I can download gpio.txt is it ok? Is it possible to save these two files to Android device with normal ES Explorer? And then use terminal emulator? P.S. I think I need ADB it and also need to turn on the USB debugging on Android device. And then connect it to a Windows machine. And all these commands I should type in a command promt, right?

usumfabricae commented 10 years ago

The easiest way is using adb or via USB or through network. For network option open the terminal emulator an run the follo wing. setprop service.adb.tcp.port 5555 stop adbd start adbd

You need adb for windows or UNIX to open a terminal. I think you can also download directly the files on android and use the terminal emulator but i don't know whether they are saved by default.

usumfabricae commented 10 years ago

@houlahoop You can find compiled bluetooth binaries for picuntu under: https://github.com/usumfabricae/MT6622_hciattach/tree/master/build/picuntu

power 1 # to powerup bluetooth device power 0 # ti powerdown bluetooth device

hciattach -n -t10 -s 115200 /dev/ttyS0 mtk #to startup hci

BerberNeri commented 10 years ago

Hi. I have a problem. Here is what I get in terminal

127|u0_a49@android:/ $ su u0_a49@android:/ # cd /data/local/tmp/ u0_a49@android:/data/local/tmp # insmod user-gpio-drv.ko u0_a49@android:/data/local/tmp # ./gpio dump gpio sh: ./gpio: not found

03.08.2013, 10:54, "usumfabricae" notifications@github.com:

The easiest way is using adb or via USB or through network. For network option open the terminal emulator an run the follo wing. setprop service.adb.tcp.port 5555 stop adbd start adbd

You need adb for windows or UNIX to open a terminal. I think you can also download directly the files on android and use the terminal emulator but i don't know whether they are saved by default.

— Reply to this email directly or view it on GitHub.

Ivan Blagoy Der Erste Kanal Russland (Channel One Russia) Studio Leiter Reinhardtstrasse 55, 10117 Berlin +491704615414