Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20645 Discussions

How to enable USB with Linux 4.11 and DE2-115

Altera_Forum
Honored Contributor II
1,389 Views

I can boot Linux 4.11 with Altera DE2-115. I want to enable USB. How can I know where the problem is?  

 

I added a USB in QSys but I can't verify that it actually works. I also added USB in menuconfig to the kernel.  

 

I can see that it loads the driver but the USB doesn't appear in /dev when I check it.  

 

Is there a way to find what change to make? When I've done the change in QSys, shouldn't it appear in Quartus in the block design? 

Linux version 4.11.0-rc6-00200-gd5ff081 (developer@1604) (gcc version 6.2.0 (Sourcery CodeBench Lite7 bootconsole enabled early_console initialized at 0xe8001400 ERROR: Nios II DIV different for kernel and DTS Warning: icache size configuration mismatch (0x8000 vs 0x1000) of CONFIG_NIOS2_ICACHE_SIZE vs device te Warning: dcache size configuration mismatch (0x8000 vs 0x800) of CONFIG_NIOS2_DCACHE_SIZE vs device tre On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c0655c9c, node_mem_map c0675ce0 Normal zone: 256 pages used for memmap Normal zone: 0 pages reserved Normal zone: 32768 pages, LIFO batch:7 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: 0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: debug console=ttyAL0,115200 PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Sorting __ex_table... Memory: 123300K/131072K available (3770K kernel code, 108K rwdata, 792K rodata, 1812K init, 113K bss, ) NR_IRQS:64 nr_irqs:64 0 clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=50000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) devtmpfs: initialized cpu cpu0: Error -2 creating of_node link clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns futex hash table entries: 256 (order: -1, 3072 bytes) NET: Registered protocol family 16 random: fast init done usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb FPGA manager framework clocksource: Switched to clocksource nios2-clksrc NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. workingset: timestamp_bits=30 max_order=15 bucket_order=0 jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered random: crng init done 8001400.serial: ttyAL0 at MMIO 0x8001400 (irq = 3, base_baud = 3125000) is a Altera UART console enabled console enabled bootconsole disabled bootconsole disabled 8001440.serial: ttyJ0 at MMIO 0x8001440 (irq = 2, base_baud = 0) is a Altera JTAG UART loop: module loaded libphy: Fixed MDIO Bus: probed sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman usbcore: registered new interface driver usbhid usbhid: USB HID core driver NET: Registered protocol family 17 Freeing unused kernel memory: 1812K This architecture does not have kernel memory protection. Starting logging: OK Initializing random number generator... done. Starting network: OK  

 

https://alteraforum.com/forum/attachment.php?attachmentid=13549&stc=1
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
325 Views

Hello, 

 

Your Qsys image is not clear. Could you send another image? 

 

If you don't mind, can you let me know use of USB in your application. 

 

Regards, 

Bhaumik
0 Kudos
Altera_Forum
Honored Contributor II
325 Views

 

--- Quote Start ---  

Hello, 

 

Your Qsys image is not clear. Could you send another image? 

 

If you don't mind, can you let me know use of USB in your application. 

 

Regards, 

Bhaumik 

--- Quote End ---  

 

 

I use Linux 4.11 from altera-opensource in github. Linux 4.11 starts and I want to just make the USB work and use persistent storage with the operating system.  

 

I also tried SD card but that did not work either. 

 

The Qsys design compiles cleanly and the programmer loads the system and Linux 4.11 starts cleanly but there is not working USB.  

 

I thought that I could just run lusb and the usb would appear.  

 

What am I supposed do to? You may find a clear image of my Qsys from this link http://i.imgur.com/52enb9b.png 

 

https://alteraforum.com/forum/attachment.php?attachmentid=13557&stc=1 https://alteraforum.com/forum/attachment.php?attachmentid=13558&stc=1
0 Kudos
Reply