2017-06-15 15:00:58

by Waldemar Brodkorb

[permalink] [raw]
Subject: h8300 for edosk2674 device

Hi,

the attached kernel config errors out with:
/usr/bin/make -f ./scripts/Makefile.build obj=arch/h8300/boot
arch/h8300/boot/uImage.bin
/home/wbx/h8300/toolchain_hitachi-edosk2674_uclibc-ng/usr/bin/h8300-openadk-linux-uclibc-objcopy
-Obinary vmlinux arch/h8300/boot/vmlinux.bin
/bin/bash ./scripts/mkuboot.sh -A h8300 -O linux -C none -T
kernel -a -e 0x00000000 -n 'Linux-4.11.5-1' -d
arch/h8300/boot/vmlinux.bin arch/h8300/boot/uImage.bin
Usage: /home/wbx/h8300/host_x86_64-linux-gnu/usr/bin/mkimage -l
image
-l ==> list image header information
/home/wbx/h8300/host_x86_64-linux-gnu/usr/bin/mkimage [-x] -A
arch -O os -T type -C comp -a addr -e ep -n name -d
data_file[:data_file...] image
-A ==> set architecture to 'arch'
-O ==> set operating system to 'os'
-T ==> set image type to 'type'
-C ==> set compression type 'comp'
-a ==> set load address to 'addr' (hex)
-e ==> set entry point to 'ep' (hex)
-n ==> set image name to 'name'
-d ==> use image data from 'datafile'
-x ==> set XIP (execute in place)
/home/wbx/h8300/host_x86_64-linux-gnu/usr/bin/mkimage [-D
dtc_options] [-f fit-image.its|-F] fit-image
-D => set options for device tree compiler
-f => input filename for FIT source
Signing / verified boot options: [-k keydir] [-K dtb] [ -c
<comment>] [-r]
-k => set directory containing private keys
-K => write public keys to this .dtb file
-c => add comment in signature node
-F => re-sign existing FIT image
-r => mark keys used as 'required' in dtb
/home/wbx/h8300/host_x86_64-linux-gnu/usr/bin/mkimage

Kernel 4.11.5 is tried to cross-compiled. The -a parameter to
mkimage is empty. What is the correct value?

I tried to use following patch, but the resulting kernel does not
boot on my device:
diff -Nur linux-4.9.20.orig/arch/h8300/Kconfig.cpu
linux-4.9.20/arch/h8300/Kconfig.cpu
--- linux-4.9.20.orig/arch/h8300/Kconfig.cpu 2017-03-31
10:32:02.000000000 +0200
+++ linux-4.9.20/arch/h8300/Kconfig.cpu 2017-04-04
08:10:00.132205323 +0200
@@ -96,4 +96,8 @@
hex "Load offset"
default 0

+config RAMBASE
+ hex "RAM base address"
+ default 0x400000
+
endmenu

Any ideas?

best regards
Waldemar


Attachments:
(No filename) (2.29 kB)
.config (22.44 kB)
Download all attachments