Developing note
麥克斯從事軟/韌體開發的筆記.
Tuesday, February 26, 2013
Bring CAN bus up - TI am335
#1. Create a file, rc.local @ etc/init.d
#2. Create a symbolic link, S99rc.local @ etc/rc5.d, which links to rc.local
# Content of rc.local
ip link set can0 type can bitrate 250000 triple-sampling on
ip link set can0 up
Reference
Virtual CAN0
Monday, January 7, 2013
Workaround: NTP behind proxy
#!/bin/bash
PATH="https://ntp-a1.nict.go.jp/cgi-bin/time"
echo Get date from "$PATH"
# Shell will execute /usr/bin/curl $PATH,
# then printed by echo
NOW="`/usr/bin/curl $PATH`"
echo $NOW
# Update system date time
/usr/bin/sudo date --set="$NOW"
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)