User talk:Oxo

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:48, 20 September 2006 (edit)
Oxo (Talk | contribs)
m (Mounting)
← Previous diff
Revision as of 16:04, 20 September 2006 (edit) (undo)
Oxo (Talk | contribs)
m (Mounting)
Next diff →
Line 213: Line 213:
ls -l /mnt ls -l /mnt
 +
 +One could alternativly make a script that parsed a /jffs/etc/fstab for the mount values instead of altering the script every time ...
 +
 + $(awk '/^\// {print "mount " $1 " " $2}' /jffs/etc/fstab)
== More work == == More work ==

Revision as of 16:04, 20 September 2006

Contents

Setup

  • dd-wrt v23 sp2
    • WDS
  • 2 Asus Premium
    • USB HD
    • USB Printer
    • Serial ports
  • 1 Lynksys v5
    • JTAG cable

Between garden shed home and my oldest sons flat

ASUS dmesg

DD-WRT v23 SP2 std (c) 2006 NewMedia-NET GmbH
Release: 09/13/06 (SVN revision: 3927:3929)

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

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

                       DD-WRT v23 SP2
                   http://www.dd-wrt.com

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


DD-WRT VeryBusyBox v1.2.1 (2006.09.13-18:23+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # dmesg
<0>CPU revision is: 00029006
<0>Linux version 2.4.34-pre2 (root@linux) (gcc version 3.4.6 (OpenWrt-2.0)) #160                                                                                             Wed Sep 13 20:27:16 CEST 2006
<0>Setting the PFC value as 0x15
<0>Determined physical RAM map:
<0> memory: 02000000 @ 00000000 (usable)
<0>On node 0 totalpages: 8192
<0>zone(0): 8192 pages.
<0>zone(1): 0 pages.
<0>zone(2): 0 pages.
<0>Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd c                                                                                            onsole=ttyS0,115200
<0>CPU: BCM4704 rev 9 at 264 MHz
<0>Using 132.000 MHz high precision timer.
<0>Calibrating delay loop... 263.78 BogoMIPS
<6>Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
<6>Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
<6>Mount cache hash table entries: 512 (order: 0, 4096 bytes)
<6>Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
<0>Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
<0>Checking for 'wait' instruction...  unavailable.
<0>POSIX conformance testing by UNIFIX
<0>PCI: Fixing up bus 0
<0>PCI: Fixing up bridge
<7>PCI: Setting latency timer of device 01:00.0 to 64
<0>PCI: Fixing up bus 1
<0>Initializing RT netlink socket
<0>Starting kswapd
<6>devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
<6>devfs: boot_options: 0x1
<6>squashfs: version 3.0 (2006/03/15) Phillip Lougher
<0>pty: 256 Unix98 ptys configured
<6>Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI                                                                                             enabled
<6>ttyS00 at 0xb8000300 (irq = 3) is a 16550A
<6>ttyS01 at 0xb8000400 (irq = 3) is a 16550A
<6>Software Watchdog Timer: 0.05, timer margin: 60 sec
<7>PCI: Setting latency timer of device 00:01.0 to 64
<7>PCI: Setting latency timer of device 00:02.0 to 64
<6>imq driver loaded.
<6>Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
<7>Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
<7>Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
<7>Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
<5> Amd/Fujitsu Extended Query Table v1.3 at 0x0040
<5>number of CFI chips: 1
<5>cfi_cmdset_0002: Disabling fast programming due to code brokenness.
<5>Flash device: 0x800000 at 0x1c000000
<5>Physically mapped flash: squashfs filesystem found at block 823
<5>Creating 5 MTD partitions on "Physically mapped flash":
<5>0x00000000-0x00040000 : "pmon"
<5>0x00040000-0x007f0000 : "linux"
<5>0x000cde58-0x003967d5 : "rootfs"
<0>mtd: partition "rootfs" doesn't start on an erase block boundary -- force rea                                                                                            d-only
<5>0x007f0000-0x00800000 : "nvram"
<5>0x003a0000-0x007f0000 : "ddwrt"
<6>Initializing Cryptographic API
<6>IP Protocols: ICMP, UDP, TCP, IGMP
<6>IP: routing cache hash table of 512 buckets, 4Kbytes
<6>TCP: Hash tables configured (established 2048 bind 4096)
<0>ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
<0>ip_tables: (C) 2000-2002 Netfilter core team
<6>IPP2P v0.8.1_rc1 loading
<0>ipt_random match loaded
<0>netfilter PSD loaded - (c) astaro AG
<6>ipt_osf: Startng OS fingerprint matching module.
<0>ipt_IPV4OPTSSTRIP loaded
<0>ip_conntrack_rtsp v0.01 loading
<0>ip_nat_rtsp v0.01 loading
<6>NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
<6>802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
<6>All bugs added by David S. Miller <davem@redhat.com>
<0>VFS: Mounted root (squashfs filesystem) readonly.
<6>Mounted devfs on /dev
<6>diag boardtype: 0000042f
<7>PCI: Setting latency timer of device 01:02.0 to 64
<0>PCI: Enabling device 01:02.0 (0004 -> 0006)
<0>eth2: Broadcom BCM4318 802.11 Wireless Controller 3.90.39.0
<5>JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB                                                                                            .
<7>vlan0: add 01:00:5e:00:00:01 mcast address to master interface
<6>vlan0: dev_set_promiscuity(master, 1)
<6>device eth0 entered promiscuous mode
<6>device vlan0 entered promiscuous mode
<6>device eth2 entered promiscuous mode
<6>device wds0.49153 entered promiscuous mode
<6>device wds0.49154 entered promiscuous mode
<6>usb.c: registered new driver usbdevfs
<6>usb.c: registered new driver hub
<0>PCI: Enabling device 01:03.2 (0000 -> 0002)
<6>ehci_hcd 01:03.2: PCI device 1106:3104
<6>ehci_hcd 01:03.2: irq 2, pci mem c0006000
<6>usb.c: new USB bus registered, assigned bus number 1
<6>ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
<6>hub.c: USB hub found
<6>hub.c: 4 ports detected
<6>SCSI subsystem driver Revision: 1.00
<6>hub.c: new USB device 01:03.2-1, assigned address 2
<4>usb.c: USB device 2 (vend/prod 0x67b/0x3507) is not claimed by any active dri                                                                                            ver.
<6>Initializing USB Mass Storage driver...
<6>usb.c: registered new driver usb-storage
<6>scsi0 : SCSI emulation for USB Mass Storage devices
<0>  Vendor: IC25N030  Model: ATDA04-0          Rev: DA4O
<0>  Type:   Direct-Access                      ANSI SCSI revision: 02
<7>WARNING: USB Mass Storage data integrity not assured
<7>USB Mass Storage device found at 2
<6>USB Mass Storage support registered.
<0>Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
<0>SCSI device sda: 58605121 512-byte hdwr sectors (30006 MB)
<6>Partition check:
<6> /dev/scsi/host0/bus0/target0/lun0: p1

JFFS

Needed for ipkg so..

nvram set sys_enable_jffs2=1
nvram set sys_clean_jffs2=1
nvram set jffs_mounted=1
nvram commit
reboot

USB

usb mount at startup: small problems, will not "just" mount at startup as in How-to's

console mode
 > ~ # nvram set rc_startup="
 > for I in `/bin/ls /jffs/etc/config/*.startup`
 > do
 >    sh $I &
 > done
 > "
 > ~ # nvram commit
 >

not ok use

nvram set rc_startup='
for I in /jffs/etc/config/*.startup
do
  sh $I &
done
'

Actually, the dd-wrt sw starts *.startup in /jffs/etc/config/*.startup anyway Startup_Scripts#How_it_Works_3

Installation

  1. Install the folowing modules for USB and filesystems:
 #
 ipkg install kmod-usb-uhci // this is for USB 1.1
 ipkg install kmod-usb-core
 ipkg install kmod-usb2
 #
 ipkg install kmod-usb-storage
 ipkg install kmod-vfat
 ipkg install kmod-ext2
 ipkg install kmod-ext3

A startup script must be made to start usb drivers on every reboot. Create a file, usb.startup in /jffs/etc/config/ directory that contains this which will also start fatfs :

#!/bin/sh
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/ehci-hcd.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
# remove the dash (#) from the line below if you use USB 1.1
#insmod /jffs/lib/modules/2.4.30/uhci.o
#
insmod /jffs/lib/modules/2.4.30/sd_mod.o
insmod /jffs/lib/modules/2.4.30/fat.o
insmod /jffs/lib/modules/2.4.30/vfat.o

Mounting

Unfortunatly, dd-wrt doesn't seem to look for a /jffs/etc/fstab ( fstab referenceh )

So we need to mount the USB in the script, so add:

mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

Check the disk with ls

ls -l /mnt

One could alternativly make a script that parsed a /jffs/etc/fstab for the mount values instead of altering the script every time ...

 $(awk '/^\// {print "mount " $1 " " $2}' /jffs/etc/fstab)

More work

You can also add the above line to /jffs/etc/config/usb.startup to mount the partition on reboot

# multiple partitions
mkdir /tmp/usb/1
mount /dev/scsi/host0/bus0/target0/lun0/part1 /tmp/usb/1
# list its contents
ls -l /tmp/usb/1
# second partition
mkdir /tmp/usb/2
mount /dev/scsi/host0/bus0/target0/lun0/part2 /tmp/usb/2
# list its contents
ls -l /tmp/usb/2

In order to use a multislot card reader, you must add the following parameter to the scsi_mod in the file /jffs/etc/modules.d/60-usb-storage:

scsi_mod max_scsi_luns=8

ASUS 32MByte

mem ok with 32Mbyte

nvram set sdram_init=0x0009 
nvram set sdram_ncdl=0 
nvram commit 
reboot

Bluetooth

"Cool": someone has hooked bluetooth to Asus...

  • Nice with PBX sw and a bluetooth headset (how to ring out ...hmm)
  • Internet access for Mobil...
  • GPS

Playtime

Serial/UART


How does one upload gif/jpegs for display ....!!!???!!!

Brick

After first dd-wrt attempt: none since Had to short pins in the end

A funny thing happened after I dd-wrt'ed my boxes

You have probably NOT bricked your router if you continually loose wireless to it while going thru the panels.

Every time I left a panel, with ping router and using wireless, I "lost" contact with the router. Repair wireless solved the problem until I moved between panels again.

This has happened on both the routers.

Be patient.

Add more memory.

The problem will go away.

(Needs more analysing)