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.html 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/documentation/HOWTO/EPIA-M-howto#L467 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 r...@install:/target/boot/initrd# zcat ../initrd.img-2.6.24-22-generic | cpio -i 32850 blocks ### Copy missing things over r...@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 r...@install:/target/boot/initrd# cp /etc/udev/rules.d/85-pcmcia.rules etc/udev/rules.d/ ### Copy helpers r...@install:/target/boot/initrd# cp /lib/udev/pcmcia-socket-startup /lib/udev/pcmcia-check-broken-cis lib/udev/ ### Copy libsysfs so we can execute r...@install:/target/boot/initrd# cp -p /lib/libsysfs.so.2* lib/ ### Copy options r...@install:/target/boot/initrd# mkdir etc/pcmcia r...@install:/target/boot/initrd# cp /etc/pcmcia/config.opts etc/pcmcia/ ### Create initrd r...@install:/target/boot/initrd# find . | cpio -H newc -o > ../initrd.img-2.6.24-22-generic.mjt.cpio r...@install:/target/boot/initrd# cd .. r...@install:/target/boot# gzip initrd.img-2.6.24-22-generic.mjt.cpio r...@install:/target/boot# cd .. r...@install:/target# ln -sf boot/initrd.img-2.6.24-22-generic.mjt.cpio.gz initrd.img Thanks! -- mjt -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

