imx6-dongle / linux-imx

Linux kernel for GK802/HI802, i.MX6 based HDMI-dongle/tv-stick computers
Other
28 stars 22 forks source link

Specify LOADADDR on the commandline to build an uImage #18

Open tosiara opened 9 years ago

tosiara commented 9 years ago

Trying to compile imx_3.10.17_1.0.0_ga. When running "make uImage" I get error:

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4 uImage
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  LZO     arch/arm/boot/compressed/piggy.lzo
  CC      arch/arm/boot/compressed/string.o
  SHIPPED arch/arm/boot/compressed/hyp-stub.S
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  SHIPPED arch/arm/boot/compressed/ashldi3.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  AS      arch/arm/boot/compressed/ashldi3.o
  AS      arch/arm/boot/compressed/hyp-stub.o
  AS      arch/arm/boot/compressed/piggy.lzo.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
multiple (or no) load addresses: 
This is incompatible with uImages
Specify LOADADDR on the commandline to build an uImage
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2

Any suggestions how to work around this? Thanks

tosiara commented 9 years ago

Tried to pass manually LOADADDR=10008000, 80008000 - kernel does not boot. Stuks at "Starting kernel ...". Same as I had initially with 3.10 kernel: https://groups.google.com/d/msg/imx6-dongle/1M_xIrDPl-E/8_82Vftr4coJ

esmil commented 9 years ago

Most recent builds of U-Boot can boot Linux zImages directly with bootz. Maybe you can try just building the zImage and then booting that with bootz.

Also make sure you have something like "console=ttymxc0,115200n8" in your bootargs variable, so the kernel outputs to your serial console when booting.

tosiara commented 9 years ago

I wonder if latest U-boot supports GK802 out of the box?

cyrilfr commented 9 years ago

Hi, I have exactly the same issue. Did you find a solution?

derSteFfi commented 6 years ago

The LOADADDR needs to be specified in with 0x prefix, just dropping because I found this while searching for something else...