What's new

Tutorial D2k Firmware v2993 Switch Boot Partition 0(Firmware1-Linux) to Boot partition 1(Firmware2-Linux2)

Xpmove12

Forum Veteran
Joined
Oct 19, 2012
Posts
3,449
Solutions
4
Reaction
2,957
Points
978
Note: Not tested mga ka phc, for experimentation only. Try at your own risk

Yung nakikita sa ssh, Pwede pala I switch yung Boot1
(Linux) and Boot2(Linux2). Yung Linux(1st partition 0) and Linux2(2nd boot Partition 1) yun pala ang mga firmwares. Yung Linux yan yung naka boot na firmwares tapos yung Linux 2 yan yung Old firmwares(If im Correct) , pwede pala yan I switch as primary boot yung partition1, Magiging tambay na partition 0(boot1)

Note: Try at your own risk(wala sisihan kung.ma bricked d2k nyo) Goodluck kung old firmware 21xx yung nasa partition 1



The main boot partition is 'linux' and the Linksys CFE will also have 'linux2'

Telnet/ssh: root Pass: root123

To check the boot partitions, run this from telnet or ssh:

cat /proc/mtd

The main boot partition is 'linux' and the Linksys CFE will also have 'linux2'.

To force switching to the other partition from current, unplug the router after ~10 seconds into boot. After the third try, it will switch the 'bootpartition' which is stored in nvram. It can also be manually altered:

nvram get bootpartition

This returns the current boot partition (0 for linux, or 1 for linux2). To change the boot e.g. to 1:

nvram set bootpartition=1

The number of partial boots to switch linux partitions is controlled by maxpartialboots (default is 3):

nvram get maxpartialboots
And can be changed with 'set' as well. The current number of incomplete boots is tracked with 'partialboots':

nvram get partialboots
The partitions can be directly written to 'linux' (or use 'linux2' for that partition) from command prompt:

wget {firmware path}

Or enable SSH and then WinSCP (or similar) can be used to copy the file.

mtd unlock linux
mtd write {firmware file} linux
reboot
Note: if an error returns from the mtd commands, instead try 'write {firmware file} linux' (no mtd command)





telnet 192.168.1.1

login

mtd unlock /dev/mtd0

cd /tmp/root

mtd –f write <filename.bin> mtd0

Enter the "mtd-e linux-r write rf.bin



Source:
You do not have permission to view the full content of this post. Log in or register now.

You do not have permission to view the full content of this post. Log in or register now.

You do not have permission to view the full content of this post. Log in or register now.
 

Attachments

Last edited:
Uu nga Lods, hehe. Shared lang munting nalalaman

Kaya nilagay ko note, try at your own risk, inde pa nag updates akin, Lods. Bagong gawa temporary unlock

Yung mga nag updates gagamit jan, kaya lang magri risk cla, hehe

Linux Os(Linux Boot partition) pala yang, laman ng D2, dalawa partition, kahit check mo sa ssh dto sa image
 

Attachments

Advice ko lang sa mga maglalagay ng ganyang tutorial, huwag sana gawing guinea pigs ang iba. Kung mag post kayo tutorial, kayo mismo dapat nakasubok na nito at gumana sa inyo bago ninyo ibahagi sa iba. Hindi rin pwede na mag disclaimer nalang kayo ng at your own risk kung kayo mismo hindi nag risk para gawin yun tutorial na yan.

Payo ko rin sa iba nakababasa nito, bago kayo sumubok sa kung ano2 guides makita ninyo hindi lang dito pati sa net, eh mas mainam may nalalaman muna kayo bago sundin anumang guides ang mabasa ninyo, or kung wala panahon para pag aralan ang mga ito, suriin mabuti kung may ACTUAL proof yun tutorial maker na sila mismo ginawa yun isinulat nila at naging matagumpay sa kanila mismo anumang layunin ng tutorial nila. 😊
 
May nalagay na warnings & Note Lodi: Try at your own risk, for experimentation only , para matakot din cla gawin


Yung matapang lang gusto gagawa nyan saka yung medyo techie at madali makasunod👍👍

Yun lang poh, Katwiran ko👍👍

Note: d ko rin pinipilit na gawin nila yang tricks

Free naman yung Idea for expirementation and Tricks mga ka phc, kaya take it or leave it, yun lang😊😀😄

Wala ako paki sa mga Bashers, I'm Just sharing tricks and knowledges for FREE

Goodluck sa mga makakasunod
 
Last edited:
Advice ko lang sa mga maglalagay ng ganyang tutorial, huwag sana gawing guinea pigs ang iba. Kung mag post kayo tutorial, kayo mismo dapat nakasubok na nito at gumana sa inyo bago ninyo ibahagi sa iba. Hindi rin pwede na mag disclaimer nalang kayo ng at your own risk kung kayo mismo hindi nag risk para gawin yun tutorial na yan.

Payo ko rin sa iba nakababasa nito, bago kayo sumubok sa kung ano2 guides makita ninyo hindi lang dito pati sa net, eh mas mainam may nalalaman muna kayo bago sundin anumang guides ang mabasa ninyo, or kung wala panahon para pag aralan ang mga ito, suriin mabuti kung may ACTUAL proof yun tutorial maker na sila mismo ginawa yun isinulat nila at naging matagumpay sa kanila mismo anumang layunin ng tutorial nila. 😊
tama ito useless kasi maglalabas ng tut pero hindi tested sa device sa kanya ahaha
 
May nalagay na warnings & Note Lodi: Try at your own risk, for experimentation only , para matakot din cla gawin


Yung matapang lang gusto gagawa nyan saka yung medyo techie at madali makasunod👍👍

Yun lang poh, Katwiran ko👍👍

Note: d ko rin pinipilit na gawin nila yang tricks

Free naman yung Idea for expirementation and Tricks mga ka phc, kaya take it or leave it, yun lang😊😀😄

Wala ako paki sa mga Bashers, I'm Just sharing tricks and knowledges for FREE

Goodluck sa mga makakasunod
Yung marami pambili ng D2k subukan nyo ito 😆.Try your Own Risk
 
Advice ko lang sa mga maglalagay ng ganyang tutorial, huwag sana gawing guinea pigs ang iba. Kung mag post kayo tutorial, kayo mismo dapat nakasubok na nito at gumana sa inyo bago ninyo ibahagi sa iba. Hindi rin pwede na mag disclaimer nalang kayo ng at your own risk kung kayo mismo hindi nag risk para gawin yun tutorial na yan.

Payo ko rin sa iba nakababasa nito, bago kayo sumubok sa kung ano2 guides makita ninyo hindi lang dito pati sa net, eh mas mainam may nalalaman muna kayo bago sundin anumang guides ang mabasa ninyo, or kung wala panahon para pag aralan ang mga ito, suriin mabuti kung may ACTUAL proof yun tutorial maker na sila mismo ginawa yun isinulat nila at naging matagumpay sa kanila mismo anumang layunin ng tutorial nila. 😊
You do not have permission to view the full content of this post. Log in or register now.
 
[Hidden content]
You do not have permission to view the full content of this post. Log in or register now.
Nirelease na nga pala ni Trams yun 3002 version. Nagulat lang ako kasi magkaiba yun naunang 3002 na pinullout nila last week pa, at yun release ngayon.

Build date of the 3002 from last week:
October 27, 2021 9:39:53 AM
Build date of the 3002, released TODAY:
October 27, 2021 9:28:54 AM

You do not have permission to view the full content of this post. Log in or register now.
 
Last edited:
[Hidden content]

Nirelease na nga pala ni Trams yun 3002 version. Nagulat lang ako kasi magkaiba yun naunang 3002 na pinullout nila last week pa, at yun release ngayon.

Build date of the 3002 from last week:
October 27, 2021 9:39:53 AM
Build date of the 3002, released TODAY:
October 27, 2021 9:28:54 AM

[Hidden content]
You do not have permission to view the full content of this post. Log in or register now.
 
Back
Top