Modify

Opened 7 years ago

Closed 7 years ago

#8384 closed defect (fixed)

kmod-md-raid456: build error on 2.6.36

Reported by: maddes Owned by: jow
Priority: high Milestone:
Component: kernel Version: Trunk
Keywords: Cc:

Description

When building all packages on current trunk then kernel compilation stops on kmod-md-raid456.
It seems the path to raid6_pq.ko is wrong.
I assume lib/raid6/raid6_pq.ko from the log.

Revision was r24312 with platform Orion and kernel 2.6.36.1.

File for kmod-md-raid456 is package/kernel/modules/block.mk

...
  LD [M]  lib/raid6/raid6_pq.ko
....
cp -fpR -L /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/xor.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/async_tx/async_tx.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/async_tx/async_memcpy.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/async_tx/async_xor.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/async_tx/async_pq.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/crypto/async_tx/async_raid6_recov.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/drivers/md/raid6_pq.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/drivers/md/raid456.ko /home/maddes/openwrt/trunk/build_dir/linux-orion_generic/packages/ipkg-orion/kmod-md-raid456/lib/modules/2.6.36.1/
cp: cannot stat `/home/maddes/openwrt/trunk/build_dir/linux-orion_generic/linux-2.6.36.1/drivers/md/raid6_pq.ko': No such file or directory
make[3]: *** [/home/maddes/openwrt/trunk/bin/orion/packages/kmod-md-raid456_2.6.36.1-1_orion.ipk] Error 1
make[3]: Leaving directory `/home/maddes/openwrt/trunk/package/kernel'
   ERROR: package/kernel failed to build.

Attachments (1)

trunk_raid6.2.patch (1.0 KB) - added by maddes 7 years ago.
-p0 patch for trunk to fix kmod-md-raid456 for 2.6.36+

Download all attachments as: .zip

Change History (11)

comment:1 Changed 7 years ago by maddes

The following attached patch could be a solution. Untested yet.
Adopted from r22954.

comment:2 Changed 7 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:3 Changed 7 years ago by framer99

i'm thinking the raid6_pq.ko module is just not getting built, it really should be in drivers/md. i'm running an orion build now to check

comment:4 Changed 7 years ago by maddes

The patch was stupid (remoevd). Currently testing a newer one.

comment:5 Changed 7 years ago by maddes

raid6_pq.ko is build and I got a working patch now (attached).

Changed 7 years ago by maddes

-p0 patch for trunk to fix kmod-md-raid456 for 2.6.36+

comment:6 Changed 7 years ago by anonymous

nice job
i forgot to check on that build i was doing.
glad you got it fixed

comment:7 Changed 7 years ago by maddes

Also works with 2.6.32 (tested on Orion).
I think the patch is good for trunk.

comment:8 Changed 7 years ago by maddes

Checked 2.6.35 and works fine too (uses old location). So the checks of the patch are 100%.

comment:9 Changed 7 years ago by framer99

patch fixes broken build with 2.6.36.1 for me

comment:10 Changed 7 years ago by jow

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

Committed in r24394 - thanks!

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.