Re: Question about installing latest kvm on arm (cannot boot host Linux)

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

 



If you have checked append dt, you need to do:

cat /path/to/device_tree.dtb >> arch/arm/boot/zImage

and use that as your kernel. Otherwise you need to pass the dt separately.

-Christoffer

On Fri, Sep 7, 2012 at 2:07 AM, shi roger <rogershijicheng@xxxxxxxxx> wrote:
> I will describe the steps I have taken in detail here. If you find anything
> may cause the problem, please tell me, as it still doesn't work after
> modification.
>
> 1. Download kernel from https://github.com/virtualopensystems/linux-kvm-arm,
> download device tree from git://linux-arm.org/arm-dts.git, download default
> kernel config from
> http://www.virtualopensystems.com/media/kvm-resources/host-config
>
> 2. Build cross compiler, set global PATH environment. ( As kernel passes
> compilation, the cross compiler must be installed well.)
>
> 3.   CROSS_COMPILE=arm-unknown-eabi- ARCH=arm make vexpress_defconfig.
>        CROSS_COMPILE=arm-unknown-eabi- ARCH=arm make menuconfig
> CROSS_COMPILE=arm-unknown-eabi- ARCH=arm make uImage -j5
> There's no error in this step
>
> 4. In previous step, I have checked CONFIG_ARCH_VEXPRESS_DT,
> CONFIG_ARM_APPENDED_DTB, and CONFIG_ARM_ATAG_DTB_COMPAT were set to "y".
> Build device tree file.
> "./scripts/dtc/dtc -O dtb -o rtsm_ve-cortex_a15x1.dtb \
> ../arm-dts/fast_models/rtsm_ve-cortex_a15x1.dts"
>
> 5. Download bootloader from
> git://github.com/virtualopensystems/boot-wrapper.git.
> make clean; make;
>
> -------------------------------------------------------------------------------------
> Previous 5 steps are all about building components.
>
> 6. I deploy the host file system in the same machine which runs the
> simulator.
> Ip address is 10.131.250.61.
> /etc/exports file:
> /srv 10.0.0.0/255.0.0.0(rw,sync,no_root_squash,no_subtree_check,insecure)
> I download base file system from
> "http://releases.linaro.org/12.02/ubuntu/oneiric-images/alip/linaro-o-alip-tar-20120221-0.tar.gz";.
> Untar the package and copy the dir to /srv.
>
> 7. Prepare the params file, its content is shown bellow:
>
> motherboard.smsc_91c111.enabled=1
> motherboard.hostbridge.userNetworking=1
> cluster.cpu0.semihosting-cmd_line="--kernel uImage --fdt
> rtsm_ve-cortex_a15x1.dt b -- console=ttyAMA0 mem=512M
> earlyprintk=serial,ttyAMA0 root=/dev/nfs nfsroot=10.131.250.61:/srv/ rw
> ip=10.131.250.62::10.131.250.1:255.255.254.0:arm-kvm::off"
>
> Because my host machine's net port is equipped with 5 ips, I assign
> 10.131.250.62 to fast model simulator.
>
> --
> Best Regards,
> Jicheng Shi
>
>
>
>
> On 2012-9-7, at 上午11:52, Christoffer Dall <c.dall@xxxxxxxxxxxxxxxxxxxxxx>
> wrote:
>
> Try running make vexpress_defconfig (you will need to enable the right
> SMC network adapter to boot), but that should at last give you prints
> early in the boot with earlyprintk.
>
> Also, after you clone the device tree file, you need to create dtb
> files, use this command in the kernel directory:
>
> ./scripts/dtc/dtc -O dtb -o /some/path/to/dtb
> /some/path/to/source/from/git/repo
>
> -Christoffer
>
> On Thu, Sep 6, 2012 at 11:42 PM, shi roger <rogershijicheng@xxxxxxxxx>
> wrote:
>
> After adding earlyprintk, there's no any console output. Should I do some
> specific config when I make menuconfig? My configure file is downloaded from
> http://www.virtualopensystems.com/media/kvm-resources/host-config as the
> guide told me. The same, I'm not sure whether I should modify device tree
> file after clone it from git repository.
>
> --
> Best Regards,
> Jicheng Shi
>
>
>
>
> On 2012-9-7, at 上午12:00, Christoffer Dall <c.dall@xxxxxxxxxxxxxxxxxxxxxx>
> wrote:
>
> try adding earlyprintk to the kernel command line and see if you get
> any console output.
>
> if not, I would double-check the device tree file and the kernel config.
>
> -Christoffer
>
> On Thu, Sep 6, 2012 at 10:23 AM, shi roger <rogershijicheng@xxxxxxxxx>
> wrote:
>
> Hi, everyone.
> I tried to install the latest kvm on arm on arm simulator. After following
> the Development guide from http://systems.cs.columbia.edu/projects/kvm-arm/,
> I stuck in the step named "Testing the host system".
> When I started the simulator and telneted to localhost:5000, there's no
> output from the serial port.
>
> My Host: Debian6.0 x86_64
> The simulator's output is listed bellow:
> ---------------------------
> model_shell
> ~/ARM/FastModelsPortfolio_7.1/examples/RTSM_VE/Build_Cortex-A15x1/Linux-Debug-GCC-4.4/cadi_system_Linux-Debug-GCC-4.4.so
> -f ./params boot-wrapper/linux-system-semi.axf
> terminal_0: Listening for serial connection on port 5000
> terminal_1: Listening for serial connection on port 5001
> terminal_2: Listening for serial connection on port 5002
> terminal_3: Listening for serial connection on port 5003
> INFO: mmc: no image file connected
> Simulation is started
> [bootwrapper] Loaded kernel: uImage
> [bootwrapper] WARNING: Ignoring uImage meta-data
> [bootwrapper] Loaded FDT: rtsm_ve-cortex_a15x1.dtb
> [bootwrapper] Kernel bootargs: console=ttyAMA0 mem=512M root=/dev/nfs
> nfsroot=10.131.250.61:/srv/ rw
> ip=10.131.250.62::10.131.250.1:255.255.254.0:arm-kvm::off
> -----------------------------
>
> BTW, the linux kernel is cloned from columbia repository, not virtual open
> system. It would be nice if you have some idea to fix this problem. I'm glad
> to receive your response. Thanks.
>
> --
> Best Regards,
> Jicheng Shi
>
>
>
>
>
> _______________________________________________
> kvmarm mailing list
> kvmarm@xxxxxxxxxxxxxxxxxxxxx
> https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm
>
>
>

_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux