Ga naar inhoud


[solved-advies] NSLU2 upgraden


Tonskidutch

Aanbevolen berichten

gokje :

 

PC statisch in dezelfde IP-range van de NSLU2 gezet. vervolgens inloggen op de nslu2 en IP-adres aanpassen naar de 10.0.0.x range. reboot, PC weer dynamisch instellen en evt. een reboot er achter aan.

 

ja he ? <img src="/forums/images/graemlins/smile.gif" alt="" />

 

 

 

merDe

deze ruimte is te huur
Link naar reactie
Delen op andere sites


vervolg: solved

 

de unslung firmware maakt het mogelijk dat je op USB stick of USB harddrive een uitbreiding aanmaakt opdat je niet enkel opstart van die USB device maar ook meer programma's kunt installeren dan in het veel te kleine flash geheugen.

 

dit noemt men unslingen van het device

"/sbin/unsling disk1"

 

als dat is geschied en de NSLU2 is weer opnieuw geboot, en heeft de devices weer gevonden kun je allereerst een catalogus oproepen van de programma's (packages) die al in het unslung firmware zitten

"ipkg list_installed"

 

als je nu nieuwe ipkg pakkages wilt ophalen is het eerste wat je in telnet aangeeft

 

"ipkg update"

 

daarmee wordt de lijst van de nieuwe packages geactualiseerd

 

nu moet je ook het systeem zelf actualiseren

 

"ipkg upgrade -V 3" (let op grote letters en spaties)

 

(eerlijk gezegd was me dat niet bekend en heb ik dat nu gedaan, waarmee ook dus een smartmouse veel makkelijker te installeren is aan de vrije usb poort - met doel om deze te laten fungeren als cardreader voor smartcard toepassingen en emulators)

 

"ipkg install libftdi"

 

daarna kopieer je per (root) ftp

kernel-module-usbserial_2.4.22.l2.3r63-r20_ixp4xxbe.ipk

en

kernel-module-ftdi-sio_2.4.22.l2.3r63-r20_ixp4xxbe.ipk

en

naar de NSLU map /tmp

 

en installeert die

cd /tmp

 

"ipkg install kernel-module-usbserial_2.4.22.l2.3r63-r20_ixp4xxbe.ipk"

 

alsmede

 

"ipkg install kernel-module-ftdi-sio_2.4.22.l2.3r63-r20_ixp4xxbe.ipk"

 

nu kopieer je per (root) ftp

smusbutil => /opt/bin/smusbutil

 

en maakt smusbutil uitvoerbaar chmod 755

 

met VI moet je nog deze aanpassen; /etc/rc.d/rc.locmods

Code:
 #!/bin/shinsmod /lib/modules/2.4.22-xfs/kernel/drivers/usb/serial/usbserial.o 2>/dev/nullexport LD_LIBRARY_PATH=/opt/lib/opt/bin/smusbutil 6000 smartmouseinsmod /lib/modules/2.4.22-xfs/kernel/drivers/usb/serial/ftdi_sio.o 2>/dev/null 

 

nu een herstart en de USB smartmouse (een enkele - twee komt nog) wordt herkend.

 

toch leuk al zover te zijn gekomen

zonder een hardware aanpassing om een serialport te gaan gebruiken voor cardreaders

want een (serial-usb interface) smartmouse enkel aan je USB poort met software doet dit ook.

 

cheers

Shewolve

Intergalactic Lovers

 

Link naar reactie
Delen op andere sites

Code:
 # ps  PID TTY     Uid        Size State Command    1         root       1212   S   /bin/init    2         root          0   S   [keventd]    3         root          0   S   [ksoftirqd_CPU0]    4         root          0   S   [kswapd]    5         root          0   S   [bdflush]    6         root          0   S   [kupdated]    7         root          0   S   [mtdblockd]    8         root          0   S   [khubd]    9         root          0   S   [jffs2_gcd_mtd4]   10         root          0   S   [usb-storage-0]   11         root          0   S   [scsi_eh_1]   18         root          0   S   [sd-mc-thread]   28         root          0   S   [kjournald]   50         root          0   D   [ixp425_csr]   51         root          0   S   [ixp425 ixp0]   54 ttyS0   root       1916   S   /bin/sh   55         root       1936   S   /sbin/syslogd -n   56         root       1924   S   /sbin/klogd -n  152         root          0   S   [kjournald]  208         root       9888   S   upnpd &>/dev/null  216         root       9888   S   upnpd &>/dev/null  217         root       9888   S   upnpd &>/dev/null  219         root       9888   S   upnpd &>/dev/null  221         root       9888   S   upnpd &>/dev/null  222         root       9888   S   upnpd &>/dev/null  308         root       2140   S   /usr/sbin/thttpd -C /etc/thttpd.conf  332         root       6152   S   /usr/sbin/smbd -D  334         root       4816   S   /usr/sbin/nmbd -D  351         root       6152   S   /usr/sbin/smbd -D  359         root       1952   S   /usr/sbin/QuickSet  366         root       1904   S   /usr/sbin/USB_Detect  367         root       1900   S   /usr/sbin/USB_Detect  374         root       1884   S   /usr/sbin/onetouch_detect  377         root       1884   S   /usr/sbin/onetouch_detect  389         root       1296   S   /usr/sbin/crond  397         root       1928   S   /usr/sbin/CheckResetButton  399         root       1196   S   /usr/sbin/CheckPowerButton  401         root       1196   S   /usr/sbin/do_umount  420         root       6416   S   /usr/sbin/smbd -D  449         root       2136   S   /usr/sbin/thttpd -C /etc/thttpd.conf  463         root       1276   S   /bin/inetd  466         root       1256   S   /usr/sbin/telnetd  467 ttyp0   root       1920   S   -sh  469 ttyp0   root       1984   R   ps# 

 

 

Code:
 # dmesg096 bytes)Page-cache hash table entries: 8192 (order: 3, 32768 bytes)POSIX conformance testing by UNIFIXPCI Autoconfig: Found Bus 0, Device 1, Function 0PCI Autoconfig: BAR 0, Mem, size=0x1000, address=0x4bfff000PCI Autoconfig: Found Bus 0, Device 1, Function 1PCI Autoconfig: BAR 0, Mem, size=0x1000, address=0x4bffe000PCI Autoconfig: Found Bus 0, Device 1, Function 2PCI Autoconfig: BAR 0, Mem, size=0x100, address=0x4bffdf00PCI: bus0: Fast back to back transfers disabledLinux NET4.0 for Linux 2.4Based upon Swansea University Computer Society NET3.039Initializing RT netlink socketStarting kswapdVFS: Disk quotas vdquot_6.5.1Journalled Block Device driver loadeddevfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)devfs: boot_options: 0x0Installing knfsd (copyright © 1996 okir@monad.swb.de).JFFS2 version 2.1. © 2001 Red Hat, Inc., designed by Axis Communications AB.i2c-core.o: i2c core modulei2c-dev.o: i2c /dev entries driver modulei2c-core.o: driver i2c-dev dummy driver registered.i2c-algo-bit.o: i2c bit algorithm module version 2.6.1 (20010830)pty: 256 Unix98 ptys configuredSerial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabledttyS00 at 0xff000003 (irq = 15) is a XScale UARTttyS01 at 0xff001003 (irq = 13) is a XScale UARTRAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksizeSCSI subsystem driver Revision: 1.00* host:<NULL>IXP425 Flash: Found an alias at 0x800000 for the chip at 0x0cfi_cmdset_0001: Erase suspend on write enabled0: offset=0x0,size=0x20000,blocks=64Using buffer write methodCreating 6 MTD partitions on "IXP425 Flash":0x00000000-0x00040000 : "RedBoot"0x00040000-0x00060000 : "SysConf"0x00060000-0x00160000 : "Kernel"0x00160000-0x00180000 : "Ramdisk"0x00180000-0x007e0000 : "Flashdisk"0x007e0000-0x00800000 : "FIS directory"usb.c: registered new driver usbdevfsusb.c: registered new driver hubpci probe beginehci_hcd 00:01.2: NEC Corporation USB 2.0ehci_hcd 00:01.2: irq 26, pci mem c3872f00usb.c: new USB bus registered, assigned bus number 1PCI: 00:01.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW.PCI: 00:01.2 PCI cache line size corrected to 32.ehci_hcd 00:01.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4Device descriptor:8 bytes received.Device descriptor:18 bytes received.hub.c: USB hub foundhub.c: 5 ports detectedpci probe okhost/usb-uhci.c: $Revision: 1.3 $ time 04:38:03 Apr  8 2006host/usb-uhci.c: High bandwidth mode enabledhost/usb-uhci.c: v1.275:USB Universal Host Controller Interface driverhost/usb-ohci.c: USB OHCI at membase 0xc387a000, IRQ 28host/usb-ohci.c: usb-00:01.0, NEC Corporation USBusb.c: new USB bus registered, assigned bus number 2Device descriptor:8 bytes received.Device descriptor:18 bytes received.hub.c: USB hub foundhub.c: 3 ports detectedhost/usb-ohci.c: USB OHCI at membase 0xc3880000, IRQ 27host/usb-ohci.c: usb-00:01.1, NEC Corporation USB (#2)usb.c: new USB bus registered, assigned bus number 3Device descriptor:8 bytes received.Device descriptor:18 bytes received.hub.c: USB hub foundhub.c: 2 ports detectedInitializing USB Mass Storage driver...usb.c: registered new driver usb-storageUSB Mass Storage support registered.i2c-dev.o: Registered 'IXP425 I2C Adapter' as minor 0i2c-core.o: adapter IXP425 I2C Adapter registered as adapter 0.NET4: Linux TCP/IP 1.0 for NET4.0IP Protocols: ICMP, UDP, TCP, IGMPIP: routing cache hash table of 512 buckets, 4KbytesTCP: Hash tables configured (established 2048 bind 4096)IP-Config: No network devices available.NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.NetWinder Floating Point Emulator V0.97 (double precision)Unknown but compatible feature node (0x2005) found at offset 0x001a0000Unknown but compatible feature node (0x2005) found at offset 0x001c0000Unknown but compatible feature node (0x2005) found at offset 0x001e0000Unknown but compatible feature node (0x2005) found at offset 0x00200000Unknown but compatible feature node (0x2005) found at offset 0x00220000Unknown but compatible feature node (0x2005) found at offset 0x00240000Unknown but compatible feature node (0x2005) found at offset 0x00260000Unknown but compatible feature node (0x2005) found at offset 0x00280000Unknown but compatible feature node (0x2005) found at offset 0x002a0000Unknown but compatible feature node (0x2005) found at offset 0x002c0000Unknown but compatible feature node (0x2005) found at offset 0x002e0000Unknown but compatible feature node (0x2005) found at offset 0x00300000Unknown but compatible feature node (0x2005) found at offset 0x00320000Unknown but compatible feature node (0x2005) found at offset 0x00340000Unknown but compatible feature node (0x2005) found at offset 0x00360000VFS: Mounted root (jffs2 filesystem).Freeing init memory: 244Khub.c: new USB device 00:01.2-1, assigned address 2Device descriptor:8 bytes received.Device descriptor:18 bytes received.Protocol: Transparent SCSI*** detect:usb-storage* scsi_register: usb-storage-0,* scsi_reg, hostno:1 prot is 49* scsi_reg, retval->host_no:1scsi1 : SCSI emulation for USB Mass Storage devices! scan_scsisdo read capacity!!! read capacity ok!!!The capacity is 312581808*** 49  Vendor: SEAGATE   Model: ST3160023A        Rev: 8.01  Type:   Direct-Access                      ANSI SCSI revision: 02Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)31 port connect!!!!!Partition check: /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3WARNING: USB Mass Storage data integrity not assuredUSB Mass Storage device found at 2EXT3-fs: INFO: recovery required on readonly filesystem.EXT3-fs: write access will be enabled during recovery.kjournald starting.  Commit interval 5 secondsEXT3-fs: recovery complete.EXT3-fs: mounted filesystem with ordered data mode.EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,17), internal journalModule init.ixp425_eth:Initializing IXP425 NPE Ethernet driver software v. 1.1ixp425_eth: CPU clock speed (approx) = 0 MHz[error] ixEthMiiPhyScan : unexpected Mii PHY ID 00008201ixp425_eth: ixp0 is using the PHY at address 1ixp425_eth: ixp1 is using the PHY at address 0ixp425_eth: ixEthMiiLinkStatus failed on PHY0.        Can't determinethe auto negotiated parameters. Using default values.enable_irq(22) unbalanced from c39451bcX1226: I2C based RTC driver.i2c-core.o: driver X1226 registered.X1226: found X1226 on IXP425 I2C Adapteri2c-core.o: client [X1226] registered to adapter [iXP425 I2C Adapter](pos. 0).atr is 1fufsd: driver loadedusb.c: registered new driver serialusbserial.c: USB Serial support registered for Genericusbserial.c: USB Serial Driver core v1.4usbserial.c: USB Serial support registered for FTDI SIOusbserial.c: USB Serial support registered for FTDI 8U232AM Compatibleusbserial.c: USB Serial support registered for FTDI FT232BM Compatibleusbserial.c: USB Serial support registered for USB-UIRT Infrared Receiver/Transmitterusbserial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transceiverftdi_sio.c: v1.3.5:USB FTDI Serial Converters Driverkjournald starting.  Commit interval 5 secondsEXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,18), internal journalEXT3-fs: recovery complete.EXT3-fs: mounted filesystem with ordered data mode.Adding Swap: 120480k swap-space (priority -1)hub.c: new USB device 00:01.1-2, assigned address 2Device descriptor:8 bytes received.Device descriptor:18 bytes received.usbserial.c: FTDI FT232BM Compatible converter detectedusbserial.c: FTDI FT232BM Compatible converter now attached to ttyUSB0 (or usb/tts/0 for devfs)# 

 

[color:"red"] uh draait de ttyUSB0?

ik heb nog geen usb led op dat poortje

of kijkt ie enkel als er naar de kaart gekeken wordt? [/color]

 

wordt vervolgt

Shewolve

Intergalactic Lovers

 

Link naar reactie
Delen op andere sites

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...