Tool/software: Linux
Hi,
i'm writing to ask you how corectlly prepare a bts file with avpr enabled? I tried do it with your tutorial but I can't initialize module.
Here is a log of initializing:
# strace hciattach -t 30 -s 115200 /dev/ttymxc1 texas 3000000 flow execve("/bin/hciattach", ["hciattach", "-t", "30", "-s", "115200", "/dev/ttymxc1", "texas", "3000000", "flow"], 0xbeb 60d40 /* 16 vars */) = 0 brk(NULL) = 0x1c62000 uname({sysname="Linux", nodename="buildroot", ...}) = 0 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f85000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/tls/v7l/neon/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/v7l/neon/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/v7l/neon/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/v7l/neon", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/v7l/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/v7l/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/v7l/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/v7l", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/neon/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/neon/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/neon/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/neon", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/tls", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/v7l/neon/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/v7l/neon/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/v7l/neon/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/v7l/neon", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/v7l/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/v7l/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/v7l/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/v7l", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/neon/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/neon/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/neon/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/neon", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/vfp/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat64("/lib/vfp", 0xbe9c3550) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354i\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1222328, ...}) = 0 mmap2(NULL, 1291584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e1c000 mprotect(0xb6f43000, 61440, PROT_NONE) = 0 mmap2(0xb6f52000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x126000) = 0xb6f52000 mmap2(0xb6f55000, 9536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f55000 close(3) = 0 set_tls(0xb6f86200, 0xb6f868e8, 0xb6f88058, 0xb6f86200, 0xb6f88058) = 0 mprotect(0xb6f52000, 8192, PROT_READ) = 0 mprotect(0x38000, 4096, PROT_READ) = 0 mprotect(0xb6f87000, 4096, PROT_READ) = 0 rt_sigaction(SIGALRM, {sa_handler=0x121a8, sa_mask=[], sa_flags=SA_RESTORER|SA_NOCLDSTOP, sa_restorer=0xb6e47d90}, NU LL, 8) = 0 setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=30, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=0, tv_usec=0}}) = 0 open("/dev/ttymxc1", O_RDWR|O_NOCTTY|O_LARGEFILE) = 3 ioctl(3, TCFLSH, TCIOFLUSH) = 0 ioctl(3, TCGETS, {B9600 opost isig icanon echo ...}) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B9600 -opost -isig -icanon -echo ...}) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0 ioctl(3, TCFLSH, TCIOFLUSH) = 0 write(3, "\1\1\20\0", 4) = 4 read(3, "\4", 1) = 1 read(3, "\16\f", 2) = 2 read(3, "\1\1\20\0\7\0\0\7\r\0\32\232", 12) = 12 write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip! ) = 33 write(2, "Firmware file : /lib/firmware/ti"..., 65Firmware file : /lib/firmware/ti-connectivity/TIInit_6.12.26.bts ) = 65 brk(NULL) = 0x1c62000 brk(0x1c83000) = 0x1c83000 open("/lib/firmware/ti-connectivity/TIInit_6.12.26.bts", O_RDONLY|O_LARGEFILE) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=6923, ...}) = 0 read(4, "BTSB\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 write(2, "Loaded BTS script version 1\n", 28Loaded BTS script version 1 ) = 28 write(3, "\0016\377\4\300\306-\0", 8) = 8 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\0016\377\0", 4) = 4 write(2, "texas: changing baud rate to 300"..., 56texas: changing baud rate to 3000000, flow control to 1 ) = 56 ioctl(3, TCFLSH, TCIOFLUSH) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0 ioctl(3, TCFLSH, TCIOFLUSH) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B3000000 -opost -isig -icanon -echo ...}) = 0 write(3, "\0017\376\2\f\32", 6) = 6 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\0017\376\0", 4) = 4 read(4, "\10\0\275(\2\0iS\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 write(3, "\1\5\377\377\320e\10\0\372\f\32\t\f\1j\310{\0\2\211{\1C\tHQ0\2\210\6H\221"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\312f\10\0\372\1(\5\320\246F\354H\376D\0G\4(\21\321\350x\0(\16\321\16"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\304g\10\0\372\22\320\273H\0\210\250B\16\321\272H\0x\1(\n\321\271H\202\217\201"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 read(4, "\1\221Lx\306i% \32]I2\320\0018h\321\5#\3 \32\34\1%\2\0\17\0\210\23"..., 1024) = 1024 write(3, "\1\5\377\377\276h\10\0\372\201\2\212H\300x@\6@\16\10C\214I\1C\t\4\t\f0\34\246"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) [ 41.179578] Bluetooth: HCI UART driver ver 2.3 = 2 read(3, "\1\5\377\0", 4) [ 41.187207] Bluetooth: HCI UART protocol H4 registered = 4 write(3, "\1\5\[ 41.195089] Bluetooth: HCI UART protocol BCSP registered 377\377\270i\10\0\372\256FZO\376D[ 41.203215] Bluetooth: HCI UART protocol LL registered 8G\4 \260\200\f \207\31a\0\1\230\0x\10"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\262j\10\0\372\4\0\272S\10\0\220\241\33\0\250Y\10\0%o\4\0yl\4\0\5"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\254k\10\0\372\0G8\34\246FsI\376D\10G\350H\1h0\34\246FqJ\376"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 read(4, "\31\321\2&\264M(y\0(\21\320\350z\6(\16\321\16 \1\34\261O8\34\0248\246F\256J"..., 1024) = 1024 write(3, "\1\5\377\377\246l\10\0\372\367F\302i\377!\0211\213\\\313I[\10\10\323\377#\0023\232\\\2"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\240m\10\0\372\3\221Bh\0\222\200\213@\0\4\220kH\2030\0x@\0\5\220\0"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\232n\10\0\372\t\320\10\230\301\0\2\230@\30)\34\10\"\246F[K\376D\30G\10"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\363\224o\10\0\356\375y\0\0\"I\tx*)\1\321\10!\0\340\6!A`\35HC"..., 247) = 247 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 read(4, "ml\10\0\205l\10\0\233l\10\0\251l\10\0\331l\10\0\355l\10\0\5m\10\0\225m\10\0"..., 1024) = 1024 write(3, "\1\5\377\215x{\10\0\210\0\265\370\360\247\372\0\275Ck\10\0\315k\10\0\325e\10\0\345k\10"..., 145) = 145 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\205\4\363\32\0\200\316\373\4\0\3363\2\0\24)\2\0\364K\4\0`\23\2\0\326(\5"..., 137) = 137 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\377\0\0\30\0\372p\265%M\256\177\1$\246F!H\376D\0G\260B\370\321\3 \27"..., 259) = 259 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\5\377\213\372\0\30\0\206\31N\376D0G\3 )\34\0011\246F\27J\376D\20G\246F\26"..., 143) = 143 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\5\377\0", 4) = 4 write(3, "\1\203\377\24y{\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24 read(3, "\4", 1) = 1 read(3, "\16\4", 2) = 2 read(3, "\1\203\377\0", 4) = 4 nanosleep({tv_sec=0, tv_nsec=50000}, NULL) = 0 ioctl(3, TCFLSH, TCIOFLUSH) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B3000000 -opost -isig -icanon -echo ...}) = 0 ioctl(3, TIOCSETD, [15]) = 0 ioctl(3, _IOC(_IOC_WRITE, 0x55, 0xc8, 0x4), 0x4) = 0 nanosleep({tv_sec=1, tv_nsec=0}, 0xbe9c2a30) = 0 ioctl(3, _IOC(_IOC_READ, 0x55, 0xca, 0x4), 0) = 0 socket(AF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, BTPROTO_HCI) = 5 bind(5, {sa_family=AF_BLUETOOTH, hci_dev=htobs(0), hci_channel=HCI_CHANNEL_RAW}, 6) = 0 ioctl(5, HCIDEVUP, 0) = -1 EBUSY (Device or resource busy) write(2, "Can't init device hci0: Device o"..., 52Can't init device hci0: Device or resource busy (16)) = 52 close(5) = 0 close(3) = 0 write(2, "Can't initialize device: Device "..., 49Can't initialize device: Device or resource busy ) = 49 _llseek(4, -215, [4905], SEEK_CUR) = 0 exit_group(1) = ? +++ exited with 1 +++
And here is my bts file. Maybe anyone has a working bts file with avpr?
#-------------------------------------------------------------------------------- # Description : Orca C ROM Initialization Script # # Compatibility: Orca, 12.0.26 ROM # # Last Updated: 29-Sep-2016 14:08:47.69 # # Version : 12_26.12 # # # # # Notes : Use this script on Orca C, 12.0.26 ROM device only (FW v12.0.26) #-------------------------------------------------------------------------------- ################################################################# ## START of CC256x Add-On ################################################################# ## Change UART baudrate Send_HCI_VS_Update_Uart_HCI_Baudrate 0xFF36, 0x002dc6c0 Wait_HCI_Command_Complete_VS_Update_Uart_HCI_Baudrate_Event 5000, 0x01, 0xff36, 0x00 Com_SetParams 3000000, 1 ################################################################# ## END of CC256x Add-On ################################################################# Send_HCI_VS_Start_VS_Lock 0xFE37, 0x0c, 0x1a Wait_HCI_Command_Complete_VS_Start_VS_Lock_Event 5000, 0x00, 0xfe37, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x000865d0, 0xfa, "0C:1A:09:0C:01:6A:C8:7B:00:02:89:7B:01:43:09:48:51:30:02:88:06:48:91:42:03:D1:04:49:09:78:01:29:01:D0:5D:30:F7:46:FF:30:D8:30:F7:46:76:24:08:00:BD:28:02:00:69:53:08:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:B5:00:69:FF:21:02:31:09:5C:09:29:05:D1:01:21:00:22:8E:46:CB:4B:FE:44:18:47:00:BD:CA:4A:11:88:01:20:40:03:08:43:10:80:F7:46:30:B5:00:69:F4:21:08:5C:01:28:16:D1:C5:48:00:78:03:28:12:D0:00:25:28:1C:C3:49:01:24:A6:46:C2:4A:FE:44:10:47:00:28:08:D0:C1:49:C1:4A:BB:32:20:20:2B:1C:A6:46:C0:4C:FE:44:20:47:30:BD:70:B5:85:69:00:7D:80:1F:11:D0:47:38:2E:D1:A9:79:28:20:48:43:BA:4A:10:18:23:22:12:5C:01:2A:25:D1:80:7B:00:28:22:D0:B6:4A:00:20:50:54:70:BD:01:24:A6:46:EF:48:FE:44:00:47" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x000866ca, 0xfa, "01:28:05:D0:A6:46:EC:48:FE:44:00:47:04:28:11:D1:E8:78:00:28:0E:D1:0E:26:31:1C:E9:4D:28:1C:14:38:A6:46:E6:4A:FE:44:10:47:28:1C:31:1C:A6:46:E3:4A:FE:44:10:47:70:BD:70:B5:01:1C:88:69:89:8A:E1:4A:89:1A:1C:D0:1C:39:20:D1:C5:7A:01:21:0C:1C:8E:46:DE:4A:FE:44:10:47:06:1C:10:20:A6:46:DC:49:FE:44:08:47:00:2D:11:D0:02:2E:0F:D0:D9:49:DA:4A:D9:32:20:20:00:23:A6:46:92:4C:FE:44:20:47:70:BD:C0:7A:00:28:02:D1:00:20:D4:49:08:70:70:BD:00:B5:00:69:FF:21:04:31:09:5C:06:29:06:D1:FF:21:05:31:0A:5C:2C:2A:01:D1:2D:22:0A:54:FF:21:05:31:09:5C:34:29:11:D1:FF:21:0B:31:09:5C:91:29:0C:D1:F1:21:09:5C:60:22:4A:43:C6:4B:00:21:99:54:06:21:01:22:96:46:C4:4A:FE:44:10:47:00:BD:F0:B5:06:1C:F7:69:08:20:C0:19:01:24:A6:46:BF:49:FE:44:08:47:C1:7B:09:02:80:7B:08:43:05:04:2D:0C:02:2D" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x000867c4, 0xfa, "12:D0:BB:48:00:88:A8:42:0E:D1:BA:48:00:78:01:28:0A:D1:B9:48:82:8F:81:6B:08:1C:10:43:04:D0:38:1C:A6:46:B6:4B:FE:44:18:47:35:60:B5:48:24:30:30:62:F0:BD:F0:B5:85:B0:04:90:87:69:81:8A:B1:48:08:1A:74:D0:B1:49:40:1A:28:D0:B0:49:40:1A:1D:D1:B0:48:05:1C:84:3D:00:78:02:28:17:D1:01:24:A6:46:AD:48:FE:44:00:47:00:28:10:D1:A6:46:AB:48:FE:44:00:47:00:28:0A:D1:A6:46:A9:48:FE:44:00:47:00:28:04:D1:28:78:00:28:01:D1:A8:78:00:28:00:D0:8B:E0:A6:20:A6:46:A3:49:FE:44:08:47:85:E0:95:48:51:38:00:78:2A:28:7C:D1:0E:20:C6:19:44:20:0C:21:1A:22:01:24:A6:46:9C:4B:FE:44:18:47:9B:48:81:78:C2:78:9B:48:A6:46:9B:4B:FE:44:18:47:06:20:B8:80:08:25:35:70:01:36:30:1C:00:21:A6:46:96:4A:FE:44:10:47:06:1C:35:70:01:36:30:1C:0D:21:A6:46:92:4A:FE:44:10:47:06:1C:A6:46:91:48:FE:44:00:47" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x000868be, 0xfa, "81:02:8A:48:C0:78:40:06:40:0E:08:43:8C:49:01:43:09:04:09:0C:30:1C:A6:46:88:4A:FE:44:10:47:7D:80:38:1C:FF:21:02:31:00:22:A6:46:86:4B:FE:44:18:47:38:E0:38:1C:00:21:6A:46:01:24:A6:46:84:4B:FE:44:18:47:02:A8:00:21:06:22:A6:46:81:4B:FE:44:18:47:00:25:02:E0:68:1C:05:04:2D:0C:66:48:4F:38:00:78:85:42:23:DA:11:20:40:01:68:43:7A:49:0E:18:10:20:80:19:69:46:A6:46:78:4A:FE:44:10:47:00:28:E9:D1:68:46:02:A9:A6:46:74:4A:FE:44:10:47:00:28:E1:D0:B0:78:01:28:DE:D0:38:1C:5C:49:3A:22:A6:46:6F:4B:FE:44:18:47:69:49:E2:31:04:98:01:62:05:B0:F0:BD:C0:46:DD:9D:00:00:3E:A6:1B:00:18:32:08:00:CE:04:00:00:23:B9:02:00:F1:6B:08:00:FD:79:00:00:35:6B:08:00:D4:1D:08:00:94:54:08:00:FE:B5:00:90:81:69:01:91:4C:78:C6:69:25:20:20:1A:5D:49:32:D0:01:38:68:D1:05:23:03:20:1A:1C:01:25" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x000869b8, 0xfa, "AE:46:5A:4F:FE:44:38:47:04:20:B0:80:0C:20:87:19:61:00:01:98:00:78:08:43:38:70:08:20:78:70:02:37:38:1C:0D:21:AE:46:46:4A:FE:44:10:47:07:1C:AE:46:45:48:FE:44:00:47:82:02:4D:48:00:78:40:06:41:0E:11:43:40:48:08:43:01:04:09:0C:38:1C:AE:46:3C:4A:FE:44:10:47:03:20:02:90:2E:E0:03:20:02:90:04:22:13:1C:01:25:AE:46:41:4F:FE:44:38:47:04:20:B0:80:0C:20:87:19:61:00:01:98:00:78:08:43:38:70:08:20:78:70:02:37:38:1C:0D:21:AE:46:2D:4A:FE:44:10:47:07:1C:AE:46:2C:48:FE:44:00:47:82:02:34:48:00:78:40:06:41:0E:11:43:27:48:08:43:01:04:09:0C:38:1C:AE:46:23:4A:FE:44:10:47:06:20:70:80:02:98:30:80:2D:48:2C:49:09:18:00:98:01:62:FE:BD:8F:8D:01:00:FD:06:05:00:14:05:1A:00:A2:FD:00:00:65:2D:00:00:7D:CA:03:00:31:6C:08:00:79:47:00:00:78:24:08:00:76:A0:1B:00:C5:8E:00:00:5B:19" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086ab2, 0xfa, "04:00:BA:53:08:00:90:A1:1B:00:A8:59:08:00:25:6F:04:00:79:6C:04:00:05:04:00:00:FC:0B:00:00:1D:10:00:00:45:10:08:00:C1:72:03:00:1B:5F:03:00:53:38:02:00:21:F0:04:00:DB:8E:04:00:FC:53:08:00:C6:02:00:00:8D:8F:04:00:F9:2D:00:00:00:82:FF:FF:A9:57:05:00:ED:49:02:00:25:00:00:00:99:2D:00:00:E9:63:05:00:00:00:08:00:49:8F:03:00:85:48:02:00:C5:05:00:00:31:90:04:00:FF:53:08:00:4E:05:00:00:B5:CC:00:00:40:1E:80:00:8C:4B:19:50:8A:49:0A:50:F7:46:F0:B5:01:1C:88:69:82:88:53:04:5B:0C:88:4E:88:4F:89:4D:03:D0:60:2B:01:DC:B2:42:14:D0:82:88:01:23:1B:03:54:04:64:0F:24:03:9C:42:08:DB:3B:1C:01:33:54:04:24:0D:E4:00:9C:42:01:DA:BA:42:03:D0:FF:20:88:60:E8:1D:F0:BD:01:24:A6:46:7B:49:FE:44:08:47:38:1C:A6:46:7A:49:FE:44:08:47:30:1C:A6:46:77:49:FE:44:08:47:A6:46:76:48:FE:44" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086bac, 0xfa, "00:47:38:1C:A6:46:73:49:FE:44:08:47:E8:48:01:68:30:1C:A6:46:71:4A:FE:44:10:47:71:48:40:19:F0:BD:01:1C:0A:7D:6F:48:00:2A:02:D0:C9:68:01:29:01:D0:4F:30:F7:46:31:30:F7:46:41:68:02:39:41:60:E9:48:3F:30:F7:46:1C:B5:41:68:E7:4C:00:29:17:D0:41:69:B0:20:40:18:B8:31:6A:46:01:23:9E:46:E9:4B:FE:44:18:47:00:99:E8:48:E4:38:41:43:68:46:80:88:41:18:FF:20:AE:30:81:42:02:D9:20:1C:BF:30:1C:BD:20:1C:DF:30:1C:BD:10:B5:04:1C:C8:68:0A:21:01:22:96:46:DE:4A:FE:44:10:47:00:28:00:D1:8C:20:A0:60:DC:48:DB:30:10:BD:DC:49:04:39:09:78:00:29:01:D1:00:21:41:60:41:68:42:69:51:1A:41:60:D6:48:55:30:F7:46:D6:49:09:78:00:29:04:D1:01:7D:D3:48:02:30:FF:22:42:54:D3:48:4F:30:F7:46:01:1C:8A:69:4B:68:D1:48:9A:42:01:D9:3B:30:F7:46:CA:60:79:30:F7:46:CF:48:CD:49:08:80:CE:48:FF:30:DE:30" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086ca6, 0xfa, "F7:46:C2:69:FF:21:11:31:8B:5C:CB:49:5B:08:08:D3:FF:23:02:33:9A:5C:02:2A:03:D0:01:2A:01:D0:03:2A:02:D1:08:1C:5B:30:F7:46:FF:22:42:60:08:1C:39:30:F7:46:00:B5:40:68:01:21:8E:46:C0:49:FE:44:08:47:C0:48:57:30:00:BD:02:8A:01:79:0A:29:00:DB:0A:21:BD:48:8A:42:01:DD:5F:30:F7:46:5B:30:F7:46:F0:B5:01:24:A6:46:B9:48:FE:44:00:47:01:28:05:D0:A6:46:B6:48:FE:44:00:47:04:28:19:D1:02:26:B4:4D:28:79:00:28:11:D0:E8:7A:06:28:0E:D1:0E:20:01:1C:B1:4F:38:1C:14:38:A6:46:AE:4A:FE:44:10:47:38:1C:0E:21:A6:46:AB:4A:FE:44:10:47:70:35:01:3E:E7:D1:A6:46:AA:48:FE:44:00:47:A9:49:0B:48:54:30:40:18:F0:BD:C0:46:04:F3:1A:00:80:7B:08:00:03:80:00:00:17:10:00:00:C9:FB:04:00:BB:15:04:00:7D:CA:03:00:05:43:02:00:0B:C9:03:00:AB:02:00:00:B1:33:02:00:F0:B5:8D:B0:01:90:81:69:02:91:01:7D" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086da0, 0xfa, "03:91:42:68:00:92:80:8B:40:00:04:90:6B:48:83:30:00:78:40:00:05:90:00:29:01:D1:00:20:E1:E0:04:98:02:04:12:0C:06:92:02:98:03:99:6B:46:01:24:A6:46:8E:4D:FE:44:28:47:07:90:00:9E:00:20:08:90:7E:48:09:90:0A:90:7F:E0:09:98:00:28:2B:D0:0B:98:09:90:28:E0:05:98:87:42:25:DB:90:79:03:28:01:D0:01:28:20:D1:79:19:05:98:08:1A:07:99:A6:46:80:4A:FE:44:10:47:07:1C:28:1C:07:99:A6:46:7D:4A:FE:44:10:47:01:04:09:0C:3A:04:12:0C:00:20:A6:46:79:4B:FE:44:18:47:00:28:04:D1:0A:98:00:28:03:D0:0A:97:01:E0:00:20:0A:90:B6:68:00:2E:03:D0:30:88:07:99:88:42:49:DB:08:98:00:28:46:D1:5F:49:09:98:88:42:42:D1:0A:98:88:42:3F:D1:03:98:00:28:2C:D0:02:9D:03:98:0C:90:00:27:28:88:0B:90:04:99:A6:46:64:4A:FE:44:10:47:00:28:07:D0:0B:99:04:98:A6:46:60:4A:FE:44:10:47:00:28:11:D1:08:98:B8:42" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086e9a, 0xfa, "09:D0:08:98:C1:00:02:98:40:18:29:1C:08:22:A6:46:5B:4B:FE:44:18:47:08:98:40:1C:00:06:00:0E:08:90:08:35:01:37:0C:98:01:38:0C:90:D6:D1:08:98:00:28:0C:D0:02:98:08:99:06:9A:6B:46:A6:46:4D:4D:FE:44:28:47:07:90:00:9E:3D:48:09:90:0A:90:00:2E:3A:D0:35:88:07:98:85:42:36:DA:B0:68:00:28:05:D0:00:88:07:99:88:42:01:DC:47:1B:04:E0:07:98:40:1B:00:99:09:88:0F:18:72:68:91:88:05:98:40:18:87:42:00:DA:6A:E7:48:19:07:99:A6:46:3B:4A:FE:44:10:47:0B:90:79:19:05:98:08:1A:07:99:A6:46:36:4A:FE:44:10:47:02:04:12:0C:0B:98:01:04:09:0C:00:20:A6:46:32:4B:FE:44:18:47:00:28:00:D1:48:E7:00:20:09:90:06:E0:C0:46:E0:31:08:00:1D:48:09:99:81:42:02:D0:09:98:0A:90:02:E0:0A:99:81:42:01:D0:0A:98:04:E0:06:98:A6:46:27:49:FE:44:08:47:01:99:48:60:20:48:FF:30:10:30:0D:B0:F0:BD:B7:4B:04:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00086f94, 0xee, "FD:79:00:00:22:49:09:78:2A:29:01:D1:08:21:00:E0:06:21:41:60:1D:48:43:30:F7:46:C0:46:4F:81:03:00:C6:05:00:00:65:2D:00:00:79:47:00:00:0D:13:02:00:76:24:08:00:E0:A0:1B:00:89:28:05:00:3D:39:02:00:60:5B:08:00:FF:FF:00:00:D9:AA:00:00:D5:75:00:00:23:01:05:00:B3:09:02:00:F9:97:00:00:8F:8D:01:00:A4:13:08:00:E5:06:05:00:14:05:1A:00:77:C5:01:00:B9:C5:01:00:6D:95:00:00:A1:95:01:00:95:49:05:00:21:96:01:00:5D:5F:05:00:4D:96:01:00:7B:5E:02:00:69:53:08:00:FF:B5:68:46:FF:F7:B9:FB:FF:BD:FF:B5:68:46:FF:F7:DE:FB:FF:BD:FF:B5:68:46:FF:F7:AA:FC:FF:BD:FF:B5:68:46:FF:F7:84:FB:FF:BD:FF:B5:68:46:FF:F7:F8:FA:FF:BD:FF:B5:68:46:FF:F7:E5:FA:FF:BD:FF:B5:68:46:FF:F7:F5:FA:FF:BD:FF:B5:68:46:FF:F7:45:FB:FF:BD:FF:B5:68:46:FF:F7:09:FB:FF:BD" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00087b78, 0x88, "00:B5:F8:F0:A7:FA:00:BD:43:6B:08:00:CD:6B:08:00:D5:65:08:00:E5:6B:08:00:51:6C:08:00:6D:6C:08:00:85:6C:08:00:9B:6C:08:00:A9:6C:08:00:D9:6C:08:00:ED:6C:08:00:05:6D:08:00:95:6D:08:00:99:6F:08:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:31:6C:08:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001af304, 0x80, "CE:FB:04:00:DE:33:02:00:14:29:02:00:F4:4B:04:00:60:13:02:00:D6:28:05:00:74:39:02:00:88:AC:00:00:0C:76:00:00:06:0A:02:00:50:98:00:00:B4:C6:01:00:7A:95:00:00:B8:5E:02:00:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:52:48:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x00180000, 0xfa, "70:B5:25:4D:AE:7F:01:24:A6:46:21:48:FE:44:00:47:B0:42:F8:D1:03:20:17:21:89:01:A6:46:1D:4A:FE:44:10:47:AD:7F:A6:46:1A:48:FE:44:00:47:A8:42:F9:D1:FE:E7:10:B5:19:49:08:1F:19:4A:10:60:1C:48:02:1C:71:3A:93:24:01:23:A3:54:16:4B:0B:60:02:23:13:71:15:4B:4B:60:03:23:53:71:14:4B:8B:60:04:23:03:70:14:4B:CB:60:05:23:83:73:13:4B:0B:61:06:23:03:73:12:4B:4B:61:07:23:43:71:11:4B:8B:61:08:23:33:38:03:70:10:48:C8:61:09:20:D0:74:0F:48:08:62:10:BD:25:86:04:00:1B:90:04:00:6C:52:08:00:08:66:08:00:20:55:08:00:5B:70:08:00:6F:70:08:00:79:70:08:00:95:55:08:00:47:70:08:00:51:70:08:00:65:70:08:00:29:70:08:00:33:70:08:00:3D:70:08:00:F0:B5:0C:22:22:4E:32:70:1A:23:73:70:09:20:B0:70:F2:70:03:20:20:4D:29:1C:01:39:01:24:A6:46:1D:4F:FE:44:38:47:B2:78:F3:78:03:20:29:1C:A6:46" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001800fa, 0x86, "19:4E:FE:44:30:47:03:20:29:1C:01:31:A6:46:17:4A:FE:44:10:47:A6:46:16:48:FE:44:00:47:16:4B:00:21:08:1C:1A:68:00:2A:04:D0:02:07:15:0F:22:1C:AA:40:11:43:02:07:12:0F:0F:2A:05:D1:C5:08:06:22:2A:40:0E:4D:A9:52:00:21:04:33:01:30:20:28:E9:D3:0C:48:01:1C:50:31:0C:70:0A:21:09:4A:11:70:2A:21:01:70:F0:BD:FC:53:08:00:31:90:04:00:C6:05:00:00:1B:90:04:00:33:00:18:00:80:7B:08:00:84:F3:1A:00:6D:22:08:00:69:53:08:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Goto_Address 0xFF83, 0x00087b79, 0x00000000, 0x00000000, 0x00000000, 0x00000000 Wait_HCI_Command_Complete_VS_Goto_Address_Event 5000, 0x00, 0xff83, 0x00 Send_HCI_VS_Sleep_Mode_Configurations 0xFD0C, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0064 Wait_HCI_Command_Complete_VS_Sleep_Mode_Configurations_Event 5000, 0x00, 0xfd0c, 0x00 Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001a6058, 0x1000, 0x1000 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, 0x00, 0xfd09, 0x00 Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001a6010, 0x0010, 0x0010 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, 0x00, 0xfd09, 0x00 Send_HCI_VS_Fast_Clock_Configuration_btip 0xFD1C, 0xff, 0x00001388, 0x000000ff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xfa, 0x00, 0xff, 0x00ff Wait_HCI_Command_Complete_VS_Fast_Clock_Configuration_btip_Event 5000, 0x00, 0xfd1c, 0x00 ##-------------------------------------------------------------------------------- ## Description: ORCA_C Commercial PHY FW Initialization Script ##-------------------------------------------------------------------------------- Send_HCI_VS_DRPb_Set_RF_Calibration_Info 0xFD76, 0x01, 0x00005421, 0x00005761, 0x14, 0x05, 0x0a, 0x05, 0x00, 0x07, 0x06, 0x0a, 0x04, 0x05, 0x08, 0x09, 0x0b, 0x0c, 0x0d, 0x0e, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00000000 Wait_HCI_Command_Complete_VS_DRPb_Set_RF_Calibration_Info_Event 5000, 0x00, 0xfd76, 0x00 Send_HCI_VS_DRPb_Enable_RF_Calibration 0xFD80, 0x00, 0x00000001, 0x01 Wait_HCI_Command_Complete_VS_DRPb_Enable_RF_Calibration_Event 5000, 0x00, 0xfd80, 0x00 Send_HCI_VS_DRPb_Enable_RF_Calibration 0xFD80, 0x3c, 0x00005ff0, 0x00 Wait_HCI_Command_Complete_VS_DRPb_Enable_RF_Calibration_Event 5000, 0x00, 0xfd80, 0x00 Send_HCI_VS_Stop_VS_Lock 0xFE38 Wait_HCI_Command_Complete_VS_Stop_VS_Lock_Event 5000, 0x00, 0xfe38, 0x00 ################################################################# ## START of CC2564 Adds-On ################################################################# ## Enable fast clock XTAL support Send_HCI_VS_Fast_Clock_Configuration_btip 0xFD1C, 0x01, 0x00001388, 0x000007d0, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0xfa, 0x00, 0x00, 0x0000 Wait_HCI_Command_Complete_VS_Fast_Clock_Configuration_btip_Event 5000, 0x00, 0xfd1c, 0x00 Send_HCI_VS_AVPR_Enable 0xFD92, 0x01, 0x00, 0x01, 0x0000 Wait_HCI_Command_Complete_VS_AVPR_Enable_Event 5000, 0x00, 0xfd92, 0x00 # Disable Cortex Sleep Send_HCI_VS_LOAD_Cortex 0xFDA8, 0x01 Wait_HCI_Command_Complete_VS_LOAD_Cortex_Event 5000, 0x00, 0xfda8, 0x00 # Cortex Reset (hold in reset while loading IMEM) Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001bc000, 0x0001, 0x0001 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, 0x00, 0xfd09, 0x00 ######################## # Patch Start ######################## Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b2778, 0x04, "F4:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b3b48, 0x04, "F4:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b3d44, 0x20, "D4:1F:00:20:D8:1F:00:20:DC:1F:00:20:E0:1F:00:20:CC:1F:00:20:CE:1F:00:20:D0:1F:00:20:D2:1F:00:20" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b5a1c, 0x04, "F4:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b60c4, 0x04, "F4:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b67bc, 0x04, "F7:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b6aa8, 0x04, "F8:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b6d14, 0x04, "F7:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b7380, 0x04, "F7:75:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, 0x00, 0xff05, 0x00 ######################## # Patch End ######################## # Init the position offset (MCS00135318) Send_HCI_VS_Write_Hardware_Register 0xFF01, 0x001bbfca, 0x0000 Wait_HCI_Command_Complete_VS_Write_Hardware_Register_Event 5000, 0x00, 0xff01, 0x00 #release Cortex Reset Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001bc000, 0x0000, 0x0001 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, 0x00, 0xfd09, 0x00 # Enable Cortex Sleep Send_HCI_VS_LOAD_Cortex 0xFDA8, 0x00 Wait_HCI_Command_Complete_VS_LOAD_Cortex_Event 5000, 0x00, 0xfda8, 0x00 ## Enable eHCILL Send_HCI_VS_hcill_parameters 0xFD2B, 0x0010, 0x0050, 0x96 Wait_HCI_Command_Complete_VS_hcill_parameters_Event 5000, 0x00, 0xfd2b, 0x00 Send_HCI_VS_Sleep_Mode_Configurations 0xFD0C, 0x01, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0064 Wait_HCI_Command_Complete_VS_Sleep_Mode_Configurations_Event 5000, 0x00, 0xfd0c, 0x00 ################################################################# ## END of CC2564 Adds-On #################################################################