OpenWrt Forum Archive

Topic: ASUS DSL-N10_C1 USB mod

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello ...

I found this DSL router on my bag, and I try to modify it..
The N10 N12 and N14 _C1 have same board, same or similar fw / user interface.
GPL source is avalible .. so "we are free" ...

SOC is Ralink RT63365E
RAM is 32M
Flash 8M
Wifi 150Mbps  (rt5390ap ?? )
No USB !!!

So, I need usb port, for printer, usb stick, etc.

HW mod:
we need solder one cap, fuse or short wire, to give +5V on usb socket pin
now need to solder usb socket or wire for usb hub (my choice / mod)
(buy any cheap 4 port usb hub with external power source socket)
Pics:
http://195.28.90.62/dohc/dsl-n10-c1/DSCN3514s.JPG

http://195.28.90.62/dohc/dsl-n10-c1/DSCN3515s.JPG

http://195.28.90.62/dohc/dsl-n10-c1/DSCN3516s.JPG

http://195.28.90.62/dohc/dsl-n10-c1/DSCN3517s.JPG

SW mod:

Cause, router have 8MB flash only, we need "extra storage" for file system.
If we can boot form USB Stick (usb-mass-storage), we need to recompile kernel
with all required modules. (ehci-hcd, usbcore, scsi, etc.)

All needed modified config files for kernel, profile for GPL are there.
It is for GPL 1.1.0.4 source from Asus website.

Make these partiton on your new USB stick:
sda1 - 64MB ext3  label rootfs
sda2 - 64MB swap
sda3 - all available space ext3 or fat32 label data

Make "your own" firmware with modified .conf files from GPL source
after compile, copy all files from GPL tmpfilesys/filesystem to usb (sda1)
flash "new" firmware from Project/images DSL-N10-C1_USBMOD_1.1.0.4.trx into the router
..and now your router can run from usb key ..

Enjoy.

JRD McLAREN wrote:

SW mod:

...
Enjoy.

I'm trying to compile but stuck at this boa-asp error.

cc -g -O2 -Wall -I. -I../ -I../../../libdisk/ -DTRENDCHIP  -c grammar.c 
In file included from grammar.y:11:0:
mini-asp.h:107:5: error: conflicting types for ‘gb_parse’
 int gb_parse (void*);
     ^
In file included from mini-asp.h:105:0,
                 from grammar.y:11:
grammar.tab.h:78:5: note: previous declaration of ‘gb_parse’ was here
grammar.tab.c: In function ‘gb_parse’:
grammar.tab.c:1195:7: error: too few arguments to function ‘gb_lex’
In file included from grammar.y:11:0:
mini-asp.h:109:5: note: declared here
 int gb_lex (YYSTYPE* yylval, asp_reent* reent);
     ^
grammar.y:15:35: error: ‘__yy_reent’ undeclared (first use in this function)
     #define yy_reent ((asp_reent*)__yy_reent)
                                   ^
grammar.y:47:39: note: in expansion of macro ‘yy_reent’
 aspfile:statements {$$=$1;yy_reent->root = $$;};
                                       ^
grammar.y:15:35: note: each undeclared identifier is reported only once for each function it appears in
     #define yy_reent ((asp_reent*)__yy_reent)
                                   ^
grammar.y:47:39: note: in expansion of macro ‘yy_reent’
 aspfile:statements {$$=$1;yy_reent->root = $$;};
                                       ^
make: *** [grammar.o] Error 1

If I modify Makefile, removing boa-asp definition, the build was completed successfully.

How did you overcome this boa-asp issue? I tried to do binwalk to fetch the original boa-asp binary, but haven't been successful in extracting the squashfs.

@krembuk: I also got this error in Ubuntu 16.04 64bit, but got it fixed by compiling on Ubuntu12.04 32bit. This might be some error related to 32/64bit architecture.

The discussion might have continued from here.