Lantronix EDS2100 Linux SDK - User Guide - Page 75

B. Differences between uClinux and Standard Linux

Page 75 highlights

B. Differences Between µClinux and Standard Linux The µClinux kernel is a collection of patches to make the standard Linux kernel run on CPUs that do not have an MMU. As a consequence you will encounter some differences between the µClinux and the standard Linux behavior. While porting existing Linux applications to µClinux/ColdFire you should be aware of these limitations:  no fork() - consider using vfork() instead but beware of the difference of their semantics  no daemon() - it is usually implemented on top of fork and cannot be easily replaced without changing the semantics.  fixed stack size -- the stack of an application is set at execution time and cannot grow during runtime. The default stack size is 4k! It can be increased with the "-s" option of m68k-uClinuxelf2flat.  limited libc compared to glibc -- either add more to libc, or remove some functionality.  no support for ELF binary file format  very limited support for shared libraries due to missing MMU -- all applications get linked statically  mmap() is very inefficient  no paging -- applications have to be loaded completely into RAM, the heap is very susceptible to fragmentation.  processes do not run in their isolated virtual memory -- they can corrupt other processes and even the kernel. Linux Software Developers Kit (SDK) User Guide 75

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

Linux Software Developers Kit (SDK) User Guide
75
B. Differences Between μClinux and Standard
Linux
The µClinux kernel is a collection of patches to make the standard Linux kernel run on CPUs that
do not have an MMU. As a consequence you will encounter some differences between the
µClinux and the standard Linux behavior. While porting existing Linux applications to
µClinux/ColdFire you should be aware of these limitations:
no fork() – consider using vfork() instead but beware of the difference of their semantics
no daemon() – it is usually implemented on top of fork and cannot be easily replaced without
changing the semantics.
fixed stack size -- the stack of an application is set at execution time and cannot grow during
runtime. The default stack size is 4k! It can be increased with the "-s" option of m68k-uClinux-
elf2flat.
limited libc compared to glibc -- either add more to libc, or remove some functionality.
no support for ELF binary file format
very limited support for shared libraries due to missing MMU -- all applications get linked
statically
mmap() is very inefficient
no paging -- applications have to be loaded completely into RAM, the heap is very
susceptible to fragmentation.
processes do not run in their isolated virtual memory -- they can corrupt other processes and
even the kernel.