mattmattandmatt / sky-sr102-router

Firmware for the UK black Sky router SR102 - BCM63168
40 stars 13 forks source link

Problem connecting to the internet outside UK with SKY SR102 router with VPI, VCI, 0&33 #14

Closed mahdimazloome closed 1 year ago

mahdimazloome commented 1 year ago

Hello, don't be tired, I hope you are well Thanks for all your hard work, especially for the custom firmware for this router. I wanted to ask you to help me to solve the problem of connecting to the Internet in the PPPoE protocol When I connect VPI 0, VCI 33, after a while it quickly changes to 0, 38. It changes the connection from PPPoE to PPPoA. Please give me a solution or remove this restriction if possible. Normal modems can be connected to it without any problems, and the connection can be maintained by turning off and on other desired ones. Please fix this problem by building a new firmware and removing this restriction. Please, I purchased this router in hopes of working with your custom firmware Thank you Sincerely, Mehdi

I have a suggestion, please add settings to control the LED lights. Because the LED light, Sky+HD, my modem is off and unfortunately there is no Sky operator in my country so I can turn it on.

mattmattandmatt commented 1 year ago

Hello, it's been a long time since I have used this router, and I can not compile and test anything any-more.

Looking at the code, I have hard coded those UK values here: https://github.com/mattmattandmatt/sky-sr102-router/blob/master/userspace/public/apps/dhcpbridge/dhcpbridge.c#L451 Perhaps... if you rename the dhcpbridge program (then kill the process or reboot), this will not change the values back to 0/38. But I can not remember the side-effects?

LED: https://github.com/mattmattandmatt/sky-sr102-router/blob/master/targets/fs.src/etc/init.d/rcS#L16 I used setmem 0xb00000d0 40000 4 directly to turn it on/off. I'm guessing the value (0x40000) follows the same led pattern as here: https://openwrt.org/toh/sky/sr102#leds

mahdimazloome commented 1 year ago

Actually, I am using version 3765. It has better stability and dsl is very rarely interrupted. But version 3766 bothers me a lot. Is the dhcpbridge file in version 3765 the same as version 3766?

Unfortunately, I am a Windows user and I have never worked with Linux and I have never compiled a file. But if I had Linux, I would like to learn it and solve my problem completely with the firmware of this modem.

Can I replace this via busybox by uploading the edited file to minihttp? What comment should I type to replace it in busybox?

The code of this section is related to the topic, should I delete this section?


// Add ATM
/*
    Add a ATM interface via the command line
    xtmctl operate conn --add 1.0.38 aal5 vcmux_pppoa 0 1 1
    xtmctl operate conn --createnetdev 1.0.38 atm2
    ifconfig atm2 up
*/
get_session_key ("/dslatm.cmd");
get_web_page ("/dslatm.cmd?action=add&atmVpi=0&atmVci=38&portId=0&linkType=EoA&connMode=1&"
                "encapMode=0&atmServiceCategory=UBR&atmPeakCellRate=0&atmSustainedCellRate=0&"
                "atmMaxBurstSize=0&atmMinCellRate=-1&enblQos=1&grpPrec=8&grpAlg=WRR&grpWght=1&prec=8&"
                "alg=WRR&wght=1");

// Add WAN/Bridge
/*
    Can not reliably add a PPPoA interface via the command line.
    So using the Http instead.
    Tried variations on: pppd -c ppp2 -a atm2.0.0.38 -u username@isp -p PASSWORD -f 0
*/
get_session_key ("/wancfg.cmd");
get_web_page ("/wanifc.cmd?serviceId=0");
get_web_page ("/wansrvc.cmd?wanL2IfName=atm0/(0_0_38)");
get_web_page ("/ntwksum2.cgi?enblEnetWan=0&ntwkPrtcl=3&enVlanMux=1&vlanMuxId=-1&vlanMuxPr=-1&serviceName=br_0_0_38");
get_web_page ("/wancfg.cmd?action=add");

sleep (2);
logout_session();

The code of this section is related to the topic, should I delete this section?

mattmattandmatt commented 1 year ago

oh sorry. that bit of code was compiled in the program dhcpbridge. So try to remove the entire program first: Use telnet and login to the router. mv /bin/dhcpbridge /bin/dhcpbridge-ren sync

after a reboot, it wont load it (I hope). then you can try to make changes via http://192.168.0.1/main.html which I assume you have already used.

Is the dhcpbridge file in version 3765 the same as version 3766 --- Yes

mahdimazloome commented 1 year ago

Unfortunately, this file ( dhcpbridge ) does not exist in version 3765 Unfortunately, it gives an error ~# mv /bin/dhcpbridge /bin/dhcpbridge-ren mv : can,t rename '/bin/dhcpbridge' : No such file or directory So which file should I rename in version 3765?

mattmattandmatt commented 1 year ago

oops sorry. There was not bridge mode option in that version, so the file does not exist. (I just downloaded the image binary)

I remember that the SKY software binaries kept changing things to the SKY UK settings. It is one of reasons I made that file. From my memory there was 1 big process which controls/changes most of the configuration. And if you kill that process it will stop that change, but it will also cause other problems.

I do not know what to suggest - without remaking the dhcpbridge program differently? or using other programs from the internet?

mahdimazloome commented 1 year ago

What is that big process? Do you have a code to stop it and even to not lose its effect after a reboot? Or do you have a code to remove it completely via busybox? Because this problem starts after rebooting or disconnecting the dsl connection and it is troublesome for me I reset dsl several times a day? Is there really no way to get rid of this problem?

Is this code that you gave to turn on the SKY+HD LED disabled after turning it off and on? Is there no way to turn it into a light to show dsl performance. (The light that blinks when the user is using it and is steady in idle mode and shows the movement of Internet packets) Or at least after every turning off and turning on the router, turn on at the same time as Wi-Fi. Because its light gives double beauty to this modem at night :)

mattmattandmatt commented 1 year ago

I don't know which big process it is. But I remember using ps to see them, and probably the kill command after that. This problem will happen after every reboot. This software is not OpenWRT, it has limited options. You will need to add separate scripts or programs for everything.

You can add any boot-up scripts to /var/auxfs/init2.sh

.

I found an old text file with some notes in it. I can't remember any more than this:

mahdimazloome commented 1 year ago

How can I add a script to " /var/auxfs/init2.sh "? Because when I go to var/auxfs/ folder via busybox. It shows me only one file "udhcpd.leases".

mattmattandmatt commented 1 year ago

Linux runs all the files in this folder /etc/init.d/ when it boots up... and in /etc/init.d/runinit2.sh, it looks for the file /var/auxfs/init2.sh (in version 3765) and will run it.

On this router the folder /var/auxfs/ is a separate part of the flash which it remembers during reboots. If you use the command mount, you can see where it is mounted.

The text editor on this router is vi. And its very bad ;( https://www.cs.colostate.edu/helpdocs/vi.html

Example: vi /var/auxfs/init2.sh when in the editor press i copy the following:

#! /bin/sh

setmem 0xb00000d0 40000 4            # I can't remember if you use 40000 or 0x40000

press ESC and type :wq and it will write and quit the editor.

Because this is a brand new file, you need to mark it as executable. chmod +x /var/auxfs/init2.sh

When you reboot, it will run the setmem command and it will change a LED status. BUT another program might change it again?

I'm doing some of this this from memory, so I don't know if it will work?

mahdimazloome commented 1 year ago

Unfortunately, it gives an error "runinit2.sh" File is read only.

mahdimazloome commented 1 year ago

By the way, please add this image to the Sky SR102 debrick folder. I myself was very annoyed because of the lack of this guide image. Of course, I drew this picture myself after a lot of testing and drawing conclusions. Thanks Guide image link: https://forum.openwrt.org/uploads/default/optimized/3X/b/a/ba34ed591405fb9d55eb5477e675c56e81d69577_2_690x477.png Link to my relevant post: https://forum.openwrt.org/t/debricked-sky-sr102/161126/67

:) Of course, the main trouble is definitely your work. But please, to help more friends who have this problem, please add this image to your github

mattmattandmatt commented 1 year ago

"runinit2.sh" File is read only - Yes Nearly all the file system (in version 3765) is read-only. You need to adjust /var/auxfs/init2.sh instead. In version 3766 I made the root file system read/write.

I prefer not to add anything more to this github repository, because people might think this is active again. The information is in the _debrick-ejtag-bcm963168 directory anyway.

I do have a question:   As you sort-of said you can not compile this firmware. What is you main goal? are you doing this for fun?

mahdimazloome commented 1 year ago

What is you main goal? are you doing this for fun? Yes :) But And I am very interested in this modem router. I have more than 3 modem brands I have D-Link 2740u, BT HomeHub 5A, Zyxel which support VDSL2. But the Sky modem with Broadcom chipset and DDR3 RAM provides better results and output. Because my phone line is very noisy. Something like 48db of noise which makes it difficult for me to connect to the internet even with the most expensive modems possible. But this modem is the best and managed to keep the noise at 44. This is the only reason I tried to repair this modem.

It's a pity that the settings get messed up from time to time :( And family members are complaining about me because I have to reset the internet.

mahdimazloome commented 1 year ago

Unfortunately, the file var/auxfs/init2.sh It is missing in busybox.

~ # mount var/auxfs/init2.sh
mount: can't find var/auxfs/init2.sh in /etc/fstab
/var/auxfs # ls
udhcpd.leases
mahdimazloome commented 1 year ago

Excuse me, can you introduce me several videos for installing Linux. And also training to compile this firmware. I have a passion for compiling my favorite operating system. Although it is difficult for me to learn instructions and directions in another country's language. If possible, please help me to compile my own firmware.

mattmattandmatt commented 1 year ago

oh, the example was vi /var/auxfs/init2.sh not mount /var/auxfs/init2.sh anyway, ignore that..

.

If you want to install Linux: First, I recommend downloading Virtual-Box: https://www.virtualbox.org/wiki/Downloads and, Ubuntu 22.04: https://ubuntu.com/download/desktop

This guide might help: https://ubuntu.com/tutorials/how-to-run-ubuntu-desktop-on-a-virtual-machine-using-virtualbox#1-overview

Then to learn about compiling. You can try to compile OpenWrt. Because they have a lots of information. https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

mattmattandmatt commented 1 year ago

If you want to compile this github SR102 firmware. You will need to download a very old copy of Ubuntu 14 . (32bit not 64bit): https://releases.ubuntu.com/14.04/ubuntu-14.04.6-desktop-i386.iso

This repository has some bad links now. So they will need to be fixed, when you find them.

mahdimazloome commented 1 year ago

Hello, thank you for your help and guidance. I have now installed Ubuntu 14 in the emulator. But unfortunately, Openwrt instructions seem very complicated. And in practice I don't know where to enter the codes. Please, if possible, guide me on what I should do first to build the Sky SR102 firmware. I prefer that you guide me as a teacher at first. Thanks

mattmattandmatt commented 1 year ago

https://drive.google.com/file/d/1uirwFDBBkiCoZz5gP7NYsq9s-WxtGqqG/view?usp=sharing

mahdimazloome commented 1 year ago

Unfortunately, it gives this error! : After I try compile

make -C nanoxml make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/pwrctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libpwrctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/pwrctl' make -C fcctl make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/nanoxml' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libnanoxml.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/nanoxml' Skipping epon sdk make -C iqctl make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/fcctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libfcctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/fcctl' skipping eponctl (not configured) echo Doing Make Doing Make make -C snoopctl make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/iqctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libiqctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/iqctl' make -C gmacctl make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/snoopctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libsnoopctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/snoopctl' make -C fapctl make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/gmacctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/fapctl' mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libfapctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private install -m 755 libgmacctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private make[3]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/fapctl' make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/gmacctl' if [ ! -e mdk212/RELEASE ]; then \ echo untaring original mdk; \ (tar xkfj mdk212/mdk212.tar.bz2 2> /dev/null || true); \ fi skipping bcmssl (not configured) untaring original mdk make -j 1 -C mdk212 make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/mdk212' make[3]: warning: -jN forced in submake: disabling jobserver mode. cp ./examples/linux-user/phy/libphyutil_VDSL.so ./examples/linux-user/phy/libphyutil.so cp ./examples/linux-user/phy/libphypkgsrc_VDSL.so ./examples/linux-user/phy/libphypkgsrc.so cp ./examples/linux-user/phy/libphysym_VDSL.so ./examples/linux-user/phy/libphysym.so cp ./examples/linux-user/phy/libphygeneric_VDSL.so ./examples/linux-user/phy/libphygeneric.so cp ./examples/linux-user/cdk/libcdksym_VDSL.so ./examples/linux-user/cdk/libcdksym.so cp ./examples/linux-user/cdk/libcdkshared_VDSL.so ./examples/linux-user/cdk/libcdkshared.so cp ./examples/linux-user/cdk/libcdkshell_VDSL.so ./examples/linux-user/cdk/libcdkshell.so cp ./examples/linux-user/cdk/libcdklibc_VDSL.so ./examples/linux-user/cdk/libcdklibc.so cp ./examples/linux-user/cdk/libcdkpkgsrc_VDSL.so ./examples/linux-user/cdk/libcdkpkgsrc.so cp ./examples/linux-user/cdk/libcdkmain_VDSL.so ./examples/linux-user/cdk/libcdkmain.so cp ./examples/linux-user/cdk/libcdkdsym_VDSL.so ./examples/linux-user/cdk/libcdkdsym.so cp ./examples/linux-user/bmd/libbmdshared_VDSL.so ./examples/linux-user/bmd/libbmdshared.so cp ./examples/linux-user/bmd/libbmdshell_VDSL.so ./examples/linux-user/bmd/libbmdshell.so cp ./examples/linux-user/bmd/libbmdpkgsrc_VDSL.so ./examples/linux-user/bmd/libbmdpkgsrc.so cp ./examples/linux-user/bmd/libbmdapi_VDSL.so ./examples/linux-user/bmd/libbmdapi.so install -m 755 ./examples/linux-user/phy/libphyutil.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libphyutil.so install -m 755 ./examples/linux-user/phy/libphypkgsrc.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libphypkgsrc.so install -m 755 ./examples/linux-user/phy/libphysym.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libphysym.so install -m 755 ./examples/linux-user/phy/libphygeneric.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libphygeneric.so install -m 755 ./examples/linux-user/cdk/libcdksym.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdksym.so install -m 755 ./examples/linux-user/cdk/libcdkshared.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdkshared.so install -m 755 ./examples/linux-user/cdk/libcdkshell.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdkshell.so install -m 755 ./examples/linux-user/cdk/libcdklibc.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdklibc.so install -m 755 ./examples/linux-user/cdk/libcdkpkgsrc.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdkpkgsrc.so install -m 755 ./examples/linux-user/cdk/libcdkmain.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdkmain.so install -m 755 ./examples/linux-user/cdk/libcdkdsym.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libcdkdsym.so install -m 755 ./examples/linux-user/bmd/libbmdshared.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libbmdshared.so install -m 755 ./examples/linux-user/bmd/libbmdshell.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libbmdshell.so install -m 755 ./examples/linux-user/bmd/libbmdpkgsrc.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libbmdpkgsrc.so install -m 755 ./examples/linux-user/bmd/libbmdapi.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-strip /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/private/libbmdapi.so make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs/mdk212' make[2]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/private/libs' make -j 2 -C public/libs make[2]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs' make -C cms_boardctl make -C cms_msg make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_msg' make[3]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_boardctl' make -C linux make -C linux make[4]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_boardctl/linux' make[4]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_msg/linux' make[4]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_boardctl/linux' make[4]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_msg/linux' /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-gcc -shared -Wl,--whole-archive,-soname,libcms_boardctl.so -o libcms_boardctl.so linux/oal.a -Wl,--no-whole-archive /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-gcc -shared -Wl,--whole-archive,-soname,libcms_msg.so -o libcms_msg.so msg.o linux/oal.a -Wl,--no-whole-archive mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public install -m 755 libcms_boardctl.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public install -m 755 libcms_msg.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public make[3]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_boardctl' make -C cms_util make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_msg' (tar xkfj openssl.tar.bz2 2> /dev/null || true) make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_util' make -C linux make[4]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_util/linux' make[4]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_util/linux' for dir in ; do \ make -C $dir; \ done /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-gcc -shared -Wl,--whole-archive,-soname,libcms_util.so -o libcms_util.so \ bigd.o bigdigits.o sha256.o eid.o logging.o memory.o bget.o psp.o timestamp.o timer.o strconv.o prctl.o assert.o image.o network.o file.o base64decode.o base64encode.o lzw_encode.o lzw_decode.o crc.o hexbinary.o xml.o led.o passwd.o ftrace.o linklist.o random.o unicode.o sky_public_utils.o sky_routermodel_util.o linux/oal.a \ -Wl,-lcrypt -Wl,--no-whole-archive mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public install -m 755 libcms_util.so /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/cms_util' ln -sf libpcap libpcap-1.1.1 (tar xkz -f libpcap.tar.gz 2> /dev/null || true) rm -f libpcap-1.1.1 make -C libpcap libpcap.a make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/libpcap' /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-gcc -O2 -fpic -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap.c ./runlex.sh flex -Ppcap_ -oscanner.c scanner.l ./runlex.sh: 83: ./runlex.sh: flex: not found ./runlex.sh: 118: ./runlex.sh: flex: not found make[3]: *** [scanner.c] Error 127 make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/libpcap' make[2]: [libpcap] Error 2 make[2]: Waiting for unfinished jobs.... make -j 1 -C openssl all make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[3]: warning: -jN forced in submake: disabling jobserver mode. making all in crypto... make[4]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto' making all in crypto/objects... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/objects' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/objects' making all in crypto/md5... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/md5' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/md5' making all in crypto/sha... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/sha' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/sha' making all in crypto/hmac... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/hmac' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/hmac' making all in crypto/des... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/des' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/des' making all in crypto/dh... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/dh' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/dh' making all in crypto/bn... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/bn' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/bn' making all in crypto/rsa... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rsa' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rsa' making all in crypto/dso... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/dso' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/dso' making all in crypto/buffer... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/buffer' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/buffer' making all in crypto/stack... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/stack' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/stack' making all in crypto/rand... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rand' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rand' making all in crypto/err... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/err' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/err' making all in crypto/evp... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/evp' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/evp' making all in crypto/asn1... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/asn1' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/asn1' making all in crypto/pem... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pem' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pem' making all in crypto/x509... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/x509' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/x509' making all in crypto/lhash... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/lhash' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/lhash' making all in crypto/bio... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/bio' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/bio' making all in crypto/txt_db... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/txt_db' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/txt_db' making all in crypto/x509v3... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/x509v3' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/x509v3' making all in crypto/conf... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/conf' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/conf' making all in crypto/pkcs7... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pkcs7' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pkcs7' making all in crypto/pkcs12... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pkcs12' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/pkcs12' making all in crypto/comp... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/comp' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/comp' making all in crypto/ui... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/ui' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/ui' making all in crypto/rc4... make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rc4' make[5]: Nothing to be done forall'. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/rc4' making all in crypto/aes... make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/aes' make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto/aes' make[5]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[5]:libcrypto.so.0.9.7' is up to date. make[5]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[4]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/crypto' making all in fips... make[4]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/fips' make[4]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/fips' making all in ssl... make[4]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/ssl' if [ -n "libcrypto.so.0.9.7 libssl.so.0.9.7" ]; then \ (cd ..; make libssl.so.0.9.7); \ fi make[5]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[5]: libssl.so.0.9.7' is up to date. make[5]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[4]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/ssl' make[4]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[4]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' making all in apps... make[4]: Entering directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/apps' make[4]: Nothing to be done for all'. make[4]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/apps' making all in tools... make[4]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/tools' make[4]: Nothing to be done forall'. make[4]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl/tools' make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make -j 1 -C openssl install make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[3]: warning: -jN forced in submake: disabling jobserver mode. mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/bin install -m 755 apps/openssl /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/bin mkdir -p /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public install -m 755 libssl.so.0.9.7 /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public (cd /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public; rm -f libssl.so; ln -s libssl.so.0.9.7 libssl.so) install -m 755 libcrypto.so.0.9.7 /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public (cd /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/fs.install/lib/public; rm -f libcrypto.so; ln -s libcrypto.so.0.9.7 libcrypto.so) make[3]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/openssl' make[2]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs' make[1]: *** [public-libs] Error 2 make[1]: Leaving directory/home/mahdi/sr102/sky-sr102-router-master/userspace' make: *** [userspace] Error 2 mahdi@ubuntu:~/sr102/sky-sr102-router-master$

mattmattandmatt commented 1 year ago

make[3]: Entering directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/libpcap' /opt/toolchains/uclibc-crosstools-gcc-4.4.2-1/usr/bin/mips-linux-uclibc-gcc -O2 -fpic -I. -DHAVE_CONFIG_H -DU="attribute((unused))" -c ./pcap.c ./runlex.sh flex -Ppcap_ -oscanner.c scanner.l ./runlex.sh: 83: ./runlex.sh: flex: not found ./runlex.sh: 118: ./runlex.sh: flex: not found make[3]: [scanner.c] Error 127 make[3]: Leaving directory /home/mahdi/sr102/sky-sr102-router-master/userspace/public/libs/libpcap' make[2]: [libpcap] Error 2

In a Terminal type: sudo apt-get install flex bison

and try the last 'make' command again

mahdimazloome commented 1 year ago

Thank you very much, the compilation problem has been fixed :)

Open Source Broadcom Image Builder version 0.31 Copyright (c) 2011 asbokid ballymunboy@gmail.com Tag Version : 6 Signature1 : Broadcom Corporatio Signature2 : ver. 2.0 Chip ID : 63268 Board ID : BSKYB_63168 Big Endian : true Image size : 0096a0a0, 9871520 CFE Address : 00000000, 0 CFE Length : 00000000, 0 Flash Root Address: bfc40100, 3217293568 Flash Root Length: 00855000, 8736768 Flash Kernel Address: c0495100, 3226030336 Flash Kernel Length: 001150a0, 1134752 Vendor information: 4128VDSL2071627 Compile info: Image CRC: 70920ce4 Header CRC: c03ec491 Kernel CRC: 456ef861 Rootfs CRC: 4c186547 Image file of 96a1a0 bytes successfully created as broadcom-image.bin

6577760+0 records in 12847+1 records out 6577760 bytes (6.6 MB) copied, 1.99843 s, 3.3 MB/s addvtoken: Output file size = 16449696 with image crc = 0xd0baa0b4

Done! Image VDSL has been built: /home/mahdi/sr102/sky-sr102-router-master/targets/VDSL/SR102-whole-image-3766 mahdi@ubuntu:~/sr102/sky-sr102-router-master$

mahdimazloome commented 1 year ago

Excuse me, but in order to edit parts of the firmware, which folder files should I edit now?

For example, do I want to edit vpi and vci? Can I edit the web interface? Because I want to add two more options in the tx power section as a test

mattmattandmatt commented 1 year ago

Well. from here is the hard part. You need to understand how the SKY (Broadcom) programs creates/changes the connection. You will need to reverse engineer the binary programs. And see where the changes are made.

Unfortunately I can not help you from here. You need to learn a Disassembler like IDA or Radare2. And I can not test any changes.

In the folders: "sky-sr102-router-master/targets/fs.src" or "sky-sr102-router-master/targets/VDSL/fs.install" - that is where the root directory is.

.

It might be a good idea to learn more about OpenWrt, and then come back to this firmware afterwards.