J1핀을 제거하면 USB OTG 포트를 전원 입력으로 사용할 수 없게 된다.
이 것은 전원 소비와 발열을 크게 감소시킬 것이다.
odroid-c2는 비디오 재생이나 몇몇 주변장치를 사용하는데 0.8Amp 이상을 소비하는데
USB port에 장치가 연결되면 1.5 A 이상을 연결하길 권장한다.
 
그런데 OTG가 도대체 (?) 머길래 전원 소비와 발열을 줄인다는거지?
| Remove the Jumper on J1 if you don't use the USB OTG port as a power input It will reduce the power consumption and heat significantly.
 
 Since ODROID-C2 can consume current more than 0.8Amp by itself while playing a video file or with some peripherals - keyboard/mouse/WiFi dongle - are attached to USB port, we strongly recommend to use 5V USB charger with minimal 1.5Amp+ can be supplied. Please note that still DC jack works with the same specification of ODROID-C2 apart from USB OTG for power supplying.
 
 
 | 
[링크 : https://wiki.odroid.com/odroid-c2/hardware/otg_power_enable]
 
일단은 다행히(!) odroid u3에 쓰던 어댑터가 맞는것 같으니 바로 테스트 해봐야겠다..
 
+
 
| # modprobe g_mass_storage modprobe: ERROR: could not insert 'g_mass_storage': Invalid argument
 # modprobe g_mass_storage file=/dev/mmcblk0p1
 # dmesg
 [  267.930878] Mass Storage Function, version: 2009/09/11
 [  267.930893] LUN: removable file: (no medium)
 [  267.930919] no file given for LUN0
 [  267.931020] g_mass_storage dwc2_a: failed to start g_mass_storage: -22
 [  283.639994] Mass Storage Function, version: 2009/09/11
 [  283.640008] LUN: removable file: (no medium)
 [  283.640082] LUN: file: /dev/mmcblk0p1
 [  283.640088] Number of LUNs=1
 [  283.640097] Number of LUNs=1
 [  283.640233] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
 [  283.640239] g_mass_storage gadget: userspace failed to provide iSerialNumber
 [  283.640244] g_mass_storage gadget: g_mass_storage ready
 | 
 
아쉽게도(?) otg 꽂힌채로는 바로 인식되진 않고 한번 뽑았다 꽂아주어야 인식을 한다.=
| # dmesg [  352.483089] USB RESET
 [  352.562416] usb 1-1.4: new high-speed USB device number 3 using dwc_otg
 [  352.566533] USB RESET
 [  352.664381] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
 [  352.665021] usb-storage 1-1.4:1.0: USB Mass Storage device detected
 [  352.666447] usb-storage 1-1.4:1.0: Quirks match for vid 0525 pid a4a5: 10000
 [  352.666520] scsi0 : usb-storage 1-1.4:1.0
 [  353.663221] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0316 PQ: 0 ANSI: 2
 [  353.664962] sd 0:0:0:0: [sda] 262144 512-byte logical blocks: (134 MB/128 MiB)
 [  353.665053] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  353.674196] sd 0:0:0:0: Attached scsi generic sg0 type 0
 [  353.772882] sd 0:0:0:0: [sda] Write Protect is off
 [  353.772895] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
 [  353.773086] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  353.882776] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 [  353.883855] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  353.993016] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  354.103316]  sda:
 [  354.104539] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  354.213075] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 [  354.322785] sd 0:0:0:0: [sda] Attached SCSI disk
 [  354.323219] WARN::dwc_otg_pcd_ep_halt:2432: 1 IN XFer In process
 | 
 
일단 /dev/sda로 인식이 되었으니 마운트 하고 쓰고 sync도 해보고, umount도 해봄
OTG를 통해 쓰는거다 보니 바로 써지진 않고 sync나 umount 이후에 갱신되는게 확인된다.
| # mount /dev/sda /mnt # ls -al /mnt
 total 20862
 drwxr-xr-x  3 root root    16384 Jan  1  1970  .
 drwxr-xr-x 21 root root     4096 Jan 28  2018  ..
 -rwxr-xr-x  1 root root 13622832 Aug 13  2019  Image
 drwxr-xr-x  2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxr-xr-x  1 root root     6816 Jun 12  2018  boot.ini
 -rwxr-xr-x  1 root root      988 Jan  5  2017  boot.ini.default
 -rwxr-xr-x  1 root root      120 Jan  1  1980  display.bin
 -rwxr-xr-x  1 root root      256 Jan  1  1980  edid.bin
 -rwxr-xr-x  1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxr-xr-x  1 root root  7671719 Aug 13  2019  uInitrd
 
 /mnt# touch test
 /mnt# ls -al
 total 20862
 drwxr-xr-x  3 root root    16384 Sep 19 14:55  .
 drwxr-xr-x 21 root root     4096 Jan 28  2018  ..
 -rwxr-xr-x  1 root root 13622832 Aug 13  2019  Image
 drwxr-xr-x  2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxr-xr-x  1 root root     6816 Jun 12  2018  boot.ini
 -rwxr-xr-x  1 root root      988 Jan  5  2017  boot.ini.default
 -rwxr-xr-x  1 root root      120 Jan  1  1980  display.bin
 -rwxr-xr-x  1 root root      256 Jan  1  1980  edid.bin
 -rwxr-xr-x  1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxr-xr-x  1 root root        0 Sep 19 14:55  test
 -rwxr-xr-x  1 root root  7671719 Aug 13  2019  uInitrd
 
 # cd /media/boot/
 media/boot# ls -al
 total 20862
 drwxrwxrwx 3 root root    16384 Jan  1  1970  .
 drwxr-xr-x 3 root root     4096 Jun 12  2018  ..
 -rwxrwxrwx 1 root root 13622832 Aug 13  2019  Image
 drwxrwxrwx 2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxrwxrwx 1 root root     6816 Jun 12  2018  boot.ini
 -rwxrwxrwx 1 root root      988 Jan  5  2017  boot.ini.default
 -rwxrwxrwx 1 root root      120 Jan  1  1980  display.bin
 -rwxrwxrwx 1 root root      256 Jan  1  1980  edid.bin
 -rwxrwxrwx 1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxrwxrwx 1 root root  7671719 Aug 13  2019  uInitrd
 
 /media/boot# sync
 /media/boot# ls -al
 total 20862
 drwxrwxrwx 3 root root    16384 Jan  1  1970  .
 drwxr-xr-x 3 root root     4096 Jun 12  2018  ..
 -rwxrwxrwx 1 root root 13622832 Aug 13  2019  Image
 drwxrwxrwx 2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxrwxrwx 1 root root     6816 Jun 12  2018  boot.ini
 -rwxrwxrwx 1 root root      988 Jan  5  2017  boot.ini.default
 -rwxrwxrwx 1 root root      120 Jan  1  1980  display.bin
 -rwxrwxrwx 1 root root      256 Jan  1  1980  edid.bin
 -rwxrwxrwx 1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxrwxrwx 1 root root        0 Sep 19 14:55  test
 -rwxrwxrwx 1 root root  7671719 Aug 13  2019  uInitrd
 
 /media/boot# touch /mnt/t2
 :/media/boot# ls -al
 total 20862
 drwxrwxrwx 3 root root    16384 Jan  1  1970  .
 drwxr-xr-x 3 root root     4096 Jun 12  2018  ..
 -rwxrwxrwx 1 root root 13622832 Aug 13  2019  Image
 drwxrwxrwx 2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxrwxrwx 1 root root     6816 Jun 12  2018  boot.ini
 -rwxrwxrwx 1 root root      988 Jan  5  2017  boot.ini.default
 -rwxrwxrwx 1 root root      120 Jan  1  1980  display.bin
 -rwxrwxrwx 1 root root      256 Jan  1  1980  edid.bin
 -rwxrwxrwx 1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxrwxrwx 1 root root        0 Sep 19 14:55  test
 -rwxrwxrwx 1 root root  7671719 Aug 13  2019  uInitrd
 
 /media/boot# umount /mnt
 /media/boot# ls -al
 total 20862
 drwxrwxrwx 3 root root    16384 Jan  1  1970  .
 drwxr-xr-x 3 root root     4096 Jun 12  2018  ..
 -rwxrwxrwx 1 root root 13622832 Aug 13  2019  Image
 drwxrwxrwx 2 root root     2048 Sep 17 21:05 'System Volume Information'
 -rwxrwxrwx 1 root root     6816 Jun 12  2018  boot.ini
 -rwxrwxrwx 1 root root      988 Jan  5  2017  boot.ini.default
 -rwxrwxrwx 1 root root      120 Jan  1  1980  display.bin
 -rwxrwxrwx 1 root root      256 Jan  1  1980  edid.bin
 -rwxrwxrwx 1 root root    29959 Aug 13  2019  meson64_odroidc2.dtb
 -rwxrwxrwx 1 root root        0 Sep 19 14:56  t2
 -rwxrwxrwx 1 root root        0 Sep 19 14:55  test
 -rwxrwxrwx 1 root root  7671719 Aug 13  2019  uInitrd
 | 
 
다른 리눅스 노트북과는 연결이 되는데, 윈도우에서도 시도는 해봐야 할 듯.
[링크 : https://forum.odroid.com/viewtopic.php?t=32840]
 
+
멀티 가젯은 머지?
[링크 : https://ndb796.tistory.com/479]
 
+
21.09.26
msg  ㅋㅋㅋㅋ
[링크 : https://www.kernel.org/doc/html/latest/usb/mass-storage.html]