On Sat, Apr 04, 2009 at 12:57:26AM +0300, Markus T�rnqvist wrote:
Hi again!
[...]
The wiki "lets me" either use the CF slot as standard ide or through pcmcia-utils.
This standard-ide approach, as said, did not work.
Is the wiki wrong?
Did some Sherlocking around and it seems the wiki is outdated. And slightly wrong.
The mentioned scripts there, mkcfinitrd and pcinitrd are apparently for pcmcia-cs, because they use cardmgr, which was apparently deprecated at kernel 2.6.13
http://www.kernel.org/pub/linux/utils/kernel/pcmcia/cardmgr-to-pcmciautils.h...
Also, the wiki says "the mkcfinitrd script is at the end of the howto", which it is not, and was found only through Google at http://tracker.coreboot.org/trac/coreboot/browser/trunk/coreboot-v2/document...
There's a HOWTO which is really helpful when doing pcmcia stuff for the first time http://www.kernel.org/pub/linux/utils/kernel/pcmcia/howto.html
and itwould be nice if the wiki reflected how this is relevant to booting off the cf nowadays.
Also the parts about probing for ide don't seem to be true, no such bootparam is needed here.
So here's what had to be done for this to work with Ubuntu, should be pretty distro-generic even for non-debian-based systems:
### Extract initrd for work root@install:/target/boot/initrd# zcat ../initrd.img-2.6.24-22-generic | cpio -i 32850 blocks
### Copy missing things over root@install:/target/boot/initrd# cp /lib/modules/2.6.24-22-generic/kernel/drivers/pcmcia/yenta_socket.ko /lib/modules/2.6.24-22-generic/kernel/drivers/pcmcia/rsrc_nonstatic.ko lib/modules/2.6.24-22-generic/kernel/drivers/pcmcia/
### Copy udev file root@install:/target/boot/initrd# cp /etc/udev/rules.d/85-pcmcia.rules etc/udev/rules.d/
### Copy helpers root@install:/target/boot/initrd# cp /lib/udev/pcmcia-socket-startup /lib/udev/pcmcia-check-broken-cis lib/udev/
### Copy libsysfs so we can execute root@install:/target/boot/initrd# cp -p /lib/libsysfs.so.2* lib/
### Copy options root@install:/target/boot/initrd# mkdir etc/pcmcia root@install:/target/boot/initrd# cp /etc/pcmcia/config.opts etc/pcmcia/
### Create initrd root@install:/target/boot/initrd# find . | cpio -H newc -o > ../initrd.img-2.6.24-22-generic.mjt.cpio root@install:/target/boot/initrd# cd .. root@install:/target/boot# gzip initrd.img-2.6.24-22-generic.mjt.cpio root@install:/target/boot# cd .. root@install:/target# ln -sf boot/initrd.img-2.6.24-22-generic.mjt.cpio.gz initrd.img
Thanks!