(bumping it, but to add some info.)
In case you accidentally jump off the ledge and end up in Rustbro City, you can go to Rustbro tunnel and use rock smash and proceed to Vendanturf town and so on. Finally you can climb up the Mt. Chimney and proceed with the storyline.