Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.86 KB | None | 0 0
  1. $ make MAC_BYTE_6=0xB1 IP_ADDRESS_4=31 all
  2.  
  3. -------- begin --------
  4. avr-gcc (GCC) 4.8.1
  5. Copyright (C) 2013 Free Software Foundation, Inc.
  6. This is free software; see the source for copying conditions. There is NO
  7. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8.  
  9.  
  10. Compiling C: ../etherflash.c
  11. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../etherflash.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/etherflash.o.d ../etherflash.c -o etherflash.o
  12. ../etherflash.c: In function ‘tftp_get’:
  13. ../etherflash.c:402:17: warning: assertions are a deprecated extension [-Wdeprecated]
  14. #if DEBUG_AV && #DEBUG_FLASH_PROG
  15. ^
  16. ../etherflash.c:263:22: warning: variable ‘ETH_packet’ set but not used [-Wunused-but-set-variable]
  17. struct ETH_header * ETH_packet; // ETH_struct anlegen
  18. ^
  19.  
  20. Compiling C: ../checksum.c
  21. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../checksum.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/checksum.o.d ../checksum.c -o checksum.o
  22.  
  23. Compiling C: ../ethernet.c
  24. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../ethernet.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/ethernet.o.d ../ethernet.c -o ethernet.o
  25. ../ethernet.c: In function ‘eth_packet_dispatcher’:
  26. ../ethernet.c:87:18: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  27. if (((struct IP_header *)&ethernetbuffer[ETH_HDR_LEN])->IP_Proto == PROT_UDP)
  28. ^
  29.  
  30. Compiling C: ../arp.c
  31. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../arp.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/arp.o.d ../arp.c -o arp.o
  32. ../arp.c: In function ‘arp_reply’:
  33. ../arp.c:58:59: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
  34. ARP_packet->ARP_destMac[i] = ARP_packet->ARP_sourceMac[i]; // MAC und IP umkopieren
  35. ^
  36. ../arp.c:57:4: note: containing loop
  37. for ( i = 0; i < 10; i++ )
  38. ^
  39.  
  40. Compiling C: ../enc28j60.c
  41. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../enc28j60.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/enc28j60.o.d ../enc28j60.c -o enc28j60.o
  42.  
  43. Compiling C: ../spi.c
  44. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../spi.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/spi.o.d ../spi.c -o spi.o
  45.  
  46. Compiling C: ../udp.c
  47. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../udp.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/udp.o.d ../udp.c -o udp.o
  48.  
  49. Compiling C: ../dhcpc.c
  50. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./../dhcpc.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/dhcpc.o.d ../dhcpc.c -o dhcpc.o
  51.  
  52. Compiling C: eemem.c
  53. avr-gcc -c -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=./eemem.lst -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/eemem.o.d eemem.c -o eemem.o
  54.  
  55. Calculate code size: device_001.sizeelf
  56. avr-gcc -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=etherflash.o -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/device_001.sizeelf.d etherflash.o checksum.o ethernet.o arp.o enc28j60.o spi.o udp.o dhcpc.o eemem.o --output device_001.sizeelf -Wl,--defsym=app_start=0 -Wl,-Map=device_001.map,--cref -lm -Wl,--defsym=app_start=0x7C00 -Wl,--section-start=.text=0x7C00 -T ../make.files/eth-avr5.x -Wl,--section-start=.bootloader=0x0000
  57. avr-size -x -A device_001.sizeelf > size.txt
  58. PATH=$PATH:../make.files && . checksize.sh size.txt 0x3ff 0x7C00
  59.  
  60. Linking: device_001.elf
  61. blss=`gawk '/BL_CODE_START[[:space:]]+[[:xdigit:]]+/ {print $2}' size.txt`; avr-gcc -DCONFIG_MAC_BYTE_6=0xB1 -DCONFIG_IP_ADDRESS_4=31 -DCONFIG_REQ_FILENAME_3SYM= -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_FLAVOR=1 -DBLSECSTRT=0x3ff -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -mcall-prologues -Wa,-adhlns=etherflash.o -I. -I.. -std=gnu99 -Wundef -MMD -MP -MF .dep/device_001.elf.d etherflash.o checksum.o ethernet.o arp.o enc28j60.o spi.o udp.o dhcpc.o eemem.o --output device_001.elf -Wl,--defsym=app_start=0 -Wl,-Map=device_001.map,--cref -lm -Wl,--defsym=app_start=0x7C00 -Wl,--section-start=.text=0x7C00 -T ../make.files/eth-avr5.x -Wl,--section-start=.bootloader=$blss
  62.  
  63. Creating load file for Flash: device_001.hex
  64. avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock device_001.elf device_001.hex
  65.  
  66. Creating load file for EEPROM: device_001.eep
  67. avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex device_001.elf device_001.eep || exit 0
  68.  
  69. Creating Extended Listing: device_001.lss
  70. avr-objdump -h -S -z device_001.elf > device_001.lss
  71.  
  72. Creating Symbol Table: device_001.sym
  73. avr-nm -n device_001.elf > device_001.sym
  74.  
  75. Size after:
  76. AVR Memory Usage
  77. ----------------
  78. Device: atmega328p
  79.  
  80. Program: 4326 bytes (13.2% Full)
  81. (.text + .data + .bootloader)
  82.  
  83. Data: 783 bytes (38.2% Full)
  84. (.data + .bss + .noinit)
  85.  
  86. EEPROM: 110 bytes (10.7% Full)
  87. (.eeprom)
  88.  
  89.  
  90.  
  91. -------- end --------
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98. $ make program
  99. avrdude -p atmega328p -c stk500v1 -P/dev/ttyACM0 -b19200 -v -v -U flash:w:device_001.hex -U eeprom:w:device_001.eep
  100.  
  101. avrdude: Version 6.1, compiled on Sep 11 2014 at 20:00:34
  102. Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
  103. Copyright (c) 2007-2014 Joerg Wunsch
  104.  
  105. System wide configuration file is "/etc/avrdude.conf"
  106. User configuration file is "/home/samson/.avrduderc"
  107. User configuration file does not exist or is not a regular file, skipping
  108.  
  109. Using Port : /dev/ttyACM0
  110. Using Programmer : stk500v1
  111. Overriding Baud Rate : 19200
  112. AVR Part : ATmega328P
  113. Chip Erase delay : 9000 us
  114. PAGEL : PD7
  115. BS2 : PC2
  116. RESET disposition : dedicated
  117. RETRY pulse : SCK
  118. serial program mode : yes
  119. parallel program mode : yes
  120. Timeout : 200
  121. StabDelay : 100
  122. CmdexeDelay : 25
  123. SyncLoops : 32
  124. ByteDelay : 0
  125. PollIndex : 3
  126. PollValue : 0x53
  127. Memory Detail :
  128.  
  129. Block Poll Page Polled
  130. Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
  131. ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
  132. eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
  133. flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
  134. lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  135. hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  136. efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  137. lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  138. calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
  139. signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
  140.  
  141. Programmer Type : STK500
  142. Description : Atmel STK500 Version 1.x firmware
  143. Hardware Version: 2
  144. Firmware Version: 1.18
  145. Topcard : Unknown
  146. Vtarget : 0.0 V
  147. Varef : 0.0 V
  148. Oscillator : Off
  149. SCK period : 0.1 us
  150.  
  151. avrdude: AVR device initialized and ready to accept instructions
  152.  
  153. Reading | ################################################## | 100% 0.06s
  154.  
  155. avrdude: Device signature = 0x1e950f
  156. avrdude: safemode: lfuse reads as FF
  157. avrdude: safemode: hfuse reads as DE
  158. avrdude: safemode: efuse reads as 5
  159. avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
  160. To disable this feature, specify the -D option.
  161. avrdude: erasing chip
  162. avrdude: reading input file "device_001.hex"
  163. avrdude: input file device_001.hex auto detected as Intel Hex
  164. avrdude: writing flash (32458 bytes):
  165.  
  166. Writing | ################################################## | 100% 0.00s
  167.  
  168. avrdude: 32458 bytes of flash written
  169. avrdude: verifying flash memory against device_001.hex:
  170. avrdude: load data flash data from input file device_001.hex:
  171. avrdude: input file device_001.hex auto detected as Intel Hex
  172. avrdude: input file device_001.hex contains 32458 bytes
  173. avrdude: reading on-chip flash data:
  174.  
  175. Reading | ################################################## | 100% 0.00s
  176.  
  177. avrdude: verifying ...
  178. avrdude: 32458 bytes of flash verified
  179. avrdude: reading input file "device_001.eep"
  180. avrdude: input file device_001.eep auto detected as Intel Hex
  181. avrdude: writing eeprom (110 bytes):
  182.  
  183. Writing | ################################################## | 100% 6.19s
  184.  
  185. avrdude: 110 bytes of eeprom written
  186. avrdude: verifying eeprom memory against device_001.eep:
  187. avrdude: load data eeprom data from input file device_001.eep:
  188. avrdude: input file device_001.eep auto detected as Intel Hex
  189. avrdude: input file device_001.eep contains 110 bytes
  190. avrdude: reading on-chip eeprom data:
  191.  
  192. Reading | ################################################## | 100% 1.16s
  193.  
  194. avrdude: verifying ...
  195. avrdude: 110 bytes of eeprom verified
  196.  
  197. avrdude: safemode: lfuse reads as FF
  198. avrdude: safemode: hfuse reads as DE
  199. avrdude: safemode: efuse reads as 5
  200. avrdude: safemode: Fuses OK (E:05, H:DE, L:FF)
  201.  
  202. avrdude done. Thank you.
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210. $ make fuse
  211. avrdude -p atmega328p -c stk500v1 -P/dev/ttyACM0 -b19200 -v -v -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m
  212.  
  213. avrdude: Version 6.1, compiled on Sep 11 2014 at 20:00:34
  214. Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
  215. Copyright (c) 2007-2014 Joerg Wunsch
  216.  
  217. System wide configuration file is "/etc/avrdude.conf"
  218. User configuration file is "/home/samson/.avrduderc"
  219. User configuration file does not exist or is not a regular file, skipping
  220.  
  221. Using Port : /dev/ttyACM0
  222. Using Programmer : stk500v1
  223. Overriding Baud Rate : 19200
  224. AVR Part : ATmega328P
  225. Chip Erase delay : 9000 us
  226. PAGEL : PD7
  227. BS2 : PC2
  228. RESET disposition : dedicated
  229. RETRY pulse : SCK
  230. serial program mode : yes
  231. parallel program mode : yes
  232. Timeout : 200
  233. StabDelay : 100
  234. CmdexeDelay : 25
  235. SyncLoops : 32
  236. ByteDelay : 0
  237. PollIndex : 3
  238. PollValue : 0x53
  239. Memory Detail :
  240.  
  241. Block Poll Page Polled
  242. Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
  243. ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
  244. eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
  245. flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
  246. lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  247. hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  248. efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  249. lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
  250. calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
  251. signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
  252.  
  253. Programmer Type : STK500
  254. Description : Atmel STK500 Version 1.x firmware
  255. Hardware Version: 2
  256. Firmware Version: 1.18
  257. Topcard : Unknown
  258. Vtarget : 0.0 V
  259. Varef : 0.0 V
  260. Oscillator : Off
  261. SCK period : 0.1 us
  262.  
  263. avrdude: AVR device initialized and ready to accept instructions
  264.  
  265. Reading | ################################################## | 100% 0.05s
  266.  
  267. avrdude: Device signature = 0x1e950f
  268. avrdude: safemode: lfuse reads as FF
  269. avrdude: safemode: hfuse reads as DE
  270. avrdude: safemode: efuse reads as 5
  271. avrdude: reading input file "0xff"
  272. avrdude: writing lfuse (1 bytes):
  273.  
  274. Writing | ################################################## | 100% 0.02s
  275.  
  276. avrdude: 1 bytes of lfuse written
  277. avrdude: verifying lfuse memory against 0xff:
  278. avrdude: load data lfuse data from input file 0xff:
  279. avrdude: input file 0xff contains 1 bytes
  280. avrdude: reading on-chip lfuse data:
  281.  
  282. Reading | ################################################## | 100% 0.02s
  283.  
  284. avrdude: verifying ...
  285. avrdude: 1 bytes of lfuse verified
  286. avrdude: reading input file "0xde"
  287. avrdude: writing hfuse (1 bytes):
  288.  
  289. Writing | ################################################## | 100% 0.02s
  290.  
  291. avrdude: 1 bytes of hfuse written
  292. avrdude: verifying hfuse memory against 0xde:
  293. avrdude: load data hfuse data from input file 0xde:
  294. avrdude: input file 0xde contains 1 bytes
  295. avrdude: reading on-chip hfuse data:
  296.  
  297. Reading | ################################################## | 100% 0.02s
  298.  
  299. avrdude: verifying ...
  300. avrdude: 1 bytes of hfuse verified
  301. avrdude: reading input file "0x05"
  302. avrdude: writing efuse (1 bytes):
  303.  
  304. Writing | ################################################## | 100% 0.02s
  305.  
  306. avrdude: 1 bytes of efuse written
  307. avrdude: verifying efuse memory against 0x05:
  308. avrdude: load data efuse data from input file 0x05:
  309. avrdude: input file 0x05 contains 1 bytes
  310. avrdude: reading on-chip efuse data:
  311.  
  312. Reading | ################################################## | 100% 0.02s
  313.  
  314. avrdude: verifying ...
  315. avrdude: 1 bytes of efuse verified
  316.  
  317. avrdude: safemode: lfuse reads as FF
  318. avrdude: safemode: hfuse reads as DE
  319. avrdude: safemode: efuse reads as 5
  320. avrdude: safemode: Fuses OK (E:05, H:DE, L:FF)
  321.  
  322. avrdude done. Thank you.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement