terça-feira, 5 de Março de 2019 às 15:16:43 UTC, J. Kiszka escreveu:
> On 05.03.19 13:58, João Reis wrote:
> > terça-feira, 5 de Março de 2019 às 12:29:48 UTC, J. Kiszka escreveu:
> >> On 05.03.19 13:12, João Reis wrote:
> >>> terça-feira, 5 de Março de 2019 às 09:32:12 UTC, J. Kiszka escreveu:
> >>>> On 04.03.19 15:31, João Reis wrote:
> >>>>> sexta-feira, 1 de Março de 2019 às 15:42:04 UTC, J. Kiszka escreveu:
> >>>>>> On 01.03.19 16:04, João Reis wrote:
> >>>>>>> As i didn't find documentation that supports bit by bit information 
> >>>>>>> of GICD registers (as you can see by gicd_registers.png), i have to 
> >>>>>>> ask you what do i change in .irqchips field.
> >>>>>>>
> >>>>>>
> >>>>>> You do not need to look at the GICD registers in order to assign 
> >>>>>> interrupts to
> >>>>>> different cells. That's what Jailhouse is doing for you. All you need 
> >>>>>> to know is
> >>>>>> which interrupt (SPI number + 32) each device is using. Then you can 
> >>>>>> turn on
> >>>>>> access to that by setting the corresponding bit in the irqchip 
> >>>>>> configuration of
> >>>>>> Jailhouse.
> >>>>>>
> >>>>>>> Where do i insert the modified inmate-zynqmp.dtb file? When i issue 
> >>>>>>> "cell create"?
> >>>>>>>
> >>>>>>
> >>>>>> You pass that dtb to "cell linux".
> >>>>>>
> >>>>>> Jan
> >>>>>>
> >>>>>> -- 
> >>>>>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> >>>>>> Corporate Competence Center Embedded Linux
> >>>>>
> >>>>> I don't want to load linux on a non-root cell, i just want to create a 
> >>>>> non-root cell that shares memory with root cell, but that non-root cell 
> >>>>> must use UART1 and root cell UART0. So i suppose i must not issue "cell 
> >>>>> linux" because that command, besides creating a cell, loads linux on 
> >>>>> that cell.
> >>>>>
> >>>>
> >>>> Then you do not need to touch a device tree but the cell config 
> >>>> (.console) and
> >>>> use an inmate that evaluates that (like our demo inmates). Note that our 
> >>>> inmates
> >>>> do not use the UART IRQ, they just poll the device for being able to 
> >>>> write to
> >>>> the console.
> >>>>
> >>>> Jan
> >>>>
> >>>> -- 
> >>>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> >>>> Corporate Competence Center Embedded Linux
> >>>
> >>> Ok, so i've changed the non-root cell to output and input to UART0, can 
> >>> you tell me if the changes are correct? I still can't see anything on 
> >>> UART0.
> >>>
> >>
> >> Does it start to show anything if you have a corresponding "cat 
> >> /dev/ttyPSx"
> >> running under Linux?
> >>
> >> What may be the case is that Linux shut down (or never started) the clock 
> >> that
> >> drives the other UART when that channel is not in use. The inmate driver 
> >> is not
> >> taking care of that either (and may not even have access to the clocks).
> >>
> >> Jan
> >>
> >> -- 
> >> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> >> Corporate Competence Center Embedded Linux
> > 
> > Inside /dev directory, i've only got ttyPS0 (on bootload both ttyPS0 and 
> > ttyPS1 appear saying they are xuartps, and ttyPS1 is registered, but only 
> > ttyPS0 is enabled, the following message appears:
> > console [ttyPS0] enabled
> > 
> > ttyPS1 is not enabled)
> > 
> 
> Are you sure there are more UARTs available at all on that board? Or maybe it 
> takes a different FPGA bitstream to instantiate some (IIRC, the single one we 
> are using as console is in FPGA as well). Maybe check back with the Ultra96 
> community on that, or Xilinx.
> 
> In any case, Linux is the first stop to explore and test the available UARTs, 
> and that possibly even before Jailhouse is running. Once that works, 
> transferring ownership to other cells is much easier to configure correctly.
> 
> Jan
> 
> -- 
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux

Even if i want to connect by ssh to issue some commands, to "cell create" for 
example, the addresses that i use do not work.

The etc/network/interfaces file has static IP for USB connection:

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
        address 192.168.7.2
        netmask 255.255.255.0
        network 192.168.7.0
        gateway 192.168.7.1

I connect the ethernet cable from my pc to the board's micro-USB upstream port, 
but when i try to connect using 192.168.7.2 address, it does not connect to the 
board either. Have you connected to the board using ssh?

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to