[Solved] How i can downgrade SNAPSHOT to 17.01.4 via sysupgrade

HI

i have a Netgear DGN3500 witch OpenWrt SNAPSHOT r6013-112f046
i like to have luci be default, can i do it via sysupgrade ?
thanks

You can just install the LuCI package if you want to stay on the snapshot.

i do it but i missing some dependency if i try to install kmod-usb-net-rndis

Installing kmod-usb-net (4.9.77-1) to root...
Downloading http://downloads.lede-project.org/snapshots/targets/lantiq/xway/packages/kmod-usb-net_4.9.77-1_mips_24kc.ipk
Installing kmod-usb-net-rndis (4.9.77-1) to root...
Downloading http://downloads.lede-project.org/snapshots/targets/lantiq/xway/packages/kmod-usb-net-rndis_4.9.77-1_mips_24kc.ipk
Package kmod-usb-net-cdc-ether (4.9.77-1) installed in root is up to date.
Package usbutils (007-7) installed in root is up to date.
Unknown package 'udev'.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-net:
 *      kernel (= 4.9.77-1-abe5ab0b881f3b180a832aba2d3841af) *  kernel (= 4.9.77-1-abe5ab0b881f3b180a832aba2d3841af) *
 * opkg_install_cmd: Cannot install package kmod-usb-net.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-net-rndis:
 *      kernel (= 4.9.77-1-abe5ab0b881f3b180a832aba2d3841af) *
 * opkg_install_cmd: Cannot install package kmod-usb-net-rndis.
 * opkg_install_cmd: Cannot install package udev.
root@OpenWrt:~# -abe5ab0b881f3b180a832aba2d3841af

any sugestion ?

To flash a sysupgrade from the command line, get the file into /tmp then run sysupgrade filename.

You can use a release build or get a new snapshot, then install all your packages especially kmods immediately. They become obsolete the next day.

The DGN3500 is on stable release, so the OP may be talking about going to that.

That's expected behaviour for snapshots.

https://openwrt.org/faq/after_installation#cannot_satisfy_dependencies
https://openwrt.org/releases/snapshot

snapshots are built daily, and that sets time limits to installing new packages with opkg. Due to kernel version checksums, you can only install “kmod” kernel modules and other kernel version dependent modules from the exactly same snapshot build. So, a few hours after flashing the firmware you may not be able to install new modules with opkg any more (as the next snapshot has been built into the download repo and has different checksums).

You could also use the buildroot (imagebuilder too I think) to compile luci with whatever kernel version you're currently on. In order to make configuring a buildroot simpler, I created a script a while back which automates the entire process.

  • Since you're just looking to compile one package, once "...Compiling Image..." begins, simply CTRL+C to cancel it
    • Modify the kernel version in source/include/kernel-version.mk
    • Once done, issue: make /package/feeds/luci/luci/compile

You can, but you should wipe your settings

# sysupgrade -n $sysupgrade.image

root@OpenWrt:/tmp# sysupgrade -v /tmp/lede-17.01.4-lantiq-xway-DGN3500-squashfs-
sysupgrade-WW.bin
Device netgear,dgn3500 not supported by this image
Supported devices: DGN3500
Image check 'fwtool_check_image' failed.


root@OpenWrt:/tmp# mtd -r write /tmp/lede-17.01.4-lantiq-xway-DGN3500-squashfs-f
actory-WW.img firmware
Unlocking firmware ...

Writing from /tmp/lede-17.01.4-lantiq-xway-DGN3500-squashfs-factory-WW.img to firmware ...  [e]Failed to erase block

I Bricked my routeur i have now only acces via serial port :frowning:

ROM VER: 1.1.3
CFG 05

ROM VER: 1.1.3
CFG 05


U-Boot 1.1.5-2.4 (Oct  4 2010 - 11:54:53)

**checkboard **
Boot from SPI
AR9 BOARD
CLOCK CPU 333M RAM 166M
DRAM:  64 MB
spi_init_f finsihed
         SFLASH_BAUDRATE = 30000000
         CONFIG_SPI_FLASH_SLOW_READ yes

 relocate_code start
 relocate_code finish.
Flash: 16 MB
  bi_flashstart=00000000
  bi_flashsize=01000000
  bi_flashoffset=00000000
spi_init_f finsihed
         SFLASH_BAUDRATE = 30000000
         CONFIG_SPI_FLASH_SLOW_READ yes
In:    serial
Out:   serial
Err:   serial
Net:
*** amazon_s_sw_chip_init

switch chip id=0000ffff
init 8366 rb
 -The DATA=0x0
The DATA=0x1C
The DATA=0xC961
The DATA=0x1140
smi_init = 0
initChip verid = 0x3
rtl8366rb_initChip= 0
The 0x0=0x830    0
The 0x509=0x5937    0
rtl8368s_setAsicMacForceLink = 0
rtl8366rb_setLedMode(2, null)=0
amazon_s Switch
board_init_r:
         PID=YP5723
         ethaddr=e0:46:9a:00:d0:1a
         serialnumber=219416BV0065B
         pin=11812425

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
Copy from Serail Flash to RAM... done
## Starting application at 0x80200000 ...
setenv kernel_addr=0x50000
setenv kernel_addr=0x50000

PID=YP5723

Will check KFS integrality. read KFS first
EEPROM @0x0 read: addr 0x80500000  off 0x50000  count 16384000
..........................................................................................................................................................................................................................................................done
sercomm_trap: done
check_checksum start

image=0, image+1=0, image+2=0

image-2=4D, image-1=6D, image=45

PID_Offset=0x4557B2, checksum_in_file=0xEA50, checksum_calculat=0xEA50, checksum_data_string=EA50
## Application terminated, rc = 0x0
## Booting image at 00050000 ...
*** eeprom_read
*** eeprom_read
Bad Magic Number
AMAZON_S #

i solve my problem via the mini webserver , ca by lunched via the serial port

run - run commands in an environment variable
saveenv - save environment variables to persistent storage
sercommtrap - do sercomm trap utility
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
upgrade - forward/backward copy memory to pre-defined flash location
version - print monitor version
web - do sercomm web emergency revoery

end the downgrade its done :smiley: