Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 18:57:58 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 4 5 [6]   Go Down
  Print  
Author Topic: Punix -  (Read 5932 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 16:14:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1854

Total Post Ratings: +208

View Profile WWW
« Reply #75 on: 10 March, 2012, 08:32:09 »
0

Quote
Each time I install Punix, I first install AMS 2.09 and freeflash, and then install Punix.
What about signing Punix using RabbitSign ? Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
christop
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 13 April, 2013, 04:04:55
Date Registered: 26 February, 2011, 19:58:44
Location: Arizona, USA
Posts: 87

Topic starter
Total Post Ratings: +20

View Profile
« Reply #76 on: 10 March, 2012, 20:20:27 »
0

Quote
Each time I install Punix, I first install AMS 2.09 and freeflash, and then install Punix.
What about signing Punix using RabbitSign ? Smiley
Of course. I first had to figure out how to convert the tib file to a 9xu file (which turned out to be easy with freeflash's tib2xxu program). Then last night I successfully signed it with rabbitsign using key 01. I was happy to see the bootloader accept the signature. Smiley It's definitely faster to upgrade the calc with my 96KB system than with the 1024KB AMS.

Now I'm trying to add the signing step to the makefile so the signing is done automatically.

Back to the clock speed issue... I compared my start.s to PedroM's Boot.asm and found that I was not disabling The Protection correctly before it wrote to $70001f, so it didn't have any effect. I hope I got it right this time (it seems to set the clock speed now).

On a different subject, I've thought about attaching piezo speakers, and maybe a volume dial/switch, to my calc so I can play audio without having to plug in external speakers. I also thought about adding a PS/2 port to my calc in case I add an AT keyboard/mouse driver. Help! I'm turning into Kerm Martian! (Not that that's necessarily a bad thing Cheesy).


Edit: I can't figure out what is happening with address error exceptions. I'm intentionally crashing a userspace program (to test exception handling) with an address error by accessing a word at 0x4321. It works fine and as expected in TiEmu but causes a kernel panic on a real calc. All other exceptions (eg, illegal instruction and division by zero) work fine. The address error stack frame doesn't even make sense on the real calc. It says the program counter is the beginning of my Int2 handler (0x4124ca, which consists of two move instructions and an rte and is triggered all the time without issue). The status register (0x2101) suggests it was inside the kernel, but as I mentioned, I triggered the exception from user mode.

See the full exception outputs from tiemu and the real calc:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
real calc:
address error exception
       function code: 0x4e76
      access address: 004321
instruction register: 0x4e73
     status register: 0x2101
     program counter: 4124ca

tiemu:
address error exception
       function code: 0x0011
      access address: 004321
instruction register: 0x31fc
     status register: 0x0004
     program counter: 4257ac
It didn't panic in tiemu because the status register was in user mode (as it should be). Only the offending process was killed by a SIGBUS signal.
 
« Last Edit: 10 March, 2012, 23:57:40 by christop » Logged

Christopher Williams
illwieckz
LV0 Newcomer (Next: 5)

Offline Offline

Gender: Male
Last Login: 25 February, 2013, 16:57:04
Date Registered: 19 March, 2012, 23:19:58
Posts: 3

Total Post Ratings: 0

View Profile WWW
« Reply #77 on: 19 March, 2012, 23:45:11 »
0

You say in your readme that we need to download flashos.a to build punix, but GCC4Ti included it for some time ( http://trac.godzil.net/gcc4ti/ticket/11 ), and I successfully built punix without download it separately.

Also, I've successfully compiled the beta4 for V200 with GNU/Linux, by changing the MAKE variable to make (instead of gmake) in the Makefile (gmake is the name of gnu make on BSD, I'm not running BSD Wink ), then adding some V200 preprocessor instructions to the source : http://pastebin.com/eBxnEBk5



I've not tested it on my real V200, only on TiEmu, but support the V200 should not be too difficult, I do not think it is so different from the TI92 + (probably less than between the TI89 and Titanium)  Wink
« Last Edit: 20 March, 2012, 00:10:18 by illwieckz » Logged
christop
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 13 April, 2013, 04:04:55
Date Registered: 26 February, 2011, 19:58:44
Location: Arizona, USA
Posts: 87

Topic starter
Total Post Ratings: +20

View Profile
« Reply #78 on: 20 March, 2012, 21:05:47 »
0

Ah yes, I guess you're right about flashos.a. I think that's left over from when I was using TIGCC. I'll update my documentation now. Smiley

Good job building Punix for the V200. I think the V200 is basically the same as the TI-92+ so I haven't bothered trying to build Punix for it. It's good to see that it works fine, though.

Regarding your LinuxFR article: I know I mentioned in my Punix blog that I am trying to make a speech synthesizer, but I didn't mean that it's going to be part of Punix itself. It's just going to be a program that will run under Punix (or under TI-AMS if someone wants to port it). I don't want people getting the impression that the kernel is going to have a speech synthesizer, though that would be kind of cool. Smiley
Logged

Christopher Williams
illwieckz
LV0 Newcomer (Next: 5)

Offline Offline

Gender: Male
Last Login: 25 February, 2013, 16:57:04
Date Registered: 19 March, 2012, 23:19:58
Posts: 3

Total Post Ratings: 0

View Profile WWW
« Reply #79 on: 21 March, 2012, 01:32:13 »
0

Quote
Regarding your LinuxFR article: I know I mentioned in my Punix blog that I am trying to make a speech synthesizer, but I didn't mean that it's going to be part of Punix itself. It's just going to be a program that will run under Punix (or under TI-AMS if someone wants to port it).

Ok, I think many will understand (I have not written more, my article was already long!), and then, usually, when we speak about a BSD distro, we talk about the kernel and userland  Grin I admit to not having thought we might think it would be in the kernel. I guess when the filesystem is operational, some Unix tools will not be hardcoded into the kernel (init, sh...) but they are part of your "punix" project  Wink

Also, I wrote something like "Some improvements are more likely to occur than others", I think no one will blame if it is not in the kernel  Grin

Thank you for reading my article, I hope that machine translation was not too hard to read (but it's probably better than my poor english) Wink

Do you know what would be incompatible with the HW1? Grayscale, sure, maybe the sound due to the 68k running at 10mhz, but there is something else?
« Last Edit: 21 March, 2012, 01:37:18 by illwieckz » Logged
christop
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 13 April, 2013, 04:04:55
Date Registered: 26 February, 2011, 19:58:44
Location: Arizona, USA
Posts: 87

Topic starter
Total Post Ratings: +20

View Profile
« Reply #80 on: 21 March, 2012, 02:49:12 »
0

Thank you for reading my article, I hope that machine translation was not too hard to read (but it's probably better than my poor english) Wink
Nah, your English is better than Babelfish.

Quote
Do you know what would be incompatible with the HW1? Grayscale, sure, maybe the sound due to the 68k running at 10mhz, but there is something else?
Yeah, the sound would play slowly on HW1. The system real-time clock would also run slowly, and it would be affected by the battery strength, but that can be fixed somewhat with the adjtimex system call (currently planned) to adjust the system clock frequency. Even grayscale is possible on HW1, but I would have to add support for it in Punix. I can't think of anything else off the top of my head that would be incompatible.
Logged

Christopher Williams
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 16:14:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1854

Total Post Ratings: +208

View Profile WWW
« Reply #81 on: 21 March, 2012, 08:08:49 »
0

Grayscale is easier and faster on HW1 than on HW2, in fact Smiley
The main thing is to set port 600010 appropriately, and the LCD controller's DMA does the job. See the source code of the grayscale routine in GCC4TI. VTI doesn't emulate the HW2 way of making grayscale, so you'll have to treat it as HW1.

It's not possible to make an accurate timer on HW1, but it may indeed be possible to alleviate the problem.
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
christop
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 13 April, 2013, 04:04:55
Date Registered: 26 February, 2011, 19:58:44
Location: Arizona, USA
Posts: 87

Topic starter
Total Post Ratings: +20

View Profile
« Reply #82 on: 21 April, 2012, 07:26:34 »
0

More than a year after the last release, I'm happy to announce the release of Punix beta 5!

All files: http://sourceforge.net/projects/punix/files/betas/

TI-89: punix-89-beta5.89u
TI-92+: punix-9x-beta5.9xu
Source: punix-beta5.tgz


I also noticed that Punix was recently added to the Levenez Unix History page! Shocked
Logged

Christopher Williams
illwieckz
LV0 Newcomer (Next: 5)

Offline Offline

Gender: Male
Last Login: 25 February, 2013, 16:57:04
Date Registered: 19 March, 2012, 23:19:58
Posts: 3

Total Post Ratings: 0

View Profile WWW
« Reply #83 on: 21 April, 2012, 12:19:44 »
0

oh thank you, I'll try it as soon as possible !

It's great to see Punix on the Levenez Unix History page!  Smiley
« Last Edit: 21 April, 2012, 14:39:35 by illwieckz » Logged
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 14:29:04
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #84 on: 21 April, 2012, 12:55:58 »
0

Very nice!
Maybe I can get it to run in http://tiplanet.org/forum/viewtopic.php?p=123113&sid=908abe877410032af582a58723441e76#p123113 Cheesy
Logged

Pages: 1 ... 4 5 [6]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.273 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.