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

ESP-IDF version problems (needs v3.0, using 94ec3c8) #21

Open
superloach opened this issue Dec 25, 2018 · 5 comments
Open

ESP-IDF version problems (needs v3.0, using 94ec3c8) #21

superloach opened this issue Dec 25, 2018 · 5 comments

Comments

@superloach
Copy link

This happens when building any existing app I've found (Fluppy, BMO chooser, etc.)

CC build/bootloader/bootloader_support/src/efuse.o
CC build/bootloader/bootloader_support/src/bootloader_flash.o
CC build/bootloader/bootloader_support/src/secure_boot_signatures.o
CC build/bootloader/bootloader_support/src/secure_boot.o
CC build/bootloader/bootloader_support/src/bootloader_clock.o
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader_support/src/bootloader_clock.c: In function 'bootloader_clock_configure':
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader_support/src/bootloader_clock.c:47:12: error: 'rtc_clk_config_t {aka struct <anonymous>}' has no member named 'cpu_freq'
     clk_cfg.cpu_freq = cpu_freq;
            ^
make[2]: *** [/home/superloach/esp/8bkc-sdk/esp-idf/make/component_wrapper.mk:292: src/bootloader_clock.o] Error 1
make[1]: *** [/home/superloach/esp/8bkc-sdk/esp-idf/make/project.mk:527: component-bootloader_support-build] Error 2
make: *** [/home/superloach/esp/8bkc-sdk//8bkc-components/bootloader/Makefile.projbuild:40: /home/superloach/esp/8bkc-fluppy/build/bootloader/bootloader.bin] Error 2
@superloach
Copy link
Author

So, I have fixed that issue (I think).

[superloach@archstick PocketSNES]$ grep -R "clk_cfg.cpu_freq" ~/esp/8bkc-sdk/
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader_support/src/bootloader_clock.c:    clk_cfg.cpu_freq = cpu_freq;
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:    clk_cfg.cpu_freq = cpu_freq;
/home/superloach/esp/8bkc-sdk/esp-idf/components/bootloader_support/src/bootloader_clock.c:    clk_cfg.cpu_freq_mhz = cpu_freq_mhz;

I changed cpu_freq to cpu_freq_mhz in those two files, and now it gets past that error!

And now, more errors.

CC build/bootloader/main/bootloader_start.o
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c: In function 'load_partition_table':
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:166:34: error: 'ESP_PARTITION_TABLE_ADDR' undeclared (first use in this function)
     partitions = bootloader_mmap(ESP_PARTITION_TABLE_ADDR, ESP_PARTITION_TABLE_DATA_LEN);
                                  ^
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:166:34: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/superloach/esp/8bkc-sdk/esp-idf/make/component_wrapper.mk:292: bootloader_start.o] Error 1
make[1]: *** [/home/superloach/esp/8bkc-sdk/esp-idf/make/project.mk:527: component-main-build] Error 2
make: *** [/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/Makefile.projbuild:40: /home/superloach/PocketSNES/build/bootloader/bootloader.bin] Error 2

Assuming a file was not included, or something of that sort? I'll see if I can find it.

@superloach
Copy link
Author

Well, this is disappointing.

[superloach@archstick PocketSNES]$ grep -R "ESP_PARTITION_TABLE_ADDR" ~/esp/8bkc-sdk
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:        err = esp_secure_boot_verify_signature(ESP_PARTITION_TABLE_ADDR, ESP_PARTITION_TABLE_DATA_LEN);
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:    partitions = bootloader_mmap(ESP_PARTITION_TABLE_ADDR, ESP_PARTITION_TABLE_DATA_LEN);
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:            ESP_LOGE(TAG, "bootloader_mmap(0x%x, 0x%x) failed", ESP_PARTITION_TABLE_ADDR, ESP_PARTITION_TABLE_DATA_LEN);
/home/superloach/esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:    ESP_LOGD(TAG, "mapped partition table 0x%x at 0x%x", ESP_PARTITION_TABLE_ADDR, (intptr_t)partitions);

@superloach
Copy link
Author

I am going to see if using an older version of esp-idf fixes this.

@superloach
Copy link
Author

esp-dif 3.0 works for me!
The only problem I have with compiling Fluppy is corrupted tiles for the power menu, I'll try to get a picture of it later.

@superloach
Copy link
Author

I just tried compiling Fluppy again, and the graphical errors in the menu were no longer present.
What happened before was that I forgot to install libgd and xxd, and had to install them when the Makefile errored out, so obviously some step got skipped in generating the tiles.

@superloach superloach changed the title Problem with CPU frequency config? ESP-IDF version problems (needs v3.0, using 94ec3c8) Dec 27, 2018
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

1 participant