Welcome! Log In Create A New Profile

Advanced

Mapper is missing /dev/ in Whiite

Posted by badbob 
Mapper is missing /dev/ in Whiite
February 24, 2010 03:28AM
Hi guys,

Its looking quite good with the Wii Linux Crypto Filesverver. Just the crypto (luks) is making trouble. I can't crypt with luksformat -t ext /dev/sda1 because he told me that the kernel won't support aes-cbc-essiv:sha256 . Error: Failed to setup dm-crypt mapping.

More errors from dmsetup targets:

Command failed: No key available with this passphrase.
dmcrypt targets says:
No device mapper found.
Is device mapper driver missing from kernel?
Failure to communicate with kernel-device mapper driver.
/proc/misc: Not entry for device-mapper driver found.
Incompatible libdevmapper 1.02.27(compat) and kernel driver.

After some google this came out:

[www.saout.de]

You are seeing
Failed to setup dm-crypt mapping.
Failed to read from key storage
dm-crypt does not work properly.
1. Check if you have a /dev/ tree, including /dev/mapper/control.
ghanima:~$ ls -l /dev/mapper/control
crw-r----- 1 root root 10, 63 Jan 1 1970 /dev/mapper/control
(char device, major 10, minor 63)^
If it's missing, you probably lack a complete /dev tree, so copy it somewhere or use devfs.
2. Check if you have device mapper and dm-crypt included in the kernel. Run
dmsetup targets
If don't, see a line like "crypt v1.1.0" or the command fails, compile device mapper and the crypt target into your kernel.
3. Check if you have the cipher you want to use included in the kernel. Run
cat /proc/crypto
4. If you are using <2.6.10, supply -c "aes-plain" on partition creation.

Looks like that Whiite hasn't the dev mapper and /dev/mapper/controll in. Is there a whiite version or a possibilty (maybe with modprobe) to get it in there? Or must I switch to something other like gentoo?

Its a complicated question for a guy with little low level experience like me. I would be realy happy if you would answer the question^^.

The data access via ssh works quite good btw. Thank you for your hard work creating gc linux and for the hard work to hack the wii (TP Exploit 4tw ;)).
Re: Mapper is missing /dev/ in Whiite
February 25, 2010 03:29PM
Fixed with building a new kernel.

Used this guide:

[www.gc-linux.org]

Downloaded kernel sources (2.6.32 without any other number from the mirros) on the wii.
Unpack the kernel into /usr/src/
apt-get install gcc on the wii.
cd /usr/bin/
Used the kernel patch on the wii
make on the wii
make modules_install on the wii
Copy the resulting file (wii.img or something) to your computer (with rcp /scp command).

If you start Linux with the HB Channel ("default" is bootmii) you have to open the with a hex editor like ghex and rplace the mcc path wie the rvlsda1 path (copy the area from the kernel image [boot.elf] from whiite linux via hexeditor into the new kernel image).

[www.gc-linux.org]

mini via bootmii: /dev/mmcblk0p2
IOS / HBC: /dev/rvlsda2
Re: Mapper is missing /dev/ in Whiite
February 25, 2010 05:54PM
It may help too linking to the gc-linux-devel ML threads where this was discussed:

[thread.gmane.org]
[thread.gmane.org]

Cheers,
isobel
Sorry, only registered users may post in this forum.

Click here to login