[coreboot] VIA Epia-MII CF question

Markus Törnqvist mjt at nysv.org
Sat Apr 4 22:38:32 CEST 2009


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
root at install:/target/boot/initrd# zcat ../initrd.img-2.6.24-22-generic | cpio -i
32850 blocks


### Copy missing things over
root at 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 at install:/target/boot/initrd# cp /etc/udev/rules.d/85-pcmcia.rules etc/udev/rules.d/

### Copy helpers
root at 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 at install:/target/boot/initrd# cp -p /lib/libsysfs.so.2* lib/

### Copy options
root at install:/target/boot/initrd# mkdir etc/pcmcia
root at install:/target/boot/initrd# cp /etc/pcmcia/config.opts etc/pcmcia/


### Create initrd
root at install:/target/boot/initrd# find . | cpio -H newc -o > ../initrd.img-2.6.24-22-generic.mjt.cpio
root at install:/target/boot/initrd# cd ..
root at install:/target/boot# gzip initrd.img-2.6.24-22-generic.mjt.cpio
root at install:/target/boot# cd ..
root at install:/target# ln -sf boot/initrd.img-2.6.24-22-generic.mjt.cpio.gz initrd.img

Thanks!

-- 
mjt





More information about the coreboot mailing list