# Upgrade librerouter os 1.5 to 2.0 (Debug LiRoV1 ART problem)
If you are using "librerouter os 1.5" you wont be able to safe upgrade properly to "librerouter os 2". You will have to fix boot parameters.
## debuging
when upgrading art partition is ignored and wont be able to rise wireless interfaces. Also note that keeping config files maight not be possible.
If you just upgrade and the interfeces dont work using this command you can see that the kernel fails to load calibration data.
```bash
dmesg | grep -C 5 mac
ath9k 18100000.wmac: failed to load calibration data from mtd device
fw_printenv
```
## Upgrade process 1 (didnt work)
I think this one does not work because this version of s-u had a bug in the partition 2 address
upgrade using
```bash
safe-upgrade upgrade -n --no-reboot /tmp/lr2.sysupgrade
```
view what partition are you in before safe-upgrade (in lr 1.5)
```bash
safe-upgrade show
safe-upgrade version: 1.0
**current partition: 1**
stable partition: 1
testing partition: 0
```
since you are in partition 1 your new partition will be two so you will have to fix the boot_2 parameter
```bash
fw_setenv boot_2 "set bootargs console=ttyS0,115200 board=LIBREROUTERV1 mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),7936k(fw1),7936k(firmware),128k(res),64k(art); echo booting part 2; bootm \${fw_addr};"
```
if your current partition is 2 you will have to fix the boot 1 to enable the new image to boot properly
```bash
fw_setenv boot_1 "set bootargs console=ttyS0,115200 board=LIBREROUTERV1 mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),7936k(firmware),7936k(fw2),128k(res),64k(art); echo booting part 1; bootm \${fw_addr};"
```
## upgrade process 2
Get the new version of safe upgrade into the router
```bash
cd /usr/sbin
wget https://raw.githubusercontent.com/libremesh/lime-packages/refs/heads/master/packages/safe-upgrade/files/usr/sbin/safe-upgrade
or from pc
~/Descargas$ scp -O -o "HostkeyAlgorithms=+ssh-rsa" safe-upgrade root@minodo.info:/usr/sbin
```
perform bootstrap
```bash
safe-upgrade bootstrap --force
```
perform a safe upgrade dont preserve and dont reboot, use
```bash
safe-upgrade upgrade --no-reboot -n /tmp/lros.bin
```
:::info # oldLR1 upgrade
fw_setenv bootargs "console=ttyS0,115200 board=LIBREROUTERV1 rootfstype=squashfs noinitrd mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),7936k(firmware),7936k(fw2),128k(res),64k(art)"
:::
setenv bootargs console=ttyS0,115200 board=LIBREROUTERV1 rootfstype=squashfs noinitrd mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),7936k(firmware),7936k(fw2),128k(res),64k(art)