Adding USB support into firmware

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Wed Mar 05, 2008 14:40    Post subject: Reply with quote
problem with latest nokaid usb firmware:

umount /dev/scsi/host0/bus0/target0/lun0/part1
mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs

ok jffs mount with FAT16 only... ext2 and ext3 not mount !

mkdir /jffs/opt
mount -o bind /jffs/opt /opt

Code:

root@DD-WRT:~# sh /tmp/optware-install.sh
Checking system config ...
Using 210.247.16.1 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Warning: /opt partition not empty!
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.167.169:80)
Updating /opt/etc/ld.so.cache
/opt/sbin/ldconfig: can't link /opt/lib/libipkg.so.0 to libipkg.so.0.0.0: Operat
ion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libpthread.so.0 to libpthread-0.9.28.so:
 Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/librt.so.0 to librt-0.9.28.so: Operation
 not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libnsl.so.0 to libnsl-0.9.28.so: Operati
on not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libc.so.0 to libuClibc-0.9.28.so: Operat
ion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libintl.so.0 to libintl-0.9.28.so: Opera
tion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflap.so.0 to libmudflap.so.0.0.0:
Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libstdc++.so.6 to libstdc++.so.6.0.8: Op
eration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libcrypt.so.0 to libcrypt-0.9.28.so: Ope
ration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/ld-uClibc.so.0 to ld-uClibc-0.9.28.so: O
peration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libm.so.0 to libm-0.9.28.so: Operation n
ot permitted
/opt/sbin/ldconfig: can't link /opt/lib/libthread_db.so.1 to libthread_db-0.9.28
.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libresolv.so.0 to libresolv-0.9.28.so: O
peration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflapth.so.0 to libmudflapth.so.0.0
.0: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libdl.so.0 to libdl-0.9.28.so: Operation
 not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libutil.so.0 to libutil-0.9.28.so: Opera
tion not permitted
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.167.169:80)
/opt/sbin/ldconfig: can't link /opt/lib/libipkg.so.0 to libipkg.so.0.0.0: Operat
ion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libpthread.so.0 to libpthread-0.9.28.so:
 Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/librt.so.0 to librt-0.9.28.so: Operation
 not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libnsl.so.0 to libnsl-0.9.28.so: Operati
on not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libc.so.0 to libuClibc-0.9.28.so: Operat
ion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libintl.so.0 to libintl-0.9.28.so: Opera
tion not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflap.so.0 to libmudflap.so.0.0.0:
Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libstdc++.so.6 to libstdc++.so.6.0.8: Op
eration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libcrypt.so.0 to libcrypt-0.9.28.so: Ope
ration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/ld-uClibc.so.0 to ld-uClibc-0.9.28.so: O
peration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libm.so.0 to libm-0.9.28.so: Operation n
ot permitted
/opt/sbin/ldconfig: can't link /opt/lib/libthread_db.so.1 to libthread_db-0.9.28
.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libresolv.so.0 to libresolv-0.9.28.so: O
peration not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libmudflapth.so.0 to libmudflapth.so.0.0
.0: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libdl.so.0 to libdl-0.9.28.so: Operation
 not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libutil.so.0 to libutil-0.9.28.so: Opera
tion not permitted
/tmp/optware-install.sh: line 91: /opt/bin/ipkg: not found
/tmp/optware-install.sh: line 92: /opt/bin/ipkg: not found
/tmp/optware-install.sh: line 93: /opt/bin/ipkg: not found
root@DD-WRT:~#
Sponsor
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5772

PostPosted: Wed Mar 05, 2008 15:06    Post subject: Reply with quote
braza wrote:
problem with latest nokaid usb firmware:

umount /dev/scsi/host0/bus0/target0/lun0/part1
mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs

ok jffs mount with FAT16 only... ext2 and ext3 not mount !

mkdir /jffs/opt
mount -o bind /jffs/opt /opt


hmm, check if jbd and ext3 are loaded.

_________________
Professional debrick service for EU countries for small fee.
Send inquiries to: debrick at dd-wrt dot si

Have a brick you don't need?

Paypal & Amazon.com gift cards are welcome. Every $ or € counts. Email: donate at dd-wrt dot si
mwl
DD-WRT Novice


Joined: 08 Jan 2007
Posts: 1

PostPosted: Wed Mar 05, 2008 23:01    Post subject: Reply with quote
Great work!!! Thank you.

MWL
extasy
DD-WRT Novice


Joined: 30 Oct 2007
Posts: 44

PostPosted: Thu Mar 06, 2008 13:31    Post subject: Reply with quote
shinji257 wrote:

Just curious but what does ftdi_sio.o provide?


My USB device needs it when using kernel 2.4. It should be enough with the other module but it just don't seem to do the job by itself.
more information:
http://ftdi-usb-sio.sourceforge.net/#1

Thank you for all your help! If you would make a script for auto mounting hdd that would have been really nice! What I'm dreaming of is a all included mega usb build with all goodies that is usable for ppl like me with 8MiB routers.

Feb 27 21:19:41 kernel: usbserial.c: USB Serial support registered for FTDI SIO
Feb 27 21:19:41 kernel: usbserial.c: USB Serial support registered for FTDI 8U232AM Compatible
kernel: usbserial.c: USB Serial support registered for FTDI FT232BM Compatible
kernel: usbserial.c: FTDI FT232BM Compatible converter detected
kernel: usbserial.c: FTDI FT232BM Compatible converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
kernel: usbserial.c: USB Serial support registered for FTDI FT2232C Compatible
kernel: usbserial.c: USB Serial support registered for FTDI FT232R Compatible
kernel: usbserial.c: USB Serial support registered for USB-UIRT Infrared Tranceiver
kernel: usbserial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transceiver
kernel: ftdi_sio.c: v1.3.5r1:USB FTDI Serial Converters Driver
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5772

PostPosted: Fri Mar 07, 2008 7:29    Post subject: Reply with quote
braza wrote:
problem with latest nokaid usb firmware:

umount /dev/scsi/host0/bus0/target0/lun0/part1
mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs

ok jffs mount with FAT16 only... ext2 and ext3 not mount !

mkdir /jffs/opt
mount -o bind /jffs/opt /opt

Try
mount -t ext2 .....

_________________
Professional debrick service for EU countries for small fee.
Send inquiries to: debrick at dd-wrt dot si

Have a brick you don't need?

Paypal & Amazon.com gift cards are welcome. Every $ or € counts. Email: donate at dd-wrt dot si
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Fri Mar 07, 2008 9:21    Post subject: Reply with quote
"mount -t ext2" on other firwares version I get all my memory device.. Jffs..mmc..usb..bla...bla..bla.. !

In nokaid usb firmware send the command "mount -t ext2" is nothing !

root@DD-WRT:~# mount -t ext2
root@DD-WRT:~# mount -t ext2
root@DD-WRT:~#
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Fri Mar 07, 2008 9:24    Post subject: Reply with quote
You still need to specify mount point and device!

Example:
mount -t ext2 /dev/discs/disc0/part1 /mnt
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Fri Mar 07, 2008 9:34    Post subject: Reply with quote
Yes,... Try.. nothing !
Only on previos firmware its works !
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Fri Mar 07, 2008 9:35    Post subject: Reply with quote
Hmm... When I get a chance I will load eko's latest build and try it myself. I've been kinda busy with other things lately.
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Fri Mar 07, 2008 9:38    Post subject: Reply with quote
PART1 is ext2

PART2 is FAt16

Code:

DD-WRT v24 std (c) 2008 NewMedia-NET GmbH
Release: 03/05/08 (SVN revision: 9235)

DD-WRT login: root
Password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.9.0 (2008-03-05 12:29:44 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# umount /dev/scsi/host0/bus0/target0/lun0/part1
root@DD-WRT:~# mount -t ext2 /dev/scsi/host0/bus0/target0/lun0/part1 /jffs
root@DD-WRT:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    2880      2880         0 100% /
/dev/root                 2880      2880         0 100% /
/dev/mtdblock/4           4160       324      3836   8% /jffs
root@DD-WRT:~# mount /dev/scsi/host0/bus0/target0/lun0/part2
root@DD-WRT:~# mount /dev/scsi/host0/bus0/target0/lun0/part2 /jffs
root@DD-WRT:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    2880      2880         0 100% /
/dev/root                 2880      2880         0 100% /
/dev/mtdblock/4          16040     11376      4664  71% /jffs
/dev/scsi/host0/bus0/target0/lun0/part2
                         16040     11376      4664  71% /jffs
root@DD-WRT:~#
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Fri Mar 07, 2008 9:47    Post subject: Reply with quote
@shinji257
You live in Japan ??

I live and have one question about HIKARI FIRE "NTT"! Rolling Eyes
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Fri Mar 07, 2008 9:48    Post subject: Reply with quote
no. i do not live in japan.
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 107

PostPosted: Fri Mar 07, 2008 9:56    Post subject: Reply with quote
@shinji257. ok thank you !

Code:
root@DD-WRT:~# lsmod
Module                  Size  Used by
ip_nat_pptp             2284   0 (unused)
ip_conntrack_pptp       2812   1
ip_nat_proto_gre        1552   0 (unused)
ip_conntrack_proto_gre    2440   0 [ip_nat_pptp ip_conntrack_pptp]
jffs2                 153624   1
printer                 9852   0 (unused)
vfat                   11692   0
fat                    36840   0 [vfat]
ext3                   72724   0
jbd                    54328   0 [ext3]
usb-storage            34072   0
sd_mod                 12500   0
scsi_mod               95720   2 [usb-storage sd_mod]
usb-ohci               19060   0 (unused)
usbcore                76344   0 [printer usb-storage usb-ohci]
root@DD-WRT:~#
jnjn
DD-WRT User


Joined: 07 Jun 2006
Posts: 436
Location: PRC

PostPosted: Sat Mar 08, 2008 15:57    Post subject: Reply with quote
for someone who would like to get a better experience in usb printer support using p910nd, please use the attached binary instead of that old version 0.7-1 which ipkg installed from that old openwrt package repository. Wink


p910nd.zip
 Description:
v 0.91 of p910nd.
works fine with present canon pixma ip1xxx printers.

Download
 Filename:  p910nd.zip
 Filesize:  4.69 KB
 Downloaded:  634 Time(s)

Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 807

PostPosted: Sat Mar 08, 2008 16:50    Post subject: Reply with quote
which directory do I put this in? I got p910nd in '/jffs/usr/sbin', and /jffs/etc/init.d. Will this finally allow bidirectional communication?
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next Display posts from previous:    Page 6 of 10
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum