Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

uClinux with uClibc

Altera_Forum
Honored Contributor II
1,173 Views

Hippo, 

 

Can you tell me the reason for building the kernel without using uClibc ? It seems that to compile gdb, i have to build the kernel with uClibc ... 

 

Please explain ... 

 

Thanks.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
446 Views

Actually kernel does not need uClibc. 

But the user apps do. 

 

The nios2-linux-uclibc-gcc is the same compiler as nios2-elf-gcc. But we build it (using buildroot) again uClibc for uClinux instead of the newlib. The nios2gcc.tar.bz2 has uClibc already. So we don't use the uClibc build in the uClinux-dist. 

 

But you can still use the uClibc of uClinux-dist. You can use nios2-elf-gcc and need to add nostdinc, nostdlib and crt0.... flags to arch.config . You can find these flags in the make rule of Microtronix's 1.4 release or the other arch in uClinux-dist. That's what we did without buidlroot. 

 

There is a "debug" apps in Microtronix's 1.4 release.
0 Kudos
Altera_Forum
Honored Contributor II
446 Views

hippo, 

 

I saw the "debug" in Microtronix 1.4, but just do not know how to use it ... 

Are there documentations around ? 

 

Thanks.
0 Kudos
Altera_Forum
Honored Contributor II
446 Views

sorry, I don't know. it looks like doing a syscall to kernel, you may trace the syscall.

0 Kudos
Reply