Initial Commit
- initial default booting image
This commit is contained in:
11
board/synopsys/axs10x/post-build.sh
Executable file
11
board/synopsys/axs10x/post-build.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -u
|
||||
set -e
|
||||
|
||||
# Add a console on tty0
|
||||
if [ -e ${TARGET_DIR}/etc/inittab ]; then
|
||||
grep -qE '^tty0::' ${TARGET_DIR}/etc/inittab || \
|
||||
sed -i '/GENERIC_SERIAL/a\
|
||||
tty0::respawn:/sbin/getty 115200 tty0' ${TARGET_DIR}/etc/inittab
|
||||
fi
|
||||
1
board/synopsys/axs10x/uboot-fragment.config
Normal file
1
board/synopsys/axs10x/uboot-fragment.config
Normal file
@@ -0,0 +1 @@
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x0500
|
||||
29
board/synopsys/hsdk/genimage.cfg
Normal file
29
board/synopsys/hsdk/genimage.cfg
Normal file
@@ -0,0 +1,29 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"uImage"
|
||||
}
|
||||
|
||||
file uboot.env {
|
||||
image = "uboot-env.bin"
|
||||
}
|
||||
}
|
||||
|
||||
size = 20M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
3
board/synopsys/hsdk/linux.fragment
Normal file
3
board/synopsys/hsdk/linux.fragment
Normal file
@@ -0,0 +1,3 @@
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
CONFIG_ARC_UBOOT_SUPPORT=y
|
||||
CONFIG_USB=y
|
||||
33
board/synopsys/hsdk/readme.txt
Normal file
33
board/synopsys/hsdk/readme.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
Synopsys, Inc.
|
||||
ARC HS Development Kit (HSDK)
|
||||
|
||||
https://embarc.org/platforms.html
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Select the default configuration for the target:
|
||||
$ make snps_archs38_hsdk_defconfig
|
||||
|
||||
Optional: modify the configuration:
|
||||
$ make menuconfig
|
||||
|
||||
Build:
|
||||
$ make
|
||||
|
||||
Result of the build
|
||||
===================
|
||||
output/images/
|
||||
├── boot.vfat
|
||||
├── rootfs.ext2
|
||||
├── sdcard.img
|
||||
├── u-boot
|
||||
├── u-boot.bin
|
||||
├── uboot-env.bin
|
||||
└── uImage
|
||||
|
||||
To copy the image file to the sdcard use dd:
|
||||
$ dd if=output/images/sdcard.img of=/dev/XXX
|
||||
|
||||
2018, Evgeniy Didin <Evgeniy.Didin@synopsys.com>
|
||||
|
||||
9
board/synopsys/hsdk/uboot.env.txt
Normal file
9
board/synopsys/hsdk/uboot.env.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
baudrate=115200
|
||||
bootargs=root=/dev/mmcblk0p2 rootwait
|
||||
bootcmd=fatload mmc 0:1; bootm
|
||||
bootdelay=2
|
||||
bootfile=uImage
|
||||
loadaddr=0x82000000
|
||||
stderr=serial0@f0005000
|
||||
stdin=serial0@f0005000
|
||||
stdout=serial0@f0005000
|
||||
43
board/synopsys/nsim/readme.txt
Normal file
43
board/synopsys/nsim/readme.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure build for the selected nSIM target. For instance, for
|
||||
ARC700 nSIM target use the following defauilt configuration:
|
||||
$ make snps_arc700_nsim_defconfig
|
||||
|
||||
Optionally modify the configuration:
|
||||
$ make menuconfig
|
||||
|
||||
Build:
|
||||
$ make
|
||||
|
||||
How to use it
|
||||
=============
|
||||
|
||||
Resulting image can be booted using ARC nSIM instruction set simulator.
|
||||
Free version of nSIM is available for download:
|
||||
- https://www.synopsys.com/cgi-bin/dwarcnsim/req1.cgi
|
||||
It provides nsimdrv binary for Linux that can be used stand-alone
|
||||
or with GDB.
|
||||
|
||||
To run ARC700 image use the following command:
|
||||
$ nsimdrv \
|
||||
-prop=nsim_mem-dev=uart0,kind=dwuart,base=0xf0000000,irq=24 \
|
||||
-prop=icache=32768,64,2,0 \
|
||||
-prop=dcache=32768,64,4,0 \
|
||||
-prop=nsim_isa_enable_timer_0=1 \
|
||||
-prop=nsim_isa_enable_timer_1=1 \
|
||||
-prop=nsim_isa_host_timer=1 \
|
||||
-prop=nsim_mmu=3 \
|
||||
-prop=nsim_isa_family=a700 \
|
||||
-prop=nsim_isa_atomic_option=1 \
|
||||
-prop=nsim_isa_dpfp=none \
|
||||
-prop=nsim_isa_shift_option=2 \
|
||||
-prop=nsim_isa_swap_option=1 \
|
||||
-prop=nsim_isa_bitscan_option=1 \
|
||||
-prop=nsim_isa_sat=1 \
|
||||
-prop=nsim_isa_mpy32=1 \
|
||||
-prop=isa_counters=1 \
|
||||
-prop=nsim_isa_pct_counters=8 \
|
||||
-prop=nsim_isa_pct_size=48 \
|
||||
output/images/vmlinux
|
||||
Reference in New Issue
Block a user