OpenWrt Forum Archive

Topic: Openwrt support for Huawei HG655b

The content of this topic has been archived between 12 Mar 2018 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Hello everyone.
I have managed to flash fratzicu's firmware into hg655b.

I want to create a wireless client bridge and repeater.
Can someone explain how please? I don't know anything about this

Thank you in advance.

Ps: For fratzicu: I'm from Romania also.

(Last edited by watkinsalexander on 26 Nov 2014, 12:53)

Back I am, after managing to set up the router to work again with RCS-RDS, I wanted to know what to do to get the wifi working.
Seems there's no Wireless/Wifi option anywhere in LuCI, and there seems to be no /dev/wlan0, so I'm guessing the wireless chip went bust, althought I would still hope it actually works, but I'm not doing something right.
Is there any way to diagnose what the problem is, or perhaps be able to fix it in some way?

Here's kern.log, and the syslog.

Currently using cfe-6 by danitool that was linked in this thread. Will update if necessary, but for now I'm happy that I got it working and I didn't want to risk getting a newer version and it to brick the router.

(Last edited by andoru on 11 Jan 2015, 23:27)

Hi andoru. Looks like you destroyed your eeprom data at the cal_data parititon

[   10.124000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'rt2x00.eeprom'.

[   10.136000] ieee80211 phy0: rt2800_probe_rt: Error - Invalid RT chipset 0xffff, rev ffff detected

[   10.144000] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device

You need to restores this partition with valid data for the wifi chip. Try this:

- Generete a bin file for the eeprom. Make it at your PC with a linux distro:

echo '6230010072D15E0DAD6C623014180180000062301418000001006AFF0C00FFFFFFFFFFFFB092FFFFFFFFFFFFFFFFFFFFFFFFFFFF22082400FFFF1601FFFFD9FACC88FFFF0DFF0000030000000000FFFFFFFF0E0F0F0F10101010100F0F0F0F0F0C0C0C0C0C0C0C0C0C0B0B0B0B0BFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF555588887777666666666666666666666666FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF068693' | xxd -r -p > eeprom.bin

- Now transfer the file eeprom.bin into your router and flash the cal_data partition

mtd write eeprom.bin cal_data

- Restart Openwrt and check if wifi works.

I wonder how you did destroy the data, might be backing to original firmware?. If you success restoring the wifi eeprom then try to reproduce again the conditions under you got the eeprom erased, and give us feedback.

(Last edited by danitool on 12 Jan 2015, 15:22)

Thanks for the answer, did what you suggested but it doesn't work:

[    9.700000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'rt2x00.eeprom'.
[    9.708000] ieee80211 phy0: rt2800_probe_rt: Error - Invalid RT chipset 0xffff, rev ffff detected
[    9.720000] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
danitool wrote:

I wonder how you did destroy the data, might be backing to original firmware?

Don't know, possibly the data was already wiped when the original firmware was on the router. As I mentioned here, the original firmware doesn't work anymore on this router, after what I suspect was a failure on the wireless part of the router.

danitool wrote:

If you success restoring the wifi eeprom then try to reproduce again the conditions under you got the eeprom erased, and give us feedback.

The solution above didn't fix my problem, so I'm not able to reproduce at this point smile

Did you really flashed the bin file to the cal_data partition?

Please paste here the output of these commands

cat /proc/mtd
cat /dev/mtd4|hexdump
danitool wrote:

Did you really flashed the bin file to the cal_data partition?

I used the same commands you specified earlier for both creating the bin file and flashing it through ssh. Here's the output of the two commands:

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "CFE"
mtd1: 0010ff00 00010000 "kernel"
mtd2: 00690000 00010000 "rootfs"
mtd3: 00350000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "cal_data"
mtd5: 00010000 00010000 "nvram"
mtd6: 007a0000 00010000 "linux"

root@OpenWrt:~# cat /dev/mtd4|hexdump
0000000 6230 0100 72d1 5e0d ad6c 6230 1418 0180
0000010 0000 6230 1418 0000 0100 6aff 0c00 ffff
0000020 ffff ffff b092 ffff ffff ffff ffff ffff
0000030 ffff ffff 2208 2400 ffff 1601 ffff d9fa
0000040 cc88 ffff 0dff 0000 0300 0000 0000 ffff
0000050 ffff 0e0f 0f0f 1010 1010 100f 0f0f 0f0f
0000060 0c0c 0c0c 0c0c 0c0c 0c0b 0b0b 0b0b ffff
0000070 ffff ffff ffff ffff ffff ffff ffff ffff
*
00000d0 ffff ffff ffff ffff ffff ffff ffff 5555
00000e0 8888 7777 6666 6666 6666 6666 6666 6666
00000f0 ffff ffff ffff ffff ffff ffff ffff ffff
*
00001f0 ffff ffff ffff ffff ffff ffff ff06 8693
0000200 ffff ffff ffff ffff ffff ffff ffff ffff
*
0010000

(Last edited by andoru on 12 Jan 2015, 22:05)

I suspect the wifi chip, or something in the wifi circuitery part, is fried or bad.

Regards.

(Last edited by danitool on 12 Jan 2015, 22:57)

So then I guess nothing much can be done to fix it?

Hi, everyone !

I am a beginner. how can i install openwrt to my hg655d. Please explain to me.

edit:

I tried the following method;


I hold the reset button and turn of modem and open http://192.168.1.1.
I see the firmware install screen
I select the file "openwrt-HG655d-squashfs-cfe.bin" and press install.
Two minutes later, opened the original interface. Don't install openwrt. Sorry my english. I am using google translate some parts wink

(Last edited by vurulkan on 14 Jan 2015, 03:00)

@vurulkan: Turn on your router while keeing the reset switch pressed. Keep it pressed until the power LED turns off. Then open your browser and go to http://192.168.1.1/ . Here you should see a page where you can upload your firmware, and then let the router flash it. After the router has restarted, go to the above link again and sign in on LuCI and set up the router.

EDIT: Perhaps your device is locked? Or maybe OpenWRT doesn't support your device, or OpenWRT has some issues with your router's bootloader.

EDIT2: You could try to do a TFTP flash: http://www.dd-wrt.com/wiki/index.php/Tftp_flash
That way you might get some messages that would tell what went wrong. Paste the output here so we could see.

(Last edited by andoru on 14 Jan 2015, 03:11)

@andoru i tried tftp in Windows and Linux. it gives "Timed Out" error.

edit: When I update the modem interface, writes in modem logs "Upgrading fail: File format error."

(Last edited by vurulkan on 14 Jan 2015, 14:51)

The tftp procedures at ddwrt wiki aren't valid for this router.

For using tftp you first need serial console access to break into CFE bootloader, this allows to send commands to CFE to pick up the firmware from a tftp server in your computer. The command you need to send to CFE is something like this

f 192.168.1.35:firmware.bin

where 192.168.1.35 is the IP of your computer where a tftp server is running and serving the firmware.bin file.

Some users reported they couldn't to flash the openwrt firmware. AFAIK their devices have an older bootloader which doesn't allow to swallow the Openwrt firmware. To upgrade the CFE bootlader with fratzicu's one might be possible without using JTAG. But more feedback is needed.

Thank you for your help. I bought "Altera Usb Blaster" from china. I have to be 15-30 days. How can i JTAG Hg655d and install openwrt? Please, tell for beginners smile

edit: busybox mtd and partition information :

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00419000 00000000 "BCM63XX RootFS"
# cat /proc/partitions
major minor  #blocks  name

  31     0       4196 mtdblock0

(Last edited by vurulkan on 15 Jan 2015, 03:26)

Thanks a lot members & devs for this thread, a learn a lot..
but is there anyone tried to build a newer firmware base on "14.07" /kernel 3.10.49 ???
theres a lot of packages having trouble coz of this requisite :-(
Please help..

DeviGyn, BB 14.07 should compile/work without problems in this device. I'll build a firmware this week, but I cannot test it since I don't own a Hg655

(Last edited by danitool on 22 Jan 2015, 10:54)

oh my,, i have 3 of this,, all of them embedded with your own firmware build the first one i mean.. its working really nice,, i dont much have trouble & i have succesfully installed the MWAN3 for multiwan & load balacing & torrent client,, the only problem is the QoS,, they are not working properly,, i think the Kernel version was so outdated,, the log always telling that "have kernel issue/difficulty"..what was that?? Anyway it still awesome,, u made my old router works again smile thanks Danitool & Fratzicu..
BTW im available to try ur next build if ever there is a chance coz i dont know how to build mine since i am not familiar in Linux/alien langguage,, but i love them,, it is so exciting smile

New custom (not official) firmware build, Barrier Braker  14.07 final release for HG556b/d (not tested).

openwrt-HG655x-squashfs-cfe-BB.bin

Let me know if it works for HG655b or HG655d.

@danitool, yup, its working. HG655b confirmed,, i wanna try all function & its capable of,, BTW its very good thing you've included the "WatchCat & QoS" in the package :-D .. the only thing you've forgottn is the Wireless Network... the WiFi option in the "Network" sec,, anyway it is in pretty good shape now,, and Sir,,if you plan to rebuild this in the near future, can you please add the Block-Mount :-)  its the last thing that makes every OpenWrt-EMbedded devices PERFECT `',) !! Have a nice day sir. Good job!!!

Hi, danitool,
Did you manage to update the git repository? Can a new image be built from the repository linked here in your post no 65?
Best regards

Hi fratzicu, I didn't make any update in GIT. I just used fresh sources from Openwrt and patched them manually. The old GIT repo is maintained by Noltari. He made another branch, but I don't know if HG655b is included (I bet it is). To get this new branch you can use this command

git clone git://github.com/openwrt-es/openwrt.git -b bb-14.07-rc3

Regards

Thanks,
I'll give it a try. I'm curious if luci-openvpn is working now

And also I'll give it another try to rewrite the cal-data

(Last edited by fratzicu on 24 Jan 2015, 17:19)

I re-uploaded the firmware, this time built with the right drivers for wifi and block-mount. I've also made the patch for building Openwrt BB 14.07. All included in this file:

openwrt-HG655x-squashfs-cfe-BB.zip

Regards.

@Danitool;
wow,, this is insane,, for a very short time,,you totally fixed it, wifi now in handy, LED properly configured also,, too fast men.. awesome big_smile . HG655b confirmed & working perfect. well done. it's about time..yess,,, tnx dev..

Hi, danitool,

Can you post how to build from Noltari branch and use your patch? I want to make a image for my own needs. For example, I need to have: minidlna, samba, ftp, openvpn client, ext3, ext4 and ntfs rw, without firewall (I use the device as a media server and NAS on my LAN). Now that wifi does not work I use it only as wired. When wifi worked I configured t as a wired repeater bridge.

Unfortunately, I don't really know how the patches work. until now I built images only from a working git or svn repository. I'll give it another try to rewrite my cal_data partition and build the firmware image, this time with caution not to exceed about 7 Mb.

Thank you.

I have another question:

I have a Lacie internet space device that has a file websharing server called hipserv. It is some kind of owncloud, only with a smaller footprint. I wonder if there is such app for openwrt. The guys from lacie dropped their server  homelacie.com and now I cannot use anymore this server. Owncloud is very slow on such devices with openwrt.

Best regards.