昨天白癡般折騰了好久開發板,才想明白該怎樣操作openwrt的同時能夠上網:開發板連接到路由器lan口并設置靜態ip,ubuntu下直接ssh登陸。。。
之后遇到一個問題:
使用opkg安裝gphoto2模塊時提示:
Collected errors:
- opkg_install_pkg: Package gphoto2 md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
- opkg_install_cmd: Cannot install package gphoto2.
即使按照提示執行opkg update也一樣無法成功。
網上的解釋是:
It seemed like they change the Packages (http://downloads.ope...ckages/Packages) file before they update the ipk's. I think this is where the disparity between the md5sums came from.
網上找到的解決方案是:
注釋掉/etc/opkg.conf里面第一行src pacages這一句即可,這樣可以直接安裝本地或者互聯網上面的ipk,而不需要校驗源里面的md5
依此方案修改,然后試了下手動下載ipk,發現各種依賴真是讓人痛苦不堪。之后又靈光一閃:應該直接修改opkg配置,指定我所用分支的package路徑,我用的是attitude_adjustment分支,對應的package路徑是:
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/
修改之后果然好用。
或者直接在opkg intall后加上ipk的url也可以,不過沒有這個方法方便。