Reagaring Genode and USB Armory

Agrawal, Utkarsh utkarsh.agrawal at ...423...
Thu Apr 28 21:10:50 CEST 2016


Hello,

I think you missed to attach the log. :)

* I have been using the prebuilt Linux. I again built everything by following the instructions you mentioned. The UART is still exactly the same.

* I used the Uboot as mentioned at [1].

* I am building Genode on Ubuntu. I tried to connect to the device on Ubuntu and Mac OS X. No luck.

* Those lines are still missing in the log.

After I am done with building genode, and the sd-card is prepared, I followed the instructions at [2], and [3].

I am not sure if I am supposed to add an entry to /etc/network/interfaces in genode, as there are no usb0 entry there.

Also, I have attached the script at [4] which I am using to create the image. Save it as "<filename>.sh", and run with "sudo". I hope "sudo" is not screwing up something.

Latest log is at [5].

Thank You
Utkarsh

[1] https://github.com/genodelabs/genode/blob/master/repos/os/run/tz_vmm.run#L30
[2] https://github.com/inversepath/usbarmory/wiki/Host-communication#cdc-ethernet
[3] https://github.com/inversepath/usbarmory/wiki/Host-communication#setup--connection-sharing-linux
[4] https://codeshare.io/aGBbi
[5] https://codeshare.io/BDPxf


________________________________________
From: Agrawal, Utkarsh
Sent: Wednesday, April 27, 2016 1:15 AM
To: genode-main at lists.sourceforge.net
Subject: Re: Reagaring Genode and USB Armory

Hello,

The initial steps of compilation and building the SD card were not clear. It took me few days to understand whats going on with the building procedure. I will share the script file soon. There are some changes I am making to it. Then maybe you can incorporate it into the repository.

I see that the wiki got updated. Thanks for that.

Here is the link to the output: http://pasted.co/7ff78388

Thank You
Utkarsh


________________________________________
From: Martin Stein <martin.stein at ...1...>
Sent: Tuesday, April 26, 2016 2:19 PM
To: Agrawal, Utkarsh
Subject: Re: Reagaring Genode and USB Armory

I have answered your last mail on the mailing list [1].
It has the same subject line as this mail.

Cheers,
Martin

[1] genode-main at lists.sourceforge.net

Am 22.04.2016 um 11:17 schrieb Agrawal, Utkarsh:
> Hello,
>
> Yes, I think it is a good time that we move it to the mailing list. How shall we do it?
>
> Thank You
> Utkarsh
>
> ________________________________________
> From: Martin Stein <martin.stein at ...1...>
> Sent: Wednesday, April 20, 2016 5:07 PM
> To: Agrawal, Utkarsh
> Subject: Re: Reagaring Genode and USB Armory
>
> Hey Utkarsh,
>
> I would like to move this discussion to the mailing list at this point.
>
> Do you agree with that?
>
> Cheers,
> Martin
>
> Am 20.04.2016 um 08:01 schrieb Agrawal, Utkarsh:
>> Hello,
>>
>> I was able to Install ootloader, Genode, and the Linux rootfs. Thanks a lot for your guidance. I have compiled a script which does all this task easily. I would love to contribute this to the community, and would like to know how can I do it.
>>
>> Next steps as I see are:
>> 1. Connect USB Armory to host machine via USB-to-TTL serial cable.
>> 2. Connect to USB Armory COM port.
>> 3. Insert USB Armory into host USB slot and interrupt auto boot on COM port.
>> 4. Send bootloader commands on COM port:
>> 5. Linux login: The login and password of the Linux guest are both "usbarmory"
>>
>> I hope the above steps are pretty straight forward, and there should be no issues there.
>>
>> Also, at [1], they mention about this "make ARCH=arm zImage LOADADDR=0x80008000 modules". I am not sure what image they are talking about, when am I supposed to do this step.
>>
>> Next I would like to know how do I start working on TrustZone with Genode. Can you guide me on how to start with a sample application which switches between Normal and Secure World?
>>
>> Thank You
>> Utkarsh Agrawal
>>
>> [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_inversepath_usbarmory_wiki_Genode-2DOS&d=CwIC-g&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=hnUL4kgB9cStyuGpvYu3L9_MVOWR5t87hYpTv2FwCGo&m=NwzIeuHqYnvROYKinKAlZVd5PiAYFi9QCtcc7dRP5gs&s=xm51_erngIaEOyEFFbZcXPF_0997eNeTOB2sbteiTQU&e=
>> ________________________________________
>> From: Agrawal, Utkarsh
>> Sent: Friday, April 15, 2016 11:12 PM
>> To: Martin Stein
>> Subject: Re: Reagaring Genode and USB Armory
>>
>> Hello,
>>
>> Thank for you the reply. I just noticed that the subject of the email has a typo. Maybe I was in a hurry when writing the first mail. :)
>>
>> I am sure that I was in the mentioned branch. I will try [2] after I have the basic setup running of Genode.
>>
>>
>> I have been trying to use [1]. But I get some errors. Following are the steps I have followed:
>>
>> I cloned the master branch of https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_genodelabs_genode&d=CwIC-g&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=hnUL4kgB9cStyuGpvYu3L9_MVOWR5t87hYpTv2FwCGo&m=NwzIeuHqYnvROYKinKAlZVd5PiAYFi9QCtcc7dRP5gs&s=fEOHYlETLJd9X5bo8qw783vUXEtk6k_2PtnJu8wVG_Y&e=  at /home/genode/genode-master on my computer.
>>
>> I changed the following variables:
>> export TARGET_DEV=/dev/sdc                 # empty boot medium
>> export TARGET_MNT=/home/mnt                     # where to mount the boot medium
>> export GENODE_DIR=/home/genode/genode-master             # root of the Genode sources
>> export BUILD_DIR=/path/build/hw_usb_armory # Genode build directory
>>
>> I am not so sure if the build directory should be what I mentioned there. I just chose a directory randomly.
>>
>> After this, I realized that in the :Install Genode: step there is no etc/build.conf file. I looked at /home/genode/genode-master and /home/genode/genode-master/repos/os/.
>>
>> To fix that I executed ./tool/create_builddir hw_usb_armory at /home/genode/genode-master
>> Now I got a build directory with build.conf in hw_usb_armory folder.
>>
>> I copied over the build.conf to /home/genode/genode-master/repos/os/etc
>>
>> Next I tried running make run/tz_vmm.run. But now it just says that make: 'tz_vmm.run' is up to date. I don't think that the build process ever started.
>>
>> I am not sure if I am missing any steps here.
>>
>> Thank You
>> Utkarsh
>>
>>
>> ________________________________________
>> From: Martin Stein <martin.stein at ...1...>
>> Sent: Friday, April 15, 2016 3:06 PM
>> To: Agrawal, Utkarsh
>> Subject: Re: Reagaring Genode and USB Armory
>>
>> Hi Utkarsh,
>>
>> Am 14.04.2016 um 19:30 schrieb Agrawal, Utkarsh:
>>> I landed on [2], using the USB Armory page for Genode[3]. The script fails at this line "make usbarmory_defconfig". It says something like the target was not found for make.
>>
>> I was not able to reproduce this but I noticed that [3] doesn't
>> reference the appropriate branch in my linux repo. Are you sure that
>> you're using the 'genode_hw_usb_armory_tz_vmm' branch as mentioned in [2]?
>>
>>> So as you said, for our own Linux guest, we can use [2]. Just to have a clear idea on this, will I have to combine partial instructions from [1], and the rest from [2] to be able to run our own guest?
>>
>> Script [2] copies the images (linux, dtb, rootfs) that are normally
>> downloaded by script [1] to $TARGET_DIR so you want to 'export
>> TARGET_DIR=<YOUR_GENODE_BUILD_DIR>/bin' under ':User settings:' in
>> script [2]. So, if you examine script [2] first, script [1] afterwards
>> automatically uses the custom images instead of downloading others.
>>
>>> Also, I request you to kindly look at [3], and put up relevant details there. As because of [3] I was going around in circles, and could have never landed on [1].
>>
>> Thank you for the hint. I will redirect it to the Inversepath staff. The
>> content of the wiki is up to them and I would suggest you to preferably
>> use [1] and [2] for the Genode-related stuff.
>>
>> Cheers,
>> Martin
>>
>> [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_genodelabs_genode_blob_master_repos_os_run_tz-5Fvmm.run&d=CwID-g&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=hnUL4kgB9cStyuGpvYu3L9_MVOWR5t87hYpTv2FwCGo&m=-kQoV0ZR_iKUnT8nma7ny9LQLjMXq6a0nxua4xY9Vvc&s=NuzhEEEQyHw-TZI6tVhCu8Pz_l-HrCEDCFikY5nicdc&e=
>>
>> [2]
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_m-2Dstein_genode-5Fbinaries_blob_master_tz-5Fvmm_usb-5Farmory_README&d=CwID-g&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=hnUL4kgB9cStyuGpvYu3L9_MVOWR5t87hYpTv2FwCGo&m=-kQoV0ZR_iKUnT8nma7ny9LQLjMXq6a0nxua4xY9Vvc&s=oalYTQJt3AWOozXVTtm3IFcPDdIsgqQyHW8O6atsVwk&e=
>>




More information about the users mailing list