일요일, 2월 25, 2018

Odroid-C2 I2C test

Odroid-C2 I2C test


/lib/modules/3.14.79-116/kernel/drivers/amlogic/i2c

$ sudo modprobe aml_i2c

$ sudo i2cdetect -l
i2c-1   i2c             aml_i2c_adap1                           I2C adapter
i2c-2   i2c             aml_i2c_adap2                           I2C adapter


-----
Cheers,
June

Odroid-C2 cdc-acm, RNDIS(Ethernet over USB) 설치

Odroid-C2 cdc-acm, RNDIS(Ethernet over USB) 설치

-------------------------------------------------
Odroid-C2
-------------------------------------------------
/lib/modules/3.14.79-116/kernel/drivers/usb/gadget/

//
// Serial
//
// CDC Composite Gadget
$ modprobe g_cdc

// Gadget Serial v2.4
$ modprobe g_serial



//
// RNDIS/Ethernet Gadget (Ethernet over USB)
//
$ modprobe g_ether

// check 'usb0' interface
$ ifconfig -a

// create a usb0 interface info
// 192.168.137.0: DHCP on Windows RNDIS
$ sudo vi /etc/network/interfaces.d/usb0
auto usb0
iface usb0 inet static
address 192.168.137.11
netmask 255.255.255.0
#gateway 192.168.1.x
dns-nameservers 8.8.8.8

$ service networking restart

// adds load module (g_ether)
$ sudo vi /etc/rc.local
modprobe g_ether

$ sync && reboot



-------------------------------------------------
Windows 7
-------------------------------------------------

//
// Serial
//
// CDC Composite Gadget, Gadget Serial v2.4
1. driver (inf) 파일 수정
 - download: http://www.kernel.org/doc/Documentation/usb/linux-cdc-acm.inf
 - VID, PID 수정: VID_0525&PID_A4A7 -> VID_0525&PID_A4AA

2. 장치관리자
 - 장치관리자 -> 기타장치 -> 'CDC Composite Gadget' or 'Gadget Serial v2.4'
   -> 드라이버 소프트웨어 업데이트 -> 컴퓨터에서 드라이버 소프트웨어 찾아보기 -> 찾아보기
   -> 위에서 생성한 inf 파일 선택 -> 강제 설치

이후 COM port 로 접속 (하지만 안 됨...)



//
// RNDIS/Ethernet Gadget (Ethernet over USB)
//
1. 장치관리자 (Device Manager)
 - 장치관리자 -> 기타장치 -> 'RNDIS/Ethernet Gadget'
   -> 드라이버 소프트웨어 업데이트 -> 컴퓨터의 장치 드라이버 목록에서 직접 선택
   -> 컴퓨터의 장치 드라이버 목록에서 직접 선택
   -> 일반 하드웨어 종류: 네트워크 어댑터
   -> (제조업체) Microsoft Corporation -> (네트워크 어댑터) Remote NDIS Compatible Device

 - Device Manager -> Other devices -> 'RNDIS/Ethernet Gadget'
   -> Update Driver Software... -> Browse my computer for driver software
   -> Let me pick from a list of device drivers on my computer
   -> Common hardware types: Network adapters
   -> (Manufacturer) Microsoft Corporation -> (Network Adapter) Remote NDIS Compatible Device

2. 네트워크 연결 (Network and Sharing Center)
 - 네트워크 및 공유 센터 -> 어댑터 설정 변경
   -> 로컬 영역 연결 #x (RNDIS/Ethernet Gadget)
   -> 속성 -> TCP/IPv4 -> 속성
   (Manual)
   //-> IP: 192.168.1.10 (HOST), Netmask: 255.255.255.0, Gateway: blank -> 확인
   (DHCP)
   -> 자동으로 IP 주소 받기 -> 확인

 - Network and Sharing Center -> Change adapter settings
   -> Local Area Connection #x (RNDIS/Ethernet Gadget)
   -> Properties -> TCP/IPv4 -> Properties
   (Manual)
   //-> IP: 192.168.1.10 (HOST), Netmask: 255.255.255.0, Gateway: blank -> OK
   (DHCP)
   -> Obtain an IP address automatically -> OK

3. 네트워크 확인
 - c:/> ipconfig
 (Manual)
 - c:/> ping 192.168.1.11 // Odroid-C2
 (DHCP)
 - c:/> ping 192.168.137.11 // Odroid-C2

4. SSH 로 Odroid-C2 접속
 (Manual)
 - Putty or terminal: ssh xxx@192.168.1.11
 (DHCP)
 - Putty or terminal: ssh xxx@192.168.137.11

-----
Cheers,
June

월요일, 1월 22, 2018

Ubuntu 16.10 apt-get update error

Ubuntu 16.10 apt-get update error

Ubuntu 16.10 will be supported for 9 months until July 2017.
Release date: October 13, 2016
End of Life date: July 20, 2017
https://wiki.ubuntu.com/Releases


$ sudo apt-get update
Ign:1 http://kr.archive.ubuntu.com/ubuntu yakkety InRelease
Ign:2 http://kr.archive.ubuntu.com/ubuntu yakkety-updates InRelease       
Ign:3 http://kr.archive.ubuntu.com/ubuntu yakkety-backports InRelease     
Err:4 http://kr.archive.ubuntu.com/ubuntu yakkety Release                 
  404  Not Found
Err:5 http://kr.archive.ubuntu.com/ubuntu yakkety-updates Release         
  404  Not Found
Err:6 http://kr.archive.ubuntu.com/ubuntu yakkety-backports Release                              404  Not Found
Get:7 https://apt.dockerproject.org/repo ubuntu-xenial InRelease [48.7 kB]                   
Ign:8 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
Err:9 http://security.ubuntu.com/ubuntu yakkety-security Release
  404  Not Found [IP: 91.189.88.149 80]
Reading package lists... Done
E: The repository 'http://kr.archive.ubuntu.com/ubuntu yakkety Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://kr.archive.ubuntu.com/ubuntu yakkety-updates Release' does no longer have a Release file.
...


[Solution]
Add below old releases repository of yakkety (16.10) to '/etc/apt/sources.list'.

# old release
# ----------------------------------------------
deb http://old-releases.ubuntu.com/ubuntu/ yakkety main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety main restricted
deb http://old-releases.ubuntu.com/ubuntu/ yakkety-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety-updates main restricted
#
deb http://old-releases.ubuntu.com/ubuntu/ yakkety universe
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety universe
deb http://old-releases.ubuntu.com/ubuntu/ yakkety-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety-updates universe
#
deb http://old-releases.ubuntu.com/ubuntu/ yakkety multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety multiverse
deb http://old-releases.ubuntu.com/ubuntu/ yakkety-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety-updates multiverse
#
deb http://old-releases.ubuntu.com/ubuntu/ yakkety-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ yakkety-backports main restricted universe multiverse
# ----------------------------------------------


-----
cheers,
June