aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/samsung/image/Makefile
blob: 53509ef137f66eff9e7abe0a1f191232a6844c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk

KERNEL_LOADADDR := 0x20008000

define Device/Default
  PROFILES = Default
  KERNEL_NAME := zImage
  KERNEL := kernel-bin | append-dtb | uImage none
  DEVICE_DTS_DIR := ../dts
  DEVICE_DTS = $$(SOC)_$(1)
endef

define Device/embedsky_tq210
  DEVICE_VENDOR := EmbedSky
  DEVICE_MODEL := TQ210
  SOC := s5pv210
endef
TARGET_DEVICES += embedsky_tq210

$(eval $(call BuildImage))
r *ec_hdr, int verbose) { @@ -753,6 +754,10 @@ int ubi_io_read_ec_hdr(struct ubi_device } magic = be32_to_cpu(ec_hdr->magic); + if (magic == 0xdeadc0de) + erase_all_next = true; + if (erase_all_next) + return read_err ? UBI_IO_FF_BITFLIPS : UBI_IO_FF; if (magic != UBI_EC_HDR_MAGIC) { if (mtd_is_eccerr(read_err)) return UBI_IO_BAD_HDR_EBADMSG;