summaryrefslogtreecommitdiff
path: root/target/cris
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-06-20 01:12:06 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2018-06-20 01:12:11 +0000
commit7ad83fc8134d68f2ce48b241408b385bc7ab2fb7 (patch)
tree8cb2bfea196ee60167217cc7ed42e167fb4c77c9 /target/cris
parent9ce27631b5797dad8d2e415958a8cc895b60bd93 (diff)
foxboard: bugfixes
Diffstat (limited to 'target/cris')
-rw-r--r--target/cris/Makefile26
-rw-r--r--target/cris/systems/foxboard-lx8322
2 files changed, 25 insertions, 3 deletions
diff --git a/target/cris/Makefile b/target/cris/Makefile
index 12b1789d8..e17e887b4 100644
--- a/target/cris/Makefile
+++ b/target/cris/Makefile
@@ -5,8 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
-KERNEL:=$(LINUX_DIR)/vmlinux
-ZKERNEL:=$(LINUX_DIR)/arch/cris/boot/Image
+KERNEL:=$(LINUX_DIR)/arch/cris/boot/zImage
QEMU_ARGS:=-M axis-dev88 -nographic -monitor none
# target helper text
@@ -38,6 +37,23 @@ ifeq ($(ADK_TARGET_QEMU),y)
@echo 'qemu-system-${ADK_TARGET_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
endif
endif
+ifeq ($(ADK_TARGET_FS),nfsroot)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
+ @echo Use sudo ./boot_linux -F -i $(BIN_DIR)/${TARGET_KERNEL} to flash the kernel
+ @echo Do not forget to set network boot jumper, before you start the foxboard
+endif
+ifeq ($(ADK_TARGET_FS),squashfs)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo "The RootFS image is: $(FW_DIR)/$(ROOTFSSQUASHFS)"
+endif
+ifeq ($(ADK_TARGET_FS),jffs2)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo "The RootFS image is: $(FW_DIR)/$(ROOTFSJFFS2)"
+endif
kernel-strip:
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
@@ -61,3 +77,9 @@ endif
ifeq ($(ADK_TARGET_FS),nfsroot)
imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
endif
+ifeq ($(ADK_TARGET_FS),squashfs)
+imageinstall: $(BUILD_DIR)/root.squashfs kernel-install targethelp
+endif
+ifeq ($(ADK_TARGET_FS),jffs2)
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSJFFS2) targethelp
+endif
diff --git a/target/cris/systems/foxboard-lx832 b/target/cris/systems/foxboard-lx832
index 057e0627d..82eaad093 100644
--- a/target/cris/systems/foxboard-lx832
+++ b/target/cris/systems/foxboard-lx832
@@ -2,7 +2,7 @@ config ADK_TARGET_SYSTEM_FOXBOARD_LX832
bool "Foxboard LX832"
select ADK_TARGET_CPU_CRIS_CRISV10
select ADK_TARGET_WITH_MTD
- select ADK_TARGET_KERNEL_IMAGE
+ select ADK_TARGET_KERNEL_ZIMAGE
select ADK_TARGET_KERNEL_WITH_COMPRESSION
help
Foxboard LX832 support