negan07 / ancistrus

Netgear's D7000 Nighthawk Router Experience Distributed Project
https://negan07.github.io/ancistrus/
GNU General Public License v2.0
66 stars 17 forks source link

Updating packages from monolithic #272 #28

Closed MrZeD81 closed 6 years ago

MrZeD81 commented 6 years ago

Hi and first of all thanks for you support on this great modem router. I switched from last netgear firmware to your #272 monolithic upgrade. When i performed 'opkg upgrade', after 'opkg upgrade', i got this output: admin@D7000:$ opkg update Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/Packages.gz. Updated source 'ancistrus-arm-D7000'. admin@D7000:$ opkg upgrade Upgrading opkg from 0.3.4 to 0.3.6-010 on root. Upgrading opkg (0.3.6) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/opkg_0.3.6-010_armD7000.ipk. To remove package debris, try opkg remove opkg. To re-attempt the install, try opkg install opkg. Upgrading openssh from 7.6p1 to 7.6p1-010 on root. Upgrading openssh (7.6p1) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/openssh_7.6p1-010_armD7000.ipk. Upgrading openvpn from 2.4.4 to 2.4.5 on root. Upgrading openvpn (2.4.5) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/openvpn_2.4.5_armD7000.ipk. Upgrading iproute2 from 4.10.0 to 4.16.0 on root. Upgrading iproute2 (4.16.0) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/iproute2_4.16.0_armD7000.ipk. Upgrading qos-sqm from 1.2.0-13.025 to 1.2.0-13.027 on root. Upgrading qos-sqm (1.2.0) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/qos-sqm_1.2.0-13.027_armD7000.ipk. Upgrading ancistrus-core from 0.9.4 to 1.0.4 on root. Upgrading ancistrus-core (1.0.4) on root. Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/ancistrus-core_1.0.4_armD7000.ipk. Configuring zlib. Configuring ancistrus-core. Copying conf files & init.d runlevel dirtree on ram... Linking rc services to core on ram... Testing rc_apps functionality... looking good Linking rc services to core on flash... Configuring openssh. Configuring utelnetd. Configuring openvpn. Configuring iproute2. Configuring hdparm. Configuring smartmontools. Configuring qos-sqm. Type '/usr/sbin/rc_app/rc_qos help' to see the options & settings Configuring network-test. Collected errors:

negan07 commented 6 years ago

same as: https://github.com/negan07/ancistrus/issues/27

package has been mostly updated after #272 monolithic in particular lock removal has been cleared while old packages don't

In general, when troubling with opkg, do this step:

Remove all installation references with:

rm -rf /usr/lib/opkg/* /tmp/opkg/
sync

Now no packages result installed but no package files have been removed. Proceed reinstalling:

opkg update
opkg install zlib opkg ancistrus-core utelnetd openssh iproute2 qos-sqm network-test smartmontools hdparm openvpn mini-snmpd
BoostOver commented 6 years ago

At the end with all command "install or upgrade" i get this error: Collected errors:

negan07 commented 6 years ago

do the suggested above: deleted all the /usr/lib/opkg/ content ?

BoostOver commented 6 years ago

Yes. Now there is this error: Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/openvpn_2.4.5_armD7000.ipk.killall: openvpn: no process killed Mon Apr 30 07:50:27 2018 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Apr 30 07:50:27 2018 Exiting due to fatal error rmmod: can't unload 'tun': unknown symbol in module, or unknown parameter

And when try: admin@D7000:$ opkg update Downloading https://raw.githubusercontent.com/negan07/ancistrus/gh-pages/ancistrus-arm-D7000/Packages.gz. Updated source 'ancistrus-arm-D7000'. admin@D7000:$ opkg upgrade Collected errors:

I'm on your last build 272

Thanks

MrZeD81 commented 6 years ago

I got the same errors as BoostOver. And i got this on "ancistrus" section on router page: "Collected errors: pkg_get_installed_files: Failed to open ///usr/lib/opkg/info/zlib.list: No such file or directory. pkg_get_installed_files: Failed to open ///usr/lib/opkg/info/zlib.list: No such file or directory. "

negan07 commented 6 years ago

if /usr/lib/opkg/* files and /tmp/opkg/ dir all removed (status file too) no installation references remain

rerun the startup.sh

rm /usr/sbin/opkg /usr/lib/opkg/*
rm -rf /tmp/opkg
cd /etc
curl -k -O https://raw.githubusercontent.com/negan07/ancistrus/master/scripts/startup.sh
chmod 755 startup.sh
./startup.sh
BoostOver commented 6 years ago

Thanks, now is fine.

MrZeD81 commented 6 years ago

I made all negan07 said, and screens are fixed, but unfortunally, after a physical reboot, my d7000 is stuck with power red led on, and doesnt boot ;( How can I fix this problem ?

negan07 commented 6 years ago

added opkg troubleshooting solutions to wiki https://github.com/negan07/ancistrus/wiki/opkg-package#erase-all-package-reference-infos--status

I made all negan07 said, and screens are fixed, but unfortunally, after a physical reboot, my d7000 is stuck with power red led on, and doesnt boot ;( How can I fix this problem ?

maybe deleted wrong files

if problem persists recovery with tftp https://community.netgear.com/t5/DSL-Modems-Routers/D7000-R7000-bricked-after-SW-reboot/m-p/1138950#M12699

MrZeD81 commented 6 years ago

No one of recovery system works, even the 30-30-30. No luck at all.

negan07 commented 6 years ago

so not bricked but locked

nftp.zip

this tool is generic for netgear

power down keep tiny reset rear button pressed with a stick keep pressed and power on maintain pressed until top left leds blinks release button run the tool (unix machine or maybe w10 unix powershell if any) answer yes to all conditions when rebooted follow the tftp procedure above again: https://github.com/negan07/ancistrus/issues/28#issuecomment-385806687

MrZeD81 commented 6 years ago

No luck again: after nftp command on unix, old firmware was successiful uploaded, but power led still stuck on blinking white led. All firmwares tryed, but 192.168.1.1 was un-pingable, and tft2 cant reach host.

negan07 commented 6 years ago

good amber led means kernel loaded and bootloader with tftp already skipped white blinking led means router stopped at bootloader stage: now tftp has to work tftp server is at 192.168.1.1 no canonic ping is visible setup local machine netcard to

ip: 192.168.1.10
sub: 255.255.255.0
gw 192.168.1.1

upload the monolithic #211 not #272 as it's too big for tftp then: tftp -i 192.168.1.1 put D7000-V1.0.1.54_1.0.1-ancistrus_negan07-build-211.img you will upgrade firmware later from webgui

MrZeD81 commented 6 years ago

Seems all works fine now! Tnx for your support and I hope to see soon new monolithic release. Have a nice day. P.S.: if you need a little Paypal donation, let me know :)

negan07 commented 6 years ago

Seems all works fine now!

will add a wiki failsafe recovery page about

I hope to see soon new monolithic release.

monolithic 's just a snapshot: actually no differences from: original firmware+package installations

P.S.: if you need a little Paypal donation, let me know :)

http://www.eurogroupforanimals.org/donate and let me know