Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:zyxel:p-2812hnu-f1 [2022/10/04 13:08] – [Replacement of factory U-Boot] use 0x81000000 as default and cut old info linus | toh:zyxel:p-2812hnu-f1 [2022/10/04 13:35] – [Installing OpenWrt] minor fixes linus | ||
|---|---|---|---|
| Line 241: | Line 241: | ||
| Writing to NAND... OK | Writing to NAND... OK | ||
| </ | </ | ||
| - | |||
| - | (DGDodo, I've seen good working v21.02.0 with only the setenv-commands used + saveenv, no mtd settings adjusted!) (Mafketel these mtd settings are mostly cosmetic the mtd sizes are hardcoded while compiling the kernel, MAKE SURE you change the nboot line otherwise you need the ttl cable to boot and fix it) | ||
| Continue further below | Continue further below | ||
| Line 313: | Line 311: | ||
| </ | </ | ||
| + | **Step 5**: Obtain and flash flash this image **first**: | ||
| - | **Step 5**: set root passwd. | + | |
| - | passwd | + | If you use a newer image there will be erase block errors when writing |
| - | **Step 6**: Log into the modem on the web interface and go to System flash firmware and flash up to and including 18 release, if you want to install snapshots or 19 and above you need to increase | + | |
| - | (OpenWrt v21.02.0: **BEFORE** flashing to v21.02.0, really make sure you have set u-boot environment to 3MB kernel, otherwise your device get bricked | + | Log into the modem on the web interface |
| - | This assumes that your are able to enter the webinterface, | + | This assumes that your are able to enter the webinterface, |
| - | If not use Linux scp or [[https:// | + | |
| - | sysupgrade -n /tmp/openwrt-18.06.2-lantiq-xrx200-zyxel_p-2812hnu-f1-squashfs-sysupgrade.bin | + | cd /tmp |
| + | scp user@192.168.1.N: | ||
| + | | ||
| - | **Step | + | Since the Dropbear SSH version in the initramfs is quite old, this can lead to problems because new SSH servers will not accept the algorithms it supports. |
| + | |||
| + | Alternatively (if you have a web server on your 192.168.1.N machine): | ||
| + | |||
| + | cd /tmp | ||
| + | wget http:// | ||
| + | | ||
| + | |||
| + | You probably need a local web server that can use plain HTTP on port 80 because the initramfs image cannot handle SSL. | ||
| + | |||
| + | **Step | ||
| < | < | ||
| Line 425: | Line 434: | ||
| -------------------------------------------------- | -------------------------------------------------- | ||
| </ | </ | ||
| - | (DGDodo: Although this last log is still running 2MB kernel image, not **3MB**! 'NAND read: device 0 offset 0x60000, size 0x200000' | + | |
| + | **Step 7**: upgrade to the latest working release of OpenWrt | ||
| + | |||
| + | The last known working version of OpenWrt for this router | ||
| + | |||
| + | | ||
| + | |||
| + | The 22.03.0 version will brick the router and you have to reinstall from initramfs. (Back to **step 3**...) | ||
| ==== WIFI on openwrt ==== | ==== WIFI on openwrt ==== | ||
| For as long as the standard installation deletes the whole NAND, the information the wifi drivers need to start the chip are lost. | For as long as the standard installation deletes the whole NAND, the information the wifi drivers need to start the chip are lost. | ||