Hi Toroshin,

On Sat, Sep 27, 2014 at 9:13 PM, Toroshin Dmitry <[email protected]> wrote:
> I have unnamed A10 tablet with RDA bluetooth on serial.
> Bluetooth adapter seems to be disabled by default.
> In stock gpl-violating kernel it controls by /sys/class/usb_wifi/rtl_wifi/bt
> hciattach shows this before bt enabled:

We'll be able to give you much better assistance with this if you go
through the New Device Howto: http://linux-sunxi.org/New_Device_howto

> ./hciattach -n -s 115200 /dev/ttyS2 rda 1500000 flow
> opt=110
> opt=115
> chenjieaaa ----------------------------------debug argc=8 n=0 opt
> =/dev/ttyS2
> chenjieaaa ----------------------------------debug argc=8 n=1 opt =rda
> chenjieaaa ----------------------------------debug argc=8 n=2 opt =1500000
> chenjieaaa ----------------------------------debug argc=8 n=3 opt =flow
> init_uart --------->
> flags =0
> u->init fd =  3
>>>> rda_587x
>  debug   --val ========0 u->speed =1500000 u->bdaddr=41:57:73:01:02:03
> rda_init---------------------------------->bt debug
> RDABT_core_Intialization---------------------------------->bt debug
> rdabt_get_chipid---------------------------------->bt debug
> Initialization timed out.
>
> After echoing on to /sys/class/usb_wifi/rtl_wifi/bt initialisation
> successful:
>
> ./hciattach -n -s 115200 /dev/ttyS2 rda 1500000 flow
> opt=110
> opt=115
> chenjieaaa ----------------------------------debug argc=8 n=0 opt
> =/dev/ttyS2
> chenjieaaa ----------------------------------debug argc=8 n=1 opt =rda
> chenjieaaa ----------------------------------debug argc=8 n=2 opt =1500000
> chenjieaaa ----------------------------------debug argc=8 n=3 opt =flow
> init_uart --------->
> flags =0
> u->init fd =  3
>>>> rda_587x
>  debug   --val ========0 u->speed =1500000 u->bdaddr=41:57:73:01:02:03
> rda_init---------------------------------->bt debug
> RDABT_core_Intialization---------------------------------->bt debug
> rdabt_get_chipid---------------------------------->bt debug
> 5875y is ok ---------------------------------->bt debug
> rda_init1 write here
> rda_set_bdaddr 1---------------------------------->bt debug
> BCM_BT start Write_BD_ADDR
> mac=41:57:73:01:02:03
> rda_init2 write here
> rda_init2 write here
> val ========0 u->speed =1500000 u->bdaddr=41:57:73:01:02:03
> init_uart----------u->flags=1
> rda_setup_flow_ctl ---------flow
> rda_setup_flow_ctl----> i=0  num_send=14
> rda_setup_flow_ctl----> i=1  num_send=14
> rda_setup_flow_ctl
> Device setup complete
> sigdelset OK
>
> This is bt_para section:
> [bt_para]
> bt_used = 1
> bt_uart_id = 2
> bt_mod_type = 1
> bt_pwren = port:PH11<1><default><default><default>
> bt_wake = port:PI20<1><default><default><default>
> bt_vbat = port:PH12<1><default><default><default>
> It seems that i need enaple power on PH11, but how to do that?

This should be handled by the driver, which kernel are you using?

> What full fex: http://dpaste.com/2C4HPFZ
> Also csi camera, sun4i-keyboard and internal usb modem does not work.

With more info, we should be able to help you with this.

Also, what do you mean by a "usb modem" is there a phone socket on the device?

Thanks,

-- 
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to