Joined: 04 Feb 2011 Posts: 88 Location: SPb, Russia
Posted: Tue Aug 23, 2011 6:19 Post subject:
Need help!
I've managed to setup and running serial connection to my router.
Also managed to upload firmware to the memory using loadb and c-kermit through the serial connection.
Tried with Asus and dd-wrt images and have got almost the same results See listing below.
Also U-boot gives a warning:
U-Boot 1.1.3 (Feb 3 2009 - 13:43:4
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81b7c000
flash_protect ON: from 0xBF000000 to 0xBF022CD3
protect on 0
protect on 1
protect on 2
protect on 3
protect on 4
protect on 5
protect on 6
protect on 7
protect on 8
protect on 9
flash_protect ON: from 0xBF030000 to 0xBF03FFFF
protect on 10
*** Warning - bad CRC, using default environment
Any advice or help will be appreciated!
Thnx in advance!
Asus original firmware:
RT3052 # bootm 0x80100000
## Booting image at 80100000 ...
sizeof image_header_t is 64
Magic: [27051956]
CRC: [3a9a6b26]
Image Name:
Created: 2010-03-25 3:06:55 UTC
System Control Status = 0x20440000
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3818311 Bytes = 3.6 MB
Load Address: 80000000
Entry Point: 80366000
Verifying Checksum ... OK
Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
dd-wrt asus-to-ddwrt firmware:
RT3052 # bootm 0x80100000
## Booting image at 80100000 ...
sizeof image_header_t is 64
Magic: [27051956]
CRC: [8b7ef775]
Image Name: DD-WRT v24 Linux Kernel Image
Created: 2011-06-14 11:00:11 UTC
System Control Status = 0x20440000
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 948876 Bytes = 926.6 kB
Load Address: 80000000
Entry Point: 802a2000
Verifying Checksum ... OK
Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
Update:
Ok, flashed using tftd from serial connection but still want to know what is the problem with lzma ...
The only problem I have with mc is that I do not know how to configure the terminal (everything is black and white) because I can not edit /etc/profile and I cannot set:
I need swap because I want to be able to download more then one torrent with transmition bt. If I try to download more then one torrent, transmition hangs, and I need to restart it from ssh.
Joined: 04 Feb 2011 Posts: 88 Location: SPb, Russia
Posted: Wed Aug 24, 2011 4:05 Post subject:
viking13 wrote:
Have someone managed to enable swap on N13U?
I need swap because I want to be able to download more then one torrent with transmition bt. If I try to download more then one torrent, transmition hangs, and I need to restart it from ssh.
Swapon will not help. The kernel in dd-wrt firmware for RT-N13U does not support one.
I'm currently working on building kernel with swap support because want to have swap too. Watch for my future posts.
_____________________________________
RT-N13U custom build with FS and Swap (r17201)
Last edited by grymster on Mon Aug 29, 2011 4:52; edited 1 time in total
Joined: 06 Mar 2010 Posts: 107 Location: Plzeň, CZE
Posted: Thu Aug 25, 2011 20:06 Post subject:
viking13 wrote:
I successfully installed mc on my N13U with:
Code:
ipkg install mc
The only problem I have with mc is that I do not know how to configure the terminal (everything is black and white) because I can not edit /etc/profile and I cannot set:
Pyload may need swap support because of limited ram but the dd-wrt kernel for n13u.b1 doesn't have swap support.
Don't waste you valuable time, and wait till dd-wrt team listen to the users and add support for few file systems.
success installed but cant use
the thing i can is just see the web interface for 10-20sec after that its disconnect from Pyload
root@satanic:~# python /opt/pyload/pyLoadCore.py
26.08.2011 19:31:27 INFO Starting pyLoad 0.4.7
26.08.2011 19:31:27 INFO Using home directory: /opt/etc/pyload
26.08.2011 19:31:31 INFO Activated plugins: CaptchaTrader, ClickAndLoad, ExternalScripts, UpdateManager
26.08.2011 19:31:31 INFO Deactivate plugins: Ev0InFetcher, HotFolder, IRCInterface, MergeFiles, MultiHome, RealdebridCom, RehostTo, UnRar, XMPPInterface
26.08.2011 19:31:31 INFO Downloadtime: True
26.08.2011 19:31:31 INFO Starting ThriftBackend: 0.0.0.0:7227
26.08.2011 19:31:34 INFO Starting builtin webserver: 192.168.2.1:8000
26.08.2011 19:31:34 INFO Free space: 630.32 GiB
26.08.2011 19:31:34 INFO Activating Accounts...
26.08.2011 19:31:34 INFO Activating Plugins...
26.08.2011 19:31:34 INFO pyLoad is up and running
26.08.2011 19:31:37 INFO No Updates for pyLoad
26.08.2011 19:31:38 INFO No plugin updates available
Segmentation fault
Joined: 04 Feb 2011 Posts: 88 Location: SPb, Russia
Posted: Fri Aug 26, 2011 19:13 Post subject:
Good news!
I've finished to build dd-wrt with swap and FS support (ext2, ext3, fat, vfat)!
Firmware based on build #17201.
It's up and running!
I'm testing it right now!
Good news!
I've finished to build dd-wrt with swap and FS support!
It's up and running!
I'm testing it right now!
Hurray!
Congratulations!
That is very good news!
Bad news is that you will have to do that with every new release of dd-wrt in order to keep it in sync.
That's why I am thinking about another approach. But I am not sure if it is possible.
I don't know have you seen "ramzswap". It's kernel module that can replace classic swap. I know it is unusable in this case, since it will need a lot of memory and fast CPU!
My point is that making loadable kernel module for swap is possible. So maybe someone with enough skill should try to make one that will use swap partition or file on disk?
The only question remains if built-in kernel swap support is still needed even in that case.
Joined: 04 Feb 2011 Posts: 88 Location: SPb, Russia
Posted: Fri Aug 26, 2011 19:46 Post subject:
viking13 wrote:
Bad news is that you will have to do that with every new release of dd-wrt in order to keep it in sync.
I don't care about this.
I did not see any improvements in new releases only new hardware support!
I can update kernel and drivers myself!
Software through the optware!
That's it!
_____________________________________
RT-N13U custom build with FS and Swap (r17201)
Last edited by grymster on Mon Aug 29, 2011 4:51; edited 1 time in total
Good news!
I've finished to build dd-wrt with swap and FS support (ext2, ext3, fat, vfat)!
Firmware based on build #17201.
It's up and running!
I'm testing it right now!
Hurray!
Update:
ext3 disk mounted well!
fat32 usb stick mounted well!
Congratulations!
Eager to know how you managed to build the final firmware.
Joined: 04 Feb 2011 Posts: 88 Location: SPb, Russia
Posted: Fri Aug 26, 2011 21:10 Post subject:
Ok!
I finished fast check of my version of dd-wrt firmware!
All things works as planned!
First of all about what were removed from original firmware to free space for extra modules:
1. IPv6 support.
2. USB printing support.
3. USB serial support.
4. 3G drivers for Sierra and Option cards.
Second - what were added:
1. Swap support by the kernel.
2. ext2 and loop modules
3. ext3 and related modules
4. fat, vfat and related lang modules (nls_cp437, nls_iso8859-1, nls_iso8859-2, nls_utf8)
In attached file you will find the firmware itself.
This file have to be used with Asus Firmware Restoration Utility or by using tftp client.
If you don't know what it does mean - please forget about my build!
Busybox included into firmware does not have swapon and swapoff utility built-in therefore you must to install and use busybox from optware.
Disclaimer: I believe you know what sentence must be here
Please enjoy your router with build-in FS and SWAP support!
P.S. Just to be sure that uploaded file is intact,
file size - 3713631
file md5sum - d7c9b36dc880aaa4310aa03bd6e565a1
Last edited by grymster on Wed Aug 31, 2011 5:20; edited 4 times in total