Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tangrs

Pages: 1 ... 8 9 [10] 11 12 ... 16
136
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 19, 2012, 05:58:12 am »
The touchpad vs clickpad isn't really an issue. (identical hardware, which is why you can just 'upgrade' by buying a touch keypad) He'd just use the clickpad port (due to the slightly different specs from the CX) with the CX's layout.

AFAIK, Clickpads don't have removable keypads.

Ah well, it doesn't mattter, I just got myself a second hand Touchpad which completes the collection (I now have all three).

In addition, mini-updates on progress will be posted on my twitter.

137
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 16, 2012, 03:53:17 am »
Update: Just bought a Clickpad. Work on porting to it will begin soon!

138
TI-Nspire / nspire Linux Questions
« on: November 15, 2012, 11:12:45 pm »
Maybe a corrupted download?

139
TI-Nspire / nspire Linux Questions
« on: November 15, 2012, 09:25:51 pm »
Try using tar -xvjf

140
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 13, 2012, 09:04:55 pm »
There's no relocator in tangrs's loader, I suppose the Linux kernel relocates itself.

Yep, this is pretty much it.

We first load Linux into memory no different than loading anything into memory. I.e. we follow the rules and use malloc, etc... Right up until we actually boot it, the bootloader follows the OS's rules and is capable of exiting without having corrupted anything. After we boot and transfer control to Linux, Linux will relocate itself.

This is a much cleaner approach than say, loading directly into RAM since we can potentially overwrite OS data structures/code while loading.

X and directfb are working!
Now we're one step closer to minecraft :D
Note: I can't login on SSH because of an german umlaut in my password and I haven't changed the keyboard-layout yet.
Note2: I don't know where that segfault came from, maybe too much ctrl-c? ;-)
[/youtube]

Nice work! I better start catching up and getting my own X to work :)

141
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 13, 2012, 04:39:16 am »
Updated at 7th Feb 2013

Since this is getting a little more popular (thanks to Hackaday), I decided to write up a little FAQ.

Is this really Linux?

Yes.

Which models does this support?

All current models - Clickpads, Touchpads and CX models.

What distro does this run?

Uh, Buildroot? Does that even count? Technically though, it can run any distro that supports ARM EABI. Debian ARM port should work but needs some effort.

Wait, so I can like, run Linux programs on this?

It depends. The answer is: most likely but might require a fair bit of effort.

Basically, the calculator doesn't run on your typical AMD/Intel x86 architecture. It runs on an ARM CPU core (similar to most android phones and iPhones/iPads/iPod Touches nowadays).

The software you can get on Ubuntu, Mint, Fedora, [insert favourite distro] are mostly binary packages. They've been precompiled by others and you just need to pretty much package-manager install package.

Now installing it like that on Nspire Linux most likely isn't exactly possible because:

A. Those packages are compiled for x86, not ARM.
B. The initrd/images that I've provided are built from Buildroot and almost won't have a package manager with everything pre-provided.

If you're the average user, you can stop reading now. The answer is no, it won't run whatever Linux program you want unless someone cross-compiled the program for you.

If you're feeling a little more adventurous, you can dive into the ugly world of cross-compiling. Now, the answer becomes "yes but only if you endure hours of pain".

The beauty about OSS is that you aren't restricted to using the binaries that you're given by others. To make your own programs run on Nspire Linux, we're going to need  the source code of the program you want and to cross compile for ARM.

Obviously, you'll need a cross-compiling toolchain. When you make a Buildroot, you get a cross-compile toolchain for free. You can use that to cross compile whatever package you want.

I won't go into the details. You can use Google for that.

Finally, if you hate dealing with compiling, there is one other solution. You can load up and run your favourite distro* onto the calc and use a package manager as usual. The Nspire won't have enough memory to hold it all but it does support booting from USB with the right options.

Again, Google is your friend.

* = provided they have an ARM port. I've had success with Debian ARM port.

Can this run Android?

Theoretically, yes but it's too much work for it to be worth it.

Does this run on top of the stock operating system?

No. Once loaded, it replaces the stock OS completely in memory.

How does this get loaded?

In-place loading. Basically, loading the kernel into memory using the stock OS functions, then let Linux take over (which replaces the Nspire OS).

Does this have X running?

Yes. The full configs at http://tiplanet.org/nspire-linux-builds/ will have an Xserver that you can run.

Can this run like KDE, Gnome, Xfce, Fluxbox, [insert favourite window manager]?

Yes but it'll probably suck (not that I've tried anything apart from TWM). Try not to forget that this is a 120MHz device with 64MB of RAM.

Why doesn't this run on the emulator?

I'm not sure. I think some co-processor instructions that Linux requires but not the stock OS weren't implemented in the emulator.

OMG, how to internetz?

The video/s of my calculator going on the internet are just a little personal distraction. The program is links and I'm just using a USB wireless dongle to connect to a wireless network.

Please don't ask me how I did it because it will vary depending on your hardware. Very generally speaking though, you'll need the kernel modules for your USB dongle and possibly  some firmware files. During run time, just load the kernel drivers, use a little wpa_supplicant and udhcpd magic and bam, you've got net.

But seriously, don't email me about this (unless it is a very specific/technical question) because I probably don't have time to help you step by step.

Won't this, like, make it easier for people to cheat?

Well, I don't believe so. Considering the amount of hardware you have to connect to the Nspire (I'm talking a USB hub, a USB drive and a power adapter) to make the internet work, I doubt a exam supervisor/teacher wouldn't notice it.

Besides, I'm pretty sure the stock OS doesn't have lots of white on black text and a picture of a penguin on it ;)

I need help.

The quick links at the top of the front page can help you.

You should run the stock OS on an emulator inside Linux. That'd be cool.

It would indeed be amusing.

Can this run emulators?

See "Wait, so I can like, run Linux programs on this?"

Does this support C++?

Of course. Linux isn't Ndless and don't share the same restrctions.

Though, that being said, a C++ toolchain is possible on Ndless - there are some notes on my blog.

So, what does this thing do exactly?

Nothing really. It's just cool!

Why are my USB devices causing Linux to go crazy on the console?

Your USB device is probably trying to draw too much power. You might need an external, powered hub.

The Nspire USB hardware only gives out something like 8mA compared to the 500mA in the USB specs.

"Will this? run Crisis?"

Yes. Yes it will.

142
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 11, 2012, 05:48:43 am »
Hi,
I downloaded the lates snapshot and it worked perfectly for me, but my USB Keyboard (2,4 GHz Dongle) won't get accepted as a keyboard.
How can I compile your kernel to add the missing driver?
If I clone you linux-git-tree, configure it with the obvious settings for nspire it can't find any USB-Devices ("doesn't acceppt address").
Could it be I forgot to disable High Speed? But I couldn't find anything.

With my custom rootfs I can get X running .. a bit. The screen slowly goes brighter until it's completely white but the console still stays active in the background.
If I type "reboot\n" it works.
I haven't tested swap but gcc works fine without it.

Edit: If I use your config (through /proc/config.gz) it still can't find any usb-devices.
Edit2: It seems I'm hitting a buildroot issue with X: http://lists.busybox.net/pipermail/buildroot/2012-September/058504.html

Thanks for your Linux port :D

The screen slowing turning white is a problem with the framebuffer driver. It should only happen when the LCD screen goes to standby or turns off.

Regarding the USB keyboard, are you connecting directly from the calculator or via a powered hub? Wireless dongles draw a lot of power and the USB controller might not be able to keep up (AFAIK, the calculator can only provide something like 8mA of current compared to the 500mA mandated by the USB specs).


143
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 02, 2012, 10:58:46 pm »
No, I’m using everything in the snapshot download, and the most recent initrd, and I was able to get the keyboard working, but I never did
1. Prepare your rootfs. Get a USB drive that you don't mind completely erasing. In my config, I didn't have a partition table. I just ran dd if=rootfs.ext2 of=/dev/X (replace X with your USB device).
And my dongle has 4 usb ports, with my calc connected to the mini usb port, using the cord meant for calc to calc transfers, if that makes any difference.
And I don't think I imaged the rootfs onto the USB drive.
Could you make a tutorial?


For Linux/Mac/BSD/*nix, it's basically just using dd. Something like sudo dd if=rootfs.ext2 of=/dev/sdX (replace sdX with your USB device - make sure you get it right or else say bye bye to your data)

Unfortunately, I haven't used Windows for a while so I don't know what they use for drive imaging.

144
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 02, 2012, 10:10:33 pm »
Just wondering, how to you get video to work?

I didn’t do anything about the rootfs because I didn’t know where I needed to change that. (also I don’t really know what it means by “your usb device”)

Many different things happen when I try many different things. If I boot with linuxloader2, wait for it to get to the login request, and then put my flash drive in the dongle, it just spews out that the cache failed
If I put the flash drive in immediately after running bootloader in linuxloader2, it seems to register it, I think, but when I run mplayer, it outputs –sh mplayer: not found.
Then it outputs some error about the flashdrive, with /64

Whenever I do it the normal way by just running the bootloader_usb.ll2.tns file, depending when I put the flash drive in, it displayes different things, but it always, ALWAYS, results in it kind of freezing with the last text being (ret_from_fork+0x14/0x24)

Anyone know what I’m doing wrong?


Are you sure you're using the USB host kernel? And did you image the rootfs onto the USB drive?

145
News / Re: Internet on the TI-Nspire thanks to Linux and USB !
« on: November 02, 2012, 08:38:52 pm »
To clarify, it's just a USB wireless dongle which is connected to the calculator via the hub. The wireless dongle is connected to my home wifi.

146
News / Re: Linux enables USB on the TI-Nspire
« on: November 02, 2012, 06:06:59 am »
This is really awesome. I wonder how easy it would be to add mouse support? (for those who hate the touchpad)

Should be just plug and play actually. Though you'd need an X server of some sort to get a cursor.

147
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: November 02, 2012, 04:55:12 am »
I see, so what does the cmdline do?
Also found out how to get the | key so ls | less can be used :D shift + flag does the trick (flag is in the lower right corner, below the ?! button) Scrolling can be done with b and f and exiting with q (sorry if someone else already found this, I thought it could be useful)

The keymap can be found in the source code at arch/arm/mach-nspire/nspire.c at around line 197. Match it up with the touchpad keymap found on the hackspire.

Btw, Doc is PgUp, Menu is PgDown. Hold shift while pressing them to scroll in the framebuffer.

148
TI-Nspire / Re: Calling all Linux Kernel developers!
« 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.

149
TI-Nspire / Re: Calling all Linux Kernel developers!
« 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.

150
TI-Nspire / Re: Calling all Linux Kernel developers!
« 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 :P) and not a developer board :D (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? :D

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.

Pages: 1 ... 8 9 [10] 11 12 ... 16