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

0 Members and 2 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 #525 on: December 21, 2012, 10:19:45 am »
Quote
Edit: everything is fine. I tried it without partition table, now running.
I think I was too tired yesterday...
I think you forgot to change your bootloader script.
Without partition table you can't use /dev/sda (instead use /dev/sda1)

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #526 on: December 21, 2012, 11:37:09 am »
I changed nothing with my bootscript...

'No partition table' means when formatting the stick, yuo can chose GUID, MBR, Apple, and nothing. I used nothing.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #527 on: December 21, 2012, 12:30:59 pm »
Quote
I changed nothing with my bootscript...
Exactly.
If you create a partition, you have to use /dev/sda1, without /dev/sda.

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #528 on: December 21, 2012, 12:56:16 pm »
Ahhh I understand. :D

And how can I tell linux to use a partition as swap, maybe adding 'swap=/dev/sda2' to cmdline options in the bootscript?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #529 on: December 21, 2012, 12:58:53 pm »
No, modify /etc/fstab.
Add
Code: [Select]
/dev/sda2 swap swap defaults 0 0You have to format it before:
Code: [Select]
mkswap /dev/sda2
If you're not executing this on your calc, be careful with mkswap!

Edit: http://ourl.ca/17509

BTW: Tangrs, did you get my pull request on github?
« Last Edit: December 21, 2012, 05:03:49 pm by Vogtinator »

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #530 on: December 23, 2012, 05:33:57 pm »
Someone should update teh FAQ. We can run X now...
« Last Edit: December 23, 2012, 05:34:05 pm by InspiredByCas »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #531 on: December 23, 2012, 05:39:14 pm »
Quote
Someone should update teh FAQ. We can run X now...
At the moment the kernel doesn't even boot for me.
Could you try to boot http://tiplanet.org/nspire-linux-builds/zImage_defconfig_20121223_1540.tns?
Tangrs updated to linux 3.8 :(

Quote
Can this run like KDE, Gnome, Xfce, dwm, Fluxbox, [insert favourite window manager]?
Yes but it'll probably suck. Try not to forget that this is a 120MHz device with 64MB of RAM.
Xfce, dwm, Fluxbox and LXDE should work painless.
The only real restriction is the screen, it's way too small for pcmanfm.
« Last Edit: December 23, 2012, 06:00:39 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 #532 on: January 08, 2013, 12:41:03 am »
Surprise!



;)

Edit: Source code for OTG is at https://github.com/tangrs/linux/tree/otg

It is in a separate tree because switching to a OTG driver breaks host USB on CX.
« Last Edit: January 08, 2013, 04:39:11 am by tangrs »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Calling all Linux Kernel developers!
« Reply #533 on: January 09, 2013, 01:56:09 am »
Great work tangrs :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #534 on: January 11, 2013, 07:12:00 am »
Thanks to Fabian's work on the GPIO, I got i2c working pretty quickly today.



Basically this means that Touchpad support for classic Nspires will be coming very soon. The CX uses a different interface for accessing the Touchpad but support for that isn't far behind.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #535 on: January 11, 2013, 01:23:01 pm »
Great!
I hope I have some time this weekend to continue working on a touchpad driver, was pretty busy last week.
Serial debugging is really good for that, the screen is way to small to read tons of lines of debugging messages..

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #536 on: January 12, 2013, 12:27:04 am »
Great!
I hope I have some time this weekend to continue working on a touchpad driver, was pretty busy last week.
Serial debugging is really good for that, the screen is way to small to read tons of lines of debugging messages..

I finally integrated OTG into the main branch so you can potentially use it for USB serial debugging. If you're interested in using it, compile the latest kernel and add cx_use_otg to your command line parameters.

Also, 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.
« Last Edit: January 12, 2013, 12:30:54 am by tangrs »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #537 on: January 12, 2013, 03:55:24 am »
Hey everyone.

Lionel and I are having a little discussion about how the kernel should be compressed. The two methods we're looking at are: XZ (slower decompression but smaller kernel) and gzip (faster decompression but larger kernel).

XZ compressed: 1.2MB kernel, about 2-3 seconds decompression
Gzip compressed: 1.7MB kernel, about 0.5 seconds decompression

I believe that we should favor boot up speed over savings in kernel size since the Nspires have a lot of flash storage so space isn't too much of a concern. Most people are also booting Linux via USB so they don't even need to worry about having free space for initrds.

Lionel believes that we should favor kernel size over boot up speed since the extra time in boot speed is insignificant. In addition, in a embedded environment like nspires, we should be trying to save as much space as we can.

Basically, the question is: will you wait an extra 2-3 seconds on boot up to have a ~30% smaller kernel?
« Last Edit: January 12, 2013, 03:56:05 am by tangrs »

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 #538 on: January 12, 2013, 04:25:03 am »
It's not like it's hard to provide both. I can see value in both options, especially when looking at the non-CX nspires. 500k is a big chunk of their storage space.

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 #539 on: January 12, 2013, 04:30:37 am »
It's indeed trivial to provide both, but we're attempting to determine which one, should be, in the opinion of a wider audience, in the defconfig :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.