Thursday, October 21, 2010, 10:29

And finally, Openwrt booting on SX762 with USB rootfs and WIFI working too

Well with some modification of dwc_otg usb driver, Ralph was kindly sent me, and some luck (found a kernel with source that powers up USB port) got USB up and running. Wifi what i was thinking will be a harder task was even more easy, while ath5k do not recognize device because of its pci id and lack of eeprom (that is what wlan_eesim module was used for) after adding pci id and rewriting eeprom reading code, it got Wifi up and running too, still need to clean some of the stuff and figure out why AP+Client mode on Wifi not working together, but there is a progress at least.

ROM VER: 1.0.3
CFG 01
Read EEPROMX
 X


SHC Danube-External-Flash-Boot - Version V1.1
Mem-config:
Flash:  8MB- 8MBx1
Ram:   32MB-32MBx1

Low level dbg is active...

CPU0
MEMS

ROM VER: 1.0.3
CFG 01
Read EEPROMX
 X


SHC Danube-External-Flash-Boot - Version V1.1
Mem-config:
Flash:  8MB- 8MBx1
Ram:   32MB-32MBx1

Low level dbg is active...

CPU0
MEMS

-- Danube Primary loader --
Version: 4.1.23.52.0
Build Profile: sx76x_danube_a
Build Date: Jul 25 2008 - 17:47:44

--> Extract primary loader[  OK  ]
--> Validate secondary loader (FLASH)[  OK  ]

-- Danube Secondary loader --
Version: 4.1.26.52.0
Build Profile: sx76x_danube_b
Build Date: Jun 16 2008 - 18:02:01

--> Extract secondary loader[  OK  ]
--> Press enter to activate cli[  00  ]
## Starting application at 0xB0020000 ...


U-Boot 2010.03 (Oct 19 2010 - 18:40:53)

Board: unknown, chip part number 0x12B V1.3, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM:  32 MB
Flash:  8 MB
Net:   lq_cpe_eth

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at b0060000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.33.7
   Created:      2010-10-20  12:20:39 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1412219 Bytes =  1.3 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.33.7 (root@colinux) (gcc version 4.3.3 (GCC) ) #116 Wed Oct 20 12:20:24 UTC 2010
bootconsole [early0] enabled
CPU revision is: 00019641 (MIPS 24Kc)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/sda rootfstype=ext2 rootwait ip=192.168.1.1:192.168.1.110:::::off 
init=/etc/preinit console=ttyS1,115200 ethaddr=00:01:02:03:04:05 
mtdparts=ifx-nor:256k(uboot)ro,64k(uboot_env)ro,64k(kernel),-(rootfs)  console=ttyS0,9600 rootfstype=ext2
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=00072eb8
Readback ErrCtl register=00072eb8
Memory: 28016k/32768k available (3540k kernel code, 4752k reserved, 584k data, 184k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:256
console [ttyS0] enabled, bootconsole disabled
Linux version 2.6.33.7 (root@colinux) (gcc version 4.3.3 (GCC) ) #116 Wed Oct 20 12:20:24 UTC 2010
bootconsole [early0] enabled
CPU revision is: 00019641 (MIPS 24Kc)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/sda rootfstype=ext2 rootwait ip=192.168.1.1:192.168.1.110:::::off 
init=/etc/preinit console=ttyS1,115200 ethaddr=00:01:02:03:04:05 
mtdparts=ifx-nor:256k(uboot)ro,64k(uboot_env)ro,64k(kernel),-(rootfs)  console=ttyS0,9600 rootfstype=ext2
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=00072eb8
Readback ErrCtl register=00072eb8
Memory: 28016k/32768k available (3540k kernel code, 4752k reserved, 584k data, 184k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:256
console [ttyS0] enabled, bootconsole disabled
console [ttyS1] enabled
Calibrating delay loop... 221.69 BogoMIPS (lpj=443392)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Lantiq Eval Board
PCI: Probing PCI hardware on host bus 0.
IFXMips PCI mapped to 0xB7000000
IFXMips PCI I/O mapped to 0xBAE00000
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
pci 0000:00:0e.0: BAR 0: set to [mem 0x18000000-0x1800ffff] (PCI address [0x18000000-0x1800ffff]
pci 0000:00:0e.1: BAR 1: assigned [mem 0x18010000-0x18010fff]
pci 0000:00:0e.1: BAR 1: set to [mem 0x18010000-0x18010fff] (PCI address [0x18010000-0x18010fff]
pci 0000:00:0e.1: BAR 0: assigned [io  0x1ae00000-0x1ae00007]
pci 0000:00:0e.1: BAR 0: set to [io  0x1ae00000-0x1ae00007] (PCI address [0x1ae00000-0x1ae00007]
NET: Registered protocol family 8
NET: Registered protocol family 20
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
gptu: totally 6 16-bit timers/counters
gptu: misc_register on minor 63
gptu: succeeded to request irq 126
gptu: succeeded to request irq 127
gptu: succeeded to request irq 128
gptu: succeeded to request irq 129
gptu: succeeded to request irq 130
gptu: succeeded to request irq 131
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 54
io scheduler noop registered
io scheduler deadline registered (default)
IFX MEI Version 5.00.00
Infineon Technologies ATM driver version 1.0.8
Infineon Technologies ATM (A1) firmware version 0.1
ifxmips_atm: ATM init succeed
ttyS0 at MMIO 0xbe100400 (irq = 104) is a asc0
ttyS1 at MMIO 0xbe100c00 (irq = 111) is a asc1
ifx-nor: Found 1 x16 devices at 0x0 in 16-bit bank
 CFI mfr 0x00000001
 CFI id  0x00001000
 Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
number of CFI chips: 1
4 cmdlinepart partitions found on MTD device ifx-nor
ifxmips_mtd: found 4 partitions from cmdline
ifxmips_mtd: invalid magic (0x124DAE4F) of kernel at 0x00050000
Creating 4 MTD partitions on "ifx-nor":
0x000000000000-0x000000040000 : "uboot"
0x000000040000-0x000000050000 : "uboot_env"
0x000000050000-0x000000060000 : "kernel"
0x000000060000-0x000000800000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "ifx-nor"
Creating 1 MTD partitions on "ifx-nor":
0x000000050000-0x000000800000 : "linux"
ifxmips_mtd: added ifx-nor flash with 8MB
eth0: using mac=00:01:02:03:04:05
ifxmips_mii: probed
eth0: ADM6996 PHY driver attached.
eth0: attached PHY driver [Infineon ADM6996] (mii_bus:phy_addr=0:00, irq=-1)
ifxmips_mii0: driver loaded!
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
sl811: driver sl811-hcd, 19 May 2005
dwc3884-hcd: version 2.40a 10-APR-2006
DWC_otg: Using DMA mode
otg_dev->base hcd->regs = -1106243584
dwc3884-hcd dwc3884-hcd: DWC OTG Controller
dwc3884-hcd dwc3884-hcd: new USB bus registered, assigned bus number 1
dwc3884-hcd dwc3884-hcd: irq 62, io mem 0x00000000
DWC_otg: dwc_otg_flush_tx_fifo() HANG! GRSTCTL=420 GNPTXSTS=0x00080330
DWC_otg: dwc_otg_flush_rx_fifo() HANG! GRSTCTL=10
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 0
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 1
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 2
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 3
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 4
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 5
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 6
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 7
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 8
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 9
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 10
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 11
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 12
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 13
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 14
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 15
DWC_otg: Init: Port Power? op_state=1
DWC_otg: Init: Power Port (0)
switch usb vbus 1<<4 & 1<<5 (new) power on
Vagy most!Volt: 00003c7bLett: 00003c7bswitch usb vbus 1<<4 & 1<<5 (new) power on
Vagy most!Volt: 00003c7bLett: 00003c7b
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 2.6.33.7 dwc_otg_hcd
usb usb1: SerialNumber: dwc3884-hcd
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nem fagy
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ifxmips_wdt: loaded
Registered led device: ifxmips:led:00
Registered led device: ifxmips:led:01
Registered led device: ifxmips:led:02
Registered led device: ifxmips:led:03
Registered led device: ifxmips:led:04
Registered led device: ifxmips:led:05
Registered led device: ifxmips:led:06
Registered led device: ifxmips:led:07
Registered led device: ifxmips:led:08
Registered led device: ifxmips:led:09
Registered led device: ifxmips:led:10
Registered led device: ifxmips:led:11
Registered led device: ifxmips:led:12
Registered led device: ifxmips:led:13
Registered led device: ifxmips:led:14
Registered led device: ifxmips:led:15
Registered led device: ifxmips:led:16
Registered led device: ifxmips:led:17
Registered led device: ifxmips:led:18
Registered led device: ifxmips:led:19
Registered led device: ifxmips:led:20
Registered led device: ifxmips:led:21
Registered led device: ifxmips:led:22
Registered led device: ifxmips:led:23
IPv4 over IPv4 tunneling driver
TCP westwood registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
tunl0: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
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>
usb 1-1: new high speed USB device using dwc3884-hcd and address 2 usb 1-1: New USB device found, idVendor=0951, idProduct=160b usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: DataTraveler2.0 usb 1-1: Manufacturer: Kingston usb 1-1: SerialNumber: 0711171121592 scsi0 : usb-storage 1-1:1.0
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.1.1, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.1.1, domain=, nis-domain=(none),
     bootserver=192.168.1.110, rootserver=192.168.1.110, rootpath=
Waiting for root device /dev/sda...
scsi 0:0:0:0: Direct-Access     Kingston DataTraveler2.0  1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 1956735 512-byte logical blocks: (1.00 GB/955 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: unknown partition table
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
VFS: Mounted root (ext2 filesystem) readonly on device 8:0.
Freeing unused kernel memory: 184k freed
Please be patient, while OpenWrt loads ...
EXT2-fs (sda): warning: mounting unchecked fs, running e2fsck is recommended

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
br-lan: starting userspace STP failed, starting kernel STP
PPP generic driver version 2.4.2
ppp_async: Unknown symbol crc_ccitt_table
IFXOS, Version 1.5.12 (c) Copyright 2009, Lantiq Deutschland GmbH

Compat-wireless backport release: compat-wireless-2010-10-14-1-gf0578ae
Backport based on wireless-testing.git master-2010-10-15
cfg80211: Calling CRDA to update world regulatory domain
Lantiq TAPI device driver, version 3.11.0.6, (c) 2001-2010 Lantiq Deutschland GmbH
Lantiq MIPS24KEc MPS driver, version 2.2.1.0, (c) 2006-2010 Lantiq Deutschland GmbH
request_timer(3, 0x000001AE, 1)...successful!
Lantiq VMMC device driver, version 1.7.0.6, (c) 2006-2010 Lantiq Deutschland GmbH
PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
ath5k 0000:00:0e.0: registered as 'phy0'
ath5k phy0: Atheros AR2413 chip found (MAC: 0x78, PHY: 0x45)
cfg80211: Calling CRDA for country: AW
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (440 buckets, 1760 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
IMQ driver loaded successfully.
Hooking IMQ before NAT on PREROUTING.
Hooking IMQ after NAT on POSTROUTING.


Infineon CPE API Driver version: DSL CPE API V3.24.4.4
ADDRCONF(NETDEV_UP): wlan0: link is not ready
device wlan0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 2(wlan0) entering forwarding state
ADDRCONF(NETDEV_UP): wlan1: link is not ready



BusyBox v1.17.2 (2010-09-15 11:05:37 UTC) 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, r23070) ------------------
  * 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:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               962964     23820    890228   3% /
tmpfs                    14100       336     13764   2% /tmp
tmpfs                      512         0       512   0% /dev
root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

tunl0     no wireless extensions.

sit0      no wireless extensions.

br-lan    no wireless extensions.

imq0      no wireless extensions.

imq1      no wireless extensions.

wlan0     IEEE 802.11bg  Mode:Master  Frequency:2.462 GHz  Tx-Power=20 dBm   
          RTS thr:off   Fragment thr:off
          Power Management:off
          
wlan1     IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
mon.wlan0  IEEE 802.11bg  Mode:Monitor  Tx-Power=20 dBm   
          RTS thr:off   Fragment thr:off
          Power Management:off
          
nas0      no wireless extensions.

root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               962964     23820    890228   3% /
tmpfs                    14100       352     13748   2% /tmp
tmpfs                      512         0       512   0% /dev



 

Last modified: 2012-02-17, 10:37

© 2011 …