uboot-sunxi: SPI Flash support for Orange Pi R1. Need help with sysupgrade.bin image

2020-07-09 Thread Yaroslav Petrov

Dear Mr. Mehrtens,


I'd like install Openwrt on SPI Flash by Orange Pi R1 (without SD-Card).


1. uboot-sunxi with SPI Support. It was simple: ( 
https://github.com/u-boot/u-boot/pull/34 ... Yes, i know about u-boot 
patch rules. I'll do it later)


2. SPI Flash partitions. It was also easy. (Example: 
https://github.com/openwrt/openwrt/blob/f003d732d726758f11f0c308758637c434c37c1a/target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch)


3. Prepare u-boot env rules (it should be also easy: 
https://linux-sunxi.org/Bootable_SPI_flash )



My problem is build a sysuprade.bin image. Right now the sunxi target 
use SD-Card images. And I have no idea how it should be implemented in 
target/linux/sunxi/image/Makefile



Can you please provide me ? or maybe you know who can help me ?



We need Orange Pi R1 SPI image for our Freifunk-Dresden community:

https://gitlab.freifunk-dresden.de/firmware-developer/firmware/issues/56


Best regards
Yaroslav Petrov


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] ath79: add support for COMFAST CF-E130N v2

2020-05-24 Thread Yaroslav Petrov

Hi Pavel,


What about you patch ? It will be great to add COMFAST CF-E130N v2 to 
openwrt master. Do you need help ?



Best regards
Yaroslav Petrov


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Errors running make xconfig

2019-09-13 Thread Yaroslav Petrov
Hi Bas, 

Maybe it can help you ? 

https://github.com/Lankaster/qt5-openwrt

https://github.com/petrov-adg/qt5-openwrt

Best regards
Yaro

Am 13. September 2019 12:39:02 MESZ schrieb Bas Mevissen :
>Hi all,
>
>I'm trying to configure my openwrt project with xconfig. This fails
>with 
>the errors pasted to https://pastebin.com/LJvsAhab (too long to add, 
>summary below).
>
>System is Mint 9.2 (Ubuntu Bionic based) with relevant Qt5 stuff 
>installed, including libqt5* (I installed all of them...) and
>qtbase5-dev.
>
>I used OpenWrt latest master, head of openwrt_19.07 branch and v18.06.4
>
>with the same result. I tried to figure out whether the configuration 
>did function as designed:
>
>(from scripts/config/Makefile)
>
>$ pkg-config --exists Qt5Core && echo Ok
>Ok
>
>$ pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets
>-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets 
>-I/usr/include/x86_64-linux-gnu/qt5 
>-I/usr/include/x86_64-linux-gnu/qt5/QtGui 
>-I/usr/include/x86_64-linux-gnu/qt5 
>-I/usr/include/x86_64-linux-gnu/qt5/QtCore 
>-I/usr/include/x86_64-linux-gnu/qt5
>
>$ pkg-config --libs Qt5Core Qt5Gui Qt5Widgets
>-lQt5Widgets -lQt5Gui -lQt5Core
>
>$ pkg-config --variable=host_bins Qt5Core
>/usr/lib/qt5/bin
>
>So it selects Qt5 and finds the required stuff:
>
>$ cat scripts/config/.tmp_qtcheck
>KC_QT_CFLAGS=-std=c++11 -fPIC 
>-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets 
>-I/usr/include/x86_64-linux-gnu/qt5 
>-I/usr/include/x86_64-linux-gnu/qt5/QtGui 
>-I/usr/include/x86_64-linux-gnu/qt5 
>-I/usr/include/x86_64-linux-gnu/qt5/QtCore 
>-I/usr/include/x86_64-linux-gnu/qt5
>KC_QT_LIBS=-lQt5Widgets -lQt5Gui -lQt5Core
>KC_QT_MOC=/usr/lib/qt5/bin/moc
>
>$ gcc --version
>gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
>Copyright (C) 2017 Free Software Foundation, Inc.
>This is free software; see the source for copying conditions.  There is
>
>NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
>PURPOSE.
>
>So it seems the configuration goes fine and everything should be
>available.
>
>Shortened version of the error:
>
>make[1]: Entering directory 
>'/home/bas/Workspace/playground/openwrt/scripts/config'
>   CHECK   qt
>qconf.o: In function `ConfigList::metaObject() const':
>qconf.cc:(.text+0x3ed): undefined reference to 
>`QObjectData::dynamicMetaObject() const'
>qconf.o: In function `ConfigList::qt_metacast(char const*)':
>qconf.cc:(.text+0x446): undefined reference to 
>`QTreeWidget::qt_metacast(char const*)'
>qconf.o: In function `ConfigList::qt_metacall(QMetaObject::Call, int, 
>void**)':
>qconf.cc:(.text+0x474): undefined reference to 
>`QTreeWidget::qt_metacall(QMetaObject::Call, int, void**)'
>qconf.o: In function `ConfigList::menuChanged(menu*)':
>qconf.cc:(.text+0x522): undefined reference to 
>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'
>qconf.o: In function `ConfigList::menuSelected(menu*)':
>qconf.cc:(.text+0x590): undefined reference to 
>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'
>qconf.o: In function `ConfigList::parentSelected()':
>qconf.cc:(.text+0x5d1): undefined reference to 
>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'
>qconf.o: In function `ConfigList::gotFocus(menu*)':
>qconf.cc:(.text+0x62a): undefined reference to 
>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'
>qconf.o: In function `ConfigLineEdit::metaObject() const':
>qconf.cc:(.text+0x695): undefined reference to 
>`QObjectData::dynamicMetaObject() const'
>qconf.o: In function `ConfigLineEdit::qt_metacast(char const*)':
>qconf.cc:(.text+0x6ee): undefined reference to 
>`QLineEdit::qt_metacast(char const*)'
>qconf.o: In function `ConfigLineEdit::qt_metacall(QMetaObject::Call, 
>int, void**)':
>qconf.cc:(.text+0x71c): undefined reference to 
>`QLineEdit::qt_metacall(QMetaObject::Call, int, void**)'
>qconf.o: In function `ConfigView::metaObject() const':
>qconf.cc:(.text+0x9f7): undefined reference to 
>`QObjectData::dynamicMetaObject() const'
>qconf.o: In function `ConfigView::qt_metacast(char const*)':
>qconf.cc:(.text+0xa50): undefined reference to 
>`QWidget::qt_metacast(char const*)'
>(...)
>qconf.o: In function `ConfigList::~ConfigList()':
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x42): 
>undefined reference to `QPalette::~QPalette()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x54): 
>undefined reference to `QPalette::~QPalette()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x66): 
>undefined reference to `QPixmap::~QPixmap()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x78): 
>undefined reference to `QPixmap::~QPixmap()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x8a): 
>undefined reference to `QPixmap::~QPixmap()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x9c): 
>undefined reference to `QPixmap::~QPixmap()'
>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0xae): 
>undefined reference to `QPixmap::~QPixmap()'

[OpenWrt-Devel] ath10k_pci 0000:02:00.0: SWBA overrun on vdev 0, skipped old beacon

2019-08-22 Thread Yaroslav Petrov

Hello all,


I use OpenWrt 19.07 on BT Home Hub 5A, but it seams ath10k-ct driver is 
really unstable (it work only first 2-10 minutes). The ath10k driver 
work without problem. Can somebody help me with this issue ?



 OpenWrt 19.07-SNAPSHOT, r10323-7d300326ee 

dmesg:
...
[   16.523669] ath10k_pci :02:00.0: qca988x hw2.0 target 0x4100016c 
chip_id 0x043202ff sub :
[   16.531585] ath10k_pci :02:00.0: kconfig debug 0 debugfs 1 
tracing 0 dfs 1 testmode 0
[   16.548528] ath10k_pci :02:00.0: firmware ver 
10.1-ct-8x-__fW-022-fddd041b api 2 features 
wmi-10.x,has-wmi-mgmt-tx,adaptive-cca,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT 
crc32 01d1f13e
[   16.600527] ath10k_pci :02:00.0: Direct firmware load for 
ath10k/QCA988X/hw2.0/board-2.bin failed with error -2

[   16.609654] ath10k_pci :02:00.0: Falling back to user helper
[   16.865926] firmware ath10k!QCA988X!hw2.0!board-2.bin: 
firmware_loading_store: map pages failed
[   16.874176] ath10k_pci :02:00.0: board_file api 1 bmi_id N/A 
crc32 bebc7c08
[   17.754597] ath10k_pci :02:00.0: 10.1 wmi init: vdevs: 16 peers: 
127  tid: 256

[   17.769910] ath10k_pci :02:00.0: wmi print 'P 128 V 8 T 410'
[   17.774908] ath10k_pci :02:00.0: wmi print 'msdu-desc: 1424  
sw-crypt: 0 ct-sta: 0'
[   17.782548] ath10k_pci :02:00.0: wmi print 'alloc rem: 24648 
iram: 26168'
[   17.846700] ath10k_pci :02:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 
cal file max-sta 128 raw 0 hwcrypto 1
[   17.858172] ath10k_pci :02:00.0: NOTE:  Firmware DBGLOG output 
disabled in debug_mask: 0x1000

...
[ 9397.052366] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.154773] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.257174] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.359596] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.461992] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.564396] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.666805] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.769214] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.871646] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9397.974036] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.076445] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.178844] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.281259] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.383675] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.486071] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.588478] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.690883] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.793301] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.895708] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9398.998112] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.100512] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.202918] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.305328] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.407740] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.510149] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.612543] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.714959] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.817366] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9399.919780] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9400.022177] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9400.124590] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9400.184417] ath10k_pci :02:00.0: wmi command 36893 timeout, 
restarting hardware
[ 9400.191096] ath10k_pci :02:00.0: failed to delete peer 
99:99:99:99:99:99 for vdev 0: -11
[ 9400.199527] ath10k_pci :02:00.0: found sta peer 99:99:99:99:99:99 
(ptr 8698a600 id 361) entry on vdev 0 after it was supposedly removed

[ 9400.212109] [ cut here ]
[ 9400.216791] WARNING: CPU: 1 PID: 3599 at 
backports-4.19.66-1/net/mac80211/sta_info.c:1004 
sta_set_sinfo+0xcdc/0xd88 [mac80211]
[ 9400.227825] ath10k_pci :02:00.0: SWBA overrun on vdev 0, skipped 
old beacon
[ 9400.235153] Modules linked in: ath9k ath9k_common ath9k_hw ath10k_pci 
ath10k_core ath 

Re: [OpenWrt-Devel] [RFC] [PATCH v2] lantiq: net: ethernet driver with fragments

2019-02-11 Thread Yaroslav Petrov

Hi Petr,


Now i can test new lan driver on VGV7510KW22. Its look really good, with 
path 904&905 i have 2-4 Mbits more bandwidth, but it seams increasing of 
descriptors not enough to resole ring full events.



Test bench:

* O2 box (VGV7510KW22) are connected on 1 GBit switch.

* Openwrt master (initramfs) with bootargs = "console=ttyLTQ0,115200";

* Boot via TFTP

* disabled: dsl_control, odhcpd, dnsmasq


See logs.


I will test this 2 pathes on BT5 next days


Best regards

Yaro

On 2/8/19 2:10 PM, Petr Cvek wrote:

I think I've managed to fix the backported driver from vanilla kernel. I
forgot to copy phy_start() call from original driver (that's probably
why it didn't work, I'm booting from NFS and from port 0, so it was
enabled already) and I've added the support for the skb fragments. This
seems to greatly increase the TX throughput.

In the addition it seems the DMA burst patch doesn't increase the
throughput anymore (TX is probably saturated now, and the code is
better), but the driver supports any burst mode now anyway (there was
just a problem with buffer alignment).

There were ring full events often, so I've increased the number of
descriptors from 0x40 to 0xc0 and changed the timeout. Maybe it should
work better if the queue is stopped around 50% or something like that.

Attached:
0904... - new driver
0905... - descriptor increase
run.sh  - testing script, various iperf3 modes
vanilla...  - vanilla openwrt test
z4_hyst...  - new driver test (measured with previous patches for SMP ICU
and burst)

Petr

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


--
Mit freundlichen Grüßen,
Yaroslav Petrov
--
Best regards
Yaroslav Petrov
--
С уважением
Петров Ярослав

email: i...@lank.me
mob DE: +49 151 521 99000 (WhatsApp)

[   47.336391] br-lan: port 1(eth0.1) entered disabled state
[   47.342409] device eth0.1 entered promiscuous mode
[   47.346567] device eth0 entered promiscuous mode
[   47.357298] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   50.383706] lantiq,xrx200-net 1e108000.eth eth0: port 3 got link
[   50.388530] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   50.395767] br-lan: port 1(eth0.1) entered blocking state
[   50.44] br-lan: port 1(eth0.1) entered forwarding state
[   50.406444] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:/# cat /proc/interrupts 
   CPU0   CPU1   
  7: 151484 152800  MIPS   7  timer
  8:   1448 332285  MIPS   0  IPI call
  9:   3967  21752  MIPS   1  IPI resched
 62:  0  0   icu  62  1e101000.usb, dwc2_hsotg:usb1
 63:   2614  0   icu  63  mei_cpe
 72: 453795  0   icu  72  vrx200_rx
 73: 634185  0   icu  73  vrx200_tx
 75:  0  0   icu  75  vrx200_tx_2
112:   4041  0   icu 112  asc_tx
113:386  0   icu 113  asc_rx
114:  0  0   icu 114  asc_err
126:  0  0   icu 126  gptu
127:  0  0   icu 127  gptu
128:  0  0   icu 128  gptu
129:  0  0   icu 129  gptu
130:  0  0   icu 130  gptu
131:  0  0   icu 131  gptu
150:  0  0   icu 150  mps_mbx vc0
151:  0  0   icu 151  mps_mbx vc1
152:  0  0   icu 152  mps_mbx vc2
153:  0  0   icu 153  mps_mbx vc3
154:  0  0   icu 154  mps_mbx ad0
155:  0  0   icu 155  mps_mbx ad1
ERR:  0
root@OpenWrt:/# 
+ : ':::[' configuration openwrt_master ']:::' :
+ iperf3 -c 192.168.1.133
Connecting to host 192.168.1.133, port 5201
[  4] local 192.168.1.51 port 56710 connected to 192.168.1.133 port 5201
[ ID] Interval   Transfer Bandwidth   Retr  Cwnd
[  4]   0.00-1.00   sec  11.1 MBytes  92.8 Mbits/sec0206 KBytes   
[  4]   1.00-2.00   sec  10.0 MBytes  83.9 Mbits/sec0206 KBytes   
[  4]   2.00-3.00   sec  11.0 MBytes  92.3 Mbits/sec0206 KBytes   
[  4]   3.00-4.00   sec  10.8 MBytes  90.7 Mbits/sec1160 KBytes   
[  4]   4.00-5.00   sec  11.2 MBytes  94.3 Mbits/sec0198 KBytes   
[  4]   5.00-6.00   sec  11.2 MBytes  93.8 Mbits/sec0199 KBytes   
[  4]   6.00-7.00   sec  10.3 MBytes  86.0 Mbits/sec0199 KBytes   
[  4]   7.00-8.00   sec  10.2 MBytes  85.5 Mbits/sec2175 KBytes   
[  4]   8.00-9.00   sec  10.4 MBytes  87.6 Mbits/sec0198 KBytes   
[  4]   9.00-10.00  sec  10.6 MBytes  88.6 Mbits/sec0199 KBytes   
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval   Transfer Bandwidth   Retr
[  4]   0.00-10.00  sec   107 MBytes  89.6