레이블이 #커널인 게시물을 표시합니다. 모든 게시물 표시
레이블이 #커널인 게시물을 표시합니다. 모든 게시물 표시

2019년 3월 25일 월요일

[Kernel] CONFIG_USB_CDC_PHONET

Kernel   CONFIG_USB_CDC_PHONET: CDC Phonet support


General informations
- The Linux kernel configuration item CONFIG_USB_CDC_PHONET:

* prompt: CDC Phonet support
* type: tristate
* depends on: CONFIG_PHONET
* defined in drivers/net/usb/Kconfig
* found in Linux kernels: 2.6.31–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: cdc-phonet

* Help text : Choose this option to support the Phonet interface to a Nokia cellular modem, as found on most Nokia handsets with the "PC suite" USB profile.

- https://cateee.net/lkddb/web-lkddb/USB_CDC_PHONET.html

[Kernel] usb 3G USB Dongle 사용을 위한 kernel configs

Kernel   #usb  3G USB Dongle bug fix


1. Bug  : "unable to enumerate USB device on port "
2. Resolve : enable below kernel configs
+ CONFIG_USB_ARCH_HAS_EHCI=y
+ CONFIG_USB_ACM=y
+ CONFIG_USB_SERIAL_QUALCOMM=y

[Kernel] CONFIG_USB_HWA_HCD

Kernel   - CONFIG_USB_HWA_HCD

Host Wire Adapter (HWA) driver (EXPERIMENTAL) found in drivers/usb/host/Kconfig

The configuration item CONFIG_USB_HWA_HCD:

* prompt: Host Wire Adapter (HWA) driver (EXPERIMENTAL)
* type: tristate
* depends on: ( CONFIG_EXPERIMENTAL ) && ( CONFIG_USB && CONFIG_UWB )
* defined in drivers/usb/host/Kconfig
* found in Linux kernels: 2.6.28–2.6.39, 3.0–3.6
* modules built: wusb-wa
* Help text
 - This driver enables you to connect Wireless USB devices to your system using a Host Wire Adaptor USB dongle. This is an UWB Radio Controller and WUSB Host Controller connected to your machine via USB (specified in WUSB1.0).

To compile this driver a module, choose M here: the module will be called "hwa-hc".

- https://cateee.net/lkddb/web-lkddb/USB_HWA_HCD.html

[Kenrel] CONFIG_USB_EHCI_HCD

Kenrel   - CONFIG_USB_EHCI_HCD

General informations

The Linux kernel configuration item CONFIG_USB_EHCI_HCD:

* prompt: EHCI HCD (USB 2.0) support
* type: tristate
* depends on: (none)
* defined in drivers/usb/host/Kconfig
* found in Linux kernels: 2.6.0–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: ehci-hcd
* Help text
 - The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware. If your USB host controller supports USB 2.0, you will likely want to configure this Host Controller Driver.

EHCI controllers are packaged with "companion" host controllers (OHCI or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports will connect to EHCI if the device is high speed, otherwise they connect to a companion controller. If you configure EHCI, you should probably configure the OHCI (for NEC and some other vendors) USB Host Controller Driver or UHCI (for Via motherboards) Host Controller Driver too.

You may want to read Documentation/usb/ehci.txt.

To compile this driver as a module, choose M here: the module will be called ehci-hcd.

[Kernel] CONFIG_USB_SERIAL_QUALCOMM

kernel - CONFIG_USB_SERIAL_QUALCOMM: USB Qualcomm Serial modem


General informations

The Linux kernel configuration item CONFIG_USB_SERIAL_QUALCOMM:

* prompt: USB Qualcomm Serial modem
* type: tristate
* depends on: (none)
* defined in drivers/usb/serial/Kconfig
* found in Linux kernels: 2.6.30–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: qcserial
* Help text
 - Say Y here if you have a Qualcomm USB modem device. These are usually wireless cellular modems.
To compile this driver as a module, choose M here: the module will be called qcserial.

- https://cateee.net/lkddb/web-lkddb/USB_SERIAL_QUALCOMM.html

[Kernel] CONFIG_USB_NET_CDC_NCM

Kernel - CONFIG_USB_NET_CDC_NCM: CDC NCM support


General informations
The Linux kernel configuration item CONFIG_USB_NET_CDC_NCM:

* prompt: CDC NCM support
* type: tristate
* depends on: CONFIG_USB_USBNET
* defined in drivers/net/usb/Kconfig
* found in Linux kernels: 2.6.38–2.6.39, 3.0–3.16, 3.17-rc+HEAD
modules built: cdc_ncm

Help text
* This driver provides support for CDC NCM (Network Control Model Device USB Class Specification). The CDC NCM specification is available from http://www.usb.org/.

Say "y" to link the driver statically, or "m" to build a dynamically linked module.

This driver should work with at least the following devices: * ST-Ericsson M700 LTE FDD/TDD Mobile Broadband Modem (ref. design) * ST-Ericsson M5730 HSPA+ Mobile Broadband Modem (reference design) * ST-Ericsson M570 HSPA+ Mobile Broadband Modem (reference design) * ST-Ericsson M343 HSPA Mobile Broadband Modem (reference design) * Ericsson F5521gw Mobile Broadband Module

[Kernel] System Reboot from device driver - programmable

System Reboot from device driver - programmable


#include <linux/reboot.h>
#ifdef CONFIG_MACH_RK3066_R306
        kernel_restart(LINUX_REBOOT_CMD_RESTART);
#endif

[ path : kernel/include/linux/reboot.h ]
 15 /*
 16  * Commands accepted by the _reboot() system call.
 17  *
 18  * RESTART     Restart system using default command and mode.
 19  * HALT        Stop OS and give system control to ROM monitor, if any.
 20  * CAD_ON      Ctrl-Alt-Del sequence causes RESTART command.
 21  * CAD_OFF     Ctrl-Alt-Del sequence sends SIGINT to init task.
 22  * POWER_OFF   Stop OS and remove all power from system, if possible.
 23  * RESTART2    Restart system using given command string.
 24  * SW_SUSPEND  Suspend system using software suspend if compiled in.
 25  * KEXEC       Restart system using a previously loaded Linux kernel
 26  */
 27
 28  #define  LINUX_REBOOT_CMD_RESTART    0x01234567
 29  #define  LINUX_REBOOT_CMD_HALT       0xCDEF0123
 30  #define  LINUX_REBOOT_CMD_CAD_ON     0x89ABCDEF
 31  #define  LINUX_REBOOT_CMD_CAD_OFF    0x00000000
 32  #define  LINUX_REBOOT_CMD_POWER_OFF  0x4321FEDC
 33  #define  LINUX_REBOOT_CMD_RESTART2   0xA1B2C3D4
 34  #define  LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2
 35  #define  LINUX_REBOOT_CMD_KEXEC      0x45584543

[ path : kernel/kernel/sys.c ]
 338 /**
 339  *  kernel_restart - reboot the system
 340  *  @cmd: pointer to buffer containing command to execute for restart
 341  *      or %NULL
 342  *
 343  *  Shutdown everything and perform a clean reboot.
 344  *  This is not safe to call in interrupt context.
 345  */
 346 void kernel_restart(char *cmd)
 347 {
 348     /*
 349     *  debug trace
 350     */
 351     restart_dbg("%s->%d->cmd=%s",__FUNCTION__,__LINE__,cmd);
 352
 353     kernel_restart_prepare(cmd);
 354     disable_nonboot_cpus();
 355     if (!cmd)
 356         printk(KERN_EMERG "Restarting system.\n");
 357     else
 358         printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd);
 359     kmsg_dump(KMSG_DUMP_RESTART);
 360     machine_restart(cmd);
 361 }
 362 EXPORT_SYMBOL_GPL(kernel_restart);

[Kernel] make menuconfig command error


Kernel / make menuconfig error 발생에 대한 처리사항


OS : ubuntun 12.04 LTS

Resolve 
$ sudo apt-get install lib32ncurses5-dev

Error Log
$ make menuconfig [enter]
scripts/kconfig/lxdialog/menubox.o: In function `do_scroll':
menubox.c:(.text+0x55): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
menubox.c:(.text+0x1a4): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
menubox.c:(.text+0x3a9): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
menubox.c:(.text+0x4b1): undefined reference to `wrefresh'
collect2: ld returned 1 exit status
make[1]: * [scripts/kconfig/mconf] Error 1
make: * [menuconfig] Error 2