+ All Categories
Home > Documents > 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia...

1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia...

Date post: 18-Jan-2016
Category:
Upload: prosper-joshua-jones
View: 216 times
Download: 0 times
Share this document with a friend
Popular Tags:
28
1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Mu ltimedia Tang-Hsun Tu Presenter: Tang-Hsu n Tu How to work with Multi-OS on BF561
Transcript
Page 1: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

1 / 28

Multi-OS Project Multi-OS Project

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

Presenter: Tang-Hsun Tu

How to work with Multi-OSHow to work with Multi-OSon BF561on BF561

Page 2: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

2 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 3: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

3 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 4: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

4 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Motivation Motivation

1. a porting uC/OS-II dxe

2. System Architecture

Page 5: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

5 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Motivation (Cont.) Motivation (Cont.)

Page 6: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

6 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Compiler / Linker / Loader Compiler / Linker / Loader

.o(s).lds

.ldf

executable

.doj(s) .dxe(s)

Visual DSP++

Linux

Page 7: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

7 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Loader File and Flash Loader File and Flash

Page 8: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

8 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Second Stage Loader Second Stage Loader

Management of Two dxe(s)

Page 9: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

9 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 10: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

10 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

BF561 Multi-DXE Loader BF561 Multi-DXE Loader

Page 11: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

11 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Loader File Structure Loader File Structure

Page 12: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

12 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

1. Address(4 bytes) – the block will be booted within mem

2. Count(4 bytes) – number of bytes in the block

3. Flag(2 bytes) – block type and control commands

10-Byte Header 10-Byte Header

Page 13: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

13 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Loader File With Init Loader File With Init

-NoFinalTag

Single Boot Stream

-NoSecondStageKernel

Page 14: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

14 / 28

SICA_SYSCR Register SICA_SYSCR Register

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

How to start coreB ?

*pSICA_SYSCR &= 0xFFDF

Page 15: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

15 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 16: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

16 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu

Compiler / Linker / Loader Compiler / Linker / Loader

.ldf.doj(s) .dxe(s)

Visual DSP++

Page 17: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

17 / 28

Linker Section (L2)Linker Section (L2)

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

1. L2_sram: map code and data into L2 for non-multicore parts that have L2 SRAM

2. L2_sram_a: map code and data into the part of L2 memory reserved for core A on a multicore system

3. L2_sram_b: map code and data into the part of L2 memory reserved for core B on a multicore system

4. l2_sram: be used on multicore system to map code and data into L2 for parts which have L2 memory

5. l2_shared: map code and data into the part of L2 memory shared between core A and core B

Page 18: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

18 / 28

L2 Share memoryL2 Share memory

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

0xFEB0 0000

0xFEB2 0000

0xFEB1 0000

0xFEB0 8000L2 SRAM A (32K)

L2 SRAM (64K)

L2_sram_b

L2_sram_a

l2_shared

l2_sram

section

L2_sramsection

128K

L2 SRAM B (32K)

Page 19: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

19 / 28

Memory ArchitectureMemory Architecture

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

Core A Memory

Core B Memory

Page 20: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

20 / 28

Memory Architecture (Cont.)Memory Architecture (Cont.)

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

L2 Share Memory (128 K)

L3 Share Memory (SDRAM)Max is 256 / 512 MB

Page 21: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

21 / 28

Linker Section (SDRAM / L3)Linker Section (SDRAM / L3)

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

1. sdram0: map code or data into external memory, this can be used to place large, infrequently used data or functions into external memory to free up valuable internal memory.

2. sdram_bank {0|1|2|3}: other bank

Page 22: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

22 / 28

Synchronization API Synchronization API

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

/* multi-core lock type */volatile multi_core_lock_t synlock;

/* initial function */1. void multicore_spin_lock_init_locked(volatile multi_core_lock_t *loc

kptr);2. void multicore_spin_lock_init_unlocked(volatile multi_core_lock_t *l

ockptr);

/* function */1. void multicore_spin_lock(volatile multi_core_lock_t *lockptr, int cp

u_id);2. void multicore_spin_unlock(volatile multi_core_lock_t *lockptr);3. void multicore_spin_lock_irqsave(volatile multi_core_lock_t *lockptr,

int cpu_id);4. void multicore_spin_unlock_irqrestore(volatile multi_core_lock_t *lo

ckptr);

Page 23: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

23 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 24: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

24 / 28

Conclusion Conclusion

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

1. We can run multi-uC/OS-II on BF561

2. We can communicate between multicore by L2 share memory

Page 25: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

25 / 28

◇ Loader File Structure

Outlines Outlines

○ Introduction

◇ Multi-DXE Loader

○ Multi-OS

○ Communication

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

○ Conclusion

○ Further Work

◇ Second Stage Loader

Page 26: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

26 / 28

Further Work Further Work

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

1. Periodic Task

2. Distributed Pinwheel Schedule

3. Synchronization

4. Other OSes

Page 27: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

27 / 28

Question Question

National Taiwan University, Graduate Institute of Networking and MultimediaTang-Hsun Tu

1. Execution Time

2. Floating Point (Sr, DSr)

3. Distance Constrained

Page 28: 1 / 28 Multi-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu How to work with.

28 / 28National Taiwan University, Graduate Institute of Networking and Multimedia

Tang-Hsun Tu


Recommended