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

0 Members and 3 Guests are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #540 on: January 12, 2013, 05:03:25 am »
If you're using an initrd (which needs decompression as well), it doesn't make any difference.
I'd say XZ, but do we really have to discuss about 0.5 MB (the kernel won't be much larger in the future)?

Quote
lso, in other news, I2C is working on all touchpad platforms. Now we just need a driver for the touchpad. Just a heads up, since we're using the I2C bus now, we should define a I2C driver instead of a platform driver.
Can I do it? :)
I already have most of the code as you already know
« Last Edit: January 12, 2013, 05:15: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 #541 on: January 12, 2013, 05:18:13 am »
If you're using an initrd (which needs decompression as well), it doesn't make any difference.
I'd say XZ, but do we really have to discuss about 0.5 MB (the kernel won't be much larger in the future)?

Quote
lso, in other news, I2C is working on all touchpad platforms. Now we just need a driver for the touchpad. Just a heads up, since we're using the I2C bus now, we should define a I2C driver instead of a platform driver.
Can I do it? :)

Sure XD.

I'll get cracking on the hardest device then - the NAND. :P

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #542 on: January 12, 2013, 05:40:16 am »
Quote
I'll get cracking on the hardest device then - the NAND.
Yay! But we don't have any filesystem driver for it..
But the driver shouldn't be TOO hard, the emulator source should be enough, maybe there's already a driver for our chip available?

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #543 on: January 12, 2013, 05:45:55 am »
Quote
I'll get cracking on the hardest device then - the NAND.
Yay! But we don't have any filesystem driver for it..
But the driver shouldn't be TOO hard, the emulator source should be enough, maybe there's already a driver for our chip available?

I'm pretty sure there isn't one for the CX at least.

The CX one is hard because it uses some weird scheme of embedding NAND commands into the address then performing a write D: Not sure about the classic models though.

The filesystem, we'll leave til later to solve. Perhaps the recently released nLaunch could help us here?

Edit: I've seen some interesting code hidden in the OS that formats the flash.

Maybe there's some sort of data structure that we could modify to trick the OS into believing we have less NAND than we actually have and have it format the filesystem to only utilize that much. Under Linux, we could partition the NAND up and only use the portion that the Nspire OS doesn't use.
« Last Edit: January 12, 2013, 05:55:11 am by tangrs »

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 #544 on: January 12, 2013, 07:33:05 am »
Quote
The filesystem, we'll leave til later to solve. Perhaps the recently released nLaunch could help us here?
Not nLaunch itself, but...

Quote
Edit: I've seen some interesting code hidden in the OS that formats the flash.

Maybe there's some sort of data structure that we could modify to trick the OS into believing we have less NAND than we actually have and have it format the filesystem to only utilize that much. Under Linux, we could partition the NAND up and only use the portion that the Nspire OS doesn't use.
... in the community, we've known for nearly three years the boot2 1.4.1571 for Clickpad/Touchpad contains tons of debugging and testing code for Nucleus and its elements, especially filesystem operations :)
The boot2 3.1.131 is smaller, and presumably doesn't contain as much.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #545 on: January 12, 2013, 07:34:26 am »
Quote
The filesystem, we'll leave til later to solve. Perhaps the recently released nLaunch could help us here?
Not nLaunch itself, but...

Quote
Edit: I've seen some interesting code hidden in the OS that formats the flash.

Maybe there's some sort of data structure that we could modify to trick the OS into believing we have less NAND than we actually have and have it format the filesystem to only utilize that much. Under Linux, we could partition the NAND up and only use the portion that the Nspire OS doesn't use.
... in the community, we've known for nearly three years the boot2 1.4.1571 for Clickpad/Touchpad contains tons of debugging and testing code for Nucleus and its elements, especially filesystem operations :)
The boot2 3.1.131 is smaller, and presumably doesn't contain as much.

Reckon it's possible to utilize a few to do some dirty, partitioning work for us? :P

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #546 on: January 12, 2013, 01:32:41 pm »
Partitioning would be great, but maybe the size of the flash is hardcoded?

BTW: Buildroot builds are working now.
I downloaded one, ran "tar -xvf xconfig.tar.bz2 -C ." and was surprised, MY PWD WAS "/"  :banghead:
Yeah, I've overridden my opensuse installation. Now an arm system was (not) running on my laptop.
After 5 hours playing with backups, I now have a booting system without audio   :(
Why does this *** tar overwrite my files?

The touchpad works, but it's lagging a bit and too slow, I'll continue with my work after my system is fine again  :(
« Last Edit: January 12, 2013, 02:01:18 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 #547 on: January 12, 2013, 02:37:20 pm »
Quote
BTW: Buildroot builds are working now.
Great, thanks ;)
(to readers: he's talking about http://tiplanet.org/nspire-linux-builds/ )

Quote
I downloaded one, ran "tar -xvf xconfig.tar.bz2 -C ." and was surprised, MY PWD WAS "/"
Ouch. In this case, you've unleashed a world of hurt onto yourself, indeed :(
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 #548 on: January 12, 2013, 04:34:42 pm »
Look what I found out: http://www.linux-mtd.infradead.org/nand-data/nanddata.html
The NAND is already actually supported by linux!
I was a bit frustrated because of this silly synaptics_i2c polling too slow, so I did a bit of research.

Edit: After reboot in linux the touchpad doesn't work anymore with nucleus, you have to reboot. But it doesn't boot anymore and you have to run NAND-Tests everytime you reboot in linux. I'll try disabling access with 1<<7 to 0x900B0018

Edit2: The TOUCHPAD WORKS! I'll upload a video later/tomorrow
« Last Edit: January 12, 2013, 05:36:18 pm by Vogtinator »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #549 on: January 12, 2013, 06:02:34 pm »
Vogtinator, you have royally screwed your desktop. You extracted an ARM linux install on top of your x86 linux root. You're lucky that it still boots, likely thanks to various configuration differences between the two.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #550 on: January 12, 2013, 06:08:27 pm »
Look what I found out: http://www.linux-mtd.infradead.org/nand-data/nanddata.html
The NAND is already actually supported by linux!
I was a bit frustrated because of this silly synaptics_i2c polling too slow, so I did a bit of research.

Edit: After reboot in linux the touchpad doesn't work anymore with nucleus, you have to reboot. But it doesn't boot anymore and you have to run NAND-Tests everytime you reboot in linux. I'll try disabling access with 1<<7 to 0x900B0018

Edit2: The TOUCHPAD WORKS! I'll upload a video later/tomorrow

The NAND chip itself is supported and always has been. But the NAND controller isn't :(

Nice, I look forward to seeing it XD

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #551 on: January 12, 2013, 06:14:00 pm »
Quote
Vogtinator, you have royally screwed your desktop. You extracted an ARM linux install on top of your x86 linux root. You're lucky that it still boots, likely thanks to various configuration differences between the two.
Nope, it didn't boot. Had to restore the files from another laptop:
"export list=`tar -tf xconfig.tar.bz2`; for i in $list; do echo $i; rm /mnt/$i; rsync -lptgoDvzP /media/$i /mnt/$i; done;"

Quote
The NAND chip itself is supported and always has been. But the NAND controller isn't :(
Is it the same on all nspires?

Quote
Nice, I look forward to seeing it
Here you go:

« Last Edit: January 12, 2013, 06:15:31 pm by Vogtinator »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #552 on: January 12, 2013, 06:19:47 pm »
Quote
Vogtinator, you have royally screwed your desktop. You extracted an ARM linux install on top of your x86 linux root. You're lucky that it still boots, likely thanks to various configuration differences between the two.
Nope, it didn't boot. Had to restore the files from another laptop:
"export list=`tar -tf xconfig.tar.bz2`; for i in $list; do echo $i; rm /mnt/$i; rsync -lptgoDvzP /media/$i /mnt/$i; done;"

Quote
The NAND chip itself is supported and always has been. But the NAND controller isn't :(
Is it the same on all nspires?

I haven't looked at the classic nspires in depth yet but I'm pretty sure there isn't a existing driver for the CX.

Though, some one did ask about it in a mailing list in 2008 and probably succeeded in writing one. Think it's worth asking if he has any source code available?

Quote
Quote
Nice, I look forward to seeing it
Here you go:



That is really awesome!

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #553 on: January 12, 2013, 06:23:54 pm »
Quote
Though, some one did ask about it in a mailing list in 2008 and probably succeeded in writing one.
I read:
Code: [Select]
It sounds like it isn't 'NAND' at all, as far as you're concerned. It's
a disk drive of some form. Usually these things present themselves as
IDE, so you'd use the IDE driver. If it has its own 'special' interface
then you probably want a dedicated block driver for it; nothing to do
with the MTD subsystem at all.
WTF? Flash controller with IDE interface for ARM SoCs?

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #554 on: January 12, 2013, 06:24:34 pm »
Quote
Though, some one did ask about it in a mailing list in 2008 and probably succeeded in writing one.
I read:
Code: [Select]
It sounds like it isn't 'NAND' at all, as far as you're concerned. It's
a disk drive of some form. Usually these things present themselves as
IDE, so you'd use the IDE driver. If it has its own 'special' interface
then you probably want a dedicated block driver for it; nothing to do
with the MTD subsystem at all.
WTF? Flash controller with IDE interface for ARM SoCs?

I think the person who replied didn't know what he was talking about.