[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [XenARM] Filesystem/rootfs for Dom0 to use with Versatile Express



On Tue, 2012-03-13 at 15:04 +0000, Jenny Smith wrote:
> On Tue, Mar 13, 2012 at 2:58 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> > BTW, I've added xen-devel@. xen-arm list is more for the Xen PV ARM port
> > so I've bcc'd it.
> >
> > On Tue, 2012-03-13 at 14:42 +0000, Jenny Smith wrote:
> >> On Tue, Mar 13, 2012 at 1:57 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> 
> >> wrote:
> >> > (please don't top post, it destroys the flow of the conversation)
> >> >
> >> > On Tue, 2012-03-13 at 12:58 +0000, Jenny Smith wrote:
> >> >> I'm using the Xen code mentioned here:
> >> >> http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions
> >> >
> >> > Alongside the Fast Models download you can also download a "3rd party
> >> > IP" pack which includes a Linux rootfs. On my system this ended up
> >> > installed as
> >> > FastModels/FastModelsPortfolio_7.0/images/RTSM_VE_Linux/filesystems/armv5t_min_VE_V7.image
> >> >
> >>
> >> Thanks, that's helpful.
> >>
> >> Can I not attach this image directly to the emulator as MMC card? E.g.
> >> my parameters contain
> >>
> >>  -C 
> >> motherboard.mmc.p_mmc_file=~/ARM/FastModelsPortfolio_7.0/images/RTSM_VE_Linux/filesystems/armv5t_min_VE_V7.image
> >
> > That basically what I do but I use the full path and not ~ since I
> > wasn't sure model_shell interprets "~". I guess based on this evidence
> > it does...
> >
> >> When Dom0 boots I get the following error:
> >>
> >> [    1.408378] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> >> [    1.451631] brd: module loaded
> >> [    1.465016] mousedev: PS/2 mouse device common for all mice
> >> [    1.482716] i2c /dev entries driver
> >> [    1.494715] mmci-pl18x mb:mmci: mmc0: PL180 manf 41 rev0 at
> >> 0x1c050000 irq 41,42 (pio)
> >> [    1.519979] sdhci: Secure Digital Host Controller Interface driver
> >> [    1.538558] sdhci: Copyright(c) Pierre Ossman
> >> [    1.551852] sdhci-pltfm: SDHCI platform and OF driver helper
> >> [    1.569288] TCP cubic registered
> >> [    1.578997] NET: Registered protocol family 17
> >> [    1.640530] mmc0: new MMC card at address 0001
> >> [    1.654559] mmcblk0: mmc0:0001 ARMmm256 MiB
> >> [    1.670723]  mmcblk0: unknown partition table
> >> [    1.795645] input: AT Raw Set 2 keyboard as
> >> /devices/motherboard.1/iofpga.2/1c060000.kmi/serio0/input/input0
> >> [    2.825999] input: PS/2 Generic Mouse as
> >> /devices/motherboard.1/iofpga.2/1c070000.kmi/serio1/input/input1
> >> [    2.863617] EXT2-fs (mmcblk0): warning: mounting unchecked fs,
> >> running e2fsck is recommended
> >> [    2.889322] VFS: Mounted root (ext2 filesystem) on device 179:0.
> >> [    2.909266] Freeing init memory: 128K
> >> [    3.847136] Kernel panic - not syncing: Attempted to kill init!
> >
> > So it looks like the FS was mounted OK but for some reason /sbin/init
> > didn't run. Maybe try adding "init=/bin/sh" to your command line as a
> > first test?
> >
> > Does "-C cluster.cpu0.vfp-enable_at_reset=1" help?
> 
> Indeed. The additional emulator parameters make it boot up into
> BusyBox and then adding the "init=/bin/sh" to the kernel command line
> gives me a working root shell in Dom0.

Great! I really should knuckle down and find the appropriate CP reg to
do this in the hypervisor! (I think I found it once, but now that I want
to make the patch I can't find it again :-()

> Thanks for your help.

Thanks for testing!

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.