view sources/targets/sh2eb @ 1776:398efd71a43e draft

More fiddling with sh2 target and elf2flt.
author Rob Landley <rob@landley.net>
date Tue, 14 Jul 2015 19:38:54 -0500
parents b6e4e49cec5e
children d461b345c3c9
line wrap: on
line source

DESCRIPTION="
See se-instruments.com and http://linux-sh.org.
"

KARCH=sh
KERNEL_PATH=arch/${KARCH}/boot/zImage
GCC_FLAGS= #"--with-cpu=m4-nofpu"
BINUTILS_FLAGS=
QEMU_TEST=$KARCH

ELF2FLT=sh-unknown-linux
BUILD_STATIC=all

CONSOLE="ttySC1 noiotrap"

UCLIBC_CONFIG="
TARGET_sh=y
CONFIG_SH2=y
# UCLIBC_HAS_MMU is not set
LINUXTHREADS_OLD=y
"

LINUX_CONFIG="
CONFIG_CPU_SUBTYPE_SH7751R=y
CONFIG_MMU=y
CONFIG_MEMORY_START=0x0c000000
CONFIG_VSYSCALL=y
CONFIG_FLATMEM_MANUAL=y
CONFIG_SH_FPU=y
CONFIG_SH_RTS7751R2D=y
CONFIG_RTS7751R2D_PLUS=y
CONFIG_SH_TIMER_TMU=y
CONFIG_HW_PERF_EVENTS=y
CONFIG_ATA=y
CONFIG_SATA_PMP=y
CONFIG_ATA_SFF=y
CONFIG_ATA_BMDMA=y
CONFIG_PATA_PLATFORM=y
CONFIG_SERIO_SERPORT=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_SH_SCI=y
CONFIG_SERIAL_SH_SCI_CONSOLE=y
CONFIG_SPI=y
CONFIG_SPI_SH_SCI=y
CONFIG_MFD_SM501=y
CONFIG_RTC_DRV_R9701=y
"

emulator_command()
{
  echo qemu-system-sh4 -M r2d $(qemu_defaults "$@") -monitor null -serial null -serial stdio
}

# qemu-system-sh4 -m 512 -nographic -monitor null -serial null -serial stdio -append 'earlyprintk=sh-sci.1 root=/dev/sda rw init=/bin/ash'