2014年12月26日 星期五

minicom+kermit with u-boot

Ubuntu 13.10.

Installation:

  1. sudo apt-get install minicom ckermit
  2. /etc/kermit/kermrc
    set carrier-watch off
    set prefixing all
    set parity none
    set stop-bits 1
    set modem none
    set file type bin
    set file name lit
    set flow-control none
    set prompt "Linux Kermit> "

On minicom, give the following command to u-boot:
==> loadb 0x2000000
## Ready for binary (kermit) download to 0x02000000 at 115200 bps...
Then do ctrl+A+S with "kermit", select file to send. You should see the following screen:
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, testPC [192.168.1.105]

   Current Directory: /home/xxxx
Communication Device: /dev/ttyUSB0
 Communication Speed: 115200
              Parity: none
         RTT/Timeout: 01 / 03
             SENDING:  => u-boot.bin
                      BINARY
           File Size: 699264
        Percent Done: 4   //
                          ...10...20...30...40...50...60...70...80...90..100
 Estimated Time Left: 00:01:24
  Transfer Rate, CPS: 7887
        Window Slots: 1 of 1
         Packet Type: D
        Packet Count: 10
       Packet Length: 9024
         Error Count: 0
          Last Error:
        Last Message:

ERROR: ctrl+A+S with "kermit" doesn't work; nothing shown
Maybe something went wrong with kermit. In my case I didn't have kermrc set correctly. You can try to run kermit manually, for example:
# sudo kermit -i -l /dev/ttyUSB0 -b 115200 -s u-boot.bin

?Carrier required but not detected
It might be required for minicom to quit to run this command in console.



lazyf's den : A Personal Weblog: [技術] Linux下使用Minicon+Kermit
http://lazyflai.blogspot.tw/2010/06/linuxminiconkermit.html

Problems running Kermit - FedoraForum.org
http://forums.fedoraforum.org/showthread.php?t=121720

2014年12月25日 星期四

徒手腿部訓練

跑者髖關節訓練│動一動│專欄│Balance的鐵工廠Don1Don
http://www.don1don.com/archives/31610

多向跨步(Lunge Clock)
和運動傷害說掰掰 9項單腳訓練<上>
http://www.sportsnote.com.tw/running/view_article.aspx?id=414c054e-42fb-47ba-b81d-ae149aa667b6
 單腳深蹲 (Single-Leg Squat)


單腿臀部運動(Single-Leg Hip Drive)


單腳跳躍(Single-Leg Hops)
直線前跳後跳左右跳


單腳橫向跳躍(Single-Leg Lateral Hops)
定點左右跳
和運動傷害說掰掰 9項單腳訓練<下>
http://www.sportsnote.com.tw/running/view_article.aspx?id=6d6eb732-72c5-4b99-9a17-9cb6cf2e2efb
單腳星狀跳躍(Hopstar)

LTE

全球LTE標準必要專利佈局(一) LTE技術持續演進的重點方向
http://iknow.stpi.narl.org.tw/post/Read.aspx?PostID=10451

測試LTE基地台OTA 手持式頻譜分析儀走紅 - 學技術 - 新電子科技雜誌
http://www.mem.com.tw/article_content.asp?sn=1410150006&page=2

2014年12月10日 星期三

Strongswan and Cisco ASR5000 SeGW

  1. strongswan would enumerate all the available transform in the first IKE_SA_INIT. But it might be too much and there are some that are not recognizable by Cisco SeGW, and SeGW will just drop it and no response.....
    ike=aes128-sha1-prfsha1-
    modp1024,aes256-sha1-prfsha1-modp1024,3des-md5-prfmd5-modp1024,3des-sha1-prfsha1-modp1024,des-sha1-prfsha1-modp1
    esp=aes128-sha1-modp1024,3des-md5
    Cisco SeGW reports:
    Too Many Transforms:             110
    And dump the packet at Cisco show something like:
    (........a lot of transforms.........)

          Transform Header #39
            Last                 (U08): Yes/0 (0x00)
            Reserved             (U08): 0
            Transform Length     (U16): 8 (0x8) bytes
            Transform Type       (U08): DHGROUP/4 (0x04)
            Reserved             (U08): 0
            Transform ID         (U16): UNKNOWN/30 (0x001E)
    FIX: To fix this, force to use only one of the transform instead let it choose automatically, e.g.
    ike=aes128-sha1-prfsha1-modp1024!
    esp=aes128-sha1-modp1024!
     
  2. By default the mobike is enabled in strongswan, while Cisco SeGW doesn't support it. The tunnel is created without any problem. However, all packets encrypted with ESP is received by SeGW, but "somehow" not recognized. For example, encrypted ping request is received by SeGW, but not decrypted and is dropped.
    And on strongswan PC, all encrypted ping from SeGW is not received.

    FIX: Disable mobike will fix this issue.
    mobike=no