What's new

Asus rt86u "Format jffs at next boot"

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

P

podkaracz

Guest
I would like to ask for a command that will help me achieve what merlin's "Format jffs at next boot" does but in official firmware. I used to use usb drive with custom scripts back in the day when i tested custom firmwares out and now im on stock. I set my router up with official 45717 and i dont want to play with setting up and clearing everything once again in case some1 advises me to flash merlin and use that option. Is there an option for example ssh command that will achieve the same results as "Format jffs at next boot" but in official firmware?
 
Flash the RMerlin firmware on the router, check the 'Format JFFS partition on next boot' option, make sure to hit save at the bottom of the page. Reboot the router 3 times in the next 15 minutes, waiting 5 to 10 minutes between reboots.

Now, flash the stock firmware version you want and do a full reset to factory defaults and you should be good to go! :D

(Sorry, can't sleep and have had too much cold medicine). :)
 
Flash the RMerlin firmware on the router, check the 'Format JFFS partition on next boot' option, make sure to hit save at the bottom of the page. Reboot the router 3 times in the next 15 minutes, waiting 5 to 10 minutes between reboots.

Now, flash the stock firmware version you want and do a full reset to factory defaults and you should be good to go! :D

(Sorry, can't sleep and have had too much cold medicine). :)

I did that in night before ur response cuz no1 answered but is there any command like that for future use might be useful . Setting up my router with ur guide took me 2 hours with only 2 flashes once merlin and once stock to "wait out" all those settings i can tell its visible in performance but it should not be like this. Too much knowledge and time needed to make it work decently.
 
@podkaracz, it shouldn't take two hours to do that 'dance'. :)

The important point in time is when you've flashed the firmware you want to use and then do the M&M Config fully. ;)

This should have been possible in less than half an hour. But of course, I get to practice this much more than anyone here. :)
 
@podkaracz, it shouldn't take two hours to do that 'dance'. :)

The important point in time is when you've flashed the firmware you want to use and then do the M&M Config fully. ;)

This should have been possible in less than half an hour. But of course, I get to practice this much more than anyone here. :)


You should update point 2 by adding info that on some models u need to reboot manually after wps reset . Also waiting after clear jffs and next boot and i replaced 2 mins wait with router off and router on with 5 mins thats why it took so long
 
Those hidden features in USB Application are disgusting no1 disables that also should i disable something in NAT WINDOW ? I saw OzarkEdge recommend to disable SIP there something more?
 
@podkaracz, it shouldn't take two hours to do that 'dance'. :)

The important point in time is when you've flashed the firmware you want to use and then do the M&M Config fully. ;)

This should have been possible in less than half an hour. But of course, I get to practice this much more than anyone here. :)

Also you should add info that at the end of configuration hard reboot is needed ( unplug power cord from router ) wait 2 mins then run again as last point in guide. With gui reboot it feels more delayed.
 
Why are people not giving information here about clearing jffs2 from ssh like @RMerlin did in 2017 for older models :

"mtd-erase -d jffs2
reboot
umount /jffs"

Those commands wont work for 86u . I need commands that will work . If you give options to people using asus-wrt merlin like "format jffs at next boot" i want to do it myself on stock asus-wrt over ssh for example . If you dont want to share that knowledege to public just write it on private message. I dont get why i cant this information yet and its essential to wipe router and restore its factory-like state.

#edit

From what i understand to restore "factory like" state after using merlin firmware and trying to use scirpts and wanting state like from out of the box i need to initialize or wps reset and remove jffs2 at next boot but cant get those commands. Also doing it hard way like using winscp to get into router then get completly out to the first possible directory and CTRL+A and then DEL key will probably get state that even recovery tool wont restore and will have to send it back to asus for repair thats why i need commands.
 
Last edited by a moderator:
Why are people not giving information here about clearing jffs2 from ssh like @RMerlin did in 2017 for older models :
People are not "giving information" because they don't know the answer to your question.

Those commands wont work for 86u . I need commands that will work . If you give options to people using asus-wrt merlin like "format jffs at next boot" i want to do it myself on stock asus-wrt over ssh for example.
This subforum is for Merlin's firmware not stock asuswrt. If those commands don't work for the 86U then we don't know of any other commands.
 
People are not "giving information" because they don't know the answer to your question.

This subforum is for Merlin's firmware not stock asuswrt. If those commands don't work for the 86U then we don't know of any other commands.

Yes this command is on asus merlin thats why i write here also if you dont know commands which stand behind it, why is there "format jffs partition at next boot" there? Its just for people who are bored and want to tick something that wont change anything? Lets be serious tell me exactly what commands can be seen on cmd prompt when format jffs partition at next boot is initiated so i can reproduce them over ssh.
 
Lets be serious tell me exactly what commands can be seen on cmd prompt when format jffs partition at next boot is initiated so i can reproduce them over ssh.
Yes let's be serious. There are no commands seen on cmd prompt when "format jffs partition at next boot" is initiated. It has to be done by the router during the boot process before the jffs partition is mounted. You can see the code here:

https://github.com/RMerl/asuswrt-me...b16b3991f2/release/src/router/rc/jffs2.c#L249

and here:

https://github.com/RMerl/asuswrt-me...b16b3991f2/release/src/router/rc/jffs2.c#L303
 
Yes let's be serious. There are no commands seen on cmd prompt when "format jffs partition at next boot" is initiated. It has to be done by the router during the boot process before the jffs partition is mounted. You can see the code here:

https://github.com/RMerl/asuswrt-me...b16b3991f2/release/src/router/rc/jffs2.c#L249

and here:

https://github.com/RMerl/asuswrt-me...b16b3991f2/release/src/router/rc/jffs2.c#L303

"cmd prompt" message was just an example of what i imagine it to be .My knowledge is very limited. Is there a single/series of commands that can be run on rt86u that will achieve the same results as "format jffs at next boot" ?( for example over ssh) I can see the script that is checking variables and does action lets say "jffs2 erase" in case of something what does it actually do and which part applies to 86u since from what i understand the mtd~ part is for older models. Its like it checks for location of said jffs2 parition and in case of different models it applies different pattern to remove . Correct me if im wrong because i dont know any of this.
 
What output do you get from this command?

cat /proc/mtd
/$ cat /proc/mtd
dev: size erasesize name
mtd0: 05aa0000 00020000 "rootfs"
mtd1: 05ac0000 00020000 "rootfs_update"
mtd2: 00800000 00020000 "data"
mtd3: 00100000 00020000 "nvram"
mtd4: 05f00000 00020000 "image"
mtd5: 05f00000 00020000 "image_update"
mtd6: 00460000 00020000 "bootfs"
mtd7: 00440000 00020000 "bootfs_update"
mtd8: 03000000 00020000 "misc2"
mtd9: 00800000 00020000 "misc1"
mtd10: 0557e000 0001f000 "rootfs_ubifs"
 
OK that's completely different from the earlier model routers which had a "brcmnand" (jffs) partition. So it looks like the mtd-erase2 command is not compatible with your router.

The best you can probably achieve from the command line is to use the rm command.
Code:
sync
rm -rf /jffs/*
sync

Then turn off the router using the power button.

EDIT: Looking at this section of code it looks like the equivalent to brcmnand on HND is misc2. But there is still no support for that partition in the mtd-erase2 command.
 
Last edited:
OK that's completely different from the earlier model routers which had a "brcmnand" (jffs) partition. So it looks like the mtd-erase2 command is not compatible with your router.

The best you can probably achieve from the command line is to use the rm command.
Code:
sync
rm -rf /jffs/*
sync

Then turn off the router using the power button.

You see i told you mtd2 is not working cuz its different architecture . I think @RMerlin might know some more but not sure if he wants to share this knowledge.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top