custom kernel - modification gone after update

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

custom kernel - modification gone after update

Postby captain » Sun Jun 03, 2012 8:33 pm

Hi all,

I never had the need to compile the kernel myself but needed dm_mod on my raspberry as all my usb pen drives are encrypted with LUKS and I wasn't able to mount them.
So following these instructions:http://elinux.org/RPi_Kernel_Compilation, dm_mod and thus mounting my drives was working fine.
At some point I dared to to a system update with $this->bbcode_second_pass_code('', 'pacman -Syu') though and my dm_mod was missing again.

This might be an expected behavior as the kernel might get updated?
But aren't the files on git up to date?

Also, I still need dm_mod to work, so is there a way to get updates and still keep the modified kernel?

thanks!
captain
 
Posts: 15
Joined: Sun Jun 03, 2012 6:31 pm

Re: custom kernel - modification gone after update

Postby pepedog » Sun Jun 03, 2012 8:54 pm

Which git up to date are you talking about.
Never mind that, yes, you could have prevented kernel updates by altering pacman.conf file, better sill ask for yor addition here
https://github.com/archlinuxarm/PKGBUILDs/issues/167
It will be in next build
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: custom kernel - modification gone after update

Postby captain » Sun Jun 03, 2012 11:14 pm

Thanks!

Editing /etc/pacman.conf "IgnorePkg = linux" seems to work. Not pretty I suppose, but it's working at least :)
I'll have to figure out what I changed... made a note somewhere :lol:
captain
 
Posts: 15
Joined: Sun Jun 03, 2012 6:31 pm

Re: custom kernel - modification gone after update

Postby pepedog » Mon Jun 04, 2012 12:55 pm

I can't find this dm_mod anywhere
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: custom kernel - modification gone after update

Postby captain » Mon Jun 04, 2012 2:43 pm

I used $this->bbcode_second_pass_code('', 'make menuconfig') to enable this... The path would be: Device Drivers -> Multiple devices driver support (RAID and LVM) -> enable Device mapper support + Crypt target support

in the .config file they are found here:
$this->bbcode_second_pass_code('', 'CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=y')

I'm not sure the crypt is needed, but I couldn't find any definite info, so I included it as it sounded right ;) and I didn't feel like waiting another x hours for make...
captain
 
Posts: 15
Joined: Sun Jun 03, 2012 6:31 pm

Re: custom kernel - modification gone after update

Postby pepedog » Mon Jun 04, 2012 3:13 pm

Funnily enough, I building packages now (modules, not built in)
CONFIG_BLK_DEV_DM=m
CONFIG_DM_CRYPT=m
Will give you link later, but it will be in repo in a couple of days
Cersion number will appear to have gone back, forgot to do it, repo will be fine
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: custom kernel - modification gone after update

Postby pepedog » Mon Jun 04, 2012 3:26 pm

Just finished building
$this->bbcode_second_pass_code('', 'pacman -U http://myplugbox.com/captain/linux-headers-raspberrypi-3.1.9-17-arm.pkg.tar.xz http://myplugbox.com/captain/linux-raspberrypi-3.1.9-17-arm.pkg.tar.xz')
Let me know if ok
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: custom kernel - modification gone after update

Postby captain » Mon Jun 04, 2012 10:12 pm

Thanks pepedog,

when I do that I get this warning:
$this->bbcode_second_pass_code('', 'loading packages...
warning: downgrading package linux-headers-raspberrypi (3.1.9-18 => 3.1.9-17)
warning: downgrading package linux-raspberrypi (3.1.9-18 => 3.1.9-17)
resolving dependencies...
looking for inter-conflicts...

Targets (2): linux-headers-raspberrypi-3.1.9-17 linux-raspberrypi-3.1.9-17

Total Installed Size: 51.50 MiB
Net Upgrade Size: -0.21 MiB
')

so, i guess the kernel I compiled is newer?
I'd love to try what you did, but how easy will that be reversed?
captain
 
Posts: 15
Joined: Sun Jun 03, 2012 6:31 pm

Re: custom kernel - modification gone after update

Postby pepedog » Mon Jun 04, 2012 10:50 pm

The kernel is 3.1.9
I forgot only to increment pkg version to 19
It's not really downgrading
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: custom kernel - modification gone after update

Postby captain » Mon Jun 04, 2012 11:33 pm

All right...
Did as you asked - rebooted and tried mounting my drive:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# cryptsetup luksOpen /dev/sda1 Vault.2
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Cannot initialize device-mapper. Is dm_mod kernel module loaded?
[root@alarmpi ~]# modprobe dm_mod
FATAL: Module dm_mod not found.
')

dm_mod is missing again :D At least, I still have that compiled kernel sitting in a folder :lol:

EDIT: I put my .config file here - maybe you can figure out what's happening here...
Jesus - this was painful... finally accepted it as a tar...
Attachments
.config.tar
(70 KiB) Downloaded 472 times
captain
 
Posts: 15
Joined: Sun Jun 03, 2012 6:31 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests