Closed flineca closed 1 year ago
I just upgrade the system following the tips on the official website.
My initial version:
root@OpenWrt:/etc# uname -a
Linux OpenWrt 4.14.160 #0 SMP Mon Jan 6 07:04:00 2020 mips GNU/Linux
root@OpenWrt:/etc# cd /proc
root@OpenWrt:/proc# cat version
Linux version 4.14.160 (esir@ubuntu14) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r1848-aeceaaf)) #0 SMP Mon Jan 6 07:04:00 2020
Considering that I can not upgrade it directly into the latest version because it will display an error to ask you ribe all configures, I use the version 19.07 for my hardware.
So of course I lost most software configuration, but it goes well and the router automatically restarted, with wifi name and username remaining the same.
The official tutorial helped me successfully auto-mount my USB!
root@OpenWrt:~# block info
...
/dev/sda1: UUID="a97b4328-c237-44c6-8d50-fee578208c4c" VERSION="1.0" MOUNT="/mnt/sda1" TYPE="ext4"
Router storage space is only around 10M. I want to mount a USB, then maybe in the future build a server inside.
Neither way below succeeds. The conclusion is that I need to recompile the kerner or libc.
Directly use "mount"
Check /dev
After make a directory in /mnt, use mount. But it doesn't work:
Further trials
Maybe there is something wrong with usb drivers. After
opkg update
, some packages cannot be installed because of the inconsistent of versions.My openwrt system is 4.xx.xxxxx. To Solve this problem, I need to re-compile the kernel.
Another idea is:
Official tutorial
https://openwrt.org/docs/guide-user/storage/usb-drives
Check block information: root@OpenWrt:~# block info /dev/mtdblock5: UUID="ea97b996-5ffbeb6d-f107abe5-90754c55" VERSION="4.0" MOUNT="/rom" TYPE="squashfs" /dev/mtdblock6: MOUNT="/overlay" TYPE="jffs2" /dev/sda1: UUID="A6E9-703C" LABEL="NO NAME" VERSION="FAT32" TYPE="vfat"
Problem is that the command lsusb cannot work, so that the command gdisk(maybe depends on lsusb) cannot work either. Like:
Here is the advice to upgrade libc: https://forum.openwrt.org/t/openssl-util-1-1-1l-1-error-relocating-usr-lib-libssl-so-1-1-time64-symbol-not-found/108861
other reference
after recompiling, consider https://blog.csdn.net/qq_43450413/article/details/107145575