apps: remove obselete apps demo

Remove the obselete linux loading demo there will be new demo
for the updated remoteproc APIs

Signed-off-by: Wendy Liang <jliang@xilinx.com>
This commit is contained in:
Wendy Liang
2018-06-20 12:30:36 -07:00
committed by wjliang
parent 7d44e3bd4b
commit 86b78e81f0
6 changed files with 0 additions and 899 deletions

View File

@@ -1,40 +0,0 @@
file (GLOB _c_srcs *.c)
file (GLOB _asm_srcs *.S *.s)
set (_fw_dir "${APPS_SHARE_DIR}")
collector_list (_list PROJECT_INC_DIRS)
include_directories (${_list} ${CMAKE_CURRENT_SOURCE_DIR})
collector_list (_list PROJECT_LIB_DIRS)
link_directories (${_list})
include_directories (${CMAKE_CURRENT_SOURCE_DIR})
add_executable (firmware-lnx ${_c_srcs} ${_asm_srcs})
set_target_properties (firmware-lnx
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
set (_cflags "${CMAKE_C_FLAGS}")
set_source_files_properties(${_asm_srcs} PROPERTIES COMPILE_FLAGS "${_cflags}")
target_link_libraries(firmware-lnx -nostartfiles -T\"${CMAKE_CURRENT_SOURCE_DIR}/link_remote.ld\" -Wl,--start-group -lc -lm -lstdc++ -lzlib -lfdt -Wl,--end-group)
add_dependencies (firmware-lnx image.ub)
add_custom_command (OUTPUT image.ub
COMMAND cp ${OPENAMP_ROOT_DIR}/obsolete/system/${PROJECT_SYSTEM}/machine/${PROJECT_MACHINE}/image.ub image.ub)
add_custom_command (OUTPUT ${_fw_dir}
COMMAND mkdir -p ${_fw_dir})
add_custom_target (lnx-fw-bin-gen ALL
DEPENDS firmware-lnx ${_fw_dir}/firmware1.o ${_fw_dir}/firmware2.o)
add_custom_target (firmware1.o ALL cp firmware-lnx firmware1
COMMAND ${CROSS_PREFIX}objcopy -I binary -O elf32-littlearm -B arm firmware1 ${_fw_dir}/firmware1.o
DEPENDS firmware-lnx ${_fw_dir})
add_custom_target (firmware2.o ALL cp firmware-lnx firmware2
COMMAND ${CROSS_PREFIX}objcopy -I binary -O elf32-littlearm -B arm firmware2 ${_fw_dir}/firmware2.o
DEPENDS firmware-lnx ${_fw_dir})

File diff suppressed because it is too large Load Diff

View File

@@ -1,91 +0,0 @@
@*
@* Copyright (c) 2014, Mentor Graphics Corporation
@* All rights reserved.
@*
@* SPDX-License-Identifier: BSD-3-Clause
.extern boot_linux
.extern _bss_end
.extern linux_kernel_start
.extern dtb_start
@ include FIT format linux image
.section fit_image, "a"
.incbin "image.ub";
.section bootwrapper, "ax"
.code 32
BOOTSTRAP_BSS_End:
.long _bss_end
.global bootwrapper_start
bootwrapper_start:
MOV r0, #0xdF
@ Switch to SVC mode with IRQs and FIQs OFF
MSR CPSR_cxsf, r0
@ Disable MMU and caches
MRC p15,#0,r0,c1,c0,#0
BIC r0,r0,#0x00001000 @ Clear I bit to disable instruction cache
BIC r0,r0,#0x00000005 @ Clear C and M bits (-C-M)
@ Disable alignment checking
BIC r0,r0,#0x00000002 @ Clear alignement checking bit
MCR p15,#0,r0,c1,c0,#0
MRC p15,#0,r0,c1,c0,#2
MOV r1,#0xF0
LSL r1,r1,#16
ORR r0,r0,r1
MCR p15,#0,r0,c1,c0,#2
MOV r0,#0x40000000
FMXR FPEXC,r0
@ Setup stack pointer for function calls
LDR r0, BOOTSTRAP_BSS_End
ADD r0,r0,#64512
@ align stack pointer
BIC r0,r0,#0x07
MOV sp,r0
@ branch to C linux boot function
B boot_linux
.code 32
.global start_linux_with_dtb
.type start_linux_with_dtb, %function
start_linux_with_dtb:
@ Set registers as per Linux boot requirements
@ For details see:
@ https://www.kernel.org/doc/Documentation/arm/Booting
MOV r0, #0 @ Set r0 =0
LDR r1, =3343 @ Set r1 = machine type (Xilinx)
LDR r4, =dtb_start
LDR r2, [r4] @ Point r2 to DTB
MOV r3, #0
LDR r4, =linux_kernel_start
LDR lr, [r4]
MOV pc, lr @ Jump to start of Linux kernel binary

View File

@@ -1,86 +0,0 @@
MEMORY
{
ram : ORIGIN = 0x06000000, LENGTH = 1024M
}
SECTIONS
{
.text :
{
KEEP (*(bootwrapper)) ;
*(.text .text*) ;
*(.glue_7t) ;
*(.glue_7) ;
*(.gnu.linkonce.t*)
*(.dtors);
LONG (0);
} > ram
.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
} > ram
__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} > ram
__exidx_end = .;
.rodata :
{
*(.rodata*) ;
} > ram
fit_image :
{
. = ALIGN(8) ;
_image_start = .;
KEEP(*(fit_image fit_image*));
_image_end = .;
} > ram
.data :
{
. = ALIGN(4) ;
*(.data) ;
*(.data*) ;
*(.gnu.linkonce.d*)
. = ALIGN(4) ;
} > ram
.heap :
{
. = ALIGN(8) ;
_heap_start = .;
. += 0x100000;
. = ALIGN(8) ;
_heap_end = .;
} > ram
.bss (NOLOAD) :
{
. = ALIGN(8) ;
_bss_start = . ;
*(.bss) ;
*(.bss*) ;
*(COMMON) ;
. = ALIGN(8) ;
_bss_end = . ;
} > ram
__bootwrapper_end = .;
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright (c) 2014, Mentor Graphics Corporation
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* This file populates resource table for BM remotes
* for use by the Linux Master */
#include <openamp/open_amp.h>
#include "rsc_table.h"
/* Place resource table in special ELF section */
#define __section_t(S) __attribute__((__section__(#S)))
#define __resource __section_t(.resource_table)
#define RPMSG_IPU_C0_FEATURES 1
/* VirtIO rpmsg device id */
#define VIRTIO_ID_RPMSG_ 7
/* Remote supports Name Service announcement */
#define VIRTIO_RPMSG_F_NS 0
/* Resource table entries */
#define ELF_START 0x00000000
#define ELF_END 0x08000000
#define NUM_VRINGS 0x02
#define VRING_ALIGN 0x1000
#define RING_TX 0x08000000
#define RING_RX 0x08004000
#define VRING_SIZE 256
const struct remote_resource_table __resource resources = {
/* Version */
1,
/* NUmber of table entries */
2,
/* reserved fields */
{0, 0,},
/* Offsets of rsc entries */
{
offsetof(struct remote_resource_table, elf_cout),
offsetof(struct remote_resource_table, rpmsg_vdev),
},
/* End of ELF file */
{
RSC_CARVEOUT, ELF_START, ELF_START, ELF_END, 0, 0, "ELF_COUT",
},
/* Virtio device entry */
{RSC_VDEV, VIRTIO_ID_RPMSG_, 0, RPMSG_IPU_C0_FEATURES, 0, 0, 0,
NUM_VRINGS, {0, 0},
},
/* Vring rsc entry - part of vdev rsc entry */
{
RING_TX, VRING_ALIGN, VRING_SIZE, 1, 0},
{
RING_RX, VRING_ALIGN, VRING_SIZE, 2, 0},
};

View File

@@ -1,41 +0,0 @@
/*
* Copyright (c) 2014, Mentor Graphics Corporation
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* This file populates resource table for BM remote
* for use by the Linux Master */
#ifndef RSC_TABLE_H_
#define RSC_TABLE_H_
#include <stddef.h>
#include <openamp/open_amp.h>
#if defined __cplusplus
extern "C" {
#endif
#define NO_RESOURCE_ENTRIES 8
/* Resource table for the given remote */
struct remote_resource_table {
unsigned int version;
unsigned int num;
unsigned int reserved[2];
unsigned int offset[NO_RESOURCE_ENTRIES];
/* text carveout entry */
struct fw_rsc_carveout elf_cout;
/* rpmsg vdev entry */
struct fw_rsc_vdev rpmsg_vdev;
struct fw_rsc_vdev_vring rpmsg_vring0;
struct fw_rsc_vdev_vring rpmsg_vring1;
};
#if defined __cplusplus
}
#endif
#endif /* RSC_TABLE_H_ */