Freitag, 20. Januar 2012

fsg-3 fan control

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r29846) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
read speed: 
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/fan1_input

set speed:
echo '65 1 1' > /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/pwm1

read pwm level (0-255)
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/pwm1


cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp1_input
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp2_input
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp3_input





old paths


from
http://www.openfsg.com/forum/viewtopic.php?p=10686#10686


Read Fan Speed
cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input

set fan speed

echo '65 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
(set from 1 - 255)





Examples:
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
7336
root@fsg1:/# echo '50 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6490
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6367
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6367
root@fsg1:/# echo '60 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
7258
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp1_input
79000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp2_input                  
76500                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp3_input                  
76500                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp3_input                  
77000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp2_input                  
76000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp1_input                  
77000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
7180                                                                                 
root@fsg1:/# echo '50 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1             
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6367                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# echo '55 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1             
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6750                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6818                                                                                 
root@fsg1:/#


Montag, 16. Januar 2012

first boot with openWRT

connected through serial console port, ttyS0, 115200 8N1, Con401 Port





+FLASH configuration checksum error or invalid key

Network NOT initialized!
 Press FSG Emergency Button during power up to initialize network

RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.94 - built 11:47:48, Jun 10 2005

Platform: Freecom Storage  Gateway (FSG) (XScale) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

RAM: 0x00000000-0x04000000, 0x0001db58-0x03fd1000 available
FLASH: 0x50000000 - 0x50400000, 32 blocks of 0x00020000 bytes each.
RedBoot> fis load kern1
RedBoot> exec -c "console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit "
Using base address 0x00700000 and length 0x00180000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.37.6 (cave@cave.site) (gcc version 4.5.4 20110808 (prerelease2
[    0.000000] CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Freecom FSG-3
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 64MB = 64MB total
[    0.000000] Memory: 61628k/61628k available, 3908k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc0026000   ( 120 kB)
[    0.000000]       .text : 0xc0026000 - 0xc030c000   (2968 kB)
[    0.000000]       .data : 0xc030c000 - 0xc03288e0   ( 115 kB)
[    0.000000] NR_IRQS:64
[    0.000305] Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
[    0.240088] pid_max: default: 32768 minimum: 301
[    0.240655] Mount-cache hash table entries: 512
[    0.241540] CPU: Testing write buffer coherency: ok
[    0.246593] NET: Registered protocol family 16
[    0.251910] IXP4xx: Using 16MiB expansion bus window size
[    0.255906] FSG: Using MAC address 00:01:db:00:a7:78 for port 0
[    0.255960] FSG: Using MAC address 00:01:db:00:a7:79 for port 1
[    0.256633] PCI: IXP4xx is host
[    0.256671] PCI: IXP4xx Using direct access for memory space
[    0.259319] PCI: bus0: Fast back to back transfers disabled
[    0.259402] pci 0000:00:0c.0: dmabounce: registered device
[    0.260331] pci 0000:00:0e.0: dmabounce: registered device
[    0.261139] pci 0000:00:0e.1: dmabounce: registered device
[    0.261968] pci 0000:00:0e.2: dmabounce: registered device
[    0.262767] fsg_map_irq: Mapped slot 1 pin 1 to IRQ 22
[    0.262830] fsg_map_irq: Mapped slot 3 pin 1 to IRQ 23
[    0.262881] fsg_map_irq: Mapped slot 3 pin 2 to IRQ 23
[    0.262932] fsg_map_irq: Mapped slot 3 pin 3 to IRQ 23
[    0.263036] pci 0000:00:0e.0: BAR 0: assigned [mem 0x48000000-0x48000fff]
[    0.263107] pci 0000:00:0e.0: BAR 0: set to [mem 0x48000000-0x48000fff] (PCI address [0x480)
[    0.263175] pci 0000:00:0e.1: BAR 0: assigned [mem 0x48001000-0x48001fff]
[    0.263237] pci 0000:00:0e.1: BAR 0: set to [mem 0x48001000-0x48001fff] (PCI address [0x480)
[    0.263302] pci 0000:00:0c.0: BAR 5: assigned [io  0x1000-0x10ff]
[    0.263360] pci 0000:00:0c.0: BAR 5: set to [io  0x1000-0x10ff] (PCI address [0x1000-0x10ff)
[    0.263422] pci 0000:00:0e.2: BAR 0: assigned [mem 0x48002000-0x480020ff]
[    0.263485] pci 0000:00:0e.2: BAR 0: set to [mem 0x48002000-0x480020ff] (PCI address [0x480)
[    0.263549] pci 0000:00:0c.0: BAR 4: assigned [io  0x1400-0x141f]
[    0.263608] pci 0000:00:0c.0: BAR 4: set to [io  0x1400-0x141f] (PCI address [0x1400-0x141f)
[    0.263668] pci 0000:00:0c.0: BAR 0: assigned [io  0x1420-0x142f]
[    0.263726] pci 0000:00:0c.0: BAR 0: set to [io  0x1420-0x142f] (PCI address [0x1420-0x142f)
[    0.263786] pci 0000:00:0c.0: BAR 1: assigned [io  0x1430-0x143f]
[    0.263845] pci 0000:00:0c.0: BAR 1: set to [io  0x1430-0x143f] (PCI address [0x1430-0x143f)
[    0.263906] pci 0000:00:0c.0: BAR 2: assigned [io  0x1440-0x144f]
[    0.263964] pci 0000:00:0c.0: BAR 2: set to [io  0x1440-0x144f] (PCI address [0x1440-0x144f)
[    0.264026] pci 0000:00:0c.0: BAR 3: assigned [io  0x1450-0x145f]
[    0.264085] pci 0000:00:0c.0: BAR 3: set to [io  0x1450-0x145f] (PCI address [0x1450-0x145f)
[    0.288037] bio: create slab <bio-0> at 0
[    0.292517] SCSI subsystem initialized
[    0.297214] usbcore: registered new interface driver usbfs
[    0.297948] usbcore: registered new interface driver hub
[    0.298689] usbcore: registered new device driver usb
[    0.300713] i2c-gpio i2c-gpio.0: using pins 12 (SDA) and 13 (SCL)
[    0.304250] Switching to clocksource OSTS
[    0.312137] NET: Registered protocol family 2
[    0.312517] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.313252] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.313429] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.313550] TCP: Hash tables configured (established 2048 bind 2048)
[    0.313589] TCP reno registered
[    0.313629] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.313710] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.314305] NET: Registered protocol family 1
[    0.317006] IXP4xx Queue Manager initialized.
[    0.322559] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.322621] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-200.
[    0.324047] msgmni has been set to 120
[    0.324177] io scheduler noop registered
[    0.324209] io scheduler deadline registered (default)
[    1.075228] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.085638] serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
[    1.590323] console [ttyS0] enabled
[    1.597896] serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
[    1.609164] PCI: enabling device 0000:00:0c.0 (0000 -> 0001)
[    1.615394] sata_via 0000:00:0c.0: routed to hard irq line 6
[    1.629567] scsi0 : sata_via
[    1.634586] scsi1 : sata_via
[    1.639259] scsi2 : sata_via
[    1.643749] ata1: SATA max UDMA/133 port i16@0x1420 bmdma 0x1400 irq 22
[    1.650491] ata2: SATA max UDMA/133 port i16@0x1430 bmdma 0x1408 irq 22
[    1.657155] ata3: PATA max UDMA/133 port i16@0x1440 bmdma 0x1410 irq 22
[    1.668829] IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x006
[    1.679379] Intel/Sharp Extended Query Table at 0x0031
[    1.684609] Intel/Sharp Extended Query Table at 0x0031
[    1.689812] Using buffer write method
[    1.693486] cfi_cmdset_0001: Erase suspend on write enabled
[    1.699398] Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x3e0000
[    1.829678] 6 RedBoot partitions found on MTD device IXP4XX-Flash.0
[    1.836075] IXP4xx flash: using dynamic partition definition
[    1.841753] Creating 6 MTD partitions on "IXP4XX-Flash.0":
[    1.847321] 0x000000000000-0x000000040000 : "RedBoot"
[    1.857869] 0x000000080000-0x000000200000 : "kern1"
[    1.867975] 0x000000200000-0x000000380000 : "kern2"
[    1.877852] 0x0000003a0000-0x0000003c0000 : "microcode"
[    1.888146] 0x0000003c0000-0x0000003e0000 : "RedBoot config"
[    1.898952] 0x0000003e0000-0x000000400000 : "FIS directory"
[    1.922139] IXP4xx MII Bus: probed
[    1.927778] eth0: MII PHY 5 on NPE-B
[    1.933466] eth1: MII PHY 4 on NPE-C
[    1.937787] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.945163] PCI: enabling device 0000:00:0e.2 (0140 -> 0142)
[    1.951069] ehci_hcd 0000:00:0e.2: EHCI Host Controller
[    1.956659] ehci_hcd 0000:00:0e.2: new USB bus registered, assigned bus number 1
[    1.994438] ehci_hcd 0000:00:0e.2: irq 23, io mem 0x48002000
[    2.014363] ehci_hcd 0000:00:0e.2: USB 2.0 started, EHCI 1.00
[    2.023069] hub 1-0:1.0: USB hub found
[    2.026986] hub 1-0:1.0: 5 ports detected
[    2.032328] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.038756] PCI: enabling device 0000:00:0e.0 (0140 -> 0142)
[    2.044734] ohci_hcd 0000:00:0e.0: OHCI Host Controller
[    2.050101] ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
[    2.057787] ohci_hcd 0000:00:0e.0: irq 23, io mem 0x48000000
[    2.147562] hub 2-0:1.0: USB hub found
[    2.151401] hub 2-0:1.0: 3 ports detected
[    2.156208] PCI: enabling device 0000:00:0e.1 (0140 -> 0142)
[    2.162119] ohci_hcd 0000:00:0e.1: OHCI Host Controller
[    2.167592] ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
[    2.175213] ohci_hcd 0000:00:0e.1: irq 23, io mem 0x48001000
[    2.192162] ata1: SATA link down (SStatus 0 SControl 310)
[    2.267517] hub 3-0:1.0: USB hub found
[    2.271349] hub 3-0:1.0: 2 ports detected
[    2.276770] Initializing USB Mass Storage driver...
[    2.282737] usbcore: registered new interface driver usb-storage
[    2.288863] USB Mass Storage support registered.
[    2.296659] rtc-isl1208 0-006f: chip found, driver version 0.3
[    2.304030] rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0
[    2.311435] rtc-isl1208 0-006f: rtc power failure detected, please set clock.
[    2.320391] i2c /dev entries driver
[    2.335274] hwmon-vid: Unknown VRM version of your CPU
[    2.356886] IXP4xx Watchdog Timer: heartbeat 60 sec
[    2.368756] TCP westwood registered
[    2.372272] NET: Registered protocol family 17
[    2.377088] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    2.383904] All bugs added by David S. Miller <davem@redhat.com>
[    2.390077] XScale DSP coprocessor detected.
[    2.401011] rtc-isl1208 0-006f: hctosys: invalid date/time
[    2.555531] ata2: SATA link down (SStatus 0 SControl 310)
[    2.735171] ata3.00: ATA-7: Hitachi HDT725050VLAT80, V56OA4NA, max UDMA/133
[    2.742174] ata3.00: 976773168 sectors, multi 0: LBA48
[    2.747506] ata3.00: limited to UDMA/33 due to 40-wire cable
[    2.785030] ata3.00: configured for UDMA/33
[    2.790169] scsi 2:0:0:0: Direct-Access     ATA      Hitachi HDT72505 V56O PQ: 0 ANSI: 5
[    2.801579] sd 2:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    2.810531] sd 2:0:0:0: [sda] Write Protect is off
[    2.815910] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
[    2.843099]  sda: sda1 sda2 sda3 sda4
[    2.852510] sd 2:0:0:0: [sda] Attached SCSI disk
[    2.864578] REISERFS (device sda1): found reiserfs format "3.6" with standard journal
[    2.872614] REISERFS (device sda1): using ordered data mode
[    2.888771] REISERFS (device sda1): journal params: device sda1, size 8192, journal first b0
[    2.909213] REISERFS (device sda1): checking transaction log (sda1)
[    2.960615] REISERFS (device sda1): replayed 8 transactions in 0 seconds
[    2.968299] REISERFS (device sda1): Using r5 hash to sort names
[    2.974596] VFS: Mounted root (reiserfs filesystem) on device 8:1.
[    2.980941] Freeing init memory: 120K
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. [   10.936848] PPP generic driver version 2.4.2
[   11.213930] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.542142] NET: Registered protocol family 24
[   11.841132] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[   12.559435] ath_hal: module license 'Proprietary' taints kernel.
[   12.565569] Disabling lock debugging due to kernel taint
[   12.616639] ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF)
[   12.790405] ath_pci: trunk
[   12.793159] wlan: trunk
[   12.795712] wlan: mac acl policy registered
[   12.799921] ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
[   12.807711] ath_rate_minstrel: look around rate set to 10%
[   12.813215] ath_rate_minstrel: EWMA rolloff level set to 75%
[   12.818912] ath_rate_minstrel: max segment size in the mrr set to 6000 us
[   12.887759] uhci_hcd: USB Universal Host Controller Interface driver
[   14.646119] NPE-B: firmware's license can be found in /usr/share/doc/LICENSE.IPL
[   14.653556] NPE-B: firmware functionality 0x2, revision 0x2:1
[   15.045271] device eth0 entered promiscuous mode
[   15.150342] br-lan: port 1(eth0) entering forwarding state
[   15.155968] br-lan: port 1(eth0) entering forwarding state
[   15.944685] eth0: link up, speed 100 Mb/s, full duplex



BusyBox v1.19.3 (2012-01-04 22:57:01 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r29660) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

Dienstag, 10. Januar 2012

RedBoot


How to Configure Redboot Config
http://www.ecoscentric.com/ecospro/doc/html/redboot-guide/configuring-the-redboot-environment.html

redboot
http://wiki.openwrt.org/doc/techref/bootloader/redboot
http://www.digipedia.pl/usenet/thread/15227/666/
http://www.openfsg.com/index.php/Redboot
http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html


FSG-3 Flash Layout



/ # cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00180000 00020000 "kern1"
mtd2: 00180000 00020000 "kern2"
mtd3: 00020000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"


repair recovery
http://www.openfsg.com/forum/viewtopic.php?f=9&t=8528 


Howto fconfig redboot from shell
http://openfsg.com/forum/viewtopic.php?f=7&t=4926



If there is a partition created between "kern2" and "RedBoot config" the fsg-3 can't manage the recovery procedure.
It seems "RedBoot" needs "RedBoot config" on MTD4 to get his IP&BootP and TFTP information to load the recovery image.

It looks like the recoverytool needs the RedBoot config at MTD4.
http://openfsg.com/forum/viewtopic.php?f=7&t=4926



HowTo flash the Nightwing firmware using RedBoot

Lugro-Wireless Task Force - Redes de Despliegue rápido
RedBoot is a complete bootstrap environment for embedded systems. Based on the eCos Hardware Abstraction Layer. RedBoot has many features, including the use of the command line interface (CLI).

Through the CLI we can manipulate the flash memory of our device (in our case the router), we can also upload and download the images to flash memory through a tftp server.

Redboot can be access via a serial interface or Ethernet.
http://nightwing.lugro-mesh.org.ar/en/doc/howto_flash.html

Montag, 9. Januar 2012

NPE for IXP4xx

INTEL NPE
Network Processing Engine

FSG-3 has 2 Ethernet Engines
NPE-B/eth0 and NPE-C/eth1

NPE-B is connected to a 4 Port Switch, only three of them go from PCB to outside
NPE-C is connected to the outside


Using RedBoot* to Load Linux* Kernel Images
Installing and Running the NPE-Ethernet Driver
http://downloadmirror.intel.com/df-support/12957/eng/ixp400-software_rel-notes-2_4.pdf


NPE Ethernet Support

Booting Linux* & Loading the Linux* Kernel
Booting Linux From An IDE Hard Disk Drive
http://downloadmirror.intel.com/df-support/12957/eng/IXP400-Software-Redboot-2_04-Release-note.pdf


Loading NPE from filesystem vs. loading from MTD partition by kernel search
https://forum.openwrt.org/viewtopic.php?pid=56187
&
http://permalink.gmane.org/gmane.linux.ports.arm.kernel/29685


USB to UART TTL Converter with CP2102 chip


USB Stick with CP2102 chip
http://www.etheus.net/CP210x_Linux_Driver
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx


USB 2.0 to TTL UART 6PIN CP2102 Module Serial Converter
Built-in USB to RS232 Transfer chip

Standard USB type A male and TTL 6pin connector. 6pins for 3.3V, RST, TXD, RXD, GND & +5V
Temperature Range: -40℃ to +85℃
Dimension:54 mm x 16 mm





openSUSE 12.1 Kernel
cave@cave:/> dmesg
[ 6122.101088] usb 2-1: new full speed USB device number 5 using uhci_hcd
[ 6122.250101] usb 2-1: New USB device found, idVendor=10c4, idProduct=ea60
[ 6122.250109] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6122.250115] usb 2-1: Product: CP2102 USB to UART Bridge Controller
[ 6122.250119] usb 2-1: Manufacturer: Silicon Labs
[ 6122.250123] usb 2-1: SerialNumber: 0001
[ 6122.255297] cp210x 2-1:1.0: cp210x converter detected
[ 6122.358093] usb 2-1: reset full speed USB device number 5 using uhci_hcd
[ 6122.491340] usb 2-1: cp210x converter now attached to ttyUSB0


http://kennethfinnegan.blogspot.com/2010/09/hacking-wrt54gl-serial-port.html

Donnerstag, 29. Dezember 2011

FSG-3 to openWRT


Enhanced Howto for porting the FSG-3 to openWRT

regarding the links on openfsg.com and openwrt.org

openfsg.com->Install_OpenWRT_on_FSG_from_shell_without_serial_console
https://forum.openwrt.org/ install openwrt on fsg-3

SSH Login as root: 

ssh -p 22 admin@fsgIP
admin@fsgIP's password: 
mysecretadminpwd
~ $ su
root password:

/ # passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password: 

newrootpwd
Re-enter new password: 

newrootpwd
Password changed.
/ #





install ipkg
from: http://www.openfsg.com/index.php/Install_ipkg  
make 2 script files (install_ipk, cleanup)
from page
http://www.openfsg.com/index.php/Install_ipkg_%28scripts%29




file ds101-bootstrap_1.0-4_armeb.xsh from page
http://www.nslu2-linux.org/wiki/DS101/DS101BootStrap


copy all three files into some directory on the fsg-3


Type sh install_ipkg
Type sh cleanup


Reboot


Type ipkg update


made Problems with FSGA/v1.7 Firmware v4.2.7
because ipkg comes with the firmware but buggy.

http://www.openfsg.com/index.php/Use_the_Custom_Ipkg_Installer#Installing_Packages


umount /opt
  • remove optware:
rm -rf /home/.optware
rm -rf /usr/lib/ipkg
  • reboot
  • run bootstrap:
sh <path to bootstrap file>



http://www.openfsg.com/index.php/List_of_Compatible_ipkgs
stable packages for Firmware v4
http://ipkg.nslu2-linux.org/feeds/optware/fsg3v4/cross/stable/

ipkg for v4 Firmware Workaround to get ipkg working
http://www.openfsg.com/forum/viewtopic.php?p=23547





Install FIS and Fconfig

ipkg install fis
ipkg install fconig

Flash Image System (FIS)  from RedBoot User's Guide

Table of Contents
fis init -- Initialize Flash Image System (FIS)
fis list -- List Flash Image System directory
fis free -- Free flash image
fis create -- Create flash image
fis load -- Load flash image
fis delete -- Delete flash image
fis lock -- Lock flash area
fis unlock -- Unlock flash area
fis erase -- Erase flash area
fis write -- Write flash area
If the platform has flash memory, RedBoot can use this for image storage. Executable images, as well as data, can be stored in flash in a simple file store. The fis command (fis is short for Flash Image System) is used to manipulate and maintain flash images.


fconfig - redboot config

redboot 
http://www.digipedia.pl/usenet/thread/15227/666/


/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00180000 00020000 "kern1"
mtd2: 00180000 00020000 "kern2"
mtd3: 00020000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"



FisList
Stock firmware layout, Flash Partitions

RedBoot> fis list
Name                             FLASH addr     Mem addr          Length            Entry point
RedBoot                        0x50000000        0x50000000       0x00040000      0x00000000
kern1                              0x50080000        0x00700000       0x00180000      0x00700000
kern2                              0x50200000        0x00700000       0x00180000      0x00700000
RedBoot config            0x503C0000       0x503C0000      0x00020000      0x00000000
FIS directory                 0x503E0000       0x503E0000       0x00020000      0x00000000
RedBoot>

 / # fconfig -r -d /dev/mtd3 -n boot_script_data
Low verbosity messages are printed.
fis load kern1
exec -c "console=ttyS0,115200 root=/dev/hda1 mem=64M@0x00000000"

hilfreicher redboot-fehler forums post
http://www.openfsg.com/forum/viewtopic.php?f=9&t=8528

HDD Partitions
hda1   200MB reiserfs
hda2   200MB reiserfs
hda3   150MB linux-swap
hda4   1GB+ reiserfs remaining space


freifunk openwrt buildroot anleitung
http://wiki.freifunk.net/OpenWrt_Buildroot