Modify

Opened 4 years ago

Closed 4 years ago

#15446 closed defect (fixed)

Build failed for Allwinner A1x/PcDuino

Reported by: lbthomsen Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: allwinner, a10, sunxi, pcduino Cc: lth@…

Description

Build fails with:

Applying patch platform/124-regulator-dont-print-error-when-no-regulator-found.patch
patching file drivers/regulator/core.c
Hunk #1 FAILED at 1351.
1 out of 1 hunk FAILED -- rejects in file drivers/regulator/core.c

Attachments (1)

a1x.patch (263.6 KB) - added by lbthomsen 4 years ago.
Fixes build in trunk as of right now.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 4 years ago by anonymous

Exact same problem here when I try to build for cubieboard (Allwinner A10)

comment:2 Changed 4 years ago by lbthomsen

I think it's related to the kernel having been updated but not the patches. I went through all the patches and brought them up to date. I'll upload a patch here.

Changed 4 years ago by lbthomsen

Fixes build in trunk as of right now.

comment:3 Changed 4 years ago by anonymous

I'm sorry for asking here but how exactly can I apply this patch? It's the first time I try to compile openwrt...

comment:4 follow-up: Changed 4 years ago by lbthomsen

from the build root - updated to latest version something along the line of:

patch -p1 <pathtopatchfile

ought to do the trick.

comment:5 Changed 4 years ago by anonymous

Thank you very much. Works without problems. You're a hero!!!

comment:6 in reply to: ↑ 4 ; follow-up: Changed 4 years ago by anonymous

Replying to lbthomsen:

from the build root - updated to latest version something along the line of:

patch -p1 <pathtopatchfile

ought to do the trick.

sorry ,It's the first time to compile openwrt, and I have not used Linux for a long time. So, can you say the word "patch -p1<pathtopatchfile" more clearly? thank you!

comment:7 in reply to: ↑ 6 Changed 4 years ago by anonymous

Replying to anonymous:

Replying to lbthomsen:

from the build root - updated to latest version something along the line of:

patch -p1 <pathtopatchfile

ought to do the trick.

sorry ,It's the first time to compile openwrt, and I have not used Linux for a long time. So, can you say the word "patch -p1<pathtopatchfile" more clearly? thank you!

Exactly, I want to know what is the pathtopatchfile.

comment:8 follow-up: Changed 4 years ago by anonymous1

@other anonymous
I (1st anonymous) just saved the a1x.patch file into the folder trunk, opened a terminal, cd into the folder trunk and execute following command:

patch -p1 < a1x.patch

so pathtopatchfile just describes the path to the patch file you just downloaded. Hope this helps...

comment:9 in reply to: ↑ 8 Changed 4 years ago by anonymous

Replying to anonymous1:

@other anonymous
I (1st anonymous) just saved the a1x.patch file into the folder trunk, opened a terminal, cd into the folder trunk and execute following command:

patch -p1 < a1x.patch

so pathtopatchfile just describes the path to the patch file you just downloaded. Hope this helps...

thanks for your help!

comment:10 Changed 4 years ago by anonymous

patching file drivers/regulator/core.c
Hunk #1 FAILED at 1359.
1 out of 1 hunk FAILED -- rejects in file drivers/regulator/core.c
Patch platform/124-regulator-dont-print-error-when-no-regulator-found.patch.orig can be reverse-applied
make[4]: * /home/lala/openwrt-pcDuino/build_dir/target-arm_cortex-a8+vfpv3_uClibc-0.9.33.2_eabi/linux-sunxi/linux-3.13.7/.quilt_checked Error 1
make[4]: Leaving directory `/home/lala/openwrt-pcDuino/target/linux/sunxi'
make[3]:
* [compile] Error 2
make[3]: Leaving directory `/home/lala/openwrt-pcDuino/target/linux'
make[2]: * [target/linux/compile] Error 2
make[2]: Leaving directory `/home/lala/openwrt-pcDuino'
make[1]:
* /home/lala/openwrt-pcDuino/staging_dir/target-arm_cortex-a8+vfpv3_uClibc-0.9.33.2_eabi/stamp/.target_compile Error 2
make[1]: * Waiting for unfinished jobs....
make[2]: Entering directory `/home/lala/openwrt-pcDuino'
rm -rf /home/lala/openwrt-pcDuino/staging_dir/target-arm_cortex-a8+vfpv3_uClibc-0.9.33.2_eabi/root-sunxi
make[2]: Leaving directory `/home/lala/openwrt-pcDuino'
make[1]: Leaving directory `/home/lala/openwrt-pcDuino'
make:
* [world] 错误 2
who tell me the The solution?

comment:11 Changed 4 years ago by lbthomsen

There were some updates to the OpenWrt trunk yesterday, which made my patch fail (and largely irrelevant I think).

comment:12 Changed 4 years ago by wigyori

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.