Hi all,
I am trying to get the ChibiOS Posix version running on my Toshiba AC100. This is a Tegra2 based system. I am not so familiar with the settings for make and hence gcc for compiling and linking.
Anyone a clue how to tackle that problem?
Any help much appreciated and thanks in advance.
Best regards,
]v[
Posix version on Tegra 2 - any clue?
Moderators: RoccoMarco, lbednarz, tfAteba
Re: Posix version on Tegra 2 - any clue?
ChibiOS is an RTOS meant for small embedded applications (using microcontrollers) and it does not really target those kind of systems like your Toshiba AC100. I think you might be on the wrong place.
~ Tectu
~ Tectu
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Posix version on Tegra 2 - any clue?
Hi,
I think you are trying to port the "Posix simulator" to run under that system, correct?
If so, the simulator requires:
1) A Posix compliant build and run environment (Linux, MacOS both work).
2) An x86 CPU.
If you need to use the simulator under an ARM CPU then you need to rewrite the low level parts of the port (chcore.h, chcore.c) to work with ARM architecture. It is technically feasible.
Giovanni
I think you are trying to port the "Posix simulator" to run under that system, correct?
If so, the simulator requires:
1) A Posix compliant build and run environment (Linux, MacOS both work).
2) An x86 CPU.
If you need to use the simulator under an ARM CPU then you need to rewrite the low level parts of the port (chcore.h, chcore.c) to work with ARM architecture. It is technically feasible.
Giovanni
-
metalinjection
- Posts: 2
- Joined: Mon Jun 10, 2013 1:11 pm
Re: Posix version on Tegra 2 - any clue?
Hi,
thanks Giovanni that was the answer I was lookign for. A kind of manual which ones I have to rewrite is on the ChibiOS isn't it?
So far I used IDE's most of the time with a complete chain in place and now it is the first time where I make my own toolchain and stuff. The idea was to develop on the road (quite a lot of travelling via train and plan) on the AC100 and when I'm home I would try it on the target.
Do you have an idea how would I have to sort out the makefile or could you send me a link other than the man page of gcc?
Many thanks,
]v[
@Tectu: Phunny way to presume that one doesn't know anything about µC but I thought the POSIX hint in the subject should have gave you the clue - anyway... thanks for ready
thanks Giovanni that was the answer I was lookign for. A kind of manual which ones I have to rewrite is on the ChibiOS isn't it?
So far I used IDE's most of the time with a complete chain in place and now it is the first time where I make my own toolchain and stuff. The idea was to develop on the road (quite a lot of travelling via train and plan) on the AC100 and when I'm home I would try it on the target.
Do you have an idea how would I have to sort out the makefile or could you send me a link other than the man page of gcc?
Many thanks,
]v[
@Tectu: Phunny way to presume that one doesn't know anything about µC but I thought the POSIX hint in the subject should have gave you the clue - anyway... thanks for ready
Re: Posix version on Tegra 2 - any clue?
I'm sorry that I misunderstood your your request. I thought you want to run it natively on your machine. There have been a few people asking for that in the past. Furthermore, I didn't try to to prejudge you haven't any knowledge of MCUs.
About tutorials:
Maybe one of those might help you.
Also, it's recommended by the community to use this toolchain since it seems to be the best working one so far.
~ Tectu
About tutorials:
- ChibiOS/RT porting guide
- Developement with Eclipse + STLink
- Development with KEIL
- Developement without any IDE
- How to use the simulator
Maybe one of those might help you.
Also, it's recommended by the community to use this toolchain since it seems to be the best working one so far.
~ Tectu
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Posix version on Tegra 2 - any clue?
Hi,
Look at the documents posted by Tectu first, basically you need to replace the few parts written in x86 assembler using ARM assembler and you have to properly define the intctx structure to include all the function-preserved registers.
You may give a look to the native ARM port but what is required in the simulator is not all of that, the simulator is quite simpler.
About the toolchain, you need to use the native GCC compiler for your system, not a cross-compiler. Does the system run Linux? if so then it should have its own GCC too.
giovanni
Look at the documents posted by Tectu first, basically you need to replace the few parts written in x86 assembler using ARM assembler and you have to properly define the intctx structure to include all the function-preserved registers.
You may give a look to the native ARM port but what is required in the simulator is not all of that, the simulator is quite simpler.
About the toolchain, you need to use the native GCC compiler for your system, not a cross-compiler. Does the system run Linux? if so then it should have its own GCC too.
giovanni
Re: Posix version on Tegra 2 - any clue?
Giovanni wrote:About the toolchain, you need to use the native GCC compiler for your system, not a cross-compiler.
That's correctly, forget about my link. Make sure that you have gcc-multilibs on your system. It took me a while to find this fault because my distribution wasn't shipped with that one.
~ Tectu