OpenFSG

A forum where users help other users with troubleshooting their Freecom NAS device
It is currently Sat Apr 19, 2014 13:47

All times are UTC + 1 hour




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Jul 11, 2007 15:53 
Offline
VIP Expert
VIP Expert
User avatar

Joined: Fri Jul 21, 2006 14:46
Posts: 255
Location: Adelaide, Australia
I have just completed porting OpenWrt to the FSG-3.

Just build the latest Kamikaze from SVN, select the Freecom FSG-3 profile for IXP4xx-2.6, and build the tgz image.

Currently, you need a serial port on the fsg-3 to upload the kernel.

Code:
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.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> fis load kern1
RedBoot> exec -c "console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit "
Using base address 0x00700000 and length 0x0011eb5c
Uncompressing Linux.............................................................
Linux version 2.6.21.6 (rwhitby@take.astc-design.net) (gcc version 4.1.2) #4 We7
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
Machine: Freecom FSG-3
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62384KB available (2212K code, 187K data, 80K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers disabled
dmabounce: registered device 0000:00:0c.0 on pci bus
dmabounce: registered device 0000:00:0d.0 on pci bus
dmabounce: registered device 0000:00:0e.0 on pci bus
dmabounce: registered device 0000:00:0e.1 on pci bus
dmabounce: registered device 0000:00:0e.2 on pci bus
fsg_map_irq: Mapped slot 1 pin 1 to IRQ 22
fsg_map_irq: Mapped slot 2 pin 1 to IRQ 24
fsg_map_irq: Mapped slot 3 pin 1 to IRQ 23
fsg_map_irq: Mapped slot 3 pin 2 to IRQ 23
fsg_map_irq: Mapped slot 3 pin 3 to IRQ 23
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Time: OSTS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
IXP4XX Q Manager 0.2.1 initialized.
IXP4XX NPE driver Version 0.3.0 initialized
ixp4xx_crypto 0.0.1 registered successfully
PCI: enabling device 0000:00:0c.0 (0000 -> 0001)
sata_via 0000:00:0c.0: routed to hard irq line 6
ata1: SATA max UDMA/133 cmd 0x00011420 ctl 0x0001142a bmdma 0x00011400 irq 22
ata2: SATA max UDMA/133 cmd 0x00011430 ctl 0x0001143a bmdma 0x00011408 irq 22
ata3: PATA max UDMA/133 cmd 0x00011440 ctl 0x0001144a bmdma 0x00011410 irq 22
scsi0 : sata_via
ata1: SATA link down (SStatus 0 SControl 310)
ATA: abnormal status 0x7F on port 0x00011427
scsi1 : sata_via
ata2: SATA link down (SStatus 0 SControl 310)
ATA: abnormal status 0x7F on port 0x00011437
scsi2 : sata_via
ata3.00: ATA-7: HDT722516DLAT80, V43OA96A, max UDMA/133
ata3.00: 321672960 sectors, multi 0: LBA48
ata3.00: configured for UDMA/33
scsi 2:0:0:0: Direct-Access     ATA      HDT722516DLAT80  V43O PQ: 0 ANSI: 5
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPOA
SCSI device sda: 321672960 512-byte hdwr sectors (164697 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPOA
sda: sda1 sda2 sda3 sda4
sd 2:0:0:0: Attached scsi disk sda
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x3e0000
8 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 8 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00080000 : "unallocated"
0x00080000-0x00200000 : "kern1"
0x00200000-0x00380000 : "kern2"
0x00380000-0x003a0000 : "apex"
0x003a0000-0x003c0000 : "microcode"
npe: searching for firmware...
npe: found at 0x0, IXP425/NPE-B func: 00, rev: 2.1, size: 11964, id: 01000201
Image loaded to NPE-B Func:0, Rel: 2:1, Status: 80c00000
npe: found at 0x2ebc, IXP425/NPE-C func: 00, rev: 2.1, size: 11964, id: 02000201
Image loaded to NPE-C Func:0, Rel: 2:1, Status: 80c00000
0x003c0000-0x003e0000 : "RedBoot config"
eth0 mac: 00:01:db:00:55:b4
eth1 mac: 00:01:db:00:55:b5
0x003e0000-0x00400000 : "FIS directory"
PCI: enabling device 0000:00:0e.2 (0140 -> 0142)
ehci_hcd 0000:00:0e.2: EHCI Host Controller
ehci_hcd 0000:00:0e.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0e.2: irq 23, io mem 0x48012000
ehci_hcd 0000:00:0e.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
PCI: enabling device 0000:00:0e.0 (0140 -> 0142)
ohci_hcd 0000:00:0e.0: OHCI Host Controller
ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0e.0: irq 23, io mem 0x48010000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
PCI: enabling device 0000:00:0e.1 (0140 -> 0142)
ohci_hcd 0000:00:0e.1: OHCI Host Controller
ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:0e.1: irq 23, io mem 0x48011000
usb 1-4: new high speed USB device using ehci_hcd and address 2
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usb 1-4: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
isl1208 0-006f: chip found, driver version 0.2
isl1208 0-006f: rtc core: registered isl1208 as rtc0
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
XScale DSP coprocessor detected.
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[5] initialized
ixp4xx_mac driver 0.3.1: eth1 on NPE-C with PHY[4] initialized
isl1208 0-006f: hctosys: invalid date/time
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on sda1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 80K
Warning: unable to open an initial console.
- preinit -
- init -
init started:  BusyBox v1.4.2 (2007-07-11 23:09:01 CST) multi-call binary

Please press Enter to activate this console. scsi 3:0:0:0: Direct-Access     CO0
SCSI device sdb: 2858688 512-byte hdwr sectors (1464 MB)
sdb: test WP failed, assume Write Enabled
sdb: assuming drive cache: write through
SCSI device sdb: 2858688 512-byte hdwr sectors (1464 MB)
sdb: test WP failed, assume Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
sd 3:0:0:0: Attached scsi disk sdb
eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
wlan: 0.8.4.2 (svn r2537)
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2537)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2537)
PCI: enabling device 0000:00:0d.0 (0140 -> 0142)
ath_pci: switching rfkill capability off
ath_pci: ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 3s
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 4.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x48000000, irq=24
USB Universal Host Controller Interface driver v3.0
eth0: link up, 100Mbps, full-duplex, lpa 0x05E1



BusyBox v1.4.2 (2007-07-11 23:09:01 CST) 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
KAMIKAZE (bleeding edge, r7921) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/#


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 20:06 
Hi Ron,

that are very good news. Is it possible for you, to create a image like Tomasz Chmielewski did? It would be great if we could flush a new kernel and install the new system after reboot from an USB stick.

Best Regards: Michael


Top
  
 
 Post subject:
PostPosted: Sat Jul 14, 2007 15:33 
Offline
Regular User
Regular User

Joined: Sat Mar 10, 2007 18:09
Posts: 25
Anonymous wrote:
Hi Ron,

that are very good news. Is it possible for you, to create a image like Tomasz Chmielewski did? It would be great if we could flush a new kernel and install the new system after reboot from an USB stick.

Best Regards: Michael


that would be cool :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 15, 2007 02:11 
Offline
VIP Expert
VIP Expert
User avatar

Joined: Fri Jul 21, 2006 14:46
Posts: 255
Location: Adelaide, Australia
Note that I took the Marvell miniPCI card out of my FSG-3 (cause there is no good open source driver for it) and replaced it with an Atheros card (taken from an Iomega NAS100d) which is supported by Madwifi.

-- Rod


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 08:01 
Offline
Regular User
Regular User

Joined: Wed Aug 15, 2007 07:57
Posts: 28
The title says that this is HowTo run Openwrt on FSG however I see that the content just informs that it is possible.

I am going to buy an FSG router and would like to run OpenWRT on it. Is there anywere actual how to install OpenWRT on FSG?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 09:09 
Offline
VIP Expert
VIP Expert
User avatar

Joined: Fri Jul 21, 2006 14:46
Posts: 255
Location: Adelaide, Australia
modlv wrote:
The title says that this is HowTo run Openwrt on FSG however I see that the content just informs that it is possible.

I am going to buy an FSG router and would like to run OpenWRT on it. Is there anywere actual how to install OpenWRT on FSG?


1) Install a serial port - pinout is on this site.
2) Build OpenWrt kamikaze svn head, ixp4xx-2.6 system, fsg-3 profile.
3) Using the current OS on the FSG-3. install the rootfs from openwrt onto the unused disk partition.
4) Using RedBoot (via the serial port), download (over serial) and flash the kernel into the unused kernel mtd partition.
5) Use fconfig in RedBoot to switch to the other kernel.

That's the best I can do for you. My FSG-3 is now running the V4 vendor firmware with Optware packages, so unless Freecom sends me another device (I've requested one from them), or someone else buys me one, I won't be able to take the OpenWrt port any further.


Top
 Profile  
 
PostPosted: Sun Sep 30, 2007 09:17 
Offline
Regular User
Regular User

Joined: Wed Aug 15, 2007 07:57
Posts: 28
Introduction

The original FSG firmware has the following layout:

1) flash has four MTD partitions (http://www.nslu2-linux.org/wiki/FSG3/FisList)
2) The HDD also has 4 partitions (first two are for root filesystem, third is swap partition and the fourth is for user data)

If you are using FSNA recovery procedure (http://www.openfsg.com/index.php/Recovery_Procedure), the firmware switches kernel from mtd1 to mtd2 and root filesystem from /dev/sda1 to /dev/sda2 as it needs. For example, if you are upgrading from kernel 2.4 to kernel 2.6, new kernel will be written to different mtd partition. If you are just reflash firmware with the same kernel, most likely is that kernel will stay on the same mtd partition and only HDD partition will be switched.

Compile OpenWRT firmware

This example asumes that you will use the original FSG partitions. Therefore you have to compile OpenWRT kernel with ReserFS support. Append profile-FSG3 to the end of config-default and add to the config-default file following:
Code:
CONFIG_REISERFS_FS=y
CONFIG_REISERFS_PROC_INFO=y

In make menuconfig select "Target images" and check "tgz". Save the result and build the firmware. You will need files:
openwrt-fsg3-2.6-zImage (linux kernel)
openwrt-ixp4xx-2.6-rootfs.tgz (root filesystem).

You will also need microcode. There are two files in build_dir/linux-ixp4xx direcory: NPE-B and NPE-C. To create needed microcode, from the shell go to build_dir/linux-ixp4xx directory and issue command:
Code:
cat NPE-B NPE-C > NPE-BC

The resulting file NPE-BC is the needed microcode.

All installation is done from SSH (http://www.openfsg.com/index.php/Use_the_SSH_Server).

Prepare flash layout

1) Using Recovery procedure (http://www.openfsg.com/index.php/Recovery_Procedure), flash latest firmware with kernel 2.6. This ensures that FSG uses mtd1 partition for kernel and /dev/sda1 as root filesystem.
2) We need /dev/sda1 for OpenWRT root filesystem. Update the same original FSG firmware from web interface. This ensures that FSG will use mtd1 partition for kernel but swithces the root filesystem to /dev/sda2.
3) Install ipkg (http://www.openfsg.com/index.php/Use_the_Custom_Ipkg_Installer)
4) Using ipkg, install tools fis and fconfig.
5) Check that FSG really uses mtd1 kernel and /dev/sda2 as root filesystem:
Code:
fconfig -r -d /dev/mtd3 -n boot_script_data

The output should be someting like this:
Code:
fis load kern1
exec -c "console=ttyS0,115200 root=/dev/hda2 mem=64M@0x00000000"

The keywords are kern1 and /dev/hda2.

6) Backup current mtd4 partition to file:
Code:
dd if=/dev/mtd4 of=mtd4.bin

7) Create new mtd partition for NPE microcode:
Code:
fis -d mtd4.bin  create microcode -f 0x503a0000 -l 0x20000

8) Erase the current content of the mtd4 partition:
Code:
erase /dev/mtd4 0 1 1

9) Write the new content for mtd4 partition:
Code:
dd if=mtd4.bin of=/dev/mtd4

10) Erase the current content of the mtd2 partition:
Code:
erase /dev/mtd2 0 12 1

11) reboot the router

Install OpenWRT kernel

1) check that you have microcode partition:
Code:
cat /proc/mtd

2) using samba, copy OpenWRT files openwrt-fsg3-2.6-zImage, openwrt-ixp4xx-2.6-rootfs.tgz and NPE-BC to the router.
3) from the shell go to the directory that contains copied data (/home/.users/admin).
4) erase the content of microcode mtd partition:
Code:
erase /dev/mtd3 0 1 1

5) write microcode to the flash:
Code:
dd if=NPE-BC of=/dev/mtd3

6) Backup FSG kernel from mtd1 to mtd2:
Code:
dd if=/dev/mtd1 of=/dev/mtd2

7) erase FSG kernel from flash:
Code:
erase /dev/mtd1 0 12 1

8) Write the OpenWRT kernel to the mtd1:
Code:
dd if=openwrt-fsg3-2.6-zImage of=/dev/mtd1

Install OpenWRT root filesystem

1) Login as root (http://www.openfsg.com/index.php/Logging_in_as_root)
2) Create a new directory in directory /tmp:
Code:
mkdir /tmp/rootfs

3) Mount /dev/sda1 to /tmp/rootfs:
Code:
mount /dev/sda1 /tmp/rootfs

4) goto /tmp/rootfs:
Code:
cd /tmp/rootfs

5) Remove the existing root filesystem:
Code:
rm -rf *

6) Install OpenWRT root filesystem:
Code:
tar zxvf /home/.users/admin/openwrt-ixp4xx-2.6-rootfs.tgz

Change Redboot config to load OpenWRT firmware

1) Backup current Redboot config:
Code:
dd if=/dev/mtd4 of=redboot.bin

2) Change Redboot config to load OpenWRT kernel:
Code:
fconfig -w -d redboot.bin -n boot_script_data -x 'fis load kern1\exec -c "console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit "\'

3) Change boot script timeout to ensure that HDD has spin up:
Code:
fconfig -w -d redboot.bin -n boot_script_timeout -x 5

4) Write new Redboot config to the flash:
Code:
dd if=redboot.bin of=/dev/mtd4

5) reboot the router

The router should boot with OpenWRT.


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 15:52 
modlv wrote:
Introduction


The router should boot with OpenWRT.

If you're lucky :?
I tried your procedure but my fsg no longer boots at all. Entering recovery mode does not work either. Unfortunately, I can't get JTAG working either, so I can't recover that way. So until I figure out what's preventing me from using JTAG, my fsg is a brick :(


Top
  
 
PostPosted: Tue Dec 04, 2007 11:16 
Anonymous wrote:
modlv wrote:
Introduction


The router should boot with OpenWRT.

If you're lucky :?
I tried your procedure but my fsg no longer boots at all. Entering recovery mode does not work either. Unfortunately, I can't get JTAG working either, so I can't recover that way. So until I figure out what's preventing me from using JTAG, my fsg is a brick :(


If you haven't changet mtd0 partition (redboot) then you must be able to recover it using serial cable


Top
  
 
 Post subject: OpenWRT possible on DTG?
PostPosted: Tue Feb 05, 2008 19:31 
The installation instruction is for FSG. Would something similiar be possible for the DTG? Has anybody some experience with this?


Top
  
 
PostPosted: Thu Feb 28, 2008 01:59 
Offline
VIP Expert
VIP Expert
User avatar

Joined: Fri Jul 21, 2006 14:46
Posts: 255
Location: Adelaide, Australia
Qbert wrote:
The installation instruction is for FSG. Would something similiar be possible for the DTG? Has anybody some experience with this?


DTG is a completely different kernel and toolchain compared to FSG.

Someone would need to port OpenWrt to the DTG CPU architecture and board components. Not an easy job, given that OpenWrt doesn't support that architecture (let alone that particular board) at this time.

-- Rod


Top
 Profile  
 
PostPosted: Fri Feb 20, 2009 14:37 
Offline
Regular User
Regular User

Joined: Wed Aug 15, 2007 07:57
Posts: 28
I have managed to run kernel 2.6.28.5 on DTG. Everything seems to work well, but I ned some help to configure network switch.

Can anyone help me?


Top
 Profile  
 
PostPosted: Sun Mar 15, 2009 19:07 
Offline
Regular User
Regular User

Joined: Wed Aug 15, 2007 07:57
Posts: 28
Guest wrote:
modlv wrote:
Introduction


The router should boot with OpenWRT.

If you're lucky :?
I tried your procedure but my fsg no longer boots at all. Entering recovery mode does not work either. Unfortunately, I can't get JTAG working either, so I can't recover that way. So until I figure out what's preventing me from using JTAG, my fsg is a brick :(

I am not using FSG-3 because of noisy fan and I have DT2 running Openwrt now. But this weekend I played with Openwrt and fsg.

What I can say now is that there could be some problems with Openwrt enviorment init scripts or so. Because if I attach serial console, it boots normally. But if serial console is detached and you issue "reboot" command from the shell, fsg hangs at some point. Is there anyone who could confirm that?

I have submitted a patch to Openwrt that builds Openwrt image that can be put on fsg from freecom web interface and you do not need to modify redboot anymore.

If you are interested to test it, let me know.


Top
 Profile  
 
PostPosted: Sun May 10, 2009 12:16 
Hello.

The above procedure, "How-to install OpenWRT from shell (without serial console)", by "modlv", seems to be incomplete.

First change : the "/dev/sda*" disk can also be "/dev/hda*", depending if you have an internal SATA or PATA drive, please think to adapt the procedure according to your hardware.

Second change : At the end of the procedure, in the "Change Redboot config to load OpenWRT firmware" section, step 4) asks you to do a "dd if=redboot.bin of=/dev/mtd4" but it is a flash memory, so it must be erased before written to, so an additional step 3.5) must be added :
"erase /dev/mtd4 0 1 1"

Could someone please confirm if I'm right ?

Thanks


Top
  
 
PostPosted: Thu Jun 30, 2011 09:25 
Offline
First timer
First timer

Joined: Mon Jun 27, 2011 10:58
Posts: 3
I have installe on my FSG-3 an OpenWRT image (Backfire 10.03.1-RC5 r26909 selfcompiled).
I work very well, but i have a problem.
Openwrt load only the ethernet of the wan port (eth0)

Code:
Linux version 2.6.32.27 (ramponis@ramponis-desktop) (gcc version 4.3.3 (GCC) ) #6 Tue Jun 28 17:59:42 CEST 2011
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
CPU: VIVT data cache, VIVT instruction cache
Machine: Freecom FSG-3
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat c0308e70, node_mem_map c031d000
  DMA zone: 128 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 16256 pages, LIFO batch:3
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61704KB available (2848K code, 191K data, 108K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:64
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
FSG: Using MAC address 00:00:83:20:50:02 for port 0
FSG: Using MAC address 00:00:83:48:50:01 for port 1
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
pci 0000:00:0c.0: reg 10 io port: [0xaf0-0xaff]
pci 0000:00:0c.0: reg 14 io port: [0xa70-0xa7f]
pci 0000:00:0c.0: reg 18 io port: [0x1f0-0x1ff]
pci 0000:00:0c.0: reg 1c io port: [0x170-0x17f]
pci 0000:00:0c.0: reg 20 io port: [0xcc00-0xcc1f]
pci 0000:00:0c.0: reg 24 io port: [0x8c00-0x8cff]
pci 0000:00:0d.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:0e.0: reg 10 32bit mmio: [0x000000-0x000fff]
pci 0000:00:0e.0: supports D1 D2
pci 0000:00:0e.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:0e.0: PME# disabled
pci 0000:00:0e.1: reg 10 32bit mmio: [0x000000-0x000fff]
pci 0000:00:0e.1: supports D1 D2
pci 0000:00:0e.1: PME# supported from D0 D1 D2 D3hot
pci 0000:00:0e.1: PME# disabled
pci 0000:00:0e.2: reg 10 32bit mmio: [0x000000-0x0000ff]
pci 0000:00:0e.2: supports D1 D2
pci 0000:00:0e.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:0e.2: PME# disabled
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:0c.0: dmabounce: registered device
pci 0000:00:0d.0: dmabounce: registered device
pci 0000:00:0e.0: dmabounce: registered device
pci 0000:00:0e.1: dmabounce: registered device
pci 0000:00:0e.2: dmabounce: registered device
fsg_map_irq: Mapped slot 1 pin 1 to IRQ 22
fsg_map_irq: Mapped slot 2 pin 1 to IRQ 24
fsg_map_irq: Mapped slot 3 pin 1 to IRQ 23
fsg_map_irq: Mapped slot 3 pin 2 to IRQ 23
fsg_map_irq: Mapped slot 3 pin 3 to IRQ 23
bio: create slab <bio-0> at 0
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-gpio i2c-gpio.0: using pins 12 (SDA) and 13 (SCL)
Switching to clocksource OSTS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
IXP4xx Queue Manager initialized.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
sata_via 0000:00:0c.0: version 2.4
PCI: enabling device 0000:00:0c.0 (0000 -> 0001)
sata_via 0000:00:0c.0: routed to hard irq line 6
scsi0 : sata_via
scsi1 : sata_via
scsi2 : sata_via
ata1: SATA max UDMA/133 port i16@0x1420 bmdma 0x1400 irq 22
ata2: SATA max UDMA/133 port i16@0x1430 bmdma 0x1408 irq 22
ata3: PATA max UDMA/133 port i16@0x1440 bmdma 0x1410 irq 22
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
IXP4XX-Flash.0: Found an alias at 0x400000 for the chip at 0x0
IXP4XX-Flash.0: Found an alias at 0x800000 for the chip at 0x0
IXP4XX-Flash.0: Found an alias at 0xc00000 for the chip at 0x0
Intel/Sharp Extended Query Table at 0x0031
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=32
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x3e0000
7 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 7 MTD partitions on "IXP4XX-Flash.0":
0x000000000000-0x000000040000 : "RedBoot"
0x000000080000-0x000000200000 : "kern1"
0x000000200000-0x000000380000 : "kern2"
0x000000380000-0x0000003a0000 : "apex"
0x0000003a0000-0x0000003c0000 : "microcode"
0x0000003c0000-0x0000003e0000 : "RedBoot config"
0x0000003e0000-0x000000400000 : "FIS directory"
IXP4xx MII Bus: probed
PHY 0:05 not found
eth%d: Could not attach to PHY
eth0: MII PHY 4 on NPE-C
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
PCI: enabling device 0000:00:0e.2 (0140 -> 0142)
ehci_hcd 0000:00:0e.2: EHCI Host Controller
ehci_hcd 0000:00:0e.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0e.2: Enabling legacy PCI PM
ehci_hcd 0000:00:0e.2: irq 23, io mem 0x48012000
ehci_hcd 0000:00:0e.2: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: enabling device 0000:00:0e.0 (0140 -> 0142)
ohci_hcd 0000:00:0e.0: OHCI Host Controller
ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0e.0: irq 23, io mem 0x48010000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
PCI: enabling device 0000:00:0e.1 (0140 -> 0142)
ohci_hcd 0000:00:0e.1: OHCI Host Controller
ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:0e.1: irq 23, io mem 0x48011000
ata1: SATA link down (SStatus 0 SControl 310)
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
rtc-isl1208 0-006f: chip found, driver version 0.3
rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
hwmon-vid: Unknown VRM version of your CPU
IXP4xx Watchdog Timer: heartbeat 60 sec
Registered led device: fsg:blue:wlan
Registered led device: fsg:blue:wan
Registered led device: fsg:blue:sata
Registered led device: fsg:blue:usb
Registered led device: fsg:blue:sync
Registered led device: fsg:blue:ring
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
XScale DSP coprocessor detected.
rtc-isl1208 0-006f: hctosys: invalid date/time
ata2: SATA link down (SStatus 0 SControl 310)
ata3.00: ATA-7: ST3400620A, 3.AAE, max UDMA/100
ata3.00: 781422768 sectors, multi 0: LBA48
ata3.00: limited to UDMA/33 due to 40-wire cable
ata3.00: configured for UDMA/33
scsi 2:0:0:0: Direct-Access     ATA      ST3400620A       3.AA PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 781422768 512-byte logical blocks: (400 GB/372 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4
sd 2:0:0:0: [sda] Attached SCSI disk
REISERFS (device sda1): found reiserfs format "3.6" with standard journal
REISERFS (device sda1): using ordered data mode
REISERFS (device sda1): journal params: device sda1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device sda1): checking transaction log (sda1)
REISERFS (device sda1): replayed 25 transactions in 0 seconds
REISERFS (device sda1): Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) on device 8:1.
Freeing init memory: 108K
Please be patient, while OpenWrt loads ...
net eth0: firmware: requesting NPE-C
NPE-C: firmware's license can be found in /usr/share/doc/LICENSE.IPL
NPE-C: firmware functionality 0x5, revision 0x2:1
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (966 buckets, 3864 max)
br-lan: port 1(eth0) entering disabled state
eth0: link up, speed 100 Mb/s, full duplex
br-lan: port 1(eth0) entering forwarding state
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_pci: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
PCI: enabling device 0000:00:0d.0 (0140 -> 0142)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi0: Atheros 5413: mem=0x48000000, irq=24
uhci_hcd: USB Universal Host Controller Interface driver
device ath0 entered promiscuous mode
br-lan: port 2(ath0) entering forwarding state
REISERFS (device sda4): found reiserfs format "3.6" with standard journal
REISERFS (device sda4): using ordered data mode
REISERFS (device sda4): journal params: device sda4, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device sda4): checking transaction log (sda4)
REISERFS (device sda4): Using r5 hash to sort names
Adding 80316k swap on /dev/sda3.  Priority:-1 extents:1 across:80316k


Can someone help me.
Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
cron

{ ASACP_CREDITS } Powered by phpBB® Forum Software © phpBB Group