Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by hippo@Nov 26 2005, 06:53 AM i have mmc/sd sockets on some of my boards.
and i am going to try out.
the nios spi is not good for mmc/sd.
i am using pio ports instead.
i think using "root=/dev/mmc" is not a good idea.
after the system boot, the mmc/sd card may be unplug, and another be plug in later.
so i am going to keep initramfs as root fs.
the devfs was obsolete, and will be replaced by udev.
i am going to mknod mmc with fixed device number.
i will also check mmc driver from newer kernel.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11174)
--- quote end ---
--- Quote End --- I'm moving away from SD/MMC, because it doesn't seem too supported - on a new version of the board, I will use CF instead, and no CFI since I think it's a waste to have on-board flash. If I can get this initramfs working, then I can just boot from RAM and then mount CF after init. I will try this with windows, but if not, then linux - I am using slackware, so I am only at GCC 3.3.4 - I need to understand the toolchain better first. If I remove that dos2unix line altogether, this is what I get: ------------------------------------------------ Microtronix Linux Extensions Version 1.4, Built June 20, 2005 ------------------------------------------------ make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' no emulation specific options. /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/Makefile:1265: *** commands commence before first target. Stop. make: *** [_all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' if I jsut comment it out with a '#' in front of it, I still get the truncated file warning, and the build fails with: LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/Makefile:703: *** unterminated call to function `if': missing `)'. Stop. make: *** [_all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' Have you tried doing this in windows yourself? Adding the debug statement you told me shows this: unpack_to_rootfs 118ed98+bd813 check 0 Out of curiosity, are those linux binaries that comes with the NIOS II distribution any good? Aren't those part of the toolchain? nios2-elf-gcc for xample..