หน้า: 1 ... 3 4 [5] 6 7 ... 10
 41 
 เมื่อ: กุมภาพันธ์ 22, 2021, 03:22:11 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
ทำการ sync service
sudo systemctl --system daemon-reload

ทำการเปิด service ให้ทำงานตั้งแต่ boot
sudo systemctl enable usbipd.service

ทดลอง run service
sudo systemctl start usbipd.service

กรณีต้องการยกเลิก service ใช้คำสั่ง ขณะ boot
sudo systemctl disable usbipd.service

 42 
 เมื่อ: กุมภาพันธ์ 22, 2021, 03:19:59 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
จากนั้นทำตาม link ด้านบนเพื่อให้ usbip ทำงานเป็น service ตั้งแต่ boot เครื่อง
- load module ด้วยการปรับแต่ง file /etc/modules
  sudo echo "usbip_host" >> /etc/modules

- สร้าง service file
  sudo nano -w /lib/systemd/system/usbipd.service

- edit ค่าตามข้อมูลได้ล่าง

[Unit]
Description=USB-IP Binding
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/usbipd
ExecStartPost=/bin/sh -c "/usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6001#' | cut '-d#' -f1)"
ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6001#' | cut '-d#' -f1); killall usbipd"
[Install]
WantedBy=multi-user.target

- แก้ไขค่า usbid ให้ตรงกับอุปกรณ์ที่เราต้องการให้ share อัตโนมัติ

 43 
 เมื่อ: กุมภาพันธ์ 22, 2021, 03:16:28 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
มาเริ่มโพย guide
- ติดตั้งลงบน SBC ด้วยคำสั่ง  sudo apt install usbip
- ทดสอบติดตั้ง module ด้วยคำสั่ง sudo modprobe usbip_host
- run usbipd -D เพื่อทำงานเป็น daemon
- ตรวจสอบอุปกรณ์ที่ติดตั้งบน SBC ด้วยคำสั่ง usbip list -l
- share อุปกรณ์ usb ด้วยคำสั่ง usbip bind -b <busid>
- ยกเลิกการ share ด้วยคำสั่ง usbip unbind -b <busid>

 44 
 เมื่อ: กุมภาพันธ์ 22, 2021, 03:11:45 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
Step หลัง  ทำ Web GUI มาควบคุมแทน CMD

 45 
 เมื่อ: กุมภาพันธ์ 22, 2021, 03:08:46 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  เข้า step แรก  ทำให้เป็น service เสีย  ไม่ต้องเสียเวลานั่งเขียน config มีบุคคลใจดีทดสอบให้ก่อนแล้ว  ตาม link นี้ https://www.davecorder.org/windows-10/

 46 
 เมื่อ: กุมภาพันธ์ 22, 2021, 12:00:16 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  ตั้งแต่ Raspbian update version ใหม่หลังปี 2016 จะปิดการใช้งาน ssh service ต้องเข้าไป enable ผ่าน gui หรือ cmd raspi-config  โดยการสร้าง blank file ที่มีเฉพาะชื่อ ssh ลงไปที่ boot partition ของ raspbian os (boot partition ของ raspbian เป็น partition แบบ fat สามารถเปิดด้วย windows ได้)

 47 
 เมื่อ: ตุลาคม 14, 2020, 11:13:29 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
Update ปัญหาการใช้งาน Link Aggregate ให้ปรับค่า MII Interval จาก default 100 -> 300 ms  เฉพาะ ethernet ส่วน sfp แนะนำใช้ mode balance-xor แล้วปรับเฉพาะค่า LACP Rate จาก 30s -> 1s

 48 
 เมื่อ: สิงหาคม 17, 2020, 03:05:04 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  แก้ไขเพิ่มเติม file /usr/share/X11/xorg.conf.d/20-armsoc.conf
Section "Device"
        Identifier      "ARMSOC"
        Driver          "armsoc"
        Option  "DRI2"  "true"
EndSection
        Section "Screen"
        Identifier   "Default Screen"
        Device       "ARMSOC"
        DefaultDepth 24
EndSection

 49 
 เมื่อ: สิงหาคม 09, 2020, 07:59:14 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  หลังจากลง driver ที่ใช้งาน opencl ได้แล้ว  ถึงเวลาหาคำตอบว่าประสิทธิภาพการใช้งานจะแตกต่างจากการไม่ใช้ GPU ช่วยสักเพียงไหน  อ้างอิง https://stackoverflow.com/questions/7376616/pyopencl-benchmark-questions

  ติดตั้ง sudo apt-install pyopencl
  run python benckmark-all.py

  สังเกตตัวเลขเวลา 3 ค่า
    - Execution time of test without OpenCL : 0.37642 sec
    - Execution time of test (GPU Mali T860) : 0.000129688 sec
    - Execution time of test (CPU RK3399, A53 4 cores, A72 2 Cores) : 0.0015295
  ประสิทธิภาพ GPU ทำงานเร็วกว่าราว 8 เท่า (0.000129688 / 0.0015295)

 50 
 เมื่อ: สิงหาคม 09, 2020, 07:44:40 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  ถ้าทุกอย่างผ่านจะสามารถใช้ glmark2-es2 ทดสอบ  openGL ได้

หน้า: 1 ... 3 4 [5] 6 7 ... 10