README 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. Linux on the CRIS architecture
  2. ==============================
  3. This is a port of Linux to Axis Communications ETRAX 100LX,
  4. ETRAX FS and ARTPEC-3 embedded network CPUs.
  5. For more information about CRIS and ETRAX please see further below.
  6. In order to compile this you need a version of gcc with support for the
  7. ETRAX chip family. Please see this link for more information on how to
  8. download the compiler and other tools useful when building and booting
  9. software for the ETRAX platform:
  10. http://developer.axis.com/wiki/doku.php?id=axis:install-howto-2_20
  11. What is CRIS ?
  12. --------------
  13. CRIS is an acronym for 'Code Reduced Instruction Set'. It is the CPU
  14. architecture in Axis Communication AB's range of embedded network CPU's,
  15. called ETRAX.
  16. The ETRAX 100LX chip
  17. --------------------
  18. For reference, please see the following link:
  19. http://www.axis.com/products/dev_etrax_100lx/index.htm
  20. The ETRAX 100LX is a 100 MIPS processor with 8kB cache, MMU, and a very broad
  21. range of built-in interfaces, all with modern scatter/gather DMA.
  22. Memory interfaces:
  23. * SRAM
  24. * NOR-flash/ROM
  25. * EDO or page-mode DRAM
  26. * SDRAM
  27. I/O interfaces:
  28. * one 10/100 Mbit/s ethernet controller
  29. * four serial-ports (up to 6 Mbit/s)
  30. * two synchronous serial-ports for multimedia codec's etc.
  31. * USB host controller and USB slave
  32. * ATA
  33. * SCSI
  34. * two parallel-ports
  35. * two generic 8-bit ports
  36. (not all interfaces are available at the same time due to chip pin
  37. multiplexing)
  38. ETRAX 100LX is CRISv10 architecture.
  39. The ETRAX FS and ARTPEC-3 chips
  40. -------------------------------
  41. The ETRAX FS is a 200MHz 32-bit RISC processor with on-chip 16kB
  42. I-cache and 16kB D-cache and with a wide range of device interfaces
  43. including multiple high speed serial ports and an integrated USB 1.1 PHY.
  44. The ARTPEC-3 is a variant of the ETRAX FS with additional IO-units
  45. used by the Axis Communications network cameras.
  46. See below link for more information:
  47. http://www.axis.com/products/dev_etrax_fs/index.htm
  48. ETRAX FS and ARTPEC-3 are both CRISv32 architectures.
  49. Bootlog
  50. -------
  51. Just as an example, this is the debug-output from a boot of Linux 2.4 on
  52. a board with ETRAX 100LX. The displayed BogoMIPS value is 5 times too small :)
  53. At the end you see some user-mode programs booting like telnet and ftp daemons.
  54. Linux version 2.4.1 (bjornw@godzilla.axis.se) (gcc version 2.96 20000427 (experimental)) #207 Wed Feb 21 15:48:15 CET 2001
  55. ROM fs in RAM, size 1376256 bytes
  56. Setting up paging and the MMU.
  57. On node 0 totalpages: 2048
  58. zone(0): 2048 pages.
  59. zone(1): 0 pages.
  60. zone(2): 0 pages.
  61. Linux/CRIS port on ETRAX 100LX (c) 2001 Axis Communications AB
  62. Kernel command line:
  63. Calibrating delay loop... 19.91 BogoMIPS
  64. Memory: 13872k/16384k available (587k kernel code, 2512k reserved, 44k data, 24k init)
  65. kmem_create: Forcing size word alignment - vm_area_struct
  66. kmem_create: Forcing size word alignment - filp
  67. Dentry-cache hash table entries: 2048 (order: 1, 16384 bytes)
  68. Buffer-cache hash table entries: 2048 (order: 0, 8192 bytes)
  69. Page-cache hash table entries: 2048 (order: 0, 8192 bytes)
  70. kmem_create: Forcing size word alignment - kiobuf
  71. kmem_create: Forcing size word alignment - bdev_cache
  72. Inode-cache hash table entries: 1024 (order: 0, 8192 bytes)
  73. kmem_create: Forcing size word alignment - inode_cache
  74. POSIX conformance testing by UNIFIX
  75. Linux NET4.0 for Linux 2.4
  76. Based upon Swansea University Computer Society NET3.039
  77. Starting kswapd v1.8
  78. kmem_create: Forcing size word alignment - file lock cache
  79. kmem_create: Forcing size word alignment - blkdev_requests
  80. block: queued sectors max/low 9109kB/3036kB, 64 slots per queue
  81. ETRAX 100LX 10/100MBit ethernet v2.0 (c) 2000 Axis Communications AB
  82. eth0 initialized
  83. eth0: changed MAC to 00:40:8C:CD:00:00
  84. ETRAX 100LX serial-driver $Revision: 1.7 $, (c) 2000 Axis Communications AB
  85. ttyS0 at 0xb0000060 is a builtin UART with DMA
  86. ttyS1 at 0xb0000068 is a builtin UART with DMA
  87. ttyS2 at 0xb0000070 is a builtin UART with DMA
  88. ttyS3 at 0xb0000078 is a builtin UART with DMA
  89. Axis flash mapping: 200000 at 50000000
  90. Axis flash: Found 1 x16 CFI device at 0x0 in 16 bit mode
  91. Amd/Fujitsu Extended Query Table v1.0 at 0x0040
  92. Axis flash: JEDEC Device ID is 0xC4. Assuming broken CFI table.
  93. Axis flash: Swapping erase regions for broken CFI table.
  94. number of CFI chips: 1
  95. Using default partition table
  96. I2C driver v2.2, (c) 1999-2001 Axis Communications AB
  97. ETRAX 100LX GPIO driver v2.1, (c) 2001 Axis Communications AB
  98. NET4: Linux TCP/IP 1.0 for NET4.0
  99. IP Protocols: ICMP, UDP, TCP
  100. kmem_create: Forcing size word alignment - ip_dst_cache
  101. IP: routing cache hash table of 1024 buckets, 8Kbytes
  102. TCP: Hash tables configured (established 2048 bind 2048)
  103. NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
  104. VFS: Mounted root (cramfs filesystem) readonly.
  105. Init starts up...
  106. Mounted none on /proc ok.
  107. Setting up eth0 with ip 10.13.9.116 and mac 00:40:8c:18:04:60
  108. eth0: changed MAC to 00:40:8C:18:04:60
  109. Setting up lo with ip 127.0.0.1
  110. Default gateway is 10.13.9.1
  111. Hostname is bbox1
  112. Telnetd starting, using port 23.
  113. using /bin/sash as shell.
  114. sftpd[15]: sftpd $Revision: 1.7 $ starting up
  115. And here is how some /proc entries look:
  116. 17# cd /proc
  117. 17# cat cpuinfo
  118. cpu : CRIS
  119. cpu revision : 10
  120. cpu model : ETRAX 100LX
  121. cache size : 8 kB
  122. fpu : no
  123. mmu : yes
  124. ethernet : 10/100 Mbps
  125. token ring : no
  126. scsi : yes
  127. ata : yes
  128. usb : yes
  129. bogomips : 99.84
  130. 17# cat meminfo
  131. total: used: free: shared: buffers: cached:
  132. Mem: 7028736 925696 6103040 114688 0 229376
  133. Swap: 0 0 0
  134. MemTotal: 6864 kB
  135. MemFree: 5960 kB
  136. MemShared: 112 kB
  137. Buffers: 0 kB
  138. Cached: 224 kB
  139. Active: 224 kB
  140. Inact_dirty: 0 kB
  141. Inact_clean: 0 kB
  142. Inact_target: 0 kB
  143. HighTotal: 0 kB
  144. HighFree: 0 kB
  145. LowTotal: 6864 kB
  146. LowFree: 5960 kB
  147. SwapTotal: 0 kB
  148. SwapFree: 0 kB
  149. 17# ls -l /bin
  150. -rwxr-xr-x 1 342 100 10356 Jan 01 00:00 ifconfig
  151. -rwxr-xr-x 1 342 100 17548 Jan 01 00:00 init
  152. -rwxr-xr-x 1 342 100 9488 Jan 01 00:00 route
  153. -rwxr-xr-x 1 342 100 46036 Jan 01 00:00 sftpd
  154. -rwxr-xr-x 1 342 100 48104 Jan 01 00:00 sh
  155. -rwxr-xr-x 1 342 100 16252 Jan 01 00:00 telnetd