Posted: Sun Aug 22, 2021 20:08 Post subject: DIR-300 revA flashing user experience (write up)
wow even the journey to register here was adventurous (wiki seems disabled , great choice! )
-----
TL:DR;
BOON/NOOB - DDWRT flashing experience write-up
- my setup
- what can be found
- what you actually need (walk through)
- including what can be done wrong and how to fix it
- my recommendation!
- open Questions
-----------------------------
My Setup
- got 2 DIR-300 rev A spare
- have always wanted to try flash openwrt
- I use Ubuntu
- 6 hours!
what can be found
when you first look for DIR 300 and openwrt you tend to find some pages that seem long but reassuring!
then you become less certain when you go down the rabbit-hole especially when heading over to ddwrt!
I have compiled a list of pages that I found maybe can be helpful ... consider it a FAQ
DD-WRT> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> ip_address -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2
DD-WRT> load -r -b %{FREEMEMLO} ap61.rom
Using default protocol (TFTP)
Raw file loaded 0x80080000-0x800a8717, assumed entry at 0x80080000
DD-WRT> fis create -l 0x30000 -e 0xbfc00000 RedBoot
An image named 'RedBoot' exists - continue (y/n)? y
... Erase from 0xbfc00000-0xbfc30000: ...
... Program from 0x80080000-0x800a8718 at 0xbfc00000: ...
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> fconfig bootp false
bootp: Setting to false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> reset
telnet> quit
flash linux.bin
from this point it is important NOT to use %{FREEMEMLO} but 0x80041000 as provided in the ./dir300/DIR-300-WRTV2.4-SP1/flashing.txt
(at least that was what supposedly was one caveat eating 2 hours of mine )
Code:
DD-WRT> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> ip_address -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2
DD-WRT> load -r -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x803bafff, assumed entry at 0x80041000
DD-WRT> fis create linux
... Erase from 0xbfc30000-0xbffaa000: ........................................................
... Program from 0x80041000-0x803bb000 at 0xbfc30000: ........................................................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> fconfig boot_script true
boot_script: Setting to true
DD-WRT> fconfig boot_script_timeout 4
boot_script_timeout: Setting to 4
DD-WRT> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load -l linux
>> exec
>>
Boot script timeout (1000ms resolution): 5
Use BOOTP for network configuration: false
Gateway IP address: 0.0.0.0
Local IP address: 192.168.1.1
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.2
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> reset
if you have time to kill, have a spare and want to cast a few swear words go for it ...
else stick with the original firmware!
Open Questions
- why reflash redboot? there is a redboot in place before why flash new one?
- where to find the proper smaller redboot is the ap61 allready that version?
- how to properly make a backup of the old firmware and how to flash it back
Joined: 08 May 2018 Posts: 12620 Location: Texas, USA
Posted: Sun Aug 22, 2021 21:22 Post subject:
Thanks for letting us know that you know how to STFW and RTFM. The wiki has been updated to include locations of where to get the files from the original write-up as well as a link to this thread; I didn't back-track to see if the information was previously there, but if it was and it was removed, that was a no-no. Wiki edit access is not the same login as the forum, and registering for access is disabled because there are enough hands in the pot and also to prevent compromise and spam. If anyone reading wants to answer the open questions (which are probably already answered somewhere else), PM me. _________________ • Official Forum Rules, Guidelines & Helpful Information • Firmware FAQ • Installation Wiki • Where Do I Download Firmware‽
• DON'T use Chromium-based browsers • RTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽ Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net