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

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #405 on: November 30, 2012, 01:21:07 am »
Somewhere I read it hasn't even got an USB 2.0 controller.
But why is it an EHCI then? That doesn't make any sense..
I hope it's a real EHCI, the whole thing would run much faster.

It is indeed a USB 2.0 controller so it does have a EHCI interface.

Unfortunately, there's a weird bug/problem (possibly to do with keeping queue heads in DRAM instead of the faster SRAM) somewhere that prevents all high-speed devices from working so the workaround right now is to force all devices to only connect at full speed.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Calling all Linux Kernel developers!
« Reply #406 on: November 30, 2012, 04:46:14 am »
Is there any tut? I would be vey interessed by testing that! :p

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #407 on: November 30, 2012, 05:37:37 am »
Which calculator?
For CX I wrote some kind of tutorial in this thread.
If you have an older (Click-/Touchpad) nspire, you have to clone, config and build a kernel yourself.

BTW: Tangrs, you double-posted :-P
And my name is not "vloginator" xD

I'll send you a new patch (again, last time mail didn't work..) later.
« Last Edit: November 30, 2012, 05:39:12 am by Vogtinator »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #408 on: November 30, 2012, 08:26:53 am »
Which calculator?
For CX I wrote some kind of tutorial in this thread.
If you have an older (Click-/Touchpad) nspire, you have to clone, config and build a kernel yourself.

BTW: Tangrs, you double-posted :-P
And my name is not "vloginator" xD

I'll send you a new patch (again, last time mail didn't work..) later.

Oh my apologies on both counts - I was a little too excited :P

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #409 on: November 30, 2012, 08:31:56 am »
What are the differences between the Touchpad, the Clickpad and the CX?
Are there also major differences between these and their CAS models?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #410 on: November 30, 2012, 08:37:42 am »
Quote
What are the differences between the Touchpad, the Clickpad and the CX?
On the one side, Clickpad and Touchpad calculators, which are pretty much similar, save for the keyboard and its handling.
On the other side, the CX, with more RAM, more Flash, color screen, a newer USB controller, different interrupt controllers, etc. The CM-C is, in principle, a watered-down CX (half the amount of RAM) with a chinese keyboard, but little else different, AFAWCT.
You can find more detail about the hardware differences on Hackspire (e.g. memory-mapped I/O page) :)

Quote
Are there also major differences between these and their CAS models?
Nope. The non-CAS Nspires can run the CAS OS just fine (well, with some persistence: on some calculators, it can be necessary to make dozens of attempts to yield a success, while it succeeds pretty quickly on others), as showed by the unreleased RunOS and the released OSLauncher.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #411 on: November 30, 2012, 08:52:55 am »
Quote
On the other side, the CX, with more RAM, more Flash, color screen, a newer USB controller, different interrupt controllers, etc.
Same display controller with just an other pixel format (4bpp iirc) too?

Edit:
I just saw the linux kernel option "Kernel Execute In-Place from ROM".
At the moment linuxloader2 copies the complete kernel image to ram.
Wouldn't it be possible to use that option (more free ram)?

Edit2:
I just read
Quote
Notes: This memory does not support "Execute In Place" (XIP).
Is this still valid for the CX models?
« Last Edit: November 30, 2012, 09:17:10 am by Vogtinator »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #412 on: November 30, 2012, 09:13:47 am »
Yeah, by default, the extremely crappy screen of the Clickpad & Touchpad is used for 4 bpp screen, though the driver supports 8 bpp (used by e.g. nDOOM, and some nSDL-based games). I don't remember whether Clickpad/Touchpad and CX have the same display driver.

Quote
I just saw the linux kernel option "Kernel Execute In-Place from ROM".
At the moment linuxloader2 copies the complete kernel image to ram.
Wouldn't it be possible to use that option (more free ram)?
Nope, it wouldn't be possible: XIP requires random access, but NAND Flash can only be read page by page. NOR Flash would do the job: it's precisely used for XIP in TI-Z80 & TI-68k calcs (and also for the boot1 in Nspire Clickpad / Touchpad calcs).
Even if it were possible, execution from Flash would be slower than execution from the main RAM, due to narrower (at the very least, not wider) data bus.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #413 on: November 30, 2012, 12:49:27 pm »
I think someone downvoted you for
Quote
the extremely crappy screen of the Clickpad & Touchpad
xD

The framebuffer does already work, I don't have to send you a patch, tangrs..
I don't know why it does now and not with kernel 3.7.0-rc2, I'll read the commits and find out.

Edit: The framebuffer works with startx, but not with directfb.. WTF.
« Last Edit: November 30, 2012, 01:01:04 pm by Vogtinator »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #414 on: November 30, 2012, 01:28:41 pm »
Yeah, looks like someone is having fun downvoting posts, no matter they contain technical content relevant to the discussion :)

Sorting out the nspire-related patch needles in the Linux kernel patch haystack is possible through directory filtering, arch/arm/mach-nspire being the most interesting one.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #415 on: November 30, 2012, 03:27:27 pm »
I just mailed the (working and tested) patch to tangrs.

I noticed, after the screen goes off, it starts to flicker when you activate it again. Could this be a refresh rate problem?
I gonna try it.

The next thing the kernel needs is support for GPIOs.
When this works, i²c for the touchpad will be extremely simple (there's an i²c gpio driver already).
Are there any differences regarding i²c, gpio ports for i²c and the touchpad between the models?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Calling all Linux Kernel developers!
« Reply #416 on: November 30, 2012, 07:08:24 pm »
Congratz :)

Just a little question, maybe it will sound silly to those who know ^^ :

The log says :
"Processor       : ARM926EJ-S rev 4 (v5l)
BogoMIPS        : 59.39"

Looking that proc reference I found this : http://pastebin.com/dFSsVaBe, which reads a BogoMIPS of 103.68.
How can it be different if it'as actually the exact same processor ?
« Last Edit: November 30, 2012, 07:09:14 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Calling all Linux Kernel developers!
« Reply #417 on: November 30, 2012, 07:52:32 pm »
Not same clock speed I guess... Is overclocking increasing the bogoMIPS?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #418 on: November 30, 2012, 08:08:50 pm »
Congratz :)

Just a little question, maybe it will sound silly to those who know ^^ :

The log says :
"Processor       : ARM926EJ-S rev 4 (v5l)
BogoMIPS        : 59.39"

Looking that proc reference I found this : http://pastebin.com/dFSsVaBe, which reads a BogoMIPS of 103.68.
How can it be different if it'as actually the exact same processor ?

Different clock speeds. You can see it will increase if you overclock with Nover before booting the kernel.

Is there any tut? I would be vey interessed by testing that! :p

I'm planning to set up nightly builds sometime so people can test the latest and greatest (and to see if I've accidentally broken something).

In other news, LCD support on Touchpads is now working :)
« Last Edit: November 30, 2012, 10:37:26 pm by tangrs »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Calling all Linux Kernel developers!
« Reply #419 on: December 01, 2012, 06:45:18 am »
Ah yeah, obviously, thanks :)

And congratz for the touchpad LCD :)
(Also, Clickpad coming soon, as ou said it should actually work ?)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation