![]() so it has found the emulated card but isn't getting an interrupt it expects. mmc1: error -110 whilst initialising SD card ![]() Secondly, there are bugs in QEMU's current im圆 sd controller emulation, because if you do that then the guest kernel continuously prints mmc1: Timeout waiting for hardware interrupt. To actually plug in the drive to an emulated sd card you need -drive file=yourfile.img,format=raw,id=mycard -device sd-card,drive=mycard Firstly, your command line isn't actually creating an SD card: the -drive option creates a drive object but doesn't try to plug it in anywhere (because the sabrelite board doesn't define a "default kind of block drive"). So, my actual question: how can I get the root filesystem mounted and operational on Qemu? But am currently interested in getting the IMX6 working on Qemu. I understand that, on an actual physical board, one would have to "format" or partition the MMC (or SD) card, and have u-boot load up the kernel and rootfs into RAM. mmc0: mmc_rescan_try_freq: trying to init card at 100000 Hz mmc2: SDHCI controller on dhc using ADMA mmc0: mmc_rescan_try_freq: trying to init card at 200000 Hz sdhci-esdhc-imx dhc: No vqmmc regulator found sdhci-esdhc-imx dhc: No vmmc regulator found mmc1: SDHCI controller on dhc using ADMA mmc0: mmc_rescan_try_freq: trying to init card at 300000 Hz sdhci-esdhc-imx dhc: could not get ultra high speed state, work on normal mode mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz mmc0: SDHCI controller on dhc using ADMA ![]() Machine model: Freescale i.MX6 DualLite SABRE Smart Device Board CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache CPU: ARMv7 Processor revision 0 (ARMv7), cr=10c5387d So, to try it out I then run qemu as follows (pl scroll horizontally as well to see): qemu-system-arm -m 512 -M sabrelite -kernel zImage -drive file=rfs.img,format=raw -append "console=ttymxc0 rootfstype=ext4 root=/dev/mmcblk0p0 rw rootwait init=/sbin/init " -nographic -dtb im圆dl-sabresd.dtb Looking at the U-Boot config file used by similar boards, I figured to use 'root=/dev/mmcblk0p0' as the root= param for the kernel. (FYI, I have a similar working setup for the ARM Cortex-A9 Versatile Express platform - I do this using my own home-spun embedded Linux system called SEALS). I have successfully cross-compiled and built a 4.1.46 Linux kernel (used the imx_v6_v7_defconfig config file) as well as a simple "skeleton" root filesystem (busybox-based). ![]() Goal: emulate the "sabrelite : Freescale i.MX6 Quad SABRE Lite Board (Cortex A9)" that Qemu specifically supports (doing 'qemu-system-arm -M ?' it shows up). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |