Openwrt 19.07.3 build -- patch failure

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Openwrt 19.07.3 build -- patch failure

Sun Aug 23, 2020 2:32 pm

Hello,

I try to follow your instructions on github https://github.com/Vonger/vocore2 but I get the following errors:

Code: Select all
$ patch -p1 < ./package/vocore2/openwrt.1907/vocore2-fixmaster-es8388.patch
patching file target/linux/ramips/modules.mk
patching file target/linux/ramips/dts/VOCORE2.dtsi
Hunk #2 succeeded at 36 (offset -1 lines).
patching file target/linux/ramips/dts/VOCORE2.dts
patch: **** malformed patch at line 105:  &spi0 {


and also this:

Code: Select all
$ cp ./package/vocore2/openwrt.1907/0810-es8388-support.patch ./target/linux/ramips/patches-4.14
cp: cannot stat './package/vocore2/openwrt.1907/0810-es8388-support.patch': No such file or directory


What do you recommend?

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Re: Openwrt 19.07.3 build -- patch failure

Sun Aug 23, 2020 7:34 pm

I was able to fix the first error. The patch file needs to be fixed.

Change the line
Code: Select all
@@ -16,6 +16,45 @@

to
Code: Select all
@@ -16,6 +16,46 @@


Then the patch will apply properly.

I do not know how to fix the missing file though!
Last edited by Nirvana on Sun Aug 23, 2020 7:36 pm, edited 1 time in total.

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Re: Openwrt 19.07.3 build -- patch failure

Sun Aug 23, 2020 9:13 pm

Here is also another build warning that might need to be fixed?

Code: Select all
WARNING: Makefile 'package/vocore2/utils/qt5/Makefile' has a build dependency on '+libstdcpp', which does not exist

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Re: Openwrt 19.07.3 build -- patch failure

Mon Aug 24, 2020 12:54 am

Here is another bug I found.

In your MT7628 I2C patch you are looking for the compatibility string:
Code: Select all
.compatible = "mediatek,mt7621-i2c"


But in the VOCORE2.dts file, it says
Code: Select all
compatible = "mediatek,i2c-mt7628";


So the module does not load properly

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Openwrt 19.07.3 build -- patch failure

Mon Aug 24, 2020 1:52 am

Currently ES8388 driver can not work correctly in OpenWrt 19.07.3 even with correct patch, I am fixing this so that might cause the patch broken. Please do not use that patch for now, if you need to use sound card, better to use openwrt 18.06.5 version.

Looks like 19.07.3 some drivers are changed cause es8388 can not work well.

about mediatek,mt7628-i2c, I think that issue is because that es8388 patch.

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Re: Openwrt 19.07.3 build -- patch failure

Tue Oct 20, 2020 6:02 pm

Hello,

I am trying out my vocore again... I see you have updated your build instructions on github a little but not much. Maybe they could get updated again? I see still instructions for using file "0810-es8388-support.patch" that does not exist.

But the real reason I am here, i am trying to use SD Card. It works with your firmware for Vocore 2 Ultimate, 20200812.19073.bin. But when I follow your instructions to build the firmware and make my own, I do not get a /dev/mmcblk0 device. Perhaps there is something missing from the instructions on github?

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Openwrt 19.07.3 build -- patch failure

Wed Oct 21, 2020 4:44 pm

Hi, do you patch the SD card driver?
It needs to patch to make sd card because default driver has a bug that it can not work with no card-detect pin device.
Most of my patches are for new function that openwrt do not allow to merge, and you can ignore them if you do not use them, like es8388 for sound.

Nirvana
 
Posts: 8
Joined: Sun May 19, 2019 3:02 pm

Re: Openwrt 19.07.3 build -- patch failure

Fri Oct 23, 2020 3:26 am

Yes, I did:
Code: Select all
patch -p1 < ./package/vocore2/openwrt.1907/vocore2-fixmaster-sdcard.patch


The patch applied properly but when I boot the system it does not give me any device. That is why I wondered if maybe the instructions on github need to be updated, as I followed them exactly and do not get the same features as in your official firmware download.

Also, 19.07.4 is out now and I think your 1T1R/2T2R change has been added? Is that true? that is another patch that we don't need to apply?

But really what I want now is the SD card. Is there another patch I need to do besides the one mentioned above? Or is there an option I need to change in "make menuconfig" to enable SD card? I used your .config from the openwrt.1907 folder.

Thank you

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Openwrt 19.07.3 build -- patch failure

Sat Oct 24, 2020 2:20 am

Do you select SD card driver?

Kernel modules => Other modules => kmod-sdhci-mt7620

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Openwrt 19.07.3 build -- patch failure

Sat Oct 24, 2020 2:21 am

OpenWrt 19.07.4 is Sep.23, maybe already fix, let me try

Next
Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: Google [Bot] and 46 guests