New BP4 - how to log in

Which modules have I got to load for the debuguart?

I ask before I buy because I need to see if these are available for my O/S, or see if it is possible to compile these.

HOLD ON!!!

You wrote this earlier in this thread.

Why cannot I not do this now? What has changed?

Why did you think this could work earlier?

… only to write later in your posts that OpenWrt cannot be installed onto Banana Pi via the SD->nand without buying a uart?

I fear that there is a lot of presumption and miscommunication taking place.

Maybe there is a way,but the way i know is over uboot-menu where i guessed it can be modified with openwrt fw_setenv command you tried. Basicly an debug-uart cable/adapter is always recommended,at least to see whats going on…waiting for ssh or luci can be forever if anything is wrongly configured and then debuguart is the only way to really see whats wrong…of course you can put sdcard in host pc and change configs.

1 Like

OK.Understood. Let me try this again:

Now that I have got a working NAND bootable BPI running, could I try to boot from OpenWrt SD again and run the command you meantioned earlier that did not work? Is it safe?

  1. Boot mainline Openwrt from SD card
  2. Ssh in.
  3. Run commands: fw_setenv bootcmd ā€œenv default bootcmd ; saveenv ; run ubi_init ; bootmenu 6

Is the bootmenu 6 correct for BPI R4?

This should point to this:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/450-add-bpi-r4.patch;hb=HEAD#l452

  1. ok.

452 +bootmenu_6=\e[31mInstall bootloader, recovery and production to NAND.\e[0m=if nand info ; then run ubi_init ; else echo ā€œNAND not detectedā€ ; fi ; run bootmenu_confirm_return

So, will this work:

  1. Boot mainline Openwrt from SD card
  2. Ssh in.
  3. Run commands: fw_setenv bootcmd ā€œenv default bootcmd ; saveenv ; run ubi_init ; bootmenu 6

I read this person had questions about installing OpenWrt onto BP 4, and noted a different boot menu of 0.

fw_setenv bootcmd ā€œenv default bootcmd ; saveenv ; run ubi_init ; bootmenu 0ā€

What will break if I were to use the wrong bootmenu number? Could it brick?

You always have sdcard, but nand schould be written and if is incomplete (but i do not think so) it could possibly break boot from nand…but you do not see it and i do not know how you want to get further…if on nand is also possible to trigger the emmc install

Thanks!

Then could this be a good course of action?

  • Trigger install to eMMC whilst booted from BPR4 O/S on NAND.
  • Test it worked
  • Trigger install to NAND from OpenWrt booted from SD card.
  • Teat it worked.
  • If failed then boot BPR4 O/S from eMMC if nessecary.

I cannot tell you save,but install mainline openwrt on emmc with bpi-wrt on nand does not work. You have to start from sd over nand to emmc.

Well I don’t want to do that anyway :slight_smile:

Can I install BPI-WRT from NAND onto eMMC? If this does work, does it matter if I wipe the NAND install?

It should be possible,but do you want to install that old system when a new is available?

Ah, I think you misunderstand what I’m trying to do.

Instead of installing openWRT from SD onto NAND that might fail and brick the device because I cannot get a uart-debug, I can install BPIWRT from NAND into EMMC then I have a backup that I can boot from in case everything goes tits up when I try to install openWRT from SD into NAND afterwards.

Why not? For a few euro’s you can get one, from basically anywhere…

Not around here. I have never seen an electroicd shop or a real computer shop where I live. The closest to tech., we have got is MediaMarkt…

I do not know which drivers I need to use the uart-debug. It might not be supported by Macos 12. I am still searching.

2 second lookup on google:

https://ftdichip.com/drivers/

So you can use a ft232rl. You can order it from aliexpress ā€œchoiceā€ and have it in a few days.

I could find uart-debug onlinr but the price was between €12 and €24 plus delivery for several brands. I admit that I had not looked on AliExpress.

aliexpress is not a few days. :slight_smile:
It took just over a fortnight to get the bananapi delivered to me.

I have got a dispute open with sinovoip which closes in 8 days time. I can still return the box if needed. If it will not install openwrt onto nand, then I can return it. However, the uart-d will take longer to get here.

Fitlter on ā€œchoiceā€ and you can get one in northwest europe within 5 days. They have it in warehouse inside europe allready.

https://a.aliexpress.com/_EQ23s06

For exanple, vut then do not forget dupond cables

and you can get one in northwest europe within 5 days.

I ordered what you put in the link. Expected deliverly is May 8th to May 9th. So, 10 days.

For me it was 3 to 8 may, you can look furter. Do you have dopund cables?