Because I have altered the script for debugging purposed, I copied the original from github. Same results, the string on 0:0 begins with “-en SDMMC_BOOT\x00\x00\x01” and so on, any null bytes. I´m running ubuntu 20.04.1 on my system, if that matters. I also created test.sh like frank-w and get the correct results on my build system.
I guess script is not executed in local bash…more in own buildchain where echo does not support flags -en
Btw. For everyone seeing retransmitts with kernel 5.4+: i posted patch for adding pause statement in bpi-r2 dts for switchport 6
may it help to set /bin/echo in script?
i don’t know…maybe it runs in chroot or similar…
Thanks for your work. For newbies: how to add this patch in openwrt buildroot? Brute force: patching mt7623n-bananapi-bpi-r2.dts?
If my wife let me hack today, I will report. Tolerance level is low after weekend
Change the shebang at the top of the script to #!/bin/bash
instead of the current #!/bin/sh
.
I’ll work out a better way to do this and fix it upstream without requiring bash, if I can…
Will test it and report here.
Short: works
openwrt is a bit tricky with applying patches…you can try to put it in the patches-5.4 folder…if that leads to a build.error you have to include it the normal way:
https://openwrt.org/docs/guide-developer/build-system/use-patches-with-buildsystem
btw. i don’t know if shell (you can show it by adding “type /bin/sh” in script) executing the script is the problem…it is only a thought…maybe changing shebang works, maybe not if script is running inside chroot it is possible that it also does not work if echo is build without the -e support. on my ubuntu 20.4 system i see this:
$ which echo
/usr/bin/echo
$ LANG=C type echo
echo is a shell builtin
so maybe using /usr/bin/echo helps
wonder why ubuntu uses dash
$ which sh
/usr/bin/sh
$ ls -l /usr/bin/sh
lrwxrwxrwx 1 root root 4 Apr 27 13:01 /usr/bin/sh -> dash
i thought it was bash but users having bash by default…
$ grep frank /etc/passwd
frank:x:1000:1000:Frank Wunderlich,,,:/home/frank:/bin/bash
Thanks for your work. For newbies: how to add this patch in openwrt buildroot? Brute force: patching mt7623n-bananapi-bpi-r2.dts?
Post an appropriate patch (adding the patch file to openwrt.git) it to [email protected] or bring it to my attention to do so. Does it want to go in to 19.07 too?
That doesn’t work in Ubuntu’s shell either.
Maybe it’s better to leave discussion here. Can you take a look at my comments here
? Btw. Does your uboot contains pci/sata support? Then you should add this patch: https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Nice detailed info.
Just sharing my speeds on a GIGABIT WAN.
The board is behaving poorly…
Running Openwrt SNAPSHOT r16382-209c5918b5 / LuCI Master git-21.088.74150-ba4e214
I was trying to switch my router to bananapi-r2 today. No luck.
I bought this board on Dec. 12 2018
Maybe I will have to wait 4 more years to be able… who knows?
My TP link Archer C7 AC1750 V2 with 720 MHZ beats 650 Mbps… more than this board. Lol
DO you guys have more luck than me on it?
Hello. Tell me there is in this image OpenWrt SNAPSHOT r 164-e887049fbb / LuCI Master git-21.088.74150-ba4e214 Sata support ? What packages do I need to install to connect the HDD, mount and install samba
Openwrt master thread is here: [R64] Mainline OpenWRT image
For r2 sata should be available by default as it is not shared with pcie