-
Notifications
You must be signed in to change notification settings - Fork 5
RK3229
Yihui Xiong edited this page Oct 23, 2017
·
2 revisions
RK3229 system setting
1,bluetooth
MAC_OPTIONS="11:22:33:44:55:66"
PORT="ttyS1"
rfkill unblock all
echo "0" > /sys/class/rfkill/rfkill0/state
echo "1" > /sys/class/rfkill/rfkill0/state
hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS
hciconfig hci0 up
test:
root@linaro-alip:~# hciconfig hci0
hci0: Type: Primary Bus: UART
BD Address: 11:22:33:44:55:66 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:780 acl:0 sco:0 events:50 errors:0
TX bytes:2809 acl:0 sco:0 commands:50 errors:0
root@linaro-alip:~# bluetoothctl
[NEW] Controller 11:22:33:44:55:66 linaro-alip [default]
[bluetooth]# scan
Missing on/off argument
[bluetooth]# scan on
Discovery started
[CHG] Controller 11:22:33:44:55:66 Discovering: yes
[NEW] Device 45:2D:18:42:08:E0 45-2D-18-42-08-E0
[NEW] Device 48:45:33:35:E4:4E 48-45-33-35-E4-4E
[NEW] Device 41:B8:7E:C5:BD:1F 41-B8-7E-C5-BD-1F
[CHG] Device 45:2D:18:42:08:E0 RSSI: -87
[NEW] Device B8:09:8A:B9:4E:D8 B8-09-8A-B9-4E-D8
[NEW] Device 4D:53:C9:33:5A:1C 4D-53-C9-33-5A-1C
[NEW] Device 5A:BB:02:13:E4:65 5A-BB-02-13-E4-65
[NEW] Device 78:4F:43:60:2C:84 78-4F-43-60-2C-84
[NEW] Device 53:30:08:84:89:15 53-30-08-84-89-15
[NEW] Device 6C:5A:B5:DE:A5:2E DingDong智能音箱
[NEW] Device 60:36:DD:FD:71:C6 60-36-DD-FD-71-C6
[CHG] Device 45:2D:18:42:08:E0 RSSI: -77
[NEW] Device 54:A7:15:F4:89:1B 54-A7-15-F4-89-1B
[CHG] Device 6C:5A:B5:DE:A5:2E RSSI: -60
[bluetooth]# exit
[DEL] Controller 11:22:33:44:55:66 linaro-alip [default]
root@linaro-alip:~# ^C
bluetoothctl
#scan on
#scan off
#agent on
#default-agent
#pair {mac-address}
2,uboot.img
loaderimage --pack --uboot ./u-boot-dtb.bin uboot.img 0x60000000
3,flash
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool di -p ~/share/parameter_with_kernel.kernel
Download parameter ok.
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool wl 0x2000 uboot-1.img
Write LBA from file (100%)
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool wl 0x6000 out/boot.img
Write LBA from file (100%)
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool wl 0x4000 trust.img
Write LBA from file (100%)
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool wl 0x3e000 rootfs/linaro-rootfs.img
Write LBA from file (100%)
baozhu@server:~/studio/rockchip/rk-linux$ sudo ./upgrade_tool rd
Reset Device OK.