gschorcht / i2c-ch341-usb

A Linux kernel driver for ch341 emulating the I2C bus
106 stars 37 forks source link

dmesg can't detect new i2c dev #10

Open CHANGEORT opened 2 years ago

CHANGEORT commented 2 years ago

[ 3531.638271] usbcore: registered new interface driver i2c-ch341-usb root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# lsmod Module Size Used by i2c_ch341_usb 16384 0 ch341 16384 0 ch34x_pis 20480 0 fuse 126976 5 nft_counter 16384 2 nft_chain_nat 16384 4 xt_MASQUERADE 16384 2 nf_nat 49152 2 xt_MASQUERADE,nft_chain_nat nf_conntrack 139264 2 xt_MASQUERADE,nf_nat nf_defrag_ipv6 20480 1 nf_conntrack nf_defrag_ipv4 16384 1 nf_conntrack nft_compat 20480 2 nf_tables 196608 9 nft_compat,nft_chain_nat,nft_counter nfnetlink 16384 2 nft_compat,nf_tables 8021q 32768 0 garp 16384 1 8021q stp 16384 1 garp llc 16384 2 garp,stp spidev 20480 0 uvcvideo 98304 0 vc4 270336 2 cec 49152 1 vc4 drm_kms_helper 241664 3 vc4 brcmfmac 327680 0 brcmutil 20480 1 brcmfmac bcm2835_v4l2 40960 0 bcm2835_codec 40960 0 bcm2835_isp 32768 0 sha256_generic 16384 0 v3d 73728 2 bcm2835_mmal_vchiq 32768 3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2 v4l2_mem2mem 36864 1 bcm2835_codec videobuf2_vmalloc 16384 2 uvcvideo,bcm2835_v4l2 snd_soc_core 225280 1 vc4 videobuf2_dma_contig 20480 2 bcm2835_isp,bcm2835_codec videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc gpu_sched 45056 1 v3d rpivid_mem 16384 0 videobuf2_v4l2 32768 5 bcm2835_isp,uvcvideo,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem cfg80211 761856 1 brcmfmac videobuf2_common 61440 6 bcm2835_isp,uvcvideo,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd_compress 20480 1 snd_soc_core rfkill 32768 5 cfg80211 drm 520192 8 v3d,vc4,gpu_sched,drm_kms_helper snd_pcm_dmaengine 16384 1 snd_soc_core raspberrypi_hwmon 16384 0 snd_bcm2835 24576 4 videodev 249856 7 bcm2835_isp,uvcvideo,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 drm_panel_orientation_quirks 16384 1 drm spi_bcm2835 24576 0 snd_pcm 110592 4 snd_compress,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core i2c_bcm2835 16384 0 mc 45056 7 bcm2835_isp,uvcvideo,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2 snd_timer 32768 1 snd_pcm vc_sm_cma 32768 2 bcm2835_isp,bcm2835_mmal_vchiq snd 77824 13 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm syscopyarea 16384 1 drm_kms_helper sysfillrect 16384 1 drm_kms_helper usbserial 36864 1 ch341 sysimgblt 16384 1 drm_kms_helper fb_sys_fops 16384 1 drm_kms_helper backlight 20480 1 drm nvmem_rmem 16384 0 uio_pdrv_genirq 16384 0 uio 20480 1 uio_pdrv_genirq i2c_dev 20480 0 ip_tables 28672 0 x_tables 32768 3 ip_tables,nft_compat,xt_MASQUERADE ipv6 495616 42 root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# lsmod | grep ch341 i2c_ch341_usb 16384 0 ch341 16384 0 usbserial 36864 1 ch341 root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# rmmod ch341 root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# lsmod | grep ch341 i2c_ch341_usb 16384 0 root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# modprobe i2c-dev root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# dmesg | grep i2c-ch341-usb [ 3531.638271] usbcore: registered new interface driver i2c-ch341-usb root@yahboom4wd:/home/pi/gschorcht/i2c-ch341-usb# lsmod | grep ch34 i2c_ch341_usb 16384 0 ch34x_pis 20480 0 how can i do?