On Tue, May 31, 2022 at 1:52 PM Prabhakar Lad
<[email protected]> wrote:
>
>
<snip>
> * Looking at some of the linux inmate  configs there are two regions of RAM 
> specified is this a strict requirement?
> * For the inmate RAM should the virt_start = CONFIG_INMATE_BASE?
>
After updating my memory layout, i.e. after creating one region for
loading the linux another for DDR RAM and lastly the communication
region in my inmate I no longer see the unhandled read error.

        /* linux-loader space */ {
            .phys_start = 0x59000000,
            .virt_start = 0x0,
            .size = 0x6400000,
            .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
        },
        /* RAM */ {
            .phys_start = 0x5F400000,
            .virt_start = 0x5F400000,
            .size = 0x19C00000,
            .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_DMA |
                JAILHOUSE_MEM_LOADABLE,
        },
        /* communication region */ {
            .virt_start = 0x80000000,
            .size = 0x00001000,
            .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                JAILHOUSE_MEM_COMM_REGION,
        },

I am able to load the linux on one of the CPUs but I cannot see any
console output on the serial.

root@hihope-rzg2m:~# jailhouse cell linux
renesas-r8a774a1-linux-demo.cell Image.gz -d
inmate-r8a774a1-hihope.dtb -c "clk_ignore_unused rootwait rw"
Started cell "renesas-r8a774a1-linux-demo"
root@hihope-rzg2m:~#
root@hihope-rzg2m:~# jailhouse cell list
ID      Name                    State             Assigned CPUs
   Failed CPUs
0       Renesas HopeRun HiHope RZ/G2Mrunning           0,2-5
1       renesas-r8a774a1-linux-demorunning           1
root@hihope-rzg2m:~#

Any pointers on debugging this? (jailhouse cell stat 1 doesn't seem to
updating the number so I assume it's panicked somewhere)

Cheers,
Prabhakar

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/CA%2BV-a8uE2PzOF2mh0xEQmQ%3DakMTWXHy7usqEaM1C754DHS1%3D%2Bw%40mail.gmail.com.

Reply via email to