Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get sdk with angus patch to work with pfalcon/esp-open-sdk #10

Open
dragon-lord opened this issue Feb 11, 2020 · 1 comment
Open

Comments

@dragon-lord
Copy link

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.

@cnlohr
Copy link
Owner

cnlohr commented May 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants