esp8266rawpackets
esp8266rawpackets copied to clipboard
Can't get sdk with angus patch to work with pfalcon/esp-open-sdk
I know that this is several years old now, but I'm interested in experimenting with this. I followed this tutorial to get my setup working. Its basically pfalcons environment, but with a couple patches to help with a couple things. In order to get this recieve callback thing to work I need to use the sdk mentioned here. I tried make STANDALONE=n
, as described in the readme for pfalcons environment, and to modify the make file:
CC=xtensa-lx106-elf-gcc -I$(DIR)/include -L$(DIR)/lib
LDLIBS=-nostdlib -Wl,-Map=output.map -Wl,--start-group -lc -lhal -lpp -llwip -lphy -lnet80211 -lwpa -lmain -Wl,--end-group -lgcc
CFLAGS= -I. -mlongcalls
LDFLAGS=-T$(DIR)/ld/eagle.app.v6.ld
where DIR is the path to the sdk. This worked when I set DIR to the file "ESP8266_NONOS_SDK-2.1.0-18-g61248df", that you get when you make in pfalcons environment, but when I try to set DIR to the sdk with angus patch, it returns with this
xtensa-lx106-elf-gcc -I/media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/include -L/media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/lib -T/media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/ld/eagle.app.v6.ld main.o -nostdlib -Wl,-Map=output.map -Wl,--start-group -lc -lhal -lpp -llwip -lphy -lnet80211 -lwpa -lmain -Wl,--end-group -lgcc -o main /media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/lib/libmain.a(app_main.o): In function 'user_uart_wait_tx_fifo_empty': (.irom0.text+0x6e0): undefined reference to 'user_rf_cal_sector_set' /media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/lib/libmain.a(app_main.o): In function 'flash_data_check': (.irom0.text+0x84b): undefined reference to 'user_rf_cal_sector_set' /media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/lib/libwpa.a(wpa_auth.o): In function 'wpa_receive': (.irom0.text+0x9a0): undefined reference to 'aes_wrap' /media/lysander/Data/Workspace/ESP8266/ESP8266_NONOS_SDK/lib/libwpa.a(wpa_auth.o): In function '__wpa_send_eapol': (.irom0.text+0xd73): undefined reference to 'aes_wrap' collect2: error: ld returned 1 exit status <builtin>: recipe for target 'main' failed make: *** [main] Error 1
I don't really know what to do from here, any help would be appreciated, thanks.
It looks like you would need to update this project to a newer one by adding some of those functions. I'm not actually sure of the right way to do this for the libwpa stuff. Regarding user_rf_cal_sector_set
you should google that and c&p one of the examples from the internet.
Honestly, you should probably look into the newer Swadge stuff, as that's for much more modern versions of the nonos sdk. For example: https://github.com/AEFeinstein/Super-2021-Swadge-FW-Sandbox