Hi patrog
This problem that you met has troubled me for a long time, so I share more detail info with you.
1st, backup mac addresses is more important,if you have backup it please ignore.
use 'dd if=/dev/mtd2 of=/tmp/bootldr-env.bin' to backup
use 'hexdump -C /tmp/bootldr-env.bin', you can find all mac addresses that need backup.
2nd, you need get compatible version kwboot. first time I get a version run ARM CPU, cannot run on my CentOS 8. you can refer below link to compile it yourself, or leave your email address, I will send to you.
https://forum.openwrt.org/t/about-check-point-l-50-device-support/67744/12?u=magicmouses
want run kwboot need use 'chmod +x kwboot' add execute privileges.
[root@localhost tmp]# chmod +x kwboot
3rd, do not run minicom, power off the router.
power on the router after run below command, you will see like below.
[root@localhost tmp]# ./kwboot -B 115200 /dev/ttyUSB0 -b u-boot.kwb -p -t
Sending boot message. Please reboot the target.../
Sending boot image...
0 % [......................................................................]
1 % [......................................................................]
2 % [......................................................................]
4 % [......................................................................]
......
Hit any key to stop autoboot: 0
ubi0: attaching mtd3
ubi0: scanning is finished
ubi0 error: ubi_read_volume_table: the layout volume was not found
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
UBI error: cannot attach mtd3
UBI error: cannot initialize UBI, error -22
UBI init error 22
Please check, if the correct MTD partition is used (size big enough?)
Error, no UBI device selected!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
4th, input below for set mac address, replace XX to your backup mac address.
=> setenv ethaddr XX:XX:XX:XX:XX:XX
=> setenv eth1addr XX:XX:XX:XX:XX:XX
=> setenv lan1_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan2_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan3_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan4_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan5_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan6_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan7_mac_addr XX:XX:XX:XX:XX:XX
=> setenv lan8_mac_addr XX:XX:XX:XX:XX:XX
=> setenv dmz_mac_addr XX:XX:XX:XX:XX:XX
=> setenv dls_mac_addr XX:XX:XX:XX:XX:XX
5th, below is update u-boot and uImage, I use USB save the u-boot and uImage files.
=> mw 0x0800000 0xffff 0x100000
=> nand erase 0x0 100000
NAND erase: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 -- 100% complete.
OK
=> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=> fatload usb 0 0x0800000 u-boot.kwb
643072 bytes read in 71 ms (8.6 MiB/s)
=> nand write 0x0800000 0x0 0x100000
NAND write: device 0 offset 0x0, size 0x100000
1048576 bytes written: OK
=> saveenv
Saving Environment to NAND... Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK
OK
=> fatload usb 0 0x0800000 uImage
6271326 bytes read in 610 ms (9.8 MiB/s)
=> bootm 0x800000
## Booting kernel from Legacy Image at 00800000 ...
Image Name: ARM OpenWrt Linux-4.14.180
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6271262 Bytes = 6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
mdio_register: non unique device name 'ethernet-controller@72000'
Loading Kernel Image
Starting kernel ...
......
[ 25.943424] mv88e6085 f1072004.mdio-bus-mii:10 lan7: Link is Down
[ 25.964388] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 28.157914] mv88e6085 f1072004.mdio-bus-mii:11 lan8: Link is Up - 1Gbps/Full - flow control off
[ 28.173224] br-lan: port 8(lan8) entered blocking state
[ 28.178487] br-lan: port 8(lan8) entered forwarding state
[ 28.205542] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
press Enter key
change the root password and run sysupgrade
BusyBox v1.30.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 19.07-SNAPSHOT, r11104-e752fc1ff9 |
| |
| Build time: 2020-06-06 19:04 CEST |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: Check Point L-50 |
| Uptime: 0d, 00:01:37 |
| Load: 0.93 0.37 0.13 |
| Flash: |
| Memory: total: 501.1MB, free: 487.0MB, used: 2% |
| Leases: 0 |
| lan: static, 192.168.1.1 |
| wan: dhcp, ? |
| wan6: dhcpv6, ? |
-----------------------------------------------------------------------------
=== WARNING! ================================================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
-----------------------------------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/# passwd
Changing password for root
New password:
Retype password:
passwd: password for root changed by root
root@OpenWrt:/# sysupgrade /tmp/luci-19.07-snapshot-r11104-e752fc1ff9-kirkwood-c
heckpoint_l-50-squashfs-sysupgrade.bin
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
next, the router will reboot, after reboot, install is finished.