mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-14 19:41:55 +00:00
fix: get sfp working, allow debian to ssh, and fixup lcd
This commit is contained in:
parent
85a5bd66e0
commit
b37bdd27d4
3 changed files with 16 additions and 7 deletions
|
@ -54,7 +54,7 @@ Note that currently the install process requires UART to modify the u-boot env f
|
||||||
sync; reboot
|
sync; reboot
|
||||||
```
|
```
|
||||||
|
|
||||||
8. At this point you can remove the HDD/SSD you used, and enjoy Debian 12 with OpenMediaVault on your UNVR Pro!
|
8. At this point you can remove the HDD/SSD you used, and enjoy Debian 12 with OpenMediaVault on your UNVR Pro! Default login for OpenMediaVault is `admin:openmediavault`. SSH login information is `debian:debian`.
|
||||||
|
|
||||||
## Removal
|
## Removal
|
||||||
|
|
||||||
|
@ -87,8 +87,6 @@ To restore back to the factory UNVR-Pro firmware, you can do the following steps
|
||||||
* OpenMediaVault
|
* OpenMediaVault
|
||||||
* BTRFS does not work, period
|
* BTRFS does not work, period
|
||||||
* No kernel module in UBNT kernel, need new kernel source and we can make so many things better...
|
* No kernel module in UBNT kernel, need new kernel source and we can make so many things better...
|
||||||
* Networking
|
|
||||||
* SFP+ port works, but cloud-init doesn't configure it, so it needs manual setup
|
|
||||||
* Fans
|
* Fans
|
||||||
* No service monitoring temps to adjust fan speed, so fans just stay at low spin from u-boot. Fans are on an i2c adt7475 controller
|
* No service monitoring temps to adjust fan speed, so fans just stay at low spin from u-boot. Fans are on an i2c adt7475 controller
|
||||||
* Reset Button
|
* Reset Button
|
||||||
|
|
|
@ -13,3 +13,13 @@ datasource:
|
||||||
- DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -f -y
|
- DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -f -y
|
||||||
- omv-confdbadm populate
|
- omv-confdbadm populate
|
||||||
- omv-salt deploy run hosts
|
- omv-salt deploy run hosts
|
||||||
|
- usermod -a -G _ssh debian
|
||||||
|
|
||||||
|
# Setup network for both nics
|
||||||
|
network:
|
||||||
|
version: 2
|
||||||
|
ethernets:
|
||||||
|
enp0s1:
|
||||||
|
dhcp4: true
|
||||||
|
enp0s2:
|
||||||
|
dhcp4: true
|
||||||
|
|
|
@ -44,13 +44,14 @@ console-common console-data/keymap/full select us
|
||||||
|
|
||||||
# Copy over stuff for ulcmd, this is hacky, but that's this ENTIRE repo for you
|
# Copy over stuff for ulcmd, this is hacky, but that's this ENTIRE repo for you
|
||||||
mv "${build_path}/fw-extract/rootfs/lib/systemd/system/ulcmd.service" "${build_path}/rootfs/lib/systemd/system/ulcmd.service"
|
mv "${build_path}/fw-extract/rootfs/lib/systemd/system/ulcmd.service" "${build_path}/rootfs/lib/systemd/system/ulcmd.service"
|
||||||
mv "${build_path}/fw-extract/rootfs/usr/bin/ulcmd" "${build_path}/rootfs/usr/bin/ulcmd"
|
mv "${build_path}/fw-extract/rootfs/usr/bin/ulcmd" "${build_path}/rootfs/usr/bin/ulcmd" # LCD controller
|
||||||
mkdir -p "${build_path}/rootfs/usr/lib/ubnt-fw/"
|
mv "${build_path}/fw-extract/rootfs/usr/share/firmware" "${build_path}/rootfs/usr/share/" # LCD panel firmwares
|
||||||
|
mkdir -p "${build_path}/rootfs/usr/lib/ubnt-fw/" # Home for ulcmd libraries
|
||||||
for file in libgrpc++.so.1 libgrpc.so.10 libprotobuf.so.23 \
|
for file in libgrpc++.so.1 libgrpc.so.10 libprotobuf.so.23 \
|
||||||
libssl.so.1.1 libcrypto.so.1.1 libabsl*.so.20200923 libatomic.so.1; do
|
libssl.so.1.1 libcrypto.so.1.1 libabsl*.so.20200923 libatomic.so.1; do
|
||||||
mv ${build_path}/fw-extract/rootfs/usr/lib/aarch64-linux-gnu/${file} "${build_path}/rootfs/usr/lib/ubnt-fw/"
|
cp -H ${build_path}/fw-extract/rootfs/usr/lib/aarch64-linux-gnu/${file} "${build_path}/rootfs/usr/lib/ubnt-fw/"
|
||||||
done
|
done
|
||||||
sed -i 's|Type=simple|Type=simple\nEnvironment="LD_LIBRARY_PATH=/usr/lib/ubnt-fw"|g' "${build_path}/rootfs/lib/systemd/system/ulcmd.service"
|
sed -i 's|Type=simple|Type=simple\nEnvironment="LD_LIBRARY_PATH=/usr/lib/ubnt-fw"|g' "${build_path}/rootfs/lib/systemd/system/ulcmd.service" # Add library path
|
||||||
|
|
||||||
# Kick off bash setup script within chroot
|
# Kick off bash setup script within chroot
|
||||||
cp ${docker_scripts_path}/bootstrap/001-bootstrap ${build_path}/rootfs/bootstrap
|
cp ${docker_scripts_path}/bootstrap/001-bootstrap ${build_path}/rootfs/bootstrap
|
||||||
|
|
Loading…
Reference in a new issue