-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code to implement vSOC #6
Comments
Depends how you want to connect externally, but if you use a UART, and want a serial channel, I suggest you look at the bidirectional flow socket, which might be an easy way to provide the sort of integration your looking for. |
Can we implement it like this -- Virtual platform configuration function top() dofile(top().."../fw/utils.lua") INITIAL_DDR_SPACE = 0x80000000 _KERNEL64_LOAD_ADDR = INITIAL_DDR_SPACE + 0x01200000 dofile(top().."fw/arm64_bootloader.lua") local HEX_DIGITS = '0123456789ABCDEF' local IPC_ROUTER_TOP = 0x00400000 local APSS_GIC600_GICD_APSS = 0x17A00000 local UART0 = 0x10000000 local ARM_NUM_CPUS = 2 local IS_SHARED_MEM = false if ACCEL == nil then local ARCH_TIMER_VIRT_IRQ = 16 + 11 local NUM_REDISTS = 1 platform = {
} print("kernel is loaded at: 0x" .. string.format("%x", _KERNEL64_LOAD_ADDR)) if (ARM_NUM_CPUS > 0) then
end print("Lua config done.") |
I think the a76 is available, so that should work. |
in no particular order, you'll need a O/S ready to use an A76/a53, some device tree(s?), some boot code, which may or may not require EL3, so you will have to adjust your lua file accordingly, you'll probably have to fiddle with the affinity, I've probably forgotten many other things... |
How can we implement vSOC communication in Qbox? How should we configure the .lua file or any other files for the same? Can you provide an example code for the same taking two CPUs like cortex A53 and cortex A76?
The text was updated successfully, but these errors were encountered: