架設VPN已經想了很久,因工作的需求,時常出差到大陸,雖然LINE和FB不能用還不會造成困擾,但是許多google service不能用,讓人感覺非常不方便。
今天就把BPro拿出來好好研究如何架上VPN,在網上google許多前人的經驗,發現還真的蠻簡單的,雖然在過程中遇到一些問題,不過運氣好很快就解決。
安裝VPN server首先要確定家裡網路的環境和設備,分為幾個步驟:
Step 1:
《網路結構》
internet ﹣》中華電信 ﹣》 ADSL ﹣》 Wifi AP ﹣》intranet -》BananaPro
古人智慧
Just Do it!
上士聞道,勤而行之;中士聞道,若存若亡;下士聞道,大笑之。不笑,不足以爲道。
~ 道德經 41
「實現夢想不是追逐成功,而是在於賦予生命意義,人生中的每個決定與聲音都有其重要含義。」"The key to realizing a dream is to focus not on success but on significance — and then even the small steps and little victories along your path will take on greater meaning."
電視名人-歐普拉·溫芙蕾(OPRAH WINFREY)
搜尋此網誌
Translation
2015年6月8日 星期一
2015年6月7日 星期日
[Banana Pro] Device driver study(device_create, misc_register) - LED control
上次第一個《device driver sample 範例》 需要自己建立 node,這並不是太好的做法。
本次提供一個方法是在driver init的時候,自動建立driver node。
有兩個方式:
1. 使用 device_create
2. 使用 misc_register
/*
* led_drv:
* LED device driver test program for banana Pro
* Copyright (c) 2015 Regis Hsu
*
* Thanks to code samples from Gordon Henderson
***********************************************************************
*
* led_drv is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* led_drv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with wiringPi.
* If not, see <http://www.gnu.org/licenses/>.
***********************************************************************
*/
2015年6月5日 星期五
[BananaPro] Scratch for Arduino on BananaPro
2015年6月2日 星期二
[Banana Pro] Device driver study - LED control
There is my first device driver in Banana Pro board.
My idea is using this device driver module to control the LED board as below:
Here is the build process and source code:
Setup the build env:
Step 1. Download and rebuild the bsp
git clone https://github.com/LeMaker/lemaker-bsp.git
refer to my another bolg - Banana Pro] Building u-boot, script.bin and linux-kernel
My idea is using this device driver module to control the LED board as below:
Here is the build process and source code:
Setup the build env:
Step 1. Download and rebuild the bsp
git clone https://github.com/LeMaker/lemaker-bsp.git
refer to my another bolg - Banana Pro] Building u-boot, script.bin and linux-kernel
訂閱:
文章 (Atom)