WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tce-load gives me "mount: can't setup loop device"  (Read 2152 times)

Offline christianix

  • Newbie
  • *
  • Posts: 9
tce-load gives me "mount: can't setup loop device"
« on: August 01, 2016, 01:33:33 PM »
I'm running PiCore 7 in Qemu:

Code: [Select]
qemu-system-arm -kernel zImage -cpu arm1176 -m 256 -M versatilepb -no-reboot -initrd 7.0v7.gz -hda hda.img -append "root=/dev/ram0 elevator=deadline rootwait quiet nozswap nortc noswap"

hda.img has a FAT partition with an empty tce folder.

When I try to install "Midnight commander" with:

 
Code: [Select]
tce-load -wi mc
I get the error: mount: can't setup loop device: No such device or address

Any idea wha't going wrong?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: tce-load gives me "mount: can't setup loop device"
« Reply #1 on: August 01, 2016, 02:15:32 PM »
Running piCore-7 on Qemu is not supported.


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline christianix

  • Newbie
  • *
  • Posts: 9
Re: tce-load gives me "mount: can't setup loop device"
« Reply #2 on: August 07, 2016, 05:54:09 AM »
Indeed, it works with the real image. But it would be nice to have a qemu version (again).

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: tce-load gives me "mount: can't setup loop device"
« Reply #3 on: August 07, 2016, 06:23:09 AM »
Indeed, it works with the real image. But it would be nice to have a qemu version (again).

Why?

If you really need, you can make your custom kernel. I'm not sure that 4.4.x with Devicetree can be patched for QEMU, most likely you have to go back to an old kernel before Devicetree support.

QEMU patches and guides available on the Internet.
« Last Edit: August 07, 2016, 06:27:17 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."