DRBD Kernel Modules - how to compile?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

DRBD Kernel Modules - how to compile?

Postby FordPrefect » Mon Mar 25, 2013 12:47 pm

Hi,

I got Archlinux installed on some Pogoplugs (http://archlinuxarm.org/platforms/armv5 ... g-series-4)

Until now, nearly everything I wanted worked out of the box, simply by installing the necessary software via pacman.

Now I try to set up a drbd device on two pogoplugs, on each pogo runs a 3.1 Kernel

$this->bbcode_second_pass_code('', 'Linux pogoplug02 3.1.10-13-ARCH #1 PREEMPT Mon Aug 20 15:46:18 UTC 2012 armv5tel GNU/Linux')

After installing (??) the drbd userland tools, I find in /usr/src the following:

$this->bbcode_second_pass_code('', '
/usr/src/linux-3.1.10-13-ARCH/drivers/block/drbd
/usr/src/linux-3.1.10-13-ARCH/drivers/block/drbd/Kconfig
/usr/src/linux-3.1.10-13-ARCH/include/linux/drbd_nl.h
/usr/src/linux-3.1.10-13-ARCH/include/linux/drbd.h
/usr/src/linux-3.1.10-13-ARCH/include/linux/drbd_limits.h
/usr/src/linux-3.1.10-13-ARCH/include/linux/drbd_tag_magic.h
')

But no precompiled kernel Module.

Do I need to set up a complete toolchain in my pc to recompile the kernel, or is there a "simpler way" to get a running drbd.ko Kernel module?

Normaly, on my other servers and desktops I use Debian, so I know how to make a Kernel Debian Package and install it on my systems.
I have no idea how to do that with the help of pacman - or should I recompile the whole kernel as it was done 15 years ago? ;-)

Thanks a lot for your help!

Cheers,

Ford Prefect
FordPrefect
 
Posts: 3
Joined: Mon Mar 25, 2013 12:39 pm

Re: DRBD Kernel Modules - how to compile?

Postby pepedog » Mon Mar 25, 2013 1:28 pm

Is it CONFIG_BLK_DEV_DRBD
How old is your plug initial install? If recent install linux-kirkwood

https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux-kirkwood/config
line 1197
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: DRBD Kernel Modules - how to compile?

Postby FordPrefect » Mon Mar 25, 2013 1:59 pm

Hi,

I think it's the initial Install is from September 2012. Is it simpler to re-install the latest version instead of
upgrading either the kernel itself or the whole system? (I ran in a dead end once, trying to make a "full"
distribution upgrade with pacman)

BTW: No, originally it's not enabled.
$this->bbcode_second_pass_code('', '[root@pogoplug02 linux-3.1.10-13-ARCH]# zcat /proc/config.gz | grep -i DRBD
# DRBD disabled because PROC_FS, INET or CONNECTOR not selected
[root@pogoplug02 linux-3.1.10-13-ARCH]#
')

Cheers,

UG
FordPrefect
 
Posts: 3
Joined: Mon Mar 25, 2013 12:39 pm

Re: DRBD Kernel Modules - how to compile?

Postby FordPrefect » Mon Mar 25, 2013 3:46 pm

After updating to linux-kirkwood (my uboot was new enough it seems - i ran into another problem when
trying to state the r0 drdb device up and running.....:

Seems not too good.

$this->bbcode_second_pass_code('', '[root@pogoplug02 rules.d]# drbdadm up r0
2013 Mar 25 10:08:16 pogoplug02 [ 763.136780] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
2013 Mar 25 10:08:16 pogoplug02 [ 763.204440] Process drbdsetup (pid: 662, stack limit = 0xc49e21b8)
2013 Mar 25 10:08:16 pogoplug02 [ 763.210590] Stack: (0xc49e3cb8 to 0xc49e4000)
2013 Mar 25 10:08:16 pogoplug02 [ 763.214930] 3ca0: 00000001 00000009
2013 Mar 25 10:08:16 pogoplug02 [ 763.223077] 3cc0: 00000000 c7801100 c49e3d74 c00e48dc c780aab0 c75ba1c0 00000083 c70ae800
2013 Mar 25 10:08:16 pogoplug02 [ 763.231224] 3ce0: c7015400 c2f0f1e0 0000001c c2f0f240 c49e3d74 c00fc730 c071cdc4 c7015c14
2013 Mar 25 10:08:16 pogoplug02 [ 763.239371] 3d00: c70ae800 bf035f84 00000000 d1edfe23 c0634590 00000000 00000001 c70623b0
2013 Mar 25 10:08:16 pogoplug02 [ 763.247517] 3d20: c6ea5c30 c7062380 00000000 00000000 00000003 c7015c1c 00000034 0000000d
2013 Mar 25 10:08:16 pogoplug02 [ 763.255666] 3d40: bf045e6c bf0460f0 c7015c14 00000000 bf045f88 c7156000 0000001c c065b200
2013 Mar 25 10:08:16 pogoplug02 [ 763.263815] 3d60: bf045e6c c03ef79c bf045e6c 001723d9 c082f160 51506861 00000296 c7015c00
2013 Mar 25 10:08:16 pogoplug02 [ 763.271961] 3d80: c7015c10 c7015c14 c727b700 c065b200 00000000 00000000 c03c21b8 c7015c00
2013 Mar 25 10:08:16 pogoplug02 [ 763.280109] 3da0: c7156000 c03ef5cc c7015600 c49e3ddc c49e3e50 00000000 00000050 c03eec8c
2013 Mar 25 10:08:16 pogoplug02 [ 763.288257] 3dc0: c7156000 c7156000 00000050 c03ef5c0 c786e400 c03ee694 c7015600 7fffffff
2013 Mar 25 10:08:16 pogoplug02 [ 763.296403] 3de0: 00000000 c7156000 00000000 c7015600 00000000 c49e3e70 00000000 c03eeac0
2013 Mar 25 10:08:16 pogoplug02 [ 763.304551] 3e00: c7047300 c2f0fd20 c22aadb8 c7bb9000 c5c89f80 00000000 00000296 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.312699] 3e20: 00000000 00000000 00029064 00000050 c7772b00 c49e3ec0 c49e3e70 c49e3eb8
2013 Mar 25 10:08:16 pogoplug02 [ 763.320846] 3e40: c49e2000 00000001 00029064 c03b8ae0 00000028 c2f0fd20 c7047338 00000050
2013 Mar 25 10:08:16 pogoplug02 [ 763.328993] 3e60: c7772b00 00000028 c49e3e0c c49e3e70 00000000 00000000 c49e3eb8 00000001
2013 Mar 25 10:08:16 pogoplug02 [ 763.337141] 3e80: 00000000 00000000 00000000 c49e3ec0 bed719a0 c49e3ec0 fffffdee c49e3f80
2013 Mar 25 10:08:16 pogoplug02 [ 763.345288] 3ea0: 00000050 c706a8c0 c49e3ec0 c00c9a44 00000000 00000000 000290a0 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.353435] 3ec0: 00000000 00000000 00000000 00000001 ffffffff c706a8c0 00000000 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.361582] 3ee0: 00000000 00000000 c7062380 00000000 00000000 00000000 00000000 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.369730] 3f00: c49e3e50 00000000 00000050 00000000 00000050 00000000 00000000 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.377876] 3f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2013 Mar 25 10:08:16 pogoplug02 [ 763.386026] 3f40: 00029050 c706a8c0 00029050 c49e3f80 00000000 00000050 00000050 c00ca170
2013 Mar 25 10:08:16 pogoplug02 [ 763.394173] 3f60: c706a8c0 00029050 00000000 00000000 c706a8c0 00000000 00029050 c00ca458
2013 Mar 25 10:08:16 pogoplug02 [ 763.402320] 3f80: 00000000 00000000 00000050 00029048 00000050 00029050 00000004 c0008e24
2013 Mar 25 10:08:16 pogoplug02 [ 763.410468] 3fa0: 00000000 c0008cc0 00029048 00000050 00000008 00029050 00000050 51506861
2013 Mar 25 10:08:16 pogoplug02 [ 763.418616] 3fc0: 00029048 00000050 00029050 00000004 0002906c bed71a5c 00000006 00029064
2013 Mar 25 10:08:16 pogoplug02 [ 763.426764] 3fe0: 00000000 bed71a04 0000a0cc b6efd06c 60000010 00000008 07ffe831 07ffec31
2013 Mar 25 10:08:16 pogoplug02 [ 763.541374] Code: e1a02007 ebfffcb6 e3500000 1a000000 (e7f001f2)
Command 'drbdsetup connect r0 ipv4:192.168.128.167:7788 ipv4:192.168.164.241:7788 --protocol=C --allow-two-primaries=yes' did not terminate within 5 seconds
[root@pogoplug02 rules.d]# ls /dev/drbd
')
FordPrefect
 
Posts: 3
Joined: Mon Mar 25, 2013 12:39 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests