Trouble with USB while installing Snapshot on Ubiquiti EdgeRouter 6P

Hello forum!

I own a Ubiquiti EdgeRouter 6P onto which I would like to install OpenWrt Snapshot, following the guide in the respective commit message.

Following the guide, I managed to successfully execute

usb start
fatload usb 0:1 0x20000000 openwrt-octeon-ubnt_edgerouter-6p-initramfs-kernel.bin
bootoctlinux 0 numcores=4 endbootargs mem=0

on the Ubiquiti system. The router rebooted itself and I was greeted by OpenWrt. So far so good.

The subsequent step was to mount the USB drive again:

mkdir /tmp/sda
mount /dev/sda1 /tmp/sda

But this time, I received an error:

root@OpenWrt:/# mount /dev/sda1 /tmp/sda
[ 2077.629178] /dev/sda1: Can't open blockdev
[ 2077.633953] /dev/sda1: Can't open blockdev
mount: mounting /dev/sda1 on /tmp/sda failed: No such file or directory

I configured internet access as a client in my existing network:

uci set network.lan.proto="dhcp"
uci commit network
/etc/init.d/network restart

and blindly installed a bunch of USB packages following https://openwrt.org/docs/guide-user/storage/usb-drives-quickstart:

opkg update
opkg install block-mount e2fsprogs kmod-fs-ext4 kmod-usb-storage kmod-usb2 kmod-usb3

But alas! There is no USB functionality at all :frowning: :

root@OpenWrt:/# ls -al /dev/sd*
ls: /dev/sd*: No such file or directory
root@OpenWrt:/# lsusb
unable to initialize libusb: -99

Unfortunately, I am at my wits end how to proceed. If anyone is able to help, I would greatly appreciate that :slight_smile:

By the way, this is my first post (so, "hello!"), but likely not my last, as I have just moved into a new home which I plan to fill with a number of OpenWrt-powered network devices. The router is just the first step :wink:

Cheers, HP

1 Like

try installing blockdev and perhaps blockd for the storage, libusb is needed by lsusb.

if any of the ethernet ports is up, you could try to wget the image instead.

2 Likes

Thanks for the fast reply and suggestion!

Unfortunately, installing blockdev and blockd didn't yet solve the issue.

With the wget, however, that's a good idea! I did exactly that and voilà: installation complete!

Thanks again! :clap:

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.