Author Topic: Calling all Linux Kernel developers!  (Read 392103 times)

0 Members and 1 Guest are viewing this topic.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1065 on: February 23, 2014, 04:55:07 pm »
Hmm, I can't get USB either, using the new device tree kernel Vogtinator built today. And I cant get it with my own kernel either.

lsusb shows nothing.

How do you switch into host mode?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1066 on: February 23, 2014, 04:57:07 pm »
Connect any usb device and wait for the error message ("Can't communicate with ...")
What does "dmesg" show?
I'll look into that when I can boot linux on my calc as well and tested the new GPIO driver...

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1067 on: February 23, 2014, 04:58:47 pm »
There's no error message and nothing interesting in dmesg. It just doesn't work.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1068 on: February 23, 2014, 05:00:00 pm »
It SHOULD at least mention something like "ehci.0: registered" or whatever the usb controller is called in the DT.

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1069 on: February 23, 2014, 05:04:26 pm »
My typical procedere:
 - Switch on Calc
 - Install ndless
 - plug in USB-Cable
 - Press OK on the popup-window
 - start linuxloader

I did:
 - start my kernel+dtb -> no usb
 - start your kernel+dtb -> no usb
 - dig around in menuconfig -> make changes #1 #2 mentioned above
 - start my kernel+dtb -> still no usb -> lsusb shows nothing (no error etc.)

I'll redownload your kernel+dtb again and try again..

BTW: your xconfig-download gives me:
Forbidden
You don't have permission to access /nspire-linux-builds/xconfig-latest.tar.bz2 on this server.

--- preview spits out new posts:
dmesg | grep ehci
ehci_hcd: USB 2.0 'Enhanced' Host Contgroller (EHCI) Driver
ehci-platform: EHCI generic platform deriver

But on my kernel (!), will try yours now..

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1070 on: February 23, 2014, 05:05:53 pm »
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver

That's the only stuff having to do with usb.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1071 on: February 23, 2014, 05:06:41 pm »
Quote
BTW: your xconfig-download gives me:
Forbidden
You don't have permission to access /nspire-linux-builds/xconfig-latest.tar.bz2 on this server.
Oops, should be fixed now, sorry.

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1072 on: February 23, 2014, 05:24:22 pm »
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
I get the same + three additional ones (with the fresh downloaded kernel,initramfs,dtb):
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1073 on: February 24, 2014, 09:21:16 am »
Seems that ehci (specifically "ehci-platform") is not supported as devicetree node.
It should be possible to apply this patch though and change
Code: [Select]
                usb1: usb@B4000000 {
                        reg = <0xB4000000 0x1000>;
                        interrupts = <9>;
                        status = "disabled";
                };
to
Code: [Select]
                usb1: usb@B4000000 {
                        reg = <0xB4000000 0x1000>;
                        interrupts = <9>;
                        compatible = "ehci-platform";
                };
« Last Edit: February 24, 2014, 09:21:52 am by Vogtinator »

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1074 on: February 24, 2014, 01:55:29 pm »
Thanks Vogtinator, I will try that.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #1075 on: March 01, 2014, 07:33:47 am »
Sorry guys, still pushing the USB driver through to mainline for the device tree kernel.

Users who don't need cutting edge should probably stick to the old kernel for now.

The freezing at boot problem could be the result of turning on earlyprintk but selecting the wrong serial driver. Turning it off should solve the boot freezes.

Offline DJ Ryan Knutson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +1/-1
  • Programmer/music producer/DJ/gamer/furry.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1076 on: April 03, 2014, 06:22:45 pm »
I have Linux on my TI-Nspire CX (Non CAS), and it freezes at boot. Any way to get it to boot?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Calling all Linux Kernel developers!
« Reply #1077 on: April 04, 2014, 12:18:01 am »
Wait, how did you get Linux to install on a J or K hardware Nspire? O.O (since nLaunchy doesn't work on those) Or could the freeze be due to the calc hardware?

Offline DJ Ryan Knutson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +1/-1
  • Programmer/music producer/DJ/gamer/furry.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1078 on: April 04, 2014, 12:44:44 pm »

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1079 on: April 04, 2014, 08:23:29 pm »
The original method of loading Linux on the Nspire was using a loader, and the loader works fine with Ndless 3.6 (not sure if it works with the newer hardware revisions as I don't have those).
« Last Edit: April 04, 2014, 08:25:44 pm by Legimet »