Hello,
sorry for this long delay on answering you.. I've struggled for long time to let my router work, but I've lost my battle... After googling and with the AI help at end I was able to compile my own routers openwrt firmware.. I was so close to test it.. but my router refuse to get it... I've bougt myself usb ttl cable and I've tried to connect to uart and activating the tftp recovery boot menu.. but the I wasn't able to connect ... I've read sever forums and I've tried to let me help by my friend with a multimeter but it seems some connection are interrupted and we weren't able to understand how to connect.. anyway.. I would like to thank you and all community for the great job you did, and the time you lost to help somebody like me.. I would like to share my experience on compiling and the error I've found.. maybe somebody a day could be find this useful...
I've compiled my own openwrt firmware on a ubuntu server 20.04 virtual machine with 4 giga and 2 cores..
I've the need to install all this sofware to be able to compile the source codes:
sudo apt update && sudo apt upgrade -y
sudo apt install
build-essential
clang
flex
bison
g++
gawk
gcc-multilib
gettext
git
libncurses-dev
libssl-dev
python3
python3-distutils
python3-setuptools
rsync
unzip
zlib1g-dev
file
wget
libelf-dev
libudev-dev
libpci-dev
xsltproc
libxml-parser-perl
cmake
ninja-build
pkgconf
ccache
ecj
fastjar
java-propose-classpath
help2man
perl
patch
diffutils
swig
time
then I've downloaded latest openwrt source and Jamey's patch..
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
wget https://github.com/openwrt/openwrt/pull/20064.patch
git apply 20064.patch
errors could be ignored
./scripts/feeds update -a
./scripts/feeds install -a
then I've started the makemenu script to choose the components that shoul be inserted on the firmware image:
Target System (Realtek MIPS) ---->
Subtarget (Realtek MIPS RTL960X / RTL8198D) --->
LuCI --->
Collections --->
luci
Network --->
<> ppp
<> ppp-mod-pppoe
- now it's time to apply some changes:
edit the file target/linux/realtek/image/Makefile
this:
include $(SUBTARGET).mk
$(eval $(call BuildImage))
become:
include $(SUBTARGET).mk
include ./rtl960x.mk
$(eval $(call BuildImage))
- edit the file target/linux/realtek/image/rtl960x.mk
after the line
$(Device/kernel-lzma)
add:
IMAGE_SIZE := 16384k
4)edit the file target/linux/realtek/dts/rtl9607_bt-pon_bt-g711ax.dts
the buttons gpio pins aren't defined so we need to comment it
/*
keys {
compatible = "gpio-keys";
pinctrl-0 = <&buttons_gpio_pins>;
pinctrl-names = "default";
reset {
label = "reset";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
wlan {
label = "wlan";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
};
*/
FINALLY EXECUTE:
make -j$(nproc)
that's all..
It took one hour to compile all ..
My only regrets is I was so close to install openwrt....
Thank everybody again