I build CFE for HG553 from HOMEHUB2 source code. In build.sh file change BoardID=HW553 and my MAC address. CFE work OK but Dlink firmware ROLEO crash.
OpenWrt AA 12.09 work OK - USB, Wifi, Ethernet but no work LED's.
I want to add support for LED on HG553 (HW553). In the source code, I found information in file:
/cfe_bcm63xx/cfe/cfe/arch/mips/board/bcm63xx_ram/src/bcm63xx_devs.c
//setLedOn(BP_GPIO_6_AL); //HG556a, enable gpio6, otherwise leds won't work
I checked it and HG553 also need to set GPIO 6 Active Low for LED's working. If goto CFE, run command:
and boot OpenWrt then RED POWER LED lights up and management of LED's works ;-)
I need help how fix source code CFE to set GPIO 6 Active Low.
My post on eko.one.pl: vodafone HG553
Thx.
Edited
--------
To LED's work need simply uncomment this line in source code
:
/cfe_bcm63xx/cfe/cfe/arch/mips/board/bcm63xx_ram/src/bcm63xx_devs.c
//setLedOn(BP_GPIO_6_AL); //HG556a, enable gpio6, otherwise leds won't work
Tested CC 15.05.1 with this new CFE: cfe_gpio6_token.bin
WARNING!!! This CFE has added token and possible upgrade from WEB Upgrade 192.168.1.1 (pressed reset 15 sec while power). Please make backup CFE first e.g. from OpenWrt:
dd if=/dev/mtd0 of=/tmp/cfe.bin
then copy cfe.bin over WinSCP
putty.log:
Pulling BCM5325 out of reset (GPIO15 ON)......done
CFE version 1.0.37-6.4 for BCM96358 (32bit,SP,BE)
Build Date: Tue Aug 23 03:16:28 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: 0x8041D980 - 0x8041FF80 (9728)
BSS Area: 0x8041FF80 - 0x80426880 (26880)
Local Heap: 0x80426880 - 0x80526880 (1048576)
Stack Area: 0x80526880 - 0x80528880 (8192)
Text (code) segment: 0x80401000 - 0x8041D974 (117108)
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) : 1
Board Id Name : HW553
Psi size in KB : 24
Number of MAC Addresses (1-32) : 4
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 (1 seconds) ***
Auto run second count down: 110
Code Address: 0x80A00000, Entry Address: 0x80a00000
Decompression OK!
Entry at 0x80a00000
Closing network.
Starting program at 0x80a00000
(Last edited by Gelip on 8 Sep 2016, 17:38)