What's new

cifs client and ssh for original asuswrt

  • 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!

AndreyPopov

Senior Member
AsusWRT modded for RT-N1xx(Broadcom based) with DualWan, JFFS2, SSH, CIFS etc.

AsusWRT moded for routers with 8MB flashrom DualWAN, JFFS, CIFS, SSH and others added

great thanks to RMerlin

Broadcom based platform

ftp://78.25.8.242/pub/ASUS/ASUSWRT_MODDED/
ftp://85.198.188.40/pub/ASUS/ASUSWRT_MODDED/
ftp://82.207.89.70/pub/ASUS/ASUSWRT_MODDED/
ftp://134.249.139.43/pub/ASUS/ASUSWRT_MODDED/

RT-N15U (tested)
RT-N10U (tested)
RT-N10P (tested)
RT-N12B1 (not yet tested, no equipment)
RT-N12C1 (not yet tested, no equipment)
RT-N12D1 (not yet tested, no equipment)
RT-N12HP (not yet tested, no equipment)
RT-N14UHP (not yet tested, no equipment)
RT-N53 (not yet tested, no equipment)
RT-N16 (not yet tested, no equipment)




code based AsusWRT 3.0.0.4.376_1071

deleted:
JFFS require minimum 512к space then I deleted "unneeded" languages and code page support. remain English, Russian, Ukrainian.
lang.jpg

add:
- DualWAN
dualwan.jpgdualwan1.jpg

- JFFS
- SHH
- CIFS клиент
jffs_ssh.jpg

- VPN client
vpnc.jpg


for routers with USB AsusWRT App network install, Disk Monitor
layer7 filters support



if you have equipment, time and WISH - try and test!


-------------------------------------------------------------------------

asuswrt-merlin only for four routers with 32Mb flash.

but original asuswrt run on routers with 8Mb and 4Mb flash.

like RT-N15U, RT-N10U, RT-N10P, RT-N12xx and others

I try compile original asuswrt with:
- first support DualWAN on all routers (success)
- add enable ASUS APP installed from network (for USB models) (success)

and try add cifs client support and ssh.


asuswrt-merlin by default complied with CIFS client support and SSH.


anyone know what and where I must add or edit to compile CIFS client support and SSH?

if I add options CIFS=y and/or SSH=y in target.mak than during compiling I receive error:
in rc not found rules cifs.c for cifs.o
in rc not found rules ssh.c for shh.o


replace /src/router/rc dir from asuswrt-merlin and/or /src-rt/linux/linux-2.6 also get error during compiling
 
Last edited:
The CIFS client support in my FW is not the same thing as supported by Tomato or the CIFS target flag. I merely enable CIFS support in Busybox and the kernel, while the Tomato CIFS option actually handles automatically mounting shares.
 
please help any way:

enable CIFS support in Busybox and kernel in original asuswrt is possible?
what patch or code change?

if I know support possible by loaded module or in kernel.


where seek and what?

thanks
 
can you help in next questions:

1. what I must to do that dropbear start

where store keys and where autostart?


2. for jffs2 find patch
where^
- if ((statfs("/jffs", &sf) == 0) && (sf.f_type != 0x73717368 /* squashfs */)) {
+ if ((statfs("/jffs", &sf) == 0) && (sf.f_type != 0x71736873 /* squashfs */)) {

inside asuswrt 376_1071 found:
if (statfs(SECOND_JFFS2_PATH, &sf) == 0) {
switch(model) {
case MODEL_RTAC56S:
case MODEL_RTAC56U:
case MODEL_DSLAC68U:
case MODEL_RTAC68U:
case MODEL_RTAC87U:
case MODEL_RTN65U:
case MODEL_RTN14U: // it should be better to use LINUX_KERNEL_VERSION >= KERNEL_VERSION(2,6,36)
{
if (sf.f_type != 0x73717368 /* squashfs */) {
// already mounted
notice_set("2nd_jffs", format ? "Formatted" : "Loaded");
return;
}
break;
}
default:
{
if (sf.f_type != 0x71736873 /* squashfs */) {
// already mounted
notice_set("2nd_jffs", format ? "Formatted" : "Loaded");
return;
}
break;

in second place where default: sequence 0x73717368 already changed to 0x71736873.

question: in first palce (MODEL_RTN14U) am I need replace sequence
 
can you help in next questions:

1. what I must to do that dropbear start

where store keys and where autostart?

Read the ssh.c source code to understand how keys are stored in nvram. You will also have to develop your own web interface to it, it's not part of Asus's code.

2. for jffs2 find patch
where^


inside asuswrt 376_1071 found:


in second place where default: sequence 0x73717368 already changed to 0x71736873.

question: in first palce (MODEL_RTN14U) am I need replace sequence

Asus only supports JFFS2 on the NAND-based routers. If the RT-N14U has NAND flash, you will have to enable the BRCM_NAND_JFFS2 option in the target profile. If it doesn't use NAND, then you will have to develop the code for it.
 
Read the ssh.c source code to understand how keys are stored in nvram. You will also have to develop your own web interface to it, it's not part of Asus's code.

1. I try use your (asuswrt-merlin) Adnvaced_System_Content.asp ;)
2. in ssh.c during compiling I receive error for get_parsed_crt function. in original Tomato telssh.sh I find nvram_safe_get in same palce and replace - is it right?

and all nvram keys sshd_xxxx I must make manualy (as I understand)?


3. I'm plan only use Broadcom platform routers, then first sequence for RT-N14U I can leave untouched?


thanks
 
2. in ssh.c during compiling I receive error for get_parsed_crt function. in original Tomato telssh.sh I find nvram_safe_get in same palce and replace - is it right?

I encode keys using a ">" separator, otherwise saving/restoring your settings to a backup file will fail. That function was added to one of the shared/ files, I don't remember which - do a grep to locate it.

3. I'm plan only use Broadcom platform routers, then first sequence for RT-N14U I can leave untouched?

Sorry, I don't understand your question.
 
get_parsed_crt I find in your common.c near added run_custom_script

but main question: where or how or whom must create nvram variables sshd_xxxxxx

thanks
 
get_parsed_crt I find in your common.c near added run_custom_script

but main question: where or how or whom must create nvram variables sshd_xxxxxx

thanks

Try a grep for that variable name in the source code, you'll see. I don't remember everything.
 
Try a grep for that variable name in the source code, you'll see. I don't remember everything.

I found all variables in ssh.c and Advanced_System_Content.asp

but.....

in ssh.c I see only get or check commands, not set commands.

Advanced_System_Content.asp code not work until variables was created, it also only read value of already created variables.

I ask only that - I must manualy set (create) needed variables?

or exist file where these variables will created?

are you remember these and can help?

thanks


P.S. next question: in /srt-rt/wl/sysdeps exists precompiled binaries for platforms. I try use for my RT-N15U binaries from your source asuswrt-merlin, but firmware not run. after upgrade by webui it says "reboot manualy" and I use firmware restoration mode.
I found precompiled binaries for my RT-N15U in GPL 376.4561 - it works!
I found also GPL (Broadcom platform) for RT-N16, RT-N10U, RT-N12D1, RT-N12VP, RT-N14UHP

not found for RT-N10P, RT-N10+, RT-N12 (B1,C1)

my aim is make firmware for all routers asuswrt supported with 8MB and 4MB (Broadcom platform only while) flash with DualWan support, CIFS module, SSH and JFFS2
 
Additional nvram settings must be defined in shared/defaults.c.
 
great thank all works!! now testing!

cifs, jffs and ssh


can you help in question with GPL source code for RT-N10P, RT-N10+, RT-N12 (B1,C1) ?
 
Sorry, I never looked at the source code of these models. I'm not even sure which SoC they use.
 
Sorry, I never looked at the source code of these models. I'm not even sure which SoC they use.

I want compile firmware for broadcom based routers, that not supported under asuswrt-merlin.

source code for:
RT-N15U
RT-N10U
RT-N53
RT-N12D1
RT-N12HP
found

according to target.mak file AsusWRT also supported by:
RT-N10D1
RT-N10+
RT-N10P
RT-N12
RT-N12B1
RT-N12C1
RT-N12VP

for correct compiling firmware needed specific files for specific platform:
three files wl_ap.o, wl_apsta.o, wl_sta.o (target oriented)
they stored on /src-rt/wl/sysdeps/RT-Nxxxx dirs.


RMerlin, if you have time and wish, please help find correct files.

P.S. wl_ap.o, wl_apsta.o, wl_sta.o during compile included to kernel and that's why impossible get it from trx file. :(
 
Last edited:
add entware-setup.sh script and enable crontab for cron in busybox.



please help find wl_ap.o, wl_apsta.o, wl_sta.o for RT-N10P !!!!!!!!!
 
please help find wl_ap.o, wl_apsta.o, wl_sta.o for RT-N10P !!!!!!!!!

if it's not in the RT-N10P GPL archive, then there's nothing you can do about it, short of contacting Asus. Sorry.
 
if it's not in the RT-N10P GPL archive, then there's nothing you can do about it, short of contacting Asus. Sorry.

already contacted but they are too lazy :(

GPL archives are absent on ASUS site for many routers:
- RT-N10P
- RT-N10P_V2
- RT-N12_VP
- RT-N12HP_V1
etc
 
Last edited:

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