Hello all,
I have modified project "Hello world" from
mcsdk_2_01_02_06\tools\boot_loader\examples\pcie\
to run this example on all cores in the L2SRAM
and have got two problems:
1) after the command "sudo insmod pciedemo.ko"
I looked correct messages in TeraTerminal from Core0, but I think
Core1...Core7 did not run, because of I did not find
code 0xBABEFACE (BOOT_MAGIC_NUMBER) in 0x1N87FFFC (MAGIC_ADDR)
using emulator from CCS later.
Instead of BOOT_MAGIC_NUMBER I looked &_c_int00 (according to 1-4 bytes of pcieBootCode_6678.h) there
for CoreN, N=0,1...7.
Also I found image's code in addresses 0x1N830000 (according to 9-12 bytes of pcieBootCode_6678.h)
for CoreN, N=0,1...7.
2) after messages:
...............................
Start local reset assert for core (module id): 15 ...
Previous transition in progress pid 8 mid 15 state: 0
Current transition in progress pid 8 mid 15 state: 0
on the Linux-host's screen
OS hung (i.e. in the beginning of LOCAL_RESET)
Please help me to understand: why Core1...Core7 did not run.
My corrections in the original code of the pcieboot_helloworld.c:
- was appended variables in L2SRAM, MSM, DDR and writing of the constants to
these variables within Core0, Core1, Core7.
- was appended output of the messages from Core0, Core1, Core7 to UART.
Also was corrected *.cmd to locate program into L2SRAM and some variables into L2SRAM, MSM, DDR
My corrections in the original code of the pcidemo.c:
- In row 1575 operator was changed because of compilator's warning:
"ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result [-Wunused-result]"
- In row 1600 operator was changed because of compilator's warning:
"ignoring return value of ‘request_irq’, declared with attribute warn_unused_result [-Wunused-result]"
- In row 1622 to cycle while was appended Time out control - to avoid OS hung when cycle works too long time.
- In row 1646 was appended pushData() functions for Core1...Core7.
- In row 1671 was placed pushData(bootCode, 0, &bootEntryAddr) instead of pushData(bootCode, 9, &bootEntryAddr);
Source codes are attached.
I used:
Code Composer Studio 5.2.1.00018
mcsdk_2_01_02_06
MDSEVM6678L/MDXEVMPCI board
OS - Debian7, Ubuntu10.04
Best regards,
Ie example does not run in L2SRAM for Core1...7
Hello all,
I have modified project "Hello world" from
mcsdk_2_01_02_06\tools\boot_loader\examples\pcie\
to run this example on all cores in the L2SRAM
and have got two problems:
1) after the command "sudo insmod pciedemo.ko"
I looked correct messages in TeraTerminal from Core0, but I think
Core1...Core7 did not run, because of I did not find
code 0xBABEFACE (BOOT_MAGIC_NUMBER) in 0x1N87FFFC (MAGIC_ADDR)
using emulator from CCS later.
Instead of BOOT_MAGIC_NUMBER I looked &_c_int00 (according to 1-4 bytes of pcieBootCode_6678.h) there
for CoreN, N=0,1...7.
Also I found image's code in addresses 0x1N830000 (according to 9-12 bytes of pcieBootCode_6678.h)
for CoreN, N=0,1...7.
2) after messages:
...............................
Start local reset assert for core (module id): 15 ...
Previous transition in progress pid 8 mid 15 state: 0
Current transition in progress pid 8 mid 15 state: 0
on the Linux-host's screen
OS hung (i.e. in the beginning of LOCAL_RESET)
Please help me to understand: why Core1...Core7 did not run.
My corrections in the original code of the pcieboot_helloworld.c:
- was appended variables in L2SRAM, MSM, DDR and writing of the constants to
these variables within Core0, Core1, Core7.
- was appended output of the messages from Core0, Core1, Core7 to UART.
Also was corrected *.cmd to locate program into L2SRAM and some variables into L2SRAM, MSM, DDR
My corrections in the original code of the pcidemo.c:
- In row 1575 operator was changed because of compilator's warning:
"ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result [-Wunused-result]"
- In row 1600 operator was changed because of compilator's warning:
"ignoring return value of ‘request_irq’, declared with attribute warn_unused_result [-Wunused-result]"
- In row 1622 to cycle while was appended Time out control - to avoid OS hung when cycle works too long time.
- In row 1646 was appended pushData() functions for Core1...Core7.
- In row 1671 was placed pushData(bootCode, 0, &bootEntryAddr) instead of pushData(bootCode, 9, &bootEntryAddr);
Source codes are attached.
I used:
Code Composer Studio 5.2.1.00018
mcsdk_2_01_02_06
MDSEVM6678L/MDXEVMPCI board
OS - Debian7, Ubuntu10.04
Best regards,