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.

The Noltari's branch is essentially the same stuff as the official Barrier Braker release but with support for more routers, sadly he didn't make profiles for every router (too much time consuming), then kernel modules for each router should be selected manually. So no need to apply my patch in it. If HG655b isn't included then use official BB repo with my patch

To to use my patch, basic instructions are included in the readme file. You just need to drop the patch in the directory where the sources are downloaded and apply. The rest of the process is easy, menuconfig selecting options might be a little tricky but not a problem if you already built stuff like this.

If you want to use trunk branch from Openwrt git then the patch should be adapted, I won't do this because I don't want to fight with everyday changes in repository, and I see no benefit. The development is a bit stalled in this platform caused by the DTS migration, otherwise to add official support should be very easy.

Regards.

About owncloud, yes it's slow. I don't know any app for openwrt for websharing/cloud style. BTW this device is not that powerful for running complex RAM eating servers, 64MB RAM might be insufficient.

Thank you

Hi,

I tried both Noltari and BB with danitool's patch and both compiled with a minimal configuration. Still, I couldn't see in the packages two things:

minidlna (also luci-app-minidlna)
openvpn (it is there, but luci-app-openvpn is not, but appears when I cleck "show broken packages")
How to add minidlna?

Also, it seems that a new vpn solution appeared: openconnect. The server is there with its gui interface luci-app-ocserv, but the client gui is not: luci-proto-openconnect.
I don't know if there is an alternative for minidlna or if openconnect is better than openvpn.

How to add minidlna?

ok. so I found that first I have to select in lbraries libffmpeg-something and then minidlna shows in makemenuconfig

(Last edited by fratzicu on 25 Jan 2015, 17:12)

Compiling now both variants - Noltari and danitool - measuring time...

Danitool's official BB branch + patch compiling time on ubuntu with Phenom X6 (but created images for all HG63xx
real    51m25.351s
user    39m39.158s
sys    12m23.816s

Noltari's branch
real    42m6.761s
user    33m0.910s
sys    9m59.070s

(Last edited by fratzicu on 25 Jan 2015, 22:23)

Sir how can i add or attach function to the WPS or RESET button that tell "Network Restart (in ssh it is "/etc/init.d/network restart); for a beginner so i want to be it in that push button so that it will be useful,, is that possible?? sorry,, roll

DeviGyn wrote:

Sir how can i add or attach function to the WPS or RESET button that tell "Network Restart (in ssh it is "/etc/init.d/network restart); for a beginner so i want to be it in that push button so that it will be useful,, is that possible?? sorry,, roll

The easiest way is to manage the buttons as HID buttons, but some kernel modules need to be installed first; kmod-hid maybe enough (it should force to install the rest of modules), I don't remember exact modules. After installing those kernel modules, the buttons in theory are availabel at /dev/input/event

Then install triggerhappy, and configure this daemon:
http://wiki.openwrt.org/doc/howto/hardw … iggerhappy

Hi,
I compiled an image using your patch and all went fine with the flash, but at boot I have this message and then it hangs
Maybe it would work without "make kernel_menuconfig"

web info: Upload 6225924 bytes, Broadcom image format.                                      
CFE> Current boot system is:<����������������> iMode:<2>                                    
                                                                                            
------ Going to update Main System.                                                         
                                                                                            
Flashing root file system and kernel at 0xb8020000, len = 6225924                           
............................................................................................
                                                                                            
Current boot system is:<����������������> iMode:<1>                                         
.                                                                                           
*** Image flash done *** !                                                                  
                                                                                            
Resetting board...                                                                          
                                                                                            
CFE version 1.0.37-102.6 for BCM96368 (32bit,SP,BE)                                         
Build Date: Fri Apr 16 15:18:13 CST 2010 (lihua@IBM_x3500)                                  
Copyright (C) 2000-2008 Broadcom Corporation.                                               
                                                                                            
Parallel flash device: name AM29LV320MB, id 0x2200, size 8192KB                             
CPU type 0x2A031: 400MHz, Bus: 160MHz, Ref: 64MHz                                           
CPU running TP0                                                                             
Total memory: 67108864 bytes (64MB)                                                         
Boot Address 0xb8000000                                                                     
                                                                                            
                                                                                            
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                                                       
Boot image (0=latest, 1=previous) : 0                                                       
Board Id (0-6)                    : HW65x                                                   
Number of MAC Addresses (1-32)    : 11                                                      
Base MAC Address                  : 02:10:18:01:00:01                                       
PSI Size (1-64) KBytes            : 64                                                      
Main Thread Number [0|1]          : 0                                                       
                                                                                            
*** Press any key to stop auto run (2 seconds) ***                                          
Auto run second count down: 0                                                               
LZMA: Prossible old LZMA format, trying to decompress..                                     
Decompression OK!                                                                           
Entry at 0x80010000                                                                         
Closing network.                                                                            
Disabling Switch ports.                                                                     

(Last edited by fratzicu on 26 Jan 2015, 22:51)

Hi again, I've made a dummy firmware for upgrading the HG655d CFE, with the one present in the HG655b. It should solve the issues for installing a new firmware. I didn't test it in a HG655d but I expect it will work.

https://drive.google.com/uc?export=down … zQ1M29BRjg

Caution: replacing the bootloader can brick the router (only recoverable via JTAG).

Remember, this is only for HG655d. Feedback is welcome.

(Last edited by danitool on 27 Jan 2015, 23:39)

Hi, but what about tmy compiled image that gives after flash:

LZMA: Prossible old LZMA format, trying to decompress..                                     
Decompression OK!                                                                           
Entry at 0x80010000                                                                         
Closing network.                                                                            
Disabling Switch ports.                                                                     

and then does not start?
Is it true that with your patch the leds work better? (I mean the LAN link leds?)
Kind regards.

No leds configured with my patch, the behavior is the same as with previous firmwares.

Looks like there si something really bad with your kernel. Might be caused by SMP misconfiguration. Did you select SMP profile?, you should, my patch makes changes to build a SMP kernel. I included this changes because in my computer it doesn't occur automatically when SMP profile is selected.
If this is not the case, I have no idea on what's going on.

Regards.

Hi,
Indeed, I didn't select SMP. I'll try now.

Also, as you know, I have the same problem as andoru, the wifi is not detected, although the wefi cal_data is there. But my chip stopped working spontaneously, it didn't brake after a firmware upgrade. It's true that I made a mistake uploading a large firmware file, but then I restored the data and it worked again, and then while working it some time stopped. Out of curiosity I think I'll go when I have time to a friend that can verify the chip.

Kind regards

I would help, but my knowledges are very restricted to MIPS bcm63xx. Those devices looks exotic to me. Looks like the Lacie Internet Space  it's a Marvell SoC, ARM based architecture. To deal with unsupported platforms is a hard work. You might end very dissapointed with the results.

Regards.

(Last edited by danitool on 30 Jan 2015, 21:03)

If I'm not wrong the Lacie Internet Space has a MV88F5182 SoC. This is the target called "orion" in Openwrt, looks like 2 devices with this SoC are supported

https://dev.openwrt.org/wiki/orion

There are chances for having support for the Lacie. Maybe there are someone with knowledges with this Marvell stuff, or just ask to the dev Kaloz at the mailing list or IRC.

Hi,
I found a forum thread that could be possibly related to the Lacie device. If you are interested you can subscribe. I intend to try my luck there, should I have time
https://forum.openwrt.org/viewtopic.php … 41#p263641
kind regards

Hi, danitool,
Do you have any idea how to find out what revision (I mean r40xxx) has the downloaded git or svn branch? Is this information stored in any file?
Thanks

Hi,
I have another question.
If I want to use the device as a 3G router, what packages do I have to compile and select from make menuconfig?
It seems they are supported in usb_modeswitch; I have 3 gsm modems:
1) 16d5:6502 AnyDATA Corporation CDMA/UMTS/GPRS modem which is also a device called AnyDATA ADU-510L

[ 3858.578868] usb 5-3: new full-speed USB device number 2 using ohci-pci
[ 3858.751811] usb 5-3: New USB device found, idVendor=05c6, idProduct=1000
[ 3858.751824] usb 5-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3858.751831] usb 5-3: Product: USB MMC Storage
[ 3858.751837] usb 5-3: Manufacturer: AnyDATA Corporation
[ 3858.751842] usb 5-3: SerialNumber: 000000000002
[ 3858.753934] usb-storage 5-3:1.0: USB Mass Storage device detected
[ 3858.759916] scsi11 : usb-storage 5-3:1.0
[ 3859.765583] scsi 11:0:0:0: CD-ROM            AnyDATA  CD-ROM           1.00 PQ: 0 ANSI: 2
[ 3859.789541] sr1: scsi3-mmc drive: 0x/0x caddy
[ 3859.789862] sr 11:0:0:0: Attached scsi CD-ROM sr1
[ 3859.790045] sr 11:0:0:0: Attached scsi generic sg4 type 5
[ 3859.882485] systemd-udevd[4589]: Failed to apply ACL on /dev/sr1: No such file or directory
[ 3859.882494] systemd-udevd[4589]: Failed to apply ACL on /dev/sr1: No such file or directory
[ 3859.890388] systemd-udevd[4396]: Failed to apply ACL on /dev/sr1: No such file or directory
[ 3859.890439] systemd-udevd[4396]: Failed to apply ACL on /dev/sr1: No such file or directory
[ 3859.894306] usb 5-3: USB disconnect, device number 2
[ 3861.558063] usb 5-3: new full-speed USB device number 3 using ohci-pci
[ 3861.724999] usb 5-3: New USB device found, idVendor=16d5, idProduct=6502
[ 3861.725013] usb 5-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3861.725020] usb 5-3: Product: AnyDATA CDMA Products
[ 3861.725026] usb 5-3: Manufacturer: AnyDATA Corporation
[ 3861.729123] option 5-3:1.0: GSM modem (1-port) converter detected
[ 3861.729326] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 3861.731109] option 5-3:1.1: GSM modem (1-port) converter detected
[ 3861.731279] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 3861.733104] option 5-3:1.2: GSM modem (1-port) converter detected
[ 3861.733273] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB2
[ 3861.733420] usb-storage 5-3:1.3: USB Mass Storage device detected
[ 3861.733581] scsi12 : usb-storage 5-3:1.3
[ 3862.734730] scsi 12:0:0:0: CD-ROM            AnyDATA  CD-ROM           1.00 PQ: 0 ANSI: 2
[ 3862.743711] sr1: scsi3-mmc drive: 0x/0x caddy
[ 3862.743857] sr 12:0:0:0: Attached scsi CD-ROM sr1
[ 3862.743941] sr 12:0:0:0: Attached scsi generic sg4 type 5
[ 3862.946687] sr1: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
[ 3862.946697] sr: Sense Key : Hardware Error [current] 
[ 3862.946700] sr: Add. Sense: No additional sense information

2) 12d1:1465 Huawei Technologies Co., Ltd. K3765 HSPA also called Huawei K3765

usb 2-3: new high-speed USB device number 7 using ehci-pci
[ 5142.328071] usb 2-3: New USB device found, idVendor=12d1, idProduct=1520
[ 5142.328084] usb 2-3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 5142.328091] usb 2-3: Product: HUAWEI Mobile
[ 5142.328097] usb 2-3: Manufacturer: HUAWEI Technology
[ 5142.329318] usb-storage 2-3:1.0: USB Mass Storage device detected
[ 5142.329437] scsi13 : usb-storage 2-3:1.0
[ 5143.327060] scsi 13:0:0:0: CD-ROM            Vodafone CD ROM (Huawei)  2.31 PQ: 0 ANSI: 2
[ 5143.332206] sr1: scsi-1 drive
[ 5143.332511] sr 13:0:0:0: Attached scsi CD-ROM sr1
[ 5143.332664] sr 13:0:0:0: Attached scsi generic sg4 type 5
[ 5143.374783] usb 2-3: USB disconnect, device number 7
[ 5148.096341] usb 2-3: new high-speed USB device number 8 using ehci-pci
[ 5148.230854] usb 2-3: New USB device found, idVendor=12d1, idProduct=1465
[ 5148.230866] usb 2-3: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 5148.230873] usb 2-3: Product: HUAWEI Mobile
[ 5148.230879] usb 2-3: Manufacturer: HUAWEI Technology
[ 5148.233736] option 2-3:1.0: GSM modem (1-port) converter detected
[ 5148.233969] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 5148.234428] option 2-3:1.3: GSM modem (1-port) converter detected
[ 5148.234608] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 5148.234742] option 2-3:1.4: GSM modem (1-port) converter detected
[ 5148.234912] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB2
[ 5148.235044] usb-storage 2-3:1.5: USB Mass Storage device detected
[ 5148.235242] scsi14 : usb-storage 2-3:1.5
[ 5148.235505] usb-storage 2-3:1.6: USB Mass Storage device detected
[ 5148.235684] scsi15 : usb-storage 2-3:1.6
[ 5148.438574] cdc_ether 2-3:1.1 wwan0: register 'cdc_ether' at usb-0000:00:13.2-3, Mobile Broadband Network Device, 02:50:f3:00:00:00
[ 5148.438699] usbcore: registered new interface driver cdc_ether
[ 5149.233348] scsi 14:0:0:0: CD-ROM            Vodafone CD ROM (Huawei)  2.31 PQ: 0 ANSI: 2
[ 5149.234486] scsi 15:0:0:0: Direct-Access     Vodafone Storage (Huawei) 2.31 PQ: 0 ANSI: 2
[ 5149.236454] sr1: scsi-1 drive
[ 5149.236900] sr 14:0:0:0: Attached scsi CD-ROM sr1
[ 5149.237116] sr 14:0:0:0: Attached scsi generic sg4 type 5
[ 5149.238006] sd 15:0:0:0: Attached scsi generic sg5 type 0
[ 5149.242652] sd 15:0:0:0: [sdd] Attached SCSI removable disk

3) ZTE MF190 (just bought, arrives next week)

So in make menuconfig in kernel modules in usb support there are some packages to select  for kmod-usb-serial and none seem to point to them. Where can I find a list where I could find what package to select to support those devices?
Kind regards

(Last edited by fratzicu on 31 Jan 2015, 22:16)

Did you look at
http://wiki.openwrt.org/doc/recipes/3gdongle

I almost never built this stuff, but might be some packages could be depreciated or you need to install more stuff with the command
./scripts/feeds/install

There is something I noticed:
If I compile with eglibc the flash image is bigger (7.5 mb) than if I compile with uClibc (6.8 mb).

Hi,
I compiled a firmware image using danitool's instructions, version barrier-breaker 14.07.
In Luci the model is detected as "unknown". Any idea how to fix this for HG655b?
Kind regards

AFAIK, that's normal in openwrt. Looks like Luci didn't implement board detection for bcm63xx.

fratzicu, could execute the comand

b

at the CFE serial console, and print here the results, I just want to know the compatible boards with your CFE

Regards.

Hello.....I want to use RDS(name of the ISP) with HG655b but I don't know how to configure openwrt to work as a dsl router, make Lan1 work as Wan port and the the rest 3 ports work normally as Lan ports. Can you help me please?

(Last edited by Thhi on 2 Feb 2015, 09:21)