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

0 Members and 1 Guest are viewing this topic.

#### ElementCoder

• LV7 Elite (Next: 700)
• Posts: 611
• Rating: +42/-2
##### Re: Calling all Linux Kernel developers!
« Reply #150 on: October 31, 2012, 02:36:56 pm »
wow 0.0 now i really want to find a mini usb to female usb cable to plug in harddrives in my nspire

Some people need a high five in the face... with a chair.
~EC

#### Netham45

• LV11 Super Veteran (Next: 3000)
• Posts: 2103
• Rating: +213/-4
• *explodes*
##### Re: Calling all Linux Kernel developers!
« Reply #151 on: October 31, 2012, 02:39:01 pm »
That's very impressive.

Out of curiosity, are there any plans to backport this to the first Nspires?

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55828
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Calling all Linux Kernel developers!
« Reply #152 on: October 31, 2012, 02:44:16 pm »
Actually I think he wanted to have Touchpad/Clickpad compatibility, but the hardware is apparently different and less documented on Hackspire, making it harder to develop for those older models. I could be wrong, though.
Quote
Just a quick reminder that there's a 4MB soft limit for RAM disks. Make sure the final image is less than that until I rework the bootloader to lift it.
ACK
It's easy to reach 8 MB without even attempting to add an X server + its libraries.

Hmmmm. If you get the source for the bootloader you could try changing MAX_RAMDISK_SIZE to something higher. But I can't guarantee it'll work without hitches since it might overwrite the bootloader code.

The solution is to relocate the bootloader itself into SRAM or somewhere out of the way before loading. That way, the max ramdisk size is limited by the amount of physical memory. I'll get the done soon

Edit: Random thoughts: snes9x SDL on Linux on CX?
One concern I have about that is that it would be running an emulator in an emulator, right? Wouldn't the SNES emu run way too slow due to the Nspire CPU being all used for SDL emulation to begin with?
« Last Edit: October 31, 2012, 02:45:39 pm by DJ_O »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF

T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

#### Juju

• Incredibly sexy mare
• Coder Of Tomorrow
• LV13 Extreme Addict (Next: 9001)
• Posts: 5730
• Rating: +500/-19
• Weird programmer
##### Re: Calling all Linux Kernel developers!
« Reply #153 on: October 31, 2012, 03:27:25 pm »
SDL isn't emulated, that's just the graphical frontend. I guess you would have to set some frameskip to snes9x to make it work at 60 FPS.

Also mplayer lags o.o

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?

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.

#### Lionel Debroux

• LV11 Super Veteran (Next: 3000)
• Posts: 2135
• Rating: +290/-45
##### Re: Calling all Linux Kernel developers!
« Reply #154 on: October 31, 2012, 03:38:07 pm »
Quote
Actually I think he wanted to have Touchpad/Clickpad compatibility, but the hardware is apparently different and less documented on Hackspire, making it harder to develop for those older models.
The hardware of the Clickpad & Touchpad has better documentation on Hackspire than the CX hardware (though the delta is blurring, as part of this work)
Linux + some userspace does fit in 32 MB of RAM (16 or even 8 would work), but needless to say, it can do less than in 64 MB of RAM (CX).
tangrs doesn't have a real Clickpad or Touchpad, though.

Quote
Also mplayer lags o.o
Well, the Nspire is no Raspberry Pi (basically > 5x more powerful for 1/6 to 1/4 the price, with some hardware video acceleration) or better
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.

• Editor
• LV10 31337 u53r (Next: 2000)
• Posts: 1708
• Rating: +229/-17
##### Re: Calling all Linux Kernel developers!
« Reply #155 on: October 31, 2012, 03:42:33 pm »
SDL isn't emulated, that's just the graphical frontend. I guess you would have to set some frameskip to snes9x to make it work at 60 FPS.

Also mplayer lags o.o
Well, that's why TI advertises is as a calculator (actually rather a math&science handheld thing - meh, stupid vocabulary ) and not a developer board (also @debrouxl)

But yeah, with some overclocking, it's good enough ?
My calculator programs
TI-Nspire Lua programming : Tutorials  |  API Documentation

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55828
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Calling all Linux Kernel developers!
« Reply #156 on: October 31, 2012, 03:54:37 pm »
Quote
Actually I think he wanted to have Touchpad/Clickpad compatibility, but the hardware is apparently different and less documented on Hackspire, making it harder to develop for those older models.
The hardware of the Clickpad & Touchpad has better documentation on Hackspire than the CX hardware (though the delta is blurring, as part of this work)
Linux + some userspace does fit in 32 MB of RAM (16 or even 8 would work), but needless to say, it can do less than in 64 MB of RAM (CX).
tangrs doesn't have a real Clickpad or Touchpad, though.

Quote
Also mplayer lags o.o
Well, the Nspire is no Raspberry Pi (basically > 5x more powerful for 1/6 to 1/4 the price, with some hardware video acceleration) or better
Ah ok I thought about the opposite due to this post http://ourl.ca/17131/318760

Well, that's why TI advertises is as a calculator

The Nspire can do maths??
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF

T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

#### Rhombicuboctahedron

• LV6 Super Member (Next: 500)
• Posts: 437
• Rating: +41/-6
##### Re: Calling all Linux Kernel developers!
« Reply #157 on: October 31, 2012, 08:20:05 pm »
This is awesome, and the usb recognition works so well.
I’ve tested my keyboard, mouse, ipod, camera, TI 83, and two flash drives.
It tells the correct manufacturer and product for each, though the only one I could get to do anything was the keyboard.

#### tangrs

• LV5 Advanced (Next: 300)
• Posts: 228
• Rating: +97/-0
##### Re: Calling all Linux Kernel developers!
« Reply #158 on: October 31, 2012, 08:51:09 pm »
This is awesome, and the usb recognition works so well.
I’ve tested my keyboard, mouse, ipod, camera, TI 83, and two flash drives.
It tells the correct manufacturer and product for each, though the only one I could get to do anything was the keyboard.

Excellent. That's good to hear

SDL isn't emulated, that's just the graphical frontend. I guess you would have to set some frameskip to snes9x to make it work at 60 FPS.

Also mplayer lags o.o
Well, that's why TI advertises is as a calculator (actually rather a math&science handheld thing - meh, stupid vocabulary ) and not a developer board (also @debrouxl)

But yeah, with some overclocking, it's good enough ?

Not quite. The fastest I could get it to run was about 8FPS.

That's very impressive.

Out of curiosity, are there any plans to backport this to the first Nspires?

Yep. I'm hoping to secure a Touchpad and Clickpad from some seniors after they've finished their exams.

Great work Tangrs! I assume it will be possible to have a Debian rootfs with an X-server?
Will try when I get some time.

Already working on it

So were all the USB support changes on the kernel side? Could I just use an existing FS image and boot it correctly on a USB stick?

EDIT: Also, what kind of cable do I need to buy?
EDIT Again: What sort of other stuff is on the image? GCC? Lua?

Yep, all the USB stuff is on the kernel side.

Depending on what you want to connect, there are many you can buy. If you're only connecting one device, a mini-usb A to USB female adapter should work. Something like this one should work.

Though, I highly recommend just buying a powered USB hub that has a mini-usb B upstream port so you can just use the OTG cable that came with your calculator. I happened to have a spare one lying around so that's what I used.

#### willrandship

• Omnimagus of the Multi-Base.
• LV11 Super Veteran (Next: 3000)
• Posts: 2953
• Rating: +98/-13
• Insert sugar to begin programming subroutine.
##### Re: Calling all Linux Kernel developers!
« Reply #159 on: October 31, 2012, 09:08:50 pm »
Isn't this kernel running on top of TI's OS already? That could explain some of the issues performance-wise.

#### tangrs

• LV5 Advanced (Next: 300)
• Posts: 228
• Rating: +97/-0
##### Re: Calling all Linux Kernel developers!
« Reply #160 on: October 31, 2012, 09:09:48 pm »
Isn't this kernel running on top of TI's OS already? That could explain some of the issues performance-wise.

Nope, once booted, it has replaced TI's OS completely in memory.
« Last Edit: October 31, 2012, 09:10:07 pm by tangrs »

#### Rhombicuboctahedron

• LV6 Super Member (Next: 500)
• Posts: 437
• Rating: +41/-6
##### Re: Calling all Linux Kernel developers!
« Reply #161 on: October 31, 2012, 09:36:38 pm »
Quote
Depending on what you want to connect, there are many you can buy. If you're only connecting one device, a mini-usb A to USB female adapter should work. Something like this one should work.

Though, I highly recommend just buying a powered USB hub that has a mini-usb B upstream port so you can just use the OTG cable that came with your calculator. I happened to have a spare one lying around so that's what I used.
I got one with at best buy for $15 that has four usb ports and one mini usb port So I can connect my cx and still have room for four more devices Quote Nope, once booted, it has replaced TI's OS completely in memory. Wait, so is there no possibility for a keyboard during normal OS? Because a keyboard would make oclua so much cooler. « Last Edit: October 31, 2012, 09:37:11 pm by Rhombicuboctahedron » #### tangrs • LV5 Advanced (Next: 300) • Posts: 228 • Rating: +97/-0 ##### Re: Calling all Linux Kernel developers! « Reply #162 on: October 31, 2012, 09:37:29 pm » Quote Depending on what you want to connect, there are many you can buy. If you're only connecting one device, a mini-usb A to USB female adapter should work. Something like this one should work. Though, I highly recommend just buying a powered USB hub that has a mini-usb B upstream port so you can just use the OTG cable that came with your calculator. I happened to have a spare one lying around so that's what I used. I got one with at best buy for$15 that has four usb ports and one mini usb port
So I can connect my cx and still hav room for four more devices
Quote
Nope, once booted, it has replaced TI's OS completely in memory.
Wait, so is there no possibility for a keyboard during normal OS? Because a keyboard would make oclua so much cooler.

Yep, that's pretty much true.

#### TIfanx1999

• ಠ_ಠ ( ͡° ͜ʖ ͡°)
• CoT Emeritus
• LV13 Extreme Addict (Next: 9001)
• Posts: 6173
• Rating: +191/-9
##### Re: Calling all Linux Kernel developers!
« Reply #163 on: October 31, 2012, 10:38:57 pm »
@tangrs: Congrats on getting usb working, that's awesome!
@aeTIos: Liking the Linucx name.
« Last Edit: October 31, 2012, 10:39:15 pm by Art_of_camelot »

#### Hayleia

• Programming Absol
• Coder Of Tomorrow
• LV12 Extreme Poster (Next: 5000)
• Posts: 3367
• Rating: +393/-7
##### Re: Calling all Linux Kernel developers!
« Reply #164 on: November 01, 2012, 03:15:52 am »
Edit: Random thoughts: snes9x SDL on Linux on CX?
But to make snes9x work, is there a need for linux ? If it is coded with SDL, can't it be ported with nSDL without linux ?
Sorry if it is a stupid question but I didn't even know about snes9x before it was mentionned in this topic -.-°
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s