Banana PI3 cannot flash nand because no usb device

Hi, I have a Banana RPI3 and usb2tty .

I followed https://wiki.banana-pi.org/Getting_Started_with_BPI-R3 , got the latest stable 23.05 (https://downloads.openwrt.org/releases/23.05.5/targets/mediatek/filogic/openwrt-23.05.5-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz) , flash SD, put the SD and usb2tty. I am now in the OS from the SD card.

Then the instruction is to put files to flash nand, in a usb storage, and put that in the USB of banana.

The issue is I tried different USB (HDD, flash disk) and I see no device in /dev/sd*. dmesg shows me nothing more than:

root@OpenWrt:/# [   53.960131] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk

This is what are installed

root@OpenWrt:/# opkg list-installed *usb*
kmod-usb-core - 5.15.167-1
kmod-usb-xhci-hcd - 5.15.167-1
kmod-usb-xhci-mtk - 5.15.167-1
kmod-usb3 - 5.15.167-1

Also, I do not have internet yet in this device, I am trying to set ip up before connecting it to my router.

try installing kmod-usb-serial package through firmware selector if you can't get internet and then flash it.

or if you can get internet somehow try

opkg update
opkg install kmod-usb-serial

Thanks, I have regenerated the package adding kmod-usb-serial

However, the problem still occurs.

root@OpenWrt:/# opkg list-installed *usb*
kmod-usb-core - 5.15.167-1
kmod-usb-serial - 5.15.167-1
kmod-usb-xhci-hcd - 5.15.167-1
kmod-usb-xhci-mtk - 5.15.167-1
kmod-usb3 - 5.15.167-1

root@OpenWrt:/# ls -al /dev/sd*
ls: /dev/sd*: No such file or directory

root@OpenWrt:/# dmesg | tail -n5
[   22.809456] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
[   22.819274] br-wan: port 2(wan) entered blocking state
[   22.824431] br-wan: port 2(wan) entered disabled state
[   22.830928] device wan entered promiscuous mode
[   34.590216] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk

Have you tried usb 2.0 or usb 3.0 devices?
If you have usb 2.0 devices you should also install kmod-usb2 package.
And what about the power supply? Is it capable of powering HDD or the flash drive along with powering the router?

https://openwrt.org/docs/guide-user/storage/usb-drives-quickstart might be worth reading too.

Only usb 3.0 devices.
No power supply, these are either USB sticks, USB + SD sticks, USB HDD 2.5".

I don't know if the HDD is powered but at least the OS can see it, but does nothing and no error.

From your page, I can see I can install these too : kmod-usb-storage-uas kmod-usb3 kmod-fs-ext4 , I will try later. But I don't know why these are not installed by default.

as @porshuram pointed out, you could get the image via internet instead, no need for any USB support
or scp the image over from a client device.

Well, I was merely following official doc https://wiki.banana-pi.org/Getting_Started_with_BPI-R3 , and I find it normal to be able to deploy without internet first.

But I will try to see if I can do some SCP over serial port.

Official Openwrt installation guide is located at https://openwrt.org/toh/sinovoip/bananapi_bpi-r3

Ok following https://openwrt.org/docs/guide-user/storage/usb-installing I added these packages and now I can see and mount the USB device!

kmod-usb-serial kmod-usb-storage-uas kmod-fs-exfat kmod-fs-ntfs3 kmod-fs-ext4 kmod-usb2

This should be put in the default instructions of banana PIR3 build, as soon as I can get the router working, I will see how to make it automatic.

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