Skip to content

existing Sming 4.2 based app - OTA to 5.1 #2727

Closed Answered by mikee47
pljakobs asked this question in Q&A
Discussion options

You must be logged in to vote

OK, so the partition layout is still incorrect (AFAIK) so let's try and get that sorted first. Forget about the boot sector for now - the existing boot sector should work. Try this:

    // Support updating legacy devices without partition tables (Sming 4.2 and earlier)
    #ifdef ARCH_ESP8266

    #include <Storage/partition_info.h>

    extern "C" void __wrap_user_pre_init(void)
    {
        static_assert(PARTITION_TABLE_OFFSET == 0x3fa000, "Bad PTO");

        Storage::initialize();

        auto& flash = *Storage::spiFlash;
        if(!flash.partitions()) {
            using FullType = Storage::Partition::FullType;
            using SubType = Storage::Partition::SubType;
    #define P…

Replies: 16 comments 47 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikee47
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikee47
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mikee47
Comment options

@pljakobs
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@pljakobs
Comment options

@mikee47
Comment options

@pljakobs
Comment options

@mikee47
Comment options

@pljakobs
Comment options

Comment options

You must be logged in to vote
1 reply
@pljakobs
Comment options

Comment options

You must be logged in to vote
2 replies
@pljakobs
Comment options

@pljakobs
Comment options

Comment options

You must be logged in to vote
18 replies
@mikee47
Comment options

@pljakobs
Comment options

@pljakobs
Comment options

@mikee47
Comment options

@mikee47
Comment options

Comment options

You must be logged in to vote
8 replies
@pljakobs
Comment options

@mikee47
Comment options

Answer selected by pljakobs
@pljakobs
Comment options

@pljakobs
Comment options

@mikee47
Comment options

@pljakobs
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants