Thanks. I use dhcp instead of static IP, but it still hangs at the same point. From the output, we can get that "rootpath" equals to null, not "/srv/nfsroot". I'm digging into the kernel to find out what's happening inside. If you know how to solve it, I'm glad to share the solution.
-- Best Regards, Jicheng Shi
On 13 September 2012 08:47, shi roger <rogershijicheng@xxxxxxxxx> wrote:
My nfs is hosting on the same machine where the simulator is running. Its ip is 10.131.250.61. Can I assign a different ip such as 10.131.250.62 for the simulator's kernel? Because the user guide's example is dhcp configured, I'm not sure whether it's correct here.
params file: motherboard.smsc_91c111.enabled=1 motherboard.hostbridge.userNetworking=1 cluster.cpu0.semihosting-cmd_line="--kernel ./linux-kvm-arm/arch/arm/boot/uImage --fdt ./linux-kvm-arm/rtsm_ve-cortex_a15x1.dtb -- console=ttyAMA0 mem=256M earlyprintk=serial,ttyAMA0,keep root=/dev/nfs nfsroot=10.131.250.61:/srv/nfsroot rw ip=10.131.250.62::10.131.250.1:255.255.254.0:arm-kvm::off"
I'm afraid this won't work. The Fast Model's 'userNetworking' creates a little (emulated) network with the ARM system on it and also a simulated router/DHCP server. So the IP address for the ARM system should be in 172.20.51.x -- it has nothing to do with the IP address ranges your host system uses.
You could in theory use explicit static IP assignment on the kernel command line, but it is much easier just to make your guest kernel use DHCP as the HOWTO recommends -- the model's built in emulated DHCP server will assign the ARM kernel a working IP address.
(If you really need 'bridged' networking where the emulated ARM system appears directly on your host network you will need to investigate the TUN/TAP networking support. However this is more complicated to configure and you probably don't need it.)
-- PMM
|
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm