ballaswag / k1-discovery

Self discovered technical details for the Creality K1 printer
37 stars 3 forks source link

Compiling kernel module #4

Open voed opened 9 months ago

voed commented 9 months ago

Hi. I am trying to add ethernet support for my K1 via usb-ethernet dongle. Is it even possible to compile and load kernel module for it without recompiling the kernel? My dongle is r8152. Tried to compile it with ingenic kernel sources, but no luck. I assume this warnings is not normal:

WARNING: "usb_deregister" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_register_driver" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_enable_lpm" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_autopm_get_interface_async" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_driver_set_configuration" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_reset_device" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_submit_urb" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_autopm_put_interface_async" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_queue_reset_device" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_alloc_urb" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_free_urb" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_autopm_put_interface" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_autopm_get_interface" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_kill_urb" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
WARNING: "usb_control_msg" [/home/voed/r8152/realtek-r8152-linux/r8152.ko] undefined!
  CC      /home/voed/r8152/realtek-r8152-linux/r8152.mod.o
  LD [M]  /home/voed/r8152/realtek-r8152-linux/r8152.ko
sjqlwy commented 6 months ago

@voed you need to compile and insmod mii.ko too

Sekilsgs2 commented 1 month ago

guys how download from ingenic ftp ??