Patrick Delaunay | 01bcfc2 | 2019-08-02 15:07:21 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Compilation: |
| 3 | * mkimage -f fit_kernel_dtb.its fit_kernel_dtb.itb |
| 4 | * |
| 5 | * Files in linux build dir: |
Patrick Delaunay | 61eebd4 | 2020-11-25 12:28:10 +0100 | [diff] [blame] | 6 | * - arch/arm/boot/Image (gzipped in Image.gz) |
Patrick Delaunay | 01bcfc2 | 2019-08-02 15:07:21 +0200 | [diff] [blame] | 7 | * - arch/arm/boot/dts/stm32mp157c-dk2.dtb |
| 8 | * - arch/arm/boot/dts/stm32mp157c-ev1.dtb |
| 9 | * |
| 10 | * load mmc 0:4 $kernel_addr_r fit_kernel_dtb.itb |
| 11 | * bootm $kernel_addr_r |
| 12 | * bootm $kernel_addr_r#dk2 |
| 13 | * bootm $kernel_addr_r#ev1 |
| 14 | * |
| 15 | * or use extlinux.conf in this directory |
| 16 | */ |
| 17 | |
| 18 | /dts-v1/; |
| 19 | / { |
| 20 | description = "U-Boot fitImage for stm32mp157"; |
| 21 | #address-cells = <1>; |
| 22 | |
| 23 | images { |
| 24 | kernel { |
| 25 | description = "Linux kernel"; |
Patrick Delaunay | 61eebd4 | 2020-11-25 12:28:10 +0100 | [diff] [blame] | 26 | data = /incbin/("Image.gz"); |
Patrick Delaunay | 01bcfc2 | 2019-08-02 15:07:21 +0200 | [diff] [blame] | 27 | type = "kernel"; |
| 28 | arch = "arm"; |
| 29 | os = "linux"; |
Patrick Delaunay | 61eebd4 | 2020-11-25 12:28:10 +0100 | [diff] [blame] | 30 | compression = "gzip"; |
Patrick Delaunay | 01bcfc2 | 2019-08-02 15:07:21 +0200 | [diff] [blame] | 31 | load = <0xC0008000>; |
| 32 | entry = <0xC0008000>; |
| 33 | hash-1 { |
| 34 | algo = "sha1"; |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | fdt-dk2 { |
| 39 | description = "FDT dk2"; |
| 40 | data = /incbin/("stm32mp157c-dk2.dtb"); |
| 41 | type = "flat_dt"; |
| 42 | arch = "arm"; |
| 43 | compression = "none"; |
| 44 | hash-1 { |
| 45 | algo = "sha1"; |
| 46 | }; |
| 47 | }; |
| 48 | |
| 49 | fdt-ev1 { |
| 50 | description = "FDT ev1"; |
| 51 | data = /incbin/("stm32mp157c-ev1.dtb"); |
| 52 | type = "flat_dt"; |
| 53 | arch = "arm"; |
| 54 | compression = "none"; |
| 55 | hash-1 { |
| 56 | algo = "sha1"; |
| 57 | }; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | configurations { |
| 62 | default = "dk2"; |
| 63 | |
| 64 | dk2 { |
| 65 | description = "dk2"; |
| 66 | kernel = "kernel"; |
| 67 | fdt = "fdt-dk2"; |
| 68 | hash-1 { |
| 69 | algo = "sha1"; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | ev1 { |
| 74 | description = "ev1"; |
| 75 | kernel = "kernel"; |
| 76 | fdt = "fdt-ev1"; |
| 77 | hash-1 { |
| 78 | algo = "sha1"; |
| 79 | }; |
| 80 | }; |
| 81 | }; |
| 82 | }; |