Skip to content
Snippets Groups Projects
Commit f33cf5e1 authored by joachim.schmidt's avatar joachim.schmidt
Browse files

Version 0.2 of the BSP for the PetaLinux scalp_safe_petalinux project. This is a temporary version.

parent c1240330
No related branches found
Tags SCALP-SAFE-v0.4.3 SCALP-USER-v0.1
No related merge requests found
......@@ -80,9 +80,11 @@ and File -> Export -> Export Hardware -> include bitstream
```
$ git clone https://gitedu.hesge.ch/soma/scalp_petalinux.git
$ cd scalp_petalinux
$ git checkout SCALP-SAFE-v0.01
$ git checkout SCALP-SAFE-v0.2
```
**Use version 0.2 only for the GIT scalp_petalinux repository and not for the GIT scalp_firmware repository. The version difference is not an error.**
### Create new Petalinux project from a BSP
```
......@@ -224,6 +226,8 @@ $ find . -name zynq_spi.o
The image content can be produced by using the **mkenvimage** command.
```
Do not use this command :
$ echo -e "custom_board_name=\"Zynq Scalp Board\"\ncustom_board_version=\"RevB 2008\"\ncustom_board_vendor=\"Hepia CoRES - LSN\"" > images/linux/scalp-u-boot.env
$ /tools/u-boot-tools/mkenvimage -s 0x20000 -o images/linux/scalp-u-boot.env.bin images/linux/scalp-u-boot.env
```
......@@ -235,6 +239,8 @@ In my case, I copied the tools produced by U-Boot into the **/tools/u-boot-tools
```
$ petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/system.bit --u-boot --kernel --offset 0x540000 --dtb images/linux/system.dtb --offset 0x520000 --force
Do not use this command :
$ petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --offset 0x0 --fpga images/linux/system.bit --u-boot --add images/linux/scalp-u-boot.env.bin --offset 0x500000 --kernel --offset 0x540000 --dtb images/linux/system.dtb --offset 0x520000 --force
```
......@@ -540,6 +546,8 @@ fi
Finaly build it...
```
$ petalinux-build -c sja1105-init -x do_cleanall
$ petalinux-build -c sja1105-init
$ petalinux-build -c sja1105-init -x do_install -f
$ petalinux-build -c rootfs
$ petalinux-build
......
File added
PETALINUX_VER=2020.2
VALIDATE_HW_CHKSUM=1
HARDWARE_PATH=/home/jo/Documents/Projets/Hepia/scalp_project/scalp_firmware/designs/vivado/scalp_safe_firmware/2020.2/lin64/scalp_safe_firmware/scalp_safe_firmware.xsa
HARDWARE_CHECKSUM=e4c86ebb7157c318baafe6ea2691035e
HARDWARE_CHECKSUM=c0e54849f94ffc5aaa53e1cad4e1235f
YOCTO_SDK=5ff8fc5f85d1566b314bb73eaa378212
RFSCONFIG_CHKSUM=269e3949c0bcc4ef769c74fd4481e933
File added
......@@ -195,7 +195,7 @@ CONFIG_SUBSYSTEM_EXTRA_DT_FILES=""
#
CONFIG_SUBSYSTEM_BOOTARGS_AUTO=y
CONFIG_SUBSYSTEM_BOOTARGS_EARLYPRINTK=y
CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon"
CONFIG_SUBSYSTEM_DEVICETREE_COMPILER_FLAGS="-@"
# CONFIG_SUBSYSTEM_DTB_OVERLAY is not set
# CONFIG_SUBSYSTEM_REMOVE_PL_DTB is not set
......@@ -290,3 +290,4 @@ CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/r
# User Layers
#
CONFIG_USER_LAYER_0=""
CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon"
......@@ -35,7 +35,7 @@
#define CONFIG_MII
#define CONFIG_NET_MULTI
#define CONFIG_NETCONSOLE 1
#define CONFIG_SERVERIP 192.168.1.153
#define CONFIG_SERVERIP 10.136.135.67
#define CONFIG_IPADDR 192.168.0.10
#define CONFIG_GATEWAYIP 192.168.0.1
#define CONFIG_NETMASK 255.255.255.0
......
No preview for this file type
No preview for this file type
......@@ -18,13 +18,13 @@ inherit update-rc.d
INITSCRIPT_NAME = "sja1105-init"
INITSCRIPT_PARAMS = "start 81 K ."
INITSCRIPT_PARAMS = "start 99 S ."
do_install() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/init.d/sja1105-init
install -d ${D}${sysconfdir}/rc0.d
install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rc0.d/K81sja1105-init
install -d ${D}${sysconfdir}/rcS.d
install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rcS.d/S99sja1105-init
}
FILES_${PN} += "${sysconfdir}/*"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://platform-top.h"
SRC_URI += "file://platform-top.h \
file://devtool-fragment.cfg \
"
SRC_URI += "file://scalp_uboot.cfg"
SRC_URI += "file://u-boot-setexpt.patch"
SRC_URI += "file://u-boot-scalp-sja1105.patch"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment