166
TI-Nspire / Re: Calling all Linux Kernel developers!
« on: October 21, 2012, 06:54:33 pm »Sorry, does this allow you to run linux programs?
Yep.
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. 166
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 21, 2012, 06:54:33 pm »Sorry, does this allow you to run linux programs? Yep. 167
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 21, 2012, 05:53:48 am »
I was hoping to try and get an X server running on the frame buffer but X.org is a teensy too big for the ramdisk (~50MB) - not enough RAM to extract even when compressed. 168
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 21, 2012, 05:49:29 am »
It's as Lionel said. Once USB host works, things will get interesting very quickly (easier said than done though )
I understand the boot loader is confusing. The best way is to write a boot script to avoid typing everything in all the time. Copy and paste the following into a file, name it something.ll2.tns and copy it to your calculator. Make sure you have ext.ll2=linuxloader2 in your ndless.cfg and you can just run the script every time you need to boot Linux. This script assumes your kernel and initrd are all in a folder called linux Code: [Select] kernel linux/zImage.tns (there's a bug in the command line parsing so ensure you have a newline after boot) I've also attached the latest development kernel and ramdisk. As usual, run at your own risk 169
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 16, 2012, 07:46:41 am »
Hands up for new, sexy bootloader! Woooo
This bootloader is a lot more stable and can load bigger ramdisks now (up to ~40MB on CX). It also uses nspireio to give the user a shell for changing various options before booting. This version does no relocating by default which means the bootloader won't trash the Nspire OS at all (until Linux is booted of course). Binary is attached. Source code and documentation on Github 170
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 13, 2012, 06:28:58 am »
There is a generic EHCI platform driver which is what I'm using at the moment. Unfortunately that doesn't work well with the OTG controller since the generic driver was made for host-only controllers.
As of yet, I haven't found a way to configure the controller in a way which to completely disable device mode and become host-only which somewhat complicates things. 171
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 13, 2012, 05:32:28 am »
Lately, I've been working on a USB host driver. I must say, I really hate working with USB.
172
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 08, 2012, 04:40:49 pm »I've made a boring vid that can be found at It might be related to touching the touchpad before the driver had a chance to init. 173
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 05, 2012, 11:52:53 pm »+1 on relocating the bootloader to SRAM. Do you happen to know the size of the SRAM? I'm not sure now much space I am restricted to. 174
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 05, 2012, 04:48:03 am »
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? 175
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 05, 2012, 04:45:15 am »tangrs, should one of us send you a Clickpad (prototype or production model) to speed up your process ? I might have to work on the Clickpad/Touchpad models a bit later. Their memio ports are a bit different to the CX and the hackspire documentation doesn't specify what hardware it uses The reason I was able to get the CX up and running so fast was due to the most of the essential hardware on the CX was already supported by Linux. 176
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 05, 2012, 04:37:53 am »Attached is a .config for buildroot 2012.08, which yields bzip2'ed rootfs, binutils 2.22, GCC 4.7.1 with C++ support, and several extra goodies such as, but not limited to, lua / luac / luajit, less, nano for simple text edition, SDL (with framebuffer support, sdl_gfx, sdl_image with BMP, JPEG and PNG support), expat, libusb, minicom. 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. 177
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 05, 2012, 01:33:12 am »
I actually had a brief readme written up for someone who wanted to compile the kernel for himself. I'll post it here.
Code: [Select] How to boot: I'll include the latest snapshot as an attachment for those who dislike pain Excellent work, as usual That's actually the boot loader's job I'll implement it soon. 178
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 04, 2012, 08:25:42 am »
Good news and bad news!
Good news is that I now have a working userspace and rebooting has been fixed as well. I also just finished writing a keypad driver but it weirdly freezes sometimes for no reason. Bad news is that I just realised how crap my code is. I read up on kernel coding conventions and my copy-pasta code (yes, most of the porting was just copying and adapting existing code) breaks quite a lot of it Oh well. My excuse is "I'll fix it up later" Anyhow, enjoy the demonstration video: 179
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 03, 2012, 11:48:23 pm »When you have set everything up correctly, we're eager to see a picture Hehe, you can have a video I have a busybox ramdisk booting successfully and it dumps me to a shell. Next up, I'll be working on a key pad driver. 180
TI-Nspire / Re: Calling all Linux Kernel developers!« on: October 02, 2012, 08:22:00 am »what o.o Yep. Well hopefully Wow awesome o_O No, I usually just use a simple text editor So any chances that this will be available for the non-cas ever?I believe that's not a problem It's CX only right now because that's the only hardware I have right now to test on. I've found that the nspire emulator can't emulate some of the instructions Linux uses (especially to do with caches) so I actually need real devices to test on. It is definitely possible to make it work on the older calculators - there's no reason why it wouldn't work. Linux only needs ~4MB of RAM which even the old calculators have plenty of. Extremely interesting Alright. In that case, I'll post up sources some time tonight - but beware! I'm new to kernel developing and the code is quite messy to say the least. Edit: Added links to source code |
|