| Author |
Message |
daxxx1
Joined: 24 Jul 2004 Posts: 12
|
28 Aug 2004 10:15 Can anyone teach me how to us ucLinux |
|
|
|
I am experimenting on various RTOS. I've tested uItron and uCOS 2 already.
Can you please tell me how to start a development.
Basically, can you please give me the C source codes.
Then please tell me how to compile it in ANSI C compiler.
Finally, please tell me how to port to an 8bit microcontroller.
Best regards,
|
|
| Back to top |
|
 |
davorin
Joined: 07 Jun 2003 Posts: 1490 Helped: 8
|
28 Aug 2004 12:50 Re: Can anyone teach me how to us ucLinux |
|
|
|
Looks like another "I know nothing so do all the work for me" question (o;
| Quote: |
| Basically, can you please give me the C source codes. |
No..but you can download it from www.uclinux.org (o;
| Quote: |
| Then please tell me how to compile it in ANSI C compiler. |
The uclinux distribution comes with a set of application to use right a away and building them is just part of the big "make" process and you'll end up with a uclinux kernel and a filesystem containing the applications you configured to be included.
There's a mailing list for uclinux at www.uclinux.org...I strongly suggest that you subscribe there for further information.
| Quote: |
| Finally, please tell me how to port to an 8bit microcontroller. |
Don't even think about it since it isn't possible. Basically spoken it needs a 32-bit address space and a GCC compiler supporting the processor. You CAN'T compile a (uc)linux kernel without GCC!
|
|
| Back to top |
|
 |
daxxx1
Joined: 24 Jul 2004 Posts: 12
|
29 Aug 2004 10:52 Re: Can anyone teach me how to us ucLinux |
|
|
|
I have downloaded the linux-2.0.38.tar as base software.
However, we will compile this software with another compiler (example the H8 Hitachi 32 bit micon or V850 series 32 bit NEC micons.
Can you please answer the following questions?
1. From my understanding, what I have downloaded is the source code for the kernel. Because my plan is to get only the C and H files. Then compile them using the V850 in another compiler. Is this possible? The software was browsed, and I was shocked that I have to study many files.
2. Do I need only the source codes for the directories: kernel, init, inc, lib?
3. Also, the distributions for the ports include again all the source codes. Because we need to write in assembly for the porting for the V850 processors. Again is it possible to tell me which directories are the ports?
Example in my download:
C:\My Documents\linux\arch\m68k
contains some kernel and other directories. Is this directory ported already to 6K000 Motorola processors?
My best regards....:o)
|
|
| Back to top |
|
 |
pamnul
Joined: 22 Mar 2004 Posts: 11
|
29 Aug 2004 12:08 Re: Can anyone teach me how to us ucLinux |
|
|
|
Hi all.
I want to write driver in uClinux, How to start? where i can download document?
thanks
|
|
| Back to top |
|
 |
davorin
Joined: 07 Jun 2003 Posts: 1490 Helped: 8
|
29 Aug 2004 12:31 Re: Can anyone teach me how to us ucLinux |
|
|
|
1. Do not start a new thread!!! Open a new topic instead next time!!!
2. http://www.xml.com/ldd/chapter/book/
|
|
| Back to top |
|
 |
davorin
Joined: 07 Jun 2003 Posts: 1490 Helped: 8
|
29 Aug 2004 12:37 Re: Can anyone teach me how to us ucLinux |
|
|
|
| Quote: |
| 1. From my understanding, what I have downloaded is the source code for the kernel. Because my plan is to get only the C and H files. Then compile them using the V850 in another compiler. Is this possible? The software was browsed, and I was shocked that I have to study many files. |
If you don't intend to invest any time studying Linux kernel sources than better stop right now!!!
Why did you download 2.0.x Kernel? Only 2.4 and 2.6 kernel have v850 support built in.
| Quote: |
| 2. Do I need only the source codes for the directories: kernel, init, inc, lib? |
Leave the kernel sources as it is and use the linux build system!! If your v850 compiler isn't using a gcc/binutils backend it will never work.
| Quote: |
| 3. Also, the distributions for the ports include again all the source codes. Because we need to write in assembly for the porting for the V850 processors. Again is it possible to tell me which directories are the ports? |
Processor specific code is under "arch"...but sometimes spread all over and included via some ifdefs.
| Quote: |
Example in my download:
C:\My Documents\linux\arch\m68k
contains some kernel and other directories. Is this directory ported already to 6K000 Motorola processors? |
Never heard of 6K000...but if you mean 68000 then yes..there is alrady support for it..but thought you are trying to use NEC v850?
|
|
| Back to top |
|
 |