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 - Vogtinator

Pages: 1 ... 12 13 [14] 15 16 ... 83
196
TI-Nspire / Re: How to install Debian on a TI-Nspire CX
« on: November 14, 2014, 10:09:36 am »
It won't work as it doesn't support OTG or host mode. Supported cables have another sense line to put the USB controller into the correct mode when plugged in AFAIK.

197
TI-Nspire / Re: nspire Linux Questions
« on: November 14, 2014, 10:07:37 am »
No, it requires USB 2.0 which is a PITA to get working. It's possible with the USB OTG module, but it has its own issues, it only works sometimes.

198
TI-Nspire / Re: TI-Nspire emulator
« on: November 13, 2014, 05:58:27 pm »
Quote
Great! It really fixed everything, I could load a CX and a classic OS without any problems. Booting took about 2-3 minutes
Same here. How much RAM do you have? Large or small NAND?

Quote
The only thing that doesn't seem to work is the "Reset" menu entry, but that's a minor problem (actually not important at all as long as there's no input ).
Not surprising, it's not implemented yet, like the file transfer and settings tabs.

Quote
Oh, and the progress percentages are displayed after each other on a very long line instead of overwriting the old percentage as on the PC.
That's a known bug, it's just appending the serial data to the QPlainTextEdit, '\b' and '\r' are ignored, like other ANSI escape sequences for colors.

199
TI-Nspire / Re: TI-Nspire emulator
« on: November 13, 2014, 04:49:10 pm »
Ok, I changed that: download

200
TI-Nspire / Re: TI-Nspire emulator
« on: November 13, 2014, 03:16:07 pm »
I believe I found the issue:
In nspire_emu theres an array called addr_cache, which holds two values (read and write) for each 400 bytes of memory.
Each entry (For example, if you want to read at 18000020, its entry is addr_cache[(0x18000020 >> 10) << 1]) contains the following information:
-Pointer: If you add the address you want to access to the entry, bit 31 is clear and you can dereference the result directly
-Special entry: If you add the address you want to access to the entry, bit 31 is set
-MMIO: A special entry which (the entry itself, not the result of the addition) has bit 22 set
-Invalid entry: A special entry which has bit 22 clear.

The issue is, if the allocated memory is beyond 0x7CFFFFFF, you lose information and it crashes.
I expanded the entry format to 64 bits (but kept the bit positions!) and it works, except for rare occasions when the address itself has bit 31 already set!
So now I have to either:
-Fix the algorithm for computations
-Make a new format

This issue is also present on 32bit machines, but nspire_emu invoked VirtualAlloc with some parameter magic so it's always below 2GiB.
This "trick" also works on linux,  but not on mac.

I went for the latter, but it's slower, for now. I encode the 3 various kinds of entries in the lowest 2 bits.
Do you have a better suggestion?

I recompiled the App and it may work now, although I don't consider this as fixed.
I also solved the bug that you can't exit if the emulation thread enters an infinite loop (that's what happens if addr_cache overflows, what probably happened in your case).

201
TI-Nspire / Re: Solarized Theme for Nspire CX
« on: November 13, 2014, 02:26:35 pm »
It uses custom syscalls and hardcoded addresses, so it would require some hard work to port it.

202
TI-Nspire / Re: TI-Nspire emulator
« on: November 13, 2014, 12:28:13 pm »
If you enter the debugger, nothing will happen until you execute a command, like "s" or "r".
I have seriously no idea where the error comes from, are you sure you have the correct flash image?
I just flashed 4.2.2 to my tablet and it works without (major) issues there.

What I really don't like to see is that the write address changes everytime.

203
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 04:50:27 pm »
As long as the flash is for the right model, it should automatically set the correct model number and id.
You can also try to run boot1 cx. I have never seen that error before, is it always the same?

204
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 04:33:58 pm »
Oh, ok. I just read the last posts again and I don't know how I assumed you weren't running the android version  :banghead:
You need at least 1GB RAM and you definitely need to use a 32 MiB flash image if it crashes due to mem exhaustion.

If you can "adb logcat" your device, it should print some OOM kills and then a final SIGKILL to nspire_emu.

205
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 04:16:46 pm »
Quote
Is it still supposed to crash in boot1 as you said earlier? Because for me it does.
Still, good job so far!
Which version on which platform are you using? It should work just fine on linux, windows and android. Mac crashes due to some mmap weirdness.

206
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 02:11:24 pm »
The flash image that can be booted using the provided boot1. I called the file "flash_3.9_nothing.img" as I had "flash_3.9_cas.img" etc.
It doesn't matter whether it's 132MiB or 32MiB.

Edit: boot1 not boot2.

207
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 01:59:17 pm »
I changed it and it runs a bit faster now, compiled for armeabi-v7a.
Links:
https://dl.dropboxusercontent.com/u/105478372/QtApp-debug-sdcard.apk
https://dl.dropboxusercontent.com/u/105478372/QtApp-debug-sdcard1.apk

If there are any errors, they will most likely appear on the debug tab.

Edit: "/<your path>/boot1_classic.img" and "/<your path>/flash_3.9_nothing.img"

208
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 01:32:58 pm »
Yeah, I can upload the "working" app if you want to, but it'll take some minutes to fix some stupid issues (using "-Os" instead of "-Ofast" e.g.) and the framebuffer.
Also, as I have hardcoded the path to boot1 and flash, is "/sdcard" ok?

209
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 01:22:22 pm »
Quote
Really, nspire_emu on Android phone would be amazing!
But I don't know how to perform what you're asking to do with Qt, Vogtinator.
Well, as you can see above, I couldn't resist so installed the Android SDK, NDK and Qt SDK for Android and it works already :P

210
TI-Nspire / Re: TI-Nspire emulator
« on: November 12, 2014, 01:14:16 pm »
Nspire-emu is like, the only thing I rely on Wine for atm. :P
I've still got IDA. It's a real PITA to use sometimes.

You might want to try try radare2. You can import the Nspire .idc files using a script called idc2rdb. Although radare2 doesn't have a good GUI and it lacks decompilation support.
The core of a good reverse engineer tool is to provide a nice user interface. Decompilation is mostly useless anyway. I'll try it, do you use it?

Quote
In theory you could run X and wine with qemu and binfmt support in a chroot.
If you just want some calculating capabilities similiar to the nspire, there are some apps in the store.
I tried that once, but apparently qemu required a patch for something called "NTPL support" to run wine :P
You know, "there's an app for that" :P I'm sure that somewhere is wine on an android device on the internet. Wouldn't be much fun, though.

Quote
BTW, what about QT for iOS ? It compiles fine (and runs almost fine, probably the same issue you mentioned) on Mac, so... maybe ?
I can try (sometime later....), I guess, as I have a iOS dev. account.
It may work but be even slower as iOS has some massive restrictions. But I guess it would run on iOS as well if it works on android.

Anyway, ARM emu on ARM, though... :P
Does ARM support hardware virtualization ?
Most ARM processors in consumer devices don't, but AFAIK Aarch64 requires it. (Xen and KVM support the extensions already, they're quite new)
Some kind of accelleration would be needed, though, I had to wait for ~8m to boot this:


Also, I had to do a quick hack to display the 4bit framebuffer, that's why it's blue for now.
I had to use a classic image as my device doesn't have enough RAM to allocate the various caches, flash and SDRAM, I'll have to change that to utilize nmap.

Pages: 1 ... 12 13 [14] 15 16 ... 83