OpenWrt Forum Archive

Topic: Unblock or replace CFE in vodafone HG553

The content of this topic has been archived on 27 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

This router can not enter to CFE from a serial console. I know that other routers possible. This is my CFE with changed MAC and Serial number: cfe_my_mac_serial.bin

I try flash other CFE (from Alice Gate VoIP 2) and working:
but OpenWrt-HG553 not start after that and Linux kernel CRC error.
http://savepic.net/8322754m.png
OpenWrt from Alice Gate V2 working after flash from CFE over TFTP:

CFE> flashimage openwrt-AGV2+W-cfe-jffs2-128k-cfe.bin
Loading 192.168.1.100:openwrt-AGV2+W-cfe-jffs2-128k-cfe.bin ...

Unfortunately, not work Wifi and USB :-(. Details in the post on eko.one.pl: vodafone HG553

OK, I found the source code CFE_HomeHub2A-sourcecode.tar.xz

After edit build.sh - change BoardID=HOMEHUB2A to BoardID=HW553 CFE work. OpenWrt AA 12.09 with Ethernet, Wifi & USB also work :-).

Only not work LED's :-(

Please help resolve problem.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.08.07 00:05:40 =~=~=~=~=~=~=~=~=~=~=~=

Pulling BCM5325 out of reset (GPIO15 ON)......done


CFE version 1.0.37-6.4 for BCM96358 (32bit,SP,BE)
Build Date: Sat Aug  6 19:26:53 CEST 2016 (root@debian)
Copyright (C) 2000-2005 Broadcom Corporation.

Boot Address 0xbe000000

Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB

Now initializing the switch...
GPIO_MODE_EMAC2_MII_CLK_INV pinmux enabled
Setting BCM5325 managed mode
    B53_SWITCH_MODE = 0x6
    new B53_SWITCH_MODE = 0x7
    REG_MII_PORT_CONTROL = 0x0
    new REG_MII_PORT_CONTROL = 0x1c
    B53_GLOBAL_CONFIG = 0x0
    new B53_GLOBAL_CONFIG = 0x80
    REG_VLAN_CTRL5 = 0x0
    new REG_VLAN_CTRL5 = 0x3
done
Setting BCM5325 unmanaged mode
    B53_SWITCH_MODE = 0x7
    new B53_SWITCH_MODE = 0x6
    B53_GLOBAL_CONFIG = 0x80
    new B53_GLOBAL_CONFIG = 0x0
done
Clearing B53_PORT_CTRL(i) registers at ports 0, 1, 2, 3, 4, 5, 6, 7, 8,  done
B53_PORT_OVERRIDE_CTRL = 0x9f
...done

CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz
Total memory: 67108864 bytes (64MB)

Total memory used by CFE:  0x80401000 - 0x80528880 (1210496)
Initialized Data:          0x8041D970 - 0x8041FF80 (9744)
BSS Area:                  0x8041FF80 - 0x80426880 (26880)
Local Heap:                0x80426880 - 0x80526880 (1048576)
Stack Area:                0x80526880 - 0x80528880 (8192)
Text (code) segment:       0x80401000 - 0x8041D96C (117100)
Boot area (physical):      0x00529000 - 0x00569000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                  : 192.168.1.1:ffffff00  
Host IP address                   : 192.168.1.100  
Gateway IP address                :   
Run from flash/host (f/h)         : f  
Default host run file name        : vmlinux  
Default host flash file name      : bcm963xx_fs_kernel  
Boot delay (0-9 seconds)          : 3  
Board Id Name                     : HW553  
Psi size in KB                    : 24
Number of MAC Addresses (1-32)    : 12  
Base MAC Address                  : 00:24:89:57:44:82  
Ethernet PHY Type                 : Internal
Memory size in MB                 : 64
CMT Thread Number                 : 0

***  Press any key to stop auto run (3 seconds) ***
 Auto run second count down: 3322
CFE> 
web info: Waiting for connection on socket 0.

CFE> 
CFE> 

New compiled CFE.BIN -> cfe_my_mac_HW553.bin

OK, now LED's working smile

You need add script /sbin/diody_on.sh to /etc/rc.local which active LED's (GPIO6 Active Low) and put him to /sbin folder. Script also change POWER LED Red to Blue:

/etc/rc.local:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

/sbin/diody_on.sh

exit 0

diody_on.sh:

#!/bin/sh

echo "6" > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio6/direction
echo 0 > /sys/devices/platform/leds-gpio.0/leds/HW553:red:power/brightness
echo 1 > /sys/devices/platform/leds-gpio.0/leds/HW553:blue:power/brightness

P.S. To build CFE for HW553 need also change:

"HOMEHUB2A",                            /* szBoardId */

to

"HW553",                            /* szBoardId */

in: /cfe_bcm63xx/shared/opensource/boardparms/bcm963xx/boardparms.c:

Edit
-----

Now LED's work smile - read this post:
https://forum.openwrt.org/viewtopic.php … 15#p335515

(Last edited by Gelip on 8 Sep 2016, 17:40)

The discussion might have continued from here.