Deploying the AGL demo Image #help


Parth Dode
 

Okay so , I want to get started with emulating AGL on my debian system
1] I go to Developing an AGL image section 
 --> at the preparing your build host part , I come across this  "NOTE: This entire section presumes you want to build an image. You can skip the entire build process if you want to use a ready-made development image. The [supported images][AGL snapshots master latest] exist for several boards as well as for the Quick EMUlator (QEMU). See the “Downloading an Image” section for more information on the ready-made images."

2]I go to Downloading an Image part (of the Developing an Application section)
-->  I follow the steps , I use wget to download this file "bzImage-qemux86-64.bin"  which is an 8.1MB file , from "halibut/8.0.3/qemux86-64/deploy/images/qemux86-64/'

3]Next , Download SDK Installer part (of the Developing an Application section)
 --> I follow the steps ,use wget to download  ""poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-corei7-64-toolchain-8.0.3.sh""   which is a 700.9MB file, from "halibut/8.0.3/qemux86-64/deploy/sdk/"             

4]Next ,  Create Bootable Media part (of the Developing an Application section)
--> I come across  "Deploying the AGL Demo Image” for emulation images" I click on link

5]Building for Emulation part (of the Developing an AGL image)
-->  I read it , it builds the image and puts it in "deploy/images/qemux86-64/"   as   ""  agl-demo-platform-qemux86-64.vmdk.xz ""
but instead of building it , I can download it from the prebuilt images "https://mirrors.edge.kernel.org/AGL/release/halibut/8.0.3/qemux86-64/deploy/images/qemux86-64/"

--> here I cant find any file that ends in " .vmdk.xz " so I am downloading "
agl-demo-platform-crosssdk-qemux86-64.wic.vmdk

I dont know If Im on the right track , please advice .
Cheers,
Parth Dode


Parth Dode
 
Edited

I downloaded ""agl-demo-platform-crosssdk-qemux86-64.wic.vmdk"  

then I ran this -->
qemu-system-x86_64 -enable-kvm -m 2048 \
    -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk \
    -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
    -vga virtio -show-cursor \
    -device virtio-rng-pci \
    -serial mon:stdio -serial null \
    -soundhw hda \
    -net nic,vlan=0 \
    -net user,hostfwd=tcp::2222-:22



but my console returned :  Invalid parameter 'vlan'

so apparently vlan is deprecated in qemu since version 2.9.0


Sébastien Douheret
 

Hello,

I use quite equivalent command (just forward some other host ports) but without vlan=0.

So simply remove vlan :

qemu-system-x86_64 -enable-kvm -m 2048 \
    -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk \
    -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
    -vga virtio -show-cursor \
    -device virtio-rng-pci \
    -serial mon:stdio -serial null \
    -soundhw hda \
    -net nic \
    -net user,hostfwd=tcp::2222-:22

I will update AGL documentation to reflect this change.

HTH,
Sebastien.


On 26/12/2019 21:25, Parth Dode wrote:

[Edited Message Follows]

I downloaded ""agl-demo-platform-crosssdk-qemux86-64.wic.vmdk"  

then I ran this -->
qemu-system-x86_64 -enable-kvm -m 2048 \
    -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk \
    -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
    -vga virtio -show-cursor \
    -device virtio-rng-pci \
    -serial mon:stdio -serial null \
    -soundhw hda \
    -net nic,vlan=0 \
    -net user,hostfwd=tcp::2222-:22



but my console returned :  Invalid parameter 'vlan'

so apparently vlan is deprecated in qemu since version 2.9.0
-- 
sebastien.douheret@... - www.iot.bzh


Parth Dode
 

Hey Sébastien Douheret, thank you for replying , it did kinda help.
Well, yea I did try that , well anyway I got this result, I attached it below. 
This .vmdk file  is a part of halibut , now I'll try Icefish for the same . Dont understand what isnt working out.

Cheers,
Parth Dode


Ronan
 

Hi Parth Dode,

your issue is strange, I'm going to test the VM on my host.

Image source:

# wget https://mirrors.edge.kernel.org/AGL/release/halibut/8.0.3/qemux86-64/deploy/images/qemux86-64/agl-demo-platform-crosssdk-qemux86-64.wic.vmdk

Command line:

# qemu-system-x86_64 -enable-kvm -m 2048 \
    -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk \
    -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
    -vga virtio -show-cursor \
    -device virtio-rng-pci \
    -serial mon:stdio -serial null \
    -soundhw hda \
    -net nic \
    -net user,hostfwd=tcp::2222-:22

1) I see SYSLINUX on your log, do you try to do the same thing without syslinux?


PS:You should creatye a Jira on:

https://jira.automotivelinux.org/

(it's very quick).

- Give your OS host system.

- Your Qemu version

- your kernel version



Regards,

Ronan Le Martret [IoT.bzh]



Le 28/12/2019 à 03:48, Parth Dode a écrit :
Hey Sébastien Douheret, thank you for replying , it did kinda help.
Well, yea I did try that , well anyway I got this result, I attached it below. 
This .vmdk file  is a part of halibut , now I'll try Icefish for the same . Dont understand what isnt working out.

Cheers,
Parth Dode
-- 
Ronan Le Martret [IoT.bzh]


Parth Dode
 

Well good sir , I did create one 

https://jira.automotivelinux.org/browse/SPEC-3082?filter=-3

Thanks for the advice.

Cheers,
Parth Dode