2024年3月12日 星期二

LN920, Kernel 4.15.18

Ubuntu 18.04 LTS
original kernel: 4.15.0
target kernel: 4.15.18

option.c (using 5.15.133 to modify)
static int option_attach(struct usb_serial *serial)
{
        /* Retrieve device flags stored at probe. */
        device_flags = (unsigned long)usb_get_serial_data(serial);

        iface_desc = &serial->interface->cur_altsetting->desc;

        if (!iface_no_modem_control(device_flags, iface_desc->bInterfaceNumber))
                data->use_send_setup = 1;

        //if (device_flags & ZLP) 
        //      data->use_zlp = 1; 

        spin_lock_init(&data->susp_lock);

        usb_set_serial_data(serial, data);

        return 0;

}
1. 這樣應該就有/dev/ttyUSB*
2. LN920會被自已切到MBIM (PID:1061)
3. Modem manager或用mbim指令可以連上網

沒有留言:

張貼留言