Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

de0-nano-soc USB OTG Keyboard and other

Altera_Forum
Honored Contributor II
1,759 Views

Hello! 

I have a de0-nano-soc, according to the manual, everything worked fine, but I need to try to connect the keyboard or mouse to the USB OTG. 

What was done for this: 

1) in soc_system.dts - added in usb1: 

status = "okay" 

dr_mode = "host" 

2) in settings kernel: 

- Device Drivers-> 

[*]USB Support 

- Device Drivers-> 

[*]USB Support-> 

[*] Support for Host-side USB 

- Device Drivers-> 

[*]USB Support-> 

[*] USB Announce new devices 

- device drivers-> 

[*]usb support-> 

[*] usb attached scsi  

- Device Drivers-> 

[*]USB Support-> 

[*] EHCI HCD (USB2.0) support 

- Device Drivers-> 

[*]USB Support-> 

[*] EHCI HCD (USB2.0) support-> 

[*] Root Hub Transaction Translators 

- Device Drivers-> 

[*]USB Support-> 

[*] EHCI HCD (USB2.0) support-> 

[*] Improved Transaction Translator scheduling 

 

- Device Drivers-> 

[*]USB Support-> 

[*] USB Mass Storage support 

 

- Device Drivers-> 

[*]USB Support-> 

[*] DesignWare USB2 DRD Core Support (Host only mode) 

 

- Device Drivers-> 

[*]USB Support-> 

[*] USB Physical Layer Drivers 

- Device Drivers-> 

[*]USB Support-> 

[*] USB Physical Layer Drivers-> 

[*] NOP USB Transceiver Driver 

 

- Device Drivers-> 

[*] SCSI Device Support 

- Device Drivers-> 

[*] legacy /proc/scsi/ support 

- Device Drivers-> 

[*] SCSI disk support 

 

 

But I could not get input from the keyboard. 

Here's what it produces when connected: 

usb 1-1: new low-speed USB device number 4 using dwc2 

usb 1-1: New USB device found, idVendor=046a, idProduct=0001 

usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 

input: HID 046a:0001 as /devices/platform/sopc@0/ffb40000.usb/usb1/1-1/1-1:1.0/0003:046A:0001.0003/input/input2 

hid-generic 0003:046A:0001.0003: input,hidraw0: USB HID v1.11 Keyboard [HID 046a:0001] on usb-ffb40000.usb-1/input0
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
608 Views

Now I went another way. Loaded the ready Linux LXDE for de0-nano-soc, launched X11.  

When I connect the keyboard, I see that it is defined, but the text is also not entered. But I see that, the input is with the process: 

cat /dev/input/event1 

I understand that he uses the keyboard from the computer itself, which is connected to the SSH ttyS0. 

How do I now start the input with event1?
0 Kudos
Altera_Forum
Honored Contributor II
608 Views

showkey --scancodes  

nice worked. 

How to connect to X11?
0 Kudos
Reply