Hi again!
Another point from http://www.coreboot.org/VIA_EPIA-MII is the need to recreate the initrd.
When I install the system with Ubuntu's 2.6.24-22-generic kernel and initrd, the installation environment recognizes the cf as ata3.
There it works.
When I boot through FILO, using the below line, no such luck.
CONFIG_AUTOBOOT_FILE="hde1:/vmlinuz initrd=/initrd.img root=/dev/sdb1"
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?
Can there be something wrong with FILO that would cause this ata3 not found?
PS:
After ata1/ata2 detection, I get dropped into an initramfs shell, missing the root device node.
I couldn't find anything about pcmcia-utils in the initrd, which would screw the bus up.
I then created a modified initrd with yenta_socket and friends, and pata_pcmcia didn't not get automatically installed.
On manual installation of everything that was involved in the installation, like pata_pcmcia and whatever, nothing happened. (!)
Anything?
Thanks!
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!
On Sat, Apr 4, 2009 at 4:38 PM, Markus Törnqvist mjt@nysv.org wrote:
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.
If you have a little time, please contact Ron Minnich or Stefan Reinauer about getting a wiki account and update the wiki page(s).
Thanks, Corey