diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot/tools/binman/test | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot/tools/binman/test')
220 files changed, 4419 insertions, 0 deletions
diff --git a/roms/u-boot/tools/binman/test/001_invalid.dts b/roms/u-boot/tools/binman/test/001_invalid.dts new file mode 100644 index 000000000..7d00455d7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/001_invalid.dts @@ -0,0 +1,5 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; diff --git a/roms/u-boot/tools/binman/test/002_missing_node.dts b/roms/u-boot/tools/binman/test/002_missing_node.dts new file mode 100644 index 000000000..3a51ec2be --- /dev/null +++ b/roms/u-boot/tools/binman/test/002_missing_node.dts @@ -0,0 +1,6 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; +}; diff --git a/roms/u-boot/tools/binman/test/003_empty.dts b/roms/u-boot/tools/binman/test/003_empty.dts new file mode 100644 index 000000000..493c9a04c --- /dev/null +++ b/roms/u-boot/tools/binman/test/003_empty.dts @@ -0,0 +1,9 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + }; +}; diff --git a/roms/u-boot/tools/binman/test/004_invalid_entry.dts b/roms/u-boot/tools/binman/test/004_invalid_entry.dts new file mode 100644 index 000000000..b043455bb --- /dev/null +++ b/roms/u-boot/tools/binman/test/004_invalid_entry.dts @@ -0,0 +1,11 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + not-a-valid-type { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/005_simple.dts b/roms/u-boot/tools/binman/test/005_simple.dts new file mode 100644 index 000000000..3771aa226 --- /dev/null +++ b/roms/u-boot/tools/binman/test/005_simple.dts @@ -0,0 +1,11 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/006_dual_image.dts b/roms/u-boot/tools/binman/test/006_dual_image.dts new file mode 100644 index 000000000..78be16f16 --- /dev/null +++ b/roms/u-boot/tools/binman/test/006_dual_image.dts @@ -0,0 +1,22 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + multiple-images; + image1 { + u-boot { + }; + }; + + image2 { + pad-before = <3>; + pad-after = <5>; + + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/007_bad_align.dts b/roms/u-boot/tools/binman/test/007_bad_align.dts new file mode 100644 index 000000000..123bb1355 --- /dev/null +++ b/roms/u-boot/tools/binman/test/007_bad_align.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + align = <23>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/008_pack.dts b/roms/u-boot/tools/binman/test/008_pack.dts new file mode 100644 index 000000000..a88785d83 --- /dev/null +++ b/roms/u-boot/tools/binman/test/008_pack.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + + u-boot-align { + type = "u-boot"; + align = <16>; + }; + + u-boot-size { + type = "u-boot"; + size = <23>; + }; + + u-boot-next { + type = "u-boot"; + }; + + u-boot-fixed { + type = "u-boot"; + offset = <61>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/009_pack_extra.dts b/roms/u-boot/tools/binman/test/009_pack_extra.dts new file mode 100644 index 000000000..1b3155577 --- /dev/null +++ b/roms/u-boot/tools/binman/test/009_pack_extra.dts @@ -0,0 +1,35 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + pad-before = <3>; + pad-after = <5>; + }; + + u-boot-align-size-nop { + type = "u-boot"; + align-size = <4>; + }; + + u-boot-align-size { + type = "u-boot"; + align = <16>; + align-size = <32>; + }; + + u-boot-align-end { + type = "u-boot"; + align-end = <64>; + }; + + u-boot-align-both { + type = "u-boot"; + align = <64>; + align-end = <128>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/010_pack_align_power2.dts b/roms/u-boot/tools/binman/test/010_pack_align_power2.dts new file mode 100644 index 000000000..8f6253a3d --- /dev/null +++ b/roms/u-boot/tools/binman/test/010_pack_align_power2.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + align = <5>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/011_pack_align_size_power2.dts b/roms/u-boot/tools/binman/test/011_pack_align_size_power2.dts new file mode 100644 index 000000000..04f7672ea --- /dev/null +++ b/roms/u-boot/tools/binman/test/011_pack_align_size_power2.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + align-size = <55>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/012_pack_inv_align.dts b/roms/u-boot/tools/binman/test/012_pack_inv_align.dts new file mode 100644 index 000000000..d8dd600ed --- /dev/null +++ b/roms/u-boot/tools/binman/test/012_pack_inv_align.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + offset = <5>; + align = <4>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/013_pack_inv_size_align.dts b/roms/u-boot/tools/binman/test/013_pack_inv_size_align.dts new file mode 100644 index 000000000..dfafa134d --- /dev/null +++ b/roms/u-boot/tools/binman/test/013_pack_inv_size_align.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + size = <5>; + align-size = <4>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/014_pack_overlap.dts b/roms/u-boot/tools/binman/test/014_pack_overlap.dts new file mode 100644 index 000000000..3895cba3b --- /dev/null +++ b/roms/u-boot/tools/binman/test/014_pack_overlap.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + + u-boot-align { + type = "u-boot"; + offset = <3>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/015_pack_overflow.dts b/roms/u-boot/tools/binman/test/015_pack_overflow.dts new file mode 100644 index 000000000..6f654330a --- /dev/null +++ b/roms/u-boot/tools/binman/test/015_pack_overflow.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + size = <3>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/016_pack_image_overflow.dts b/roms/u-boot/tools/binman/test/016_pack_image_overflow.dts new file mode 100644 index 000000000..6ae66f3ac --- /dev/null +++ b/roms/u-boot/tools/binman/test/016_pack_image_overflow.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <3>; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/017_pack_image_size.dts b/roms/u-boot/tools/binman/test/017_pack_image_size.dts new file mode 100644 index 000000000..2360eb5d1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/017_pack_image_size.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <7>; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/018_pack_image_align.dts b/roms/u-boot/tools/binman/test/018_pack_image_align.dts new file mode 100644 index 000000000..16cd2a422 --- /dev/null +++ b/roms/u-boot/tools/binman/test/018_pack_image_align.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + align-size = <16>; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/019_pack_inv_image_align.dts b/roms/u-boot/tools/binman/test/019_pack_inv_image_align.dts new file mode 100644 index 000000000..e5ee87b88 --- /dev/null +++ b/roms/u-boot/tools/binman/test/019_pack_inv_image_align.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <7>; + align-size = <8>; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/020_pack_inv_image_align_power2.dts b/roms/u-boot/tools/binman/test/020_pack_inv_image_align_power2.dts new file mode 100644 index 000000000..a428c4be5 --- /dev/null +++ b/roms/u-boot/tools/binman/test/020_pack_inv_image_align_power2.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + align-size = <131>; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/021_image_pad.dts b/roms/u-boot/tools/binman/test/021_image_pad.dts new file mode 100644 index 000000000..1ff8dab29 --- /dev/null +++ b/roms/u-boot/tools/binman/test/021_image_pad.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl { + }; + + u-boot { + offset = <24>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/022_image_name.dts b/roms/u-boot/tools/binman/test/022_image_name.dts new file mode 100644 index 000000000..94fc069c1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/022_image_name.dts @@ -0,0 +1,21 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + multiple-images; + image1 { + filename = "test-name"; + u-boot { + }; + }; + + image2 { + filename = "test-name.xx"; + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/023_blob.dts b/roms/u-boot/tools/binman/test/023_blob.dts new file mode 100644 index 000000000..7dcff6966 --- /dev/null +++ b/roms/u-boot/tools/binman/test/023_blob.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + blob { + filename = "blobfile"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/024_sorted.dts b/roms/u-boot/tools/binman/test/024_sorted.dts new file mode 100644 index 000000000..b79d9adf6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/024_sorted.dts @@ -0,0 +1,17 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + u-boot { + offset = <26>; + }; + + u-boot-spl { + offset = <1>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/025_pack_zero_size.dts b/roms/u-boot/tools/binman/test/025_pack_zero_size.dts new file mode 100644 index 000000000..e863c44e3 --- /dev/null +++ b/roms/u-boot/tools/binman/test/025_pack_zero_size.dts @@ -0,0 +1,15 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + + u-boot-spl { + offset = <0>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/026_pack_u_boot_dtb.dts b/roms/u-boot/tools/binman/test/026_pack_u_boot_dtb.dts new file mode 100644 index 000000000..2707a7347 --- /dev/null +++ b/roms/u-boot/tools/binman/test/026_pack_u_boot_dtb.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-nodtb { + }; + + u-boot-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/027_pack_4gb_no_size.dts b/roms/u-boot/tools/binman/test/027_pack_4gb_no_size.dts new file mode 100644 index 000000000..371cca10d --- /dev/null +++ b/roms/u-boot/tools/binman/test/027_pack_4gb_no_size.dts @@ -0,0 +1,18 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + u-boot { + offset = <0xfffffff0>; + }; + + u-boot-spl { + offset = <0xfffffff7>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/028_pack_4gb_outside.dts b/roms/u-boot/tools/binman/test/028_pack_4gb_outside.dts new file mode 100644 index 000000000..11a1f6059 --- /dev/null +++ b/roms/u-boot/tools/binman/test/028_pack_4gb_outside.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <32>; + u-boot { + offset = <0>; + }; + + u-boot-spl { + offset = <0xffffffe7>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/029_x86_rom.dts b/roms/u-boot/tools/binman/test/029_x86_rom.dts new file mode 100644 index 000000000..88aa007bb --- /dev/null +++ b/roms/u-boot/tools/binman/test/029_x86_rom.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <32>; + u-boot { + offset = <0xffffffe0>; + }; + + u-boot-spl { + offset = <0xffffffe7>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/030_x86_rom_me_no_desc.dts b/roms/u-boot/tools/binman/test/030_x86_rom_me_no_desc.dts new file mode 100644 index 000000000..796cb87af --- /dev/null +++ b/roms/u-boot/tools/binman/test/030_x86_rom_me_no_desc.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <16>; + intel-me { + filename = "me.bin"; + offset-unset; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/031_x86_rom_me.dts b/roms/u-boot/tools/binman/test/031_x86_rom_me.dts new file mode 100644 index 000000000..b8b0a5a74 --- /dev/null +++ b/roms/u-boot/tools/binman/test/031_x86_rom_me.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor.bin"; + }; + + intel-me { + filename = "me.bin"; + offset-unset; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/032_intel_vga.dts b/roms/u-boot/tools/binman/test/032_intel_vga.dts new file mode 100644 index 000000000..9c532d03d --- /dev/null +++ b/roms/u-boot/tools/binman/test/032_intel_vga.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-vga { + filename = "vga.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/033_x86_start16.dts b/roms/u-boot/tools/binman/test/033_x86_start16.dts new file mode 100644 index 000000000..2e279dee9 --- /dev/null +++ b/roms/u-boot/tools/binman/test/033_x86_start16.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-start16 { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/034_x86_ucode.dts b/roms/u-boot/tools/binman/test/034_x86_ucode.dts new file mode 100644 index 000000000..40725731c --- /dev/null +++ b/roms/u-boot/tools/binman/test/034_x86_ucode.dts @@ -0,0 +1,29 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/035_x86_single_ucode.dts b/roms/u-boot/tools/binman/test/035_x86_single_ucode.dts new file mode 100644 index 000000000..2b1f086a4 --- /dev/null +++ b/roms/u-boot/tools/binman/test/035_x86_single_ucode.dts @@ -0,0 +1,26 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/036_u_boot_img.dts b/roms/u-boot/tools/binman/test/036_u_boot_img.dts new file mode 100644 index 000000000..aa5a3fe48 --- /dev/null +++ b/roms/u-boot/tools/binman/test/036_u_boot_img.dts @@ -0,0 +1,11 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-img { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/037_x86_no_ucode.dts b/roms/u-boot/tools/binman/test/037_x86_no_ucode.dts new file mode 100644 index 000000000..6da49c3da --- /dev/null +++ b/roms/u-boot/tools/binman/test/037_x86_no_ucode.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/038_x86_ucode_missing_node.dts b/roms/u-boot/tools/binman/test/038_x86_ucode_missing_node.dts new file mode 100644 index 000000000..720677c9c --- /dev/null +++ b/roms/u-boot/tools/binman/test/038_x86_ucode_missing_node.dts @@ -0,0 +1,26 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/039_x86_ucode_missing_node2.dts b/roms/u-boot/tools/binman/test/039_x86_ucode_missing_node2.dts new file mode 100644 index 000000000..10ac086d5 --- /dev/null +++ b/roms/u-boot/tools/binman/test/039_x86_ucode_missing_node2.dts @@ -0,0 +1,23 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/040_x86_ucode_not_in_image.dts b/roms/u-boot/tools/binman/test/040_x86_ucode_not_in_image.dts new file mode 100644 index 000000000..609725824 --- /dev/null +++ b/roms/u-boot/tools/binman/test/040_x86_ucode_not_in_image.dts @@ -0,0 +1,28 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + size = <0x200>; + u-boot-with-ucode-ptr { + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/041_unknown_pos_size.dts b/roms/u-boot/tools/binman/test/041_unknown_pos_size.dts new file mode 100644 index 000000000..94fe821c4 --- /dev/null +++ b/roms/u-boot/tools/binman/test/041_unknown_pos_size.dts @@ -0,0 +1,12 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + return-invalid-entry; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/042_intel_fsp.dts b/roms/u-boot/tools/binman/test/042_intel_fsp.dts new file mode 100644 index 000000000..8a7c88925 --- /dev/null +++ b/roms/u-boot/tools/binman/test/042_intel_fsp.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-fsp { + filename = "fsp.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/043_intel_cmc.dts b/roms/u-boot/tools/binman/test/043_intel_cmc.dts new file mode 100644 index 000000000..5a56c7d88 --- /dev/null +++ b/roms/u-boot/tools/binman/test/043_intel_cmc.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-cmc { + filename = "cmc.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/044_x86_optional_ucode.dts b/roms/u-boot/tools/binman/test/044_x86_optional_ucode.dts new file mode 100644 index 000000000..24a7040d3 --- /dev/null +++ b/roms/u-boot/tools/binman/test/044_x86_optional_ucode.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-with-ucode-ptr { + optional-ucode; + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/045_prop_test.dts b/roms/u-boot/tools/binman/test/045_prop_test.dts new file mode 100644 index 000000000..064de2b31 --- /dev/null +++ b/roms/u-boot/tools/binman/test/045_prop_test.dts @@ -0,0 +1,23 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <16>; + intel-me { + filename = "me.bin"; + offset-unset; + intval = <3>; + intarray = <5 6>; + byteval = [08]; + bytearray = [01 23 34]; + longbytearray = [09 0a 0b 0c]; + stringval = "message2"; + stringarray = "another", "multi-word", "message"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/046_intel_vbt.dts b/roms/u-boot/tools/binman/test/046_intel_vbt.dts new file mode 100644 index 000000000..733f5751d --- /dev/null +++ b/roms/u-boot/tools/binman/test/046_intel_vbt.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-vbt { + filename = "vbt.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/047_spl_bss_pad.dts b/roms/u-boot/tools/binman/test/047_spl_bss_pad.dts new file mode 100644 index 000000000..6bd88b83f --- /dev/null +++ b/roms/u-boot/tools/binman/test/047_spl_bss_pad.dts @@ -0,0 +1,17 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-spl { + }; + + u-boot-spl-bss-pad { + }; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/048_x86_start16_spl.dts b/roms/u-boot/tools/binman/test/048_x86_start16_spl.dts new file mode 100644 index 000000000..e2009f15f --- /dev/null +++ b/roms/u-boot/tools/binman/test/048_x86_start16_spl.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-start16-spl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/049_x86_ucode_spl.dts b/roms/u-boot/tools/binman/test/049_x86_ucode_spl.dts new file mode 100644 index 000000000..350d2c473 --- /dev/null +++ b/roms/u-boot/tools/binman/test/049_x86_ucode_spl.dts @@ -0,0 +1,29 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-spl-with-ucode-ptr { + }; + + u-boot-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/050_intel_mrc.dts b/roms/u-boot/tools/binman/test/050_intel_mrc.dts new file mode 100644 index 000000000..54cd52a2b --- /dev/null +++ b/roms/u-boot/tools/binman/test/050_intel_mrc.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-mrc { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/051_u_boot_spl_dtb.dts b/roms/u-boot/tools/binman/test/051_u_boot_spl_dtb.dts new file mode 100644 index 000000000..3912f86b4 --- /dev/null +++ b/roms/u-boot/tools/binman/test/051_u_boot_spl_dtb.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + u-boot-spl-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/052_u_boot_spl_nodtb.dts b/roms/u-boot/tools/binman/test/052_u_boot_spl_nodtb.dts new file mode 100644 index 000000000..7f4e27780 --- /dev/null +++ b/roms/u-boot/tools/binman/test/052_u_boot_spl_nodtb.dts @@ -0,0 +1,11 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-spl-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/053_symbols.dts b/roms/u-boot/tools/binman/test/053_symbols.dts new file mode 100644 index 000000000..296580927 --- /dev/null +++ b/roms/u-boot/tools/binman/test/053_symbols.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl { + }; + + u-boot { + offset = <0x18>; + }; + + u-boot-spl2 { + type = "u-boot-spl"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/054_unit_address.dts b/roms/u-boot/tools/binman/test/054_unit_address.dts new file mode 100644 index 000000000..3216dbbcc --- /dev/null +++ b/roms/u-boot/tools/binman/test/054_unit_address.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot@0 { + }; + u-boot@1 { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/055_sections.dts b/roms/u-boot/tools/binman/test/055_sections.dts new file mode 100644 index 000000000..6b306aeda --- /dev/null +++ b/roms/u-boot/tools/binman/test/055_sections.dts @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + size = <0x28>; + section@0 { + read-only; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + size = <0x10>; + pad-byte = <0x61>; + + u-boot { + }; + }; + section@2 { + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/056_name_prefix.dts b/roms/u-boot/tools/binman/test/056_name_prefix.dts new file mode 100644 index 000000000..f38c80eb1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/056_name_prefix.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + size = <0x28>; + section@0 { + read-only; + name-prefix = "ro-"; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + name-prefix = "rw-"; + size = <0x10>; + pad-byte = <0x61>; + + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/057_unknown_contents.dts b/roms/u-boot/tools/binman/test/057_unknown_contents.dts new file mode 100644 index 000000000..6ea98d7ca --- /dev/null +++ b/roms/u-boot/tools/binman/test/057_unknown_contents.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + return-unknown-contents; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/058_x86_ucode_spl_needs_retry.dts b/roms/u-boot/tools/binman/test/058_x86_ucode_spl_needs_retry.dts new file mode 100644 index 000000000..a04adaaf7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/058_x86_ucode_spl_needs_retry.dts @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-spl-with-ucode-ptr { + }; + + /* + * Microcode goes before the DTB which contains it, so binman + * will need to obtain the contents of the next section before + * obtaining the contents of this one. + */ + u-boot-ucode { + }; + + u-boot-dtb-with-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/059_change_size.dts b/roms/u-boot/tools/binman/test/059_change_size.dts new file mode 100644 index 000000000..1a69026a6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/059_change_size.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + bad-update-contents; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/060_fdt_update.dts b/roms/u-boot/tools/binman/test/060_fdt_update.dts new file mode 100644 index 000000000..f53c8a505 --- /dev/null +++ b/roms/u-boot/tools/binman/test/060_fdt_update.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + size = <0x28>; + section@0 { + read-only; + name-prefix = "ro-"; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + name-prefix = "rw-"; + size = <0x10>; + pad-byte = <0x61>; + + u-boot { + }; + }; + _testing { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/061_fdt_update_bad.dts b/roms/u-boot/tools/binman/test/061_fdt_update_bad.dts new file mode 100644 index 000000000..e5abf3169 --- /dev/null +++ b/roms/u-boot/tools/binman/test/061_fdt_update_bad.dts @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + size = <0x28>; + section@0 { + read-only; + name-prefix = "ro-"; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + name-prefix = "rw-"; + size = <0x10>; + pad-byte = <0x61>; + + u-boot { + }; + }; + _testing { + never-complete-process-fdt; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/062_entry_args.dts b/roms/u-boot/tools/binman/test/062_entry_args.dts new file mode 100644 index 000000000..4d4f102d6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/062_entry_args.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + test-str-fdt = "test0"; + test-int-fdt = <123>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/063_entry_args_missing.dts b/roms/u-boot/tools/binman/test/063_entry_args_missing.dts new file mode 100644 index 000000000..1644e2fef --- /dev/null +++ b/roms/u-boot/tools/binman/test/063_entry_args_missing.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + test-str-fdt = "test0"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/064_entry_args_required.dts b/roms/u-boot/tools/binman/test/064_entry_args_required.dts new file mode 100644 index 000000000..705be1006 --- /dev/null +++ b/roms/u-boot/tools/binman/test/064_entry_args_required.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + require-args; + test-str-fdt = "test0"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/065_entry_args_unknown_datatype.dts b/roms/u-boot/tools/binman/test/065_entry_args_unknown_datatype.dts new file mode 100644 index 000000000..3e4838f4f --- /dev/null +++ b/roms/u-boot/tools/binman/test/065_entry_args_unknown_datatype.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + test-str-fdt = "test0"; + test-int-fdt = <123>; + force-bad-datatype; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/066_text.dts b/roms/u-boot/tools/binman/test/066_text.dts new file mode 100644 index 000000000..f23a75ae9 --- /dev/null +++ b/roms/u-boot/tools/binman/test/066_text.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + text { + size = <8>; + text-label = "test-id"; + }; + text2 { + type = "text"; + text-label = "test-id2"; + }; + text3 { + type = "text"; + text-label = "test-id3"; + }; + /* This one does not use command-line args */ + text4 { + type = "text"; + text-label = "test-id4"; + test-id4 = "some text"; + }; + /* Put text directly in the node */ + text5 { + type = "text"; + text = "more text"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/067_fmap.dts b/roms/u-boot/tools/binman/test/067_fmap.dts new file mode 100644 index 000000000..9c0e293ac --- /dev/null +++ b/roms/u-boot/tools/binman/test/067_fmap.dts @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section@0 { + read-only; + name-prefix = "ro-"; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + name-prefix = "rw-"; + size = <0x10>; + pad-byte = <0x61>; + + u-boot { + }; + }; + fmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/068_blob_named_by_arg.dts b/roms/u-boot/tools/binman/test/068_blob_named_by_arg.dts new file mode 100644 index 000000000..e129f843c --- /dev/null +++ b/roms/u-boot/tools/binman/test/068_blob_named_by_arg.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cros-ec-rw { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/069_fill.dts b/roms/u-boot/tools/binman/test/069_fill.dts new file mode 100644 index 000000000..e372ea37a --- /dev/null +++ b/roms/u-boot/tools/binman/test/069_fill.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + fill { + size = <8>; + fill-byte = [ff]; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/070_fill_no_size.dts b/roms/u-boot/tools/binman/test/070_fill_no_size.dts new file mode 100644 index 000000000..7b1fcf1b6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/070_fill_no_size.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + fill { + fill-byte = [ff]; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/071_gbb.dts b/roms/u-boot/tools/binman/test/071_gbb.dts new file mode 100644 index 000000000..551756372 --- /dev/null +++ b/roms/u-boot/tools/binman/test/071_gbb.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + gbb { + size = <0x2180>; + flags { + dev-screen-short-delay; + load-option-roms; + enable-alternate-os; + force-dev-switch-on; + force-dev-boot-usb; + disable-fw-rollback-check; + enter-triggers-tonorm; + force-dev-boot-legacy; + faft-key-override; + disable-ec-software-sync; + default-dev-boot-legacy; + disable-pd-software-sync; + disable-lid-shutdown; + force-dev-boot-fastboot-full-cap; + enable-serial; + disable-dwmp; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/072_gbb_too_small.dts b/roms/u-boot/tools/binman/test/072_gbb_too_small.dts new file mode 100644 index 000000000..c088f36a1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/072_gbb_too_small.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + gbb { + size = <0x200>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/073_gbb_no_size.dts b/roms/u-boot/tools/binman/test/073_gbb_no_size.dts new file mode 100644 index 000000000..83be40378 --- /dev/null +++ b/roms/u-boot/tools/binman/test/073_gbb_no_size.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + gbb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/074_vblock.dts b/roms/u-boot/tools/binman/test/074_vblock.dts new file mode 100644 index 000000000..f0c21bfe9 --- /dev/null +++ b/roms/u-boot/tools/binman/test/074_vblock.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u_boot: u-boot { + }; + + vblock { + content = <&u_boot &dtb>; + keyblock = "firmware.keyblock"; + signprivate = "firmware_data_key.vbprivk"; + version = <1>; + kernelkey = "kernel_subkey.vbpubk"; + preamble-flags = <1>; + }; + + /* + * Put this after the vblock so that its contents are not + * available when the vblock first tries to obtain its contents + */ + dtb: u-boot-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/075_vblock_no_content.dts b/roms/u-boot/tools/binman/test/075_vblock_no_content.dts new file mode 100644 index 000000000..676d9474b --- /dev/null +++ b/roms/u-boot/tools/binman/test/075_vblock_no_content.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u_boot: u-boot { + }; + + vblock { + keyblock = "firmware.keyblock"; + signprivate = "firmware_data_key.vbprivk"; + version = <1>; + kernelkey = "kernel_subkey.vbpubk"; + preamble-flags = <1>; + }; + + dtb: u-boot-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/076_vblock_bad_phandle.dts b/roms/u-boot/tools/binman/test/076_vblock_bad_phandle.dts new file mode 100644 index 000000000..ffbd0c335 --- /dev/null +++ b/roms/u-boot/tools/binman/test/076_vblock_bad_phandle.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u_boot: u-boot { + }; + + vblock { + content = <1000>; + keyblock = "firmware.keyblock"; + signprivate = "firmware_data_key.vbprivk"; + version = <1>; + kernelkey = "kernel_subkey.vbpubk"; + preamble-flags = <1>; + }; + + dtb: u-boot-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/077_vblock_bad_entry.dts b/roms/u-boot/tools/binman/test/077_vblock_bad_entry.dts new file mode 100644 index 000000000..764c42a56 --- /dev/null +++ b/roms/u-boot/tools/binman/test/077_vblock_bad_entry.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u_boot: u-boot { + }; + + vblock { + content = <&u_boot &other>; + keyblock = "firmware.keyblock"; + signprivate = "firmware_data_key.vbprivk"; + version = <1>; + kernelkey = "kernel_subkey.vbpubk"; + preamble-flags = <1>; + }; + + dtb: u-boot-dtb { + }; + }; + + other: other { + }; +}; diff --git a/roms/u-boot/tools/binman/test/078_u_boot_tpl.dts b/roms/u-boot/tools/binman/test/078_u_boot_tpl.dts new file mode 100644 index 000000000..6c60b4c46 --- /dev/null +++ b/roms/u-boot/tools/binman/test/078_u_boot_tpl.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot-tpl { + }; + u-boot-tpl-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/079_uses_pos.dts b/roms/u-boot/tools/binman/test/079_uses_pos.dts new file mode 100644 index 000000000..7638b9b5e --- /dev/null +++ b/roms/u-boot/tools/binman/test/079_uses_pos.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot { + pos = <10>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/080_fill_empty.dts b/roms/u-boot/tools/binman/test/080_fill_empty.dts new file mode 100644 index 000000000..2b78d3ae8 --- /dev/null +++ b/roms/u-boot/tools/binman/test/080_fill_empty.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + fill { + size = <0>; + fill-byte = [ff]; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/081_x86_start16_tpl.dts b/roms/u-boot/tools/binman/test/081_x86_start16_tpl.dts new file mode 100644 index 000000000..68e6bbd68 --- /dev/null +++ b/roms/u-boot/tools/binman/test/081_x86_start16_tpl.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-start16-tpl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/082_fdt_update_all.dts b/roms/u-boot/tools/binman/test/082_fdt_update_all.dts new file mode 100644 index 000000000..284975cc2 --- /dev/null +++ b/roms/u-boot/tools/binman/test/082_fdt_update_all.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section { + u-boot-dtb { + }; + }; + u-boot-spl-dtb { + }; + u-boot-tpl-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/083_compress.dts b/roms/u-boot/tools/binman/test/083_compress.dts new file mode 100644 index 000000000..07813bdea --- /dev/null +++ b/roms/u-boot/tools/binman/test/083_compress.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + blob { + filename = "compress"; + compress = "lz4"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/084_files.dts b/roms/u-boot/tools/binman/test/084_files.dts new file mode 100644 index 000000000..8f09afd24 --- /dev/null +++ b/roms/u-boot/tools/binman/test/084_files.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + files { + pattern = "files/*.dat"; + files-compress = "none"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/085_files_compress.dts b/roms/u-boot/tools/binman/test/085_files_compress.dts new file mode 100644 index 000000000..5aeead2e6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/085_files_compress.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + files { + pattern = "files/*.dat"; + files-compress = "lz4"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/086_files_none.dts b/roms/u-boot/tools/binman/test/086_files_none.dts new file mode 100644 index 000000000..34bd92f22 --- /dev/null +++ b/roms/u-boot/tools/binman/test/086_files_none.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + files { + pattern = "files/*.none"; + compress = "none"; + require-matches; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/087_files_no_pattern.dts b/roms/u-boot/tools/binman/test/087_files_no_pattern.dts new file mode 100644 index 000000000..0cb5b469c --- /dev/null +++ b/roms/u-boot/tools/binman/test/087_files_no_pattern.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + files { + compress = "none"; + require-matches; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/088_expand_size.dts b/roms/u-boot/tools/binman/test/088_expand_size.dts new file mode 100644 index 000000000..c8a01308e --- /dev/null +++ b/roms/u-boot/tools/binman/test/088_expand_size.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + size = <40>; + fill { + expand-size; + fill-byte = [61]; + size = <0>; + }; + u-boot { + offset = <8>; + }; + section { + expand-size; + pad-byte = <0x62>; + intel-mrc { + }; + }; + u-boot2 { + type = "u-boot"; + offset = <16>; + }; + section2 { + type = "section"; + fill { + expand-size; + fill-byte = [63]; + size = <0>; + }; + u-boot { + offset = <8>; + }; + }; + fill2 { + type = "fill"; + expand-size; + fill-byte = [64]; + size = <0>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/089_expand_size_bad.dts b/roms/u-boot/tools/binman/test/089_expand_size_bad.dts new file mode 100644 index 000000000..edc0e5cf6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/089_expand_size_bad.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + _testing { + expand-size; + return-contents-once; + }; + u-boot { + offset = <8>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/090_hash.dts b/roms/u-boot/tools/binman/test/090_hash.dts new file mode 100644 index 000000000..200304599 --- /dev/null +++ b/roms/u-boot/tools/binman/test/090_hash.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot { + hash { + algo = "sha256"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/091_hash_no_algo.dts b/roms/u-boot/tools/binman/test/091_hash_no_algo.dts new file mode 100644 index 000000000..b64df2051 --- /dev/null +++ b/roms/u-boot/tools/binman/test/091_hash_no_algo.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot { + hash { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/092_hash_bad_algo.dts b/roms/u-boot/tools/binman/test/092_hash_bad_algo.dts new file mode 100644 index 000000000..d2402000d --- /dev/null +++ b/roms/u-boot/tools/binman/test/092_hash_bad_algo.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot { + hash { + algo = "invalid"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/093_x86_tpl_ucode.dts b/roms/u-boot/tools/binman/test/093_x86_tpl_ucode.dts new file mode 100644 index 000000000..d7ed9fc66 --- /dev/null +++ b/roms/u-boot/tools/binman/test/093_x86_tpl_ucode.dts @@ -0,0 +1,29 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + u-boot-tpl-with-ucode-ptr { + }; + + u-boot-tpl-dtb-with-ucode { + }; + + u-boot-ucode { + }; + }; + + microcode { + update@0 { + data = <0x12345678 0x12345679>; + }; + update@1 { + data = <0xabcd0000 0x78235609>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/094_fmap_x86.dts b/roms/u-boot/tools/binman/test/094_fmap_x86.dts new file mode 100644 index 000000000..613c5dab4 --- /dev/null +++ b/roms/u-boot/tools/binman/test/094_fmap_x86.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x100>; + pad-byte = <0x61>; + u-boot { + }; + intel-mrc { + }; + fmap { + offset = <0xffffff20>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/095_fmap_x86_section.dts b/roms/u-boot/tools/binman/test/095_fmap_x86_section.dts new file mode 100644 index 000000000..fd5f018c9 --- /dev/null +++ b/roms/u-boot/tools/binman/test/095_fmap_x86_section.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x180>; + u-boot { + }; + section { + pad-byte = <0x62>; + intel-mrc { + }; + fmap { + offset = <0x20>; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/096_elf.dts b/roms/u-boot/tools/binman/test/096_elf.dts new file mode 100644 index 000000000..8e3f3f15e --- /dev/null +++ b/roms/u-boot/tools/binman/test/096_elf.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-elf { + }; + u-boot-spl-elf { + }; + u-boot-tpl-elf { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/097_elf_strip.dts b/roms/u-boot/tools/binman/test/097_elf_strip.dts new file mode 100644 index 000000000..6f3c66fd7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/097_elf_strip.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-elf { + strip; + }; + u-boot-spl-elf { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/098_4gb_and_skip_at_start_together.dts b/roms/u-boot/tools/binman/test/098_4gb_and_skip_at_start_together.dts new file mode 100644 index 000000000..90c467d91 --- /dev/null +++ b/roms/u-boot/tools/binman/test/098_4gb_and_skip_at_start_together.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <32>; + sort-by-offset; + end-at-4gb; + skip-at-start = <0xffffffe0>; + u-boot { + offset = <0xffffffe0>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/099_hash_section.dts b/roms/u-boot/tools/binman/test/099_hash_section.dts new file mode 100644 index 000000000..dcd8683d6 --- /dev/null +++ b/roms/u-boot/tools/binman/test/099_hash_section.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + section { + u-boot { + }; + fill { + size = <0x10>; + fill-byte = [61]; + }; + hash { + algo = "sha256"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/100_intel_refcode.dts b/roms/u-boot/tools/binman/test/100_intel_refcode.dts new file mode 100644 index 000000000..0a1a0270e --- /dev/null +++ b/roms/u-boot/tools/binman/test/100_intel_refcode.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-refcode { + filename = "refcode.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/101_sections_offset.dts b/roms/u-boot/tools/binman/test/101_sections_offset.dts new file mode 100644 index 000000000..46708ff9b --- /dev/null +++ b/roms/u-boot/tools/binman/test/101_sections_offset.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + size = <0x38>; + section@0 { + read-only; + offset = <0x4>; + size = <0x10>; + pad-byte = <0x21>; + + u-boot { + }; + }; + section@1 { + size = <0x10>; + pad-byte = <0x61>; + offset = <0x18>; + + u-boot { + }; + }; + section@2 { + offset = <0x2c>; + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/102_cbfs_raw.dts b/roms/u-boot/tools/binman/test/102_cbfs_raw.dts new file mode 100644 index 000000000..779cbc121 --- /dev/null +++ b/roms/u-boot/tools/binman/test/102_cbfs_raw.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0xb0>; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/103_cbfs_raw_ppc.dts b/roms/u-boot/tools/binman/test/103_cbfs_raw_ppc.dts new file mode 100644 index 000000000..df1caf092 --- /dev/null +++ b/roms/u-boot/tools/binman/test/103_cbfs_raw_ppc.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + cbfs-arch = "ppc64"; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/104_cbfs_stage.dts b/roms/u-boot/tools/binman/test/104_cbfs_stage.dts new file mode 100644 index 000000000..215e2f287 --- /dev/null +++ b/roms/u-boot/tools/binman/test/104_cbfs_stage.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0xb0>; + u-boot { + type = "blob"; + filename = "cbfs-stage.elf"; + cbfs-type = "stage"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/105_cbfs_raw_compress.dts b/roms/u-boot/tools/binman/test/105_cbfs_raw_compress.dts new file mode 100644 index 000000000..646168d84 --- /dev/null +++ b/roms/u-boot/tools/binman/test/105_cbfs_raw_compress.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x140>; + u-boot { + type = "text"; + text = "compress xxxxxxxxxxxxxxxxxxxxxx data"; + cbfs-type = "raw"; + cbfs-compress = "lz4"; + }; + u-boot-dtb { + type = "text"; + text = "compress xxxxxxxxxxxxxxxxxxxxxx data"; + cbfs-type = "raw"; + cbfs-compress = "lzma"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/106_cbfs_bad_arch.dts b/roms/u-boot/tools/binman/test/106_cbfs_bad_arch.dts new file mode 100644 index 000000000..4318d45a7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/106_cbfs_bad_arch.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + cbfs-arch = "bad-arch"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/107_cbfs_no_size.dts b/roms/u-boot/tools/binman/test/107_cbfs_no_size.dts new file mode 100644 index 000000000..3592f62f7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/107_cbfs_no_size.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/108_cbfs_no_contents.dts b/roms/u-boot/tools/binman/test/108_cbfs_no_contents.dts new file mode 100644 index 000000000..623346760 --- /dev/null +++ b/roms/u-boot/tools/binman/test/108_cbfs_no_contents.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + _testing { + return-unknown-contents; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/109_cbfs_bad_compress.dts b/roms/u-boot/tools/binman/test/109_cbfs_bad_compress.dts new file mode 100644 index 000000000..9695024ee --- /dev/null +++ b/roms/u-boot/tools/binman/test/109_cbfs_bad_compress.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0xb0>; + u-boot { + cbfs-type = "raw"; + cbfs-compress = "invalid-algo"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/110_cbfs_name.dts b/roms/u-boot/tools/binman/test/110_cbfs_name.dts new file mode 100644 index 000000000..98c16f30b --- /dev/null +++ b/roms/u-boot/tools/binman/test/110_cbfs_name.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + u-boot { + cbfs-name = "FRED"; + cbfs-type = "raw"; + }; + + hello { + type = "blob"; + filename = "u-boot.dtb"; + cbfs-type = "raw"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/111_x86_rom_ifwi.dts b/roms/u-boot/tools/binman/test/111_x86_rom_ifwi.dts new file mode 100644 index 000000000..c0ba4f2ea --- /dev/null +++ b/roms/u-boot/tools/binman/test/111_x86_rom_ifwi.dts @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor.bin"; + }; + + intel-ifwi { + offset-unset; + filename = "fitimage.bin"; + convert-fit; + + u-boot-tpl { + ifwi-replace; + ifwi-subpart = "IBBP"; + ifwi-entry = "IBBL"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/112_x86_rom_ifwi_nodesc.dts b/roms/u-boot/tools/binman/test/112_x86_rom_ifwi_nodesc.dts new file mode 100644 index 000000000..0874440ab --- /dev/null +++ b/roms/u-boot/tools/binman/test/112_x86_rom_ifwi_nodesc.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor.bin"; + }; + + intel-ifwi { + offset-unset; + filename = "ifwi.bin"; + + u-boot-tpl { + ifwi-replace; + ifwi-subpart = "IBBP"; + ifwi-entry = "IBBL"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/113_x86_rom_ifwi_nodata.dts b/roms/u-boot/tools/binman/test/113_x86_rom_ifwi_nodata.dts new file mode 100644 index 000000000..82a4bc8cd --- /dev/null +++ b/roms/u-boot/tools/binman/test/113_x86_rom_ifwi_nodata.dts @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor.bin"; + }; + + intel-ifwi { + offset-unset; + filename = "ifwi.bin"; + + _testing { + return-unknown-contents; + ifwi-replace; + ifwi-subpart = "IBBP"; + ifwi-entry = "IBBL"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/114_cbfs_offset.dts b/roms/u-boot/tools/binman/test/114_cbfs_offset.dts new file mode 100644 index 000000000..7aa9d9d4b --- /dev/null +++ b/roms/u-boot/tools/binman/test/114_cbfs_offset.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + cbfs { + size = <0x200>; + offset = <0xfffffe00>; + u-boot { + cbfs-offset = <0x40>; + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-offset = <0x140>; + cbfs-type = "raw"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/115_fdtmap.dts b/roms/u-boot/tools/binman/test/115_fdtmap.dts new file mode 100644 index 000000000..2450c41f2 --- /dev/null +++ b/roms/u-boot/tools/binman/test/115_fdtmap.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fdtmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/116_fdtmap_hdr.dts b/roms/u-boot/tools/binman/test/116_fdtmap_hdr.dts new file mode 100644 index 000000000..77a2194b3 --- /dev/null +++ b/roms/u-boot/tools/binman/test/116_fdtmap_hdr.dts @@ -0,0 +1,17 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x400>; + u-boot { + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/117_fdtmap_hdr_start.dts b/roms/u-boot/tools/binman/test/117_fdtmap_hdr_start.dts new file mode 100644 index 000000000..17b6be004 --- /dev/null +++ b/roms/u-boot/tools/binman/test/117_fdtmap_hdr_start.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x400>; + sort-by-offset; + u-boot { + offset = <0x100>; + }; + fdtmap { + }; + image-header { + location = "start"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/118_fdtmap_hdr_pos.dts b/roms/u-boot/tools/binman/test/118_fdtmap_hdr_pos.dts new file mode 100644 index 000000000..fd803f57f --- /dev/null +++ b/roms/u-boot/tools/binman/test/118_fdtmap_hdr_pos.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x400>; + sort-by-offset; + u-boot { + offset = <0x100>; + }; + fdtmap { + }; + image-header { + offset = <0x80>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/119_fdtmap_hdr_missing.dts b/roms/u-boot/tools/binman/test/119_fdtmap_hdr_missing.dts new file mode 100644 index 000000000..41bb680f0 --- /dev/null +++ b/roms/u-boot/tools/binman/test/119_fdtmap_hdr_missing.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + u-boot { + }; + image-header { + offset = <0x80>; + location = "start"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/120_hdr_no_location.dts b/roms/u-boot/tools/binman/test/120_hdr_no_location.dts new file mode 100644 index 000000000..585e21f45 --- /dev/null +++ b/roms/u-boot/tools/binman/test/120_hdr_no_location.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + u-boot { + }; + fdtmap { + }; + image-header { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/121_entry_expand.dts b/roms/u-boot/tools/binman/test/121_entry_expand.dts new file mode 100644 index 000000000..ebb7816db --- /dev/null +++ b/roms/u-boot/tools/binman/test/121_entry_expand.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + bad-update-contents; + }; + + u-boot { + }; + + _testing2 { + type = "_testing"; + bad-update-contents; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/122_entry_expand_twice.dts b/roms/u-boot/tools/binman/test/122_entry_expand_twice.dts new file mode 100644 index 000000000..258cf859f --- /dev/null +++ b/roms/u-boot/tools/binman/test/122_entry_expand_twice.dts @@ -0,0 +1,21 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + bad-update-contents; + bad-update-contents-twice; + }; + + u-boot { + }; + + _testing2 { + type = "_testing"; + bad-update-contents; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/123_entry_expand_section.dts b/roms/u-boot/tools/binman/test/123_entry_expand_section.dts new file mode 100644 index 000000000..046f72343 --- /dev/null +++ b/roms/u-boot/tools/binman/test/123_entry_expand_section.dts @@ -0,0 +1,22 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + bad-update-contents; + }; + + u-boot { + }; + + section { + _testing2 { + type = "_testing"; + bad-update-contents; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/124_compress_dtb.dts b/roms/u-boot/tools/binman/test/124_compress_dtb.dts new file mode 100644 index 000000000..46bfd8b26 --- /dev/null +++ b/roms/u-boot/tools/binman/test/124_compress_dtb.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + u-boot-dtb { + compress = "lz4"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/125_cbfs_update.dts b/roms/u-boot/tools/binman/test/125_cbfs_update.dts new file mode 100644 index 000000000..6d2e8a0b8 --- /dev/null +++ b/roms/u-boot/tools/binman/test/125_cbfs_update.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + u-boot { + cbfs-type = "raw"; + cbfs-compress = "lz4"; + }; + u-boot-dtb { + cbfs-type = "raw"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/126_cbfs_bad_type.dts b/roms/u-boot/tools/binman/test/126_cbfs_bad_type.dts new file mode 100644 index 000000000..2cd6fc6d5 --- /dev/null +++ b/roms/u-boot/tools/binman/test/126_cbfs_bad_type.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + cbfs { + size = <0x100>; + u-boot { + cbfs-type = "badtype"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/127_list.dts b/roms/u-boot/tools/binman/test/127_list.dts new file mode 100644 index 000000000..c1d6fce3f --- /dev/null +++ b/roms/u-boot/tools/binman/test/127_list.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + section { + align = <0x100>; + cbfs { + size = <0x400>; + u-boot { + cbfs-type = "raw"; + cbfs-offset = <0x38>; + }; + u-boot-dtb { + type = "text"; + text = "compress xxxxxxxxxxxxxxxxxxxxxx data"; + cbfs-type = "raw"; + cbfs-compress = "lzma"; + cbfs-offset = <0x78>; + }; + }; + u-boot-dtb { + compress = "lz4"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/128_decode_image.dts b/roms/u-boot/tools/binman/test/128_decode_image.dts new file mode 100644 index 000000000..449fccc41 --- /dev/null +++ b/roms/u-boot/tools/binman/test/128_decode_image.dts @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + u-boot { + }; + section { + align = <0x100>; + cbfs { + size = <0x400>; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + cbfs-compress = "lzma"; + cbfs-offset = <0x80>; + }; + }; + u-boot-dtb { + compress = "lz4"; + }; + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/129_decode_image_nohdr.dts b/roms/u-boot/tools/binman/test/129_decode_image_nohdr.dts new file mode 100644 index 000000000..90fdd8820 --- /dev/null +++ b/roms/u-boot/tools/binman/test/129_decode_image_nohdr.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + u-boot { + }; + section { + align = <0x100>; + cbfs { + size = <0x400>; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + cbfs-compress = "lzma"; + cbfs-offset = <0x80>; + }; + }; + u-boot-dtb { + compress = "lz4"; + }; + }; + fdtmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/130_list_fdtmap.dts b/roms/u-boot/tools/binman/test/130_list_fdtmap.dts new file mode 100644 index 000000000..449fccc41 --- /dev/null +++ b/roms/u-boot/tools/binman/test/130_list_fdtmap.dts @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + u-boot { + }; + section { + align = <0x100>; + cbfs { + size = <0x400>; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + cbfs-compress = "lzma"; + cbfs-offset = <0x80>; + }; + }; + u-boot-dtb { + compress = "lz4"; + }; + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/131_pack_align_section.dts b/roms/u-boot/tools/binman/test/131_pack_align_section.dts new file mode 100644 index 000000000..44478855b --- /dev/null +++ b/roms/u-boot/tools/binman/test/131_pack_align_section.dts @@ -0,0 +1,28 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + section0 { + type = "section"; + align = <0x10>; + u-boot { + }; + }; + section1 { + type = "section"; + align-size = <0x20>; + u-boot { + }; + section2 { + type = "section"; + u-boot { + }; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/132_replace.dts b/roms/u-boot/tools/binman/test/132_replace.dts new file mode 100644 index 000000000..6ebdcda45 --- /dev/null +++ b/roms/u-boot/tools/binman/test/132_replace.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + u-boot { + }; + fdtmap { + }; + u-boot-dtb { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/133_replace_multi.dts b/roms/u-boot/tools/binman/test/133_replace_multi.dts new file mode 100644 index 000000000..38b2f39d0 --- /dev/null +++ b/roms/u-boot/tools/binman/test/133_replace_multi.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + multiple-images; + first-image { + size = <0xc00>; + u-boot { + }; + fdtmap { + }; + u-boot-dtb { + }; + image-header { + location = "end"; + }; + }; + + image { + fdtmap { + }; + u-boot { + }; + u-boot-dtb { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/134_fdt_update_all_repack.dts b/roms/u-boot/tools/binman/test/134_fdt_update_all_repack.dts new file mode 100644 index 000000000..625d37673 --- /dev/null +++ b/roms/u-boot/tools/binman/test/134_fdt_update_all_repack.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + allow-repack; + section { + size = <0x300>; + u-boot-dtb { + offset = <4>; + }; + }; + u-boot-spl-dtb { + }; + u-boot-tpl-dtb { + }; + fdtmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/135_fdtmap_hdr_middle.dts b/roms/u-boot/tools/binman/test/135_fdtmap_hdr_middle.dts new file mode 100644 index 000000000..d6211da8a --- /dev/null +++ b/roms/u-boot/tools/binman/test/135_fdtmap_hdr_middle.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + image-header { + location = "end"; + }; + fdtmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/136_fdtmap_hdr_startbad.dts b/roms/u-boot/tools/binman/test/136_fdtmap_hdr_startbad.dts new file mode 100644 index 000000000..ec5f4bc7e --- /dev/null +++ b/roms/u-boot/tools/binman/test/136_fdtmap_hdr_startbad.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fdtmap { + }; + image-header { + location = "start"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/137_fdtmap_hdr_endbad.dts b/roms/u-boot/tools/binman/test/137_fdtmap_hdr_endbad.dts new file mode 100644 index 000000000..ebacd71eb --- /dev/null +++ b/roms/u-boot/tools/binman/test/137_fdtmap_hdr_endbad.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + image-header { + location = "end"; + }; + u-boot { + }; + fdtmap { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/138_fdtmap_hdr_nosize.dts b/roms/u-boot/tools/binman/test/138_fdtmap_hdr_nosize.dts new file mode 100644 index 000000000..c362f8fdf --- /dev/null +++ b/roms/u-boot/tools/binman/test/138_fdtmap_hdr_nosize.dts @@ -0,0 +1,16 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/139_replace_repack.dts b/roms/u-boot/tools/binman/test/139_replace_repack.dts new file mode 100644 index 000000000..a3daf6f9b --- /dev/null +++ b/roms/u-boot/tools/binman/test/139_replace_repack.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + allow-repack; + u-boot { + }; + fdtmap { + }; + u-boot-dtb { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/140_entry_shrink.dts b/roms/u-boot/tools/binman/test/140_entry_shrink.dts new file mode 100644 index 000000000..b750d6389 --- /dev/null +++ b/roms/u-boot/tools/binman/test/140_entry_shrink.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + _testing { + bad-shrink-contents; + }; + + u-boot { + }; + + _testing2 { + type = "_testing"; + bad-shrink-contents; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/141_descriptor_offset.dts b/roms/u-boot/tools/binman/test/141_descriptor_offset.dts new file mode 100644 index 000000000..f9bff016a --- /dev/null +++ b/roms/u-boot/tools/binman/test/141_descriptor_offset.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + u-boot { + offset = <0xffff0000>; + }; + intel-descriptor { + filename = "descriptor.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/142_replace_cbfs.dts b/roms/u-boot/tools/binman/test/142_replace_cbfs.dts new file mode 100644 index 000000000..d64142f9d --- /dev/null +++ b/roms/u-boot/tools/binman/test/142_replace_cbfs.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xe00>; + allow-repack; + u-boot { + }; + section { + align = <0x100>; + cbfs { + size = <0x400>; + u-boot { + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-type = "raw"; + cbfs-compress = "lzma"; + cbfs-offset = <0x80>; + }; + }; + u-boot-dtb { + compress = "lz4"; + }; + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/143_replace_all.dts b/roms/u-boot/tools/binman/test/143_replace_all.dts new file mode 100644 index 000000000..c5744a3c1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/143_replace_all.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + allow-repack; + u-boot { + }; + fdtmap { + }; + u-boot2 { + type = "u-boot"; + }; + text { + text = "some text"; + }; + u-boot-dtb { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/144_x86_reset16.dts b/roms/u-boot/tools/binman/test/144_x86_reset16.dts new file mode 100644 index 000000000..ba90333b2 --- /dev/null +++ b/roms/u-boot/tools/binman/test/144_x86_reset16.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-reset16 { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/145_x86_reset16_spl.dts b/roms/u-boot/tools/binman/test/145_x86_reset16_spl.dts new file mode 100644 index 000000000..cc8d97a7e --- /dev/null +++ b/roms/u-boot/tools/binman/test/145_x86_reset16_spl.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-reset16-spl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/146_x86_reset16_tpl.dts b/roms/u-boot/tools/binman/test/146_x86_reset16_tpl.dts new file mode 100644 index 000000000..041b16f3d --- /dev/null +++ b/roms/u-boot/tools/binman/test/146_x86_reset16_tpl.dts @@ -0,0 +1,13 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + x86-reset16-tpl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/147_intel_fit.dts b/roms/u-boot/tools/binman/test/147_intel_fit.dts new file mode 100644 index 000000000..01ec40e5c --- /dev/null +++ b/roms/u-boot/tools/binman/test/147_intel_fit.dts @@ -0,0 +1,20 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x80>; + + u-boot { + }; + + intel-fit { + }; + + intel-fit-ptr { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/148_intel_fit_missing.dts b/roms/u-boot/tools/binman/test/148_intel_fit_missing.dts new file mode 100644 index 000000000..388c76b1a --- /dev/null +++ b/roms/u-boot/tools/binman/test/148_intel_fit_missing.dts @@ -0,0 +1,17 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x80>; + + u-boot { + }; + + intel-fit-ptr { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/149_symbols_tpl.dts b/roms/u-boot/tools/binman/test/149_symbols_tpl.dts new file mode 100644 index 000000000..0a4ab3f1f --- /dev/null +++ b/roms/u-boot/tools/binman/test/149_symbols_tpl.dts @@ -0,0 +1,27 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl { + offset = <4>; + }; + + u-boot-spl2 { + offset = <0x1c>; + type = "u-boot-spl"; + }; + + u-boot { + offset = <0x34>; + }; + + section { + u-boot-tpl { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/150_powerpc_mpc85xx_bootpg_resetvec.dts b/roms/u-boot/tools/binman/test/150_powerpc_mpc85xx_bootpg_resetvec.dts new file mode 100644 index 000000000..8f4b16c39 --- /dev/null +++ b/roms/u-boot/tools/binman/test/150_powerpc_mpc85xx_bootpg_resetvec.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + powerpc-mpc85xx-bootpg-resetvec { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/151_x86_rom_ifwi_section.dts b/roms/u-boot/tools/binman/test/151_x86_rom_ifwi_section.dts new file mode 100644 index 000000000..7e455c3a4 --- /dev/null +++ b/roms/u-boot/tools/binman/test/151_x86_rom_ifwi_section.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor.bin"; + }; + + intel-ifwi { + offset-unset; + filename = "fitimage.bin"; + convert-fit; + + section { + ifwi-replace; + ifwi-subpart = "IBBP"; + ifwi-entry = "IBBL"; + u-boot-tpl { + }; + u-boot-dtb { + }; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/152_intel_fsp_m.dts b/roms/u-boot/tools/binman/test/152_intel_fsp_m.dts new file mode 100644 index 000000000..b6010f31c --- /dev/null +++ b/roms/u-boot/tools/binman/test/152_intel_fsp_m.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-fsp-m { + filename = "fsp_m.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/153_intel_fsp_s.dts b/roms/u-boot/tools/binman/test/153_intel_fsp_s.dts new file mode 100644 index 000000000..579618a8f --- /dev/null +++ b/roms/u-boot/tools/binman/test/153_intel_fsp_s.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-fsp-s { + filename = "fsp_s.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/154_intel_fsp_t.dts b/roms/u-boot/tools/binman/test/154_intel_fsp_t.dts new file mode 100644 index 000000000..8da749c15 --- /dev/null +++ b/roms/u-boot/tools/binman/test/154_intel_fsp_t.dts @@ -0,0 +1,14 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + intel-fsp-t { + filename = "fsp_t.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/155_symbols_tpl_x86.dts b/roms/u-boot/tools/binman/test/155_symbols_tpl_x86.dts new file mode 100644 index 000000000..9d7dc51b3 --- /dev/null +++ b/roms/u-boot/tools/binman/test/155_symbols_tpl_x86.dts @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + end-at-4gb; + size = <0x100>; + u-boot-spl { + offset = <0xffffff04>; + }; + + u-boot-spl2 { + offset = <0xffffff1c>; + type = "u-boot-spl"; + }; + + u-boot { + offset = <0xffffff34>; + }; + + section { + u-boot-tpl { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/156_mkimage.dts b/roms/u-boot/tools/binman/test/156_mkimage.dts new file mode 100644 index 000000000..933b13143 --- /dev/null +++ b/roms/u-boot/tools/binman/test/156_mkimage.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x80>; + + mkimage { + args = "-n test -T script"; + + u-boot-spl { + }; + + _testing { + return-contents-later; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/157_blob_ext.dts b/roms/u-boot/tools/binman/test/157_blob_ext.dts new file mode 100644 index 000000000..8afdd5339 --- /dev/null +++ b/roms/u-boot/tools/binman/test/157_blob_ext.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + blob-ext { + filename = "refcode.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/158_blob_ext_missing.dts b/roms/u-boot/tools/binman/test/158_blob_ext_missing.dts new file mode 100644 index 000000000..d315e5592 --- /dev/null +++ b/roms/u-boot/tools/binman/test/158_blob_ext_missing.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x80>; + + blob-ext { + filename = "missing-file"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/159_blob_ext_missing_sect.dts b/roms/u-boot/tools/binman/test/159_blob_ext_missing_sect.dts new file mode 100644 index 000000000..5f14c5413 --- /dev/null +++ b/roms/u-boot/tools/binman/test/159_blob_ext_missing_sect.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x80>; + + section { + blob-ext { + filename = "missing-file"; + }; + }; + + blob-ext2 { + type = "blob-ext"; + filename = "missing-file2"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/160_pack_overlap_zero.dts b/roms/u-boot/tools/binman/test/160_pack_overlap_zero.dts new file mode 100644 index 000000000..731aa1cbe --- /dev/null +++ b/roms/u-boot/tools/binman/test/160_pack_overlap_zero.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + + fill { + size = <0>; + offset = <3>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/161_fit.dts b/roms/u-boot/tools/binman/test/161_fit.dts new file mode 100644 index 000000000..c52d760b7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/161_fit.dts @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fit { + description = "test-desc"; + #address-cells = <1>; + + images { + kernel { + description = "Vanilla Linux kernel"; + type = "kernel"; + arch = "ppc"; + os = "linux"; + compression = "gzip"; + load = <00000000>; + entry = <00000000>; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + u-boot { + }; + }; + fdt-1 { + description = "Flattened Device Tree blob"; + type = "flat_dt"; + arch = "ppc"; + compression = "none"; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + u-boot-spl-dtb { + }; + }; + }; + + configurations { + default = "conf-1"; + conf-1 { + description = "Boot Linux kernel with FDT blob"; + kernel = "kernel"; + fdt = "fdt-1"; + }; + }; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/162_fit_external.dts b/roms/u-boot/tools/binman/test/162_fit_external.dts new file mode 100644 index 000000000..19518e05a --- /dev/null +++ b/roms/u-boot/tools/binman/test/162_fit_external.dts @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fit { + fit,external-offset = <0>; + description = "test-desc"; + #address-cells = <1>; + + images { + kernel { + description = "Vanilla Linux kernel"; + type = "kernel"; + arch = "ppc"; + os = "linux"; + compression = "gzip"; + load = <00000000>; + entry = <00000000>; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + u-boot { + }; + }; + fdt-1 { + description = "Flattened Device Tree blob"; + type = "flat_dt"; + arch = "ppc"; + compression = "none"; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + _testing { + return-contents-later; + }; + }; + }; + + configurations { + default = "conf-1"; + conf-1 { + description = "Boot Linux kernel with FDT blob"; + kernel = "kernel"; + fdt = "fdt-1"; + }; + }; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/163_x86_rom_me_empty.dts b/roms/u-boot/tools/binman/test/163_x86_rom_me_empty.dts new file mode 100644 index 000000000..9349d2d72 --- /dev/null +++ b/roms/u-boot/tools/binman/test/163_x86_rom_me_empty.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor-empty.bin"; + }; + + intel-me { + filename = "me.bin"; + offset-unset; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/164_x86_rom_me_missing.dts b/roms/u-boot/tools/binman/test/164_x86_rom_me_missing.dts new file mode 100644 index 000000000..dce3be5e0 --- /dev/null +++ b/roms/u-boot/tools/binman/test/164_x86_rom_me_missing.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x800000>; + intel-descriptor { + filename = "descriptor-missing.bin"; + }; + + intel-me { + filename = "me.bin"; + offset-unset; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/165_section_ignore_hash_signature.dts b/roms/u-boot/tools/binman/test/165_section_ignore_hash_signature.dts new file mode 100644 index 000000000..8adbe2551 --- /dev/null +++ b/roms/u-boot/tools/binman/test/165_section_ignore_hash_signature.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section@0 { + u-boot { + }; + hash { + algo = "sha256"; + }; + signature { + algo = "sha256,rsa2048"; + key-name-hint = "dev"; + }; + }; + section@1 { + u-boot { + }; + hash-1 { + algo = "sha1"; + }; + hash-2 { + algo = "sha256"; + }; + signature-1 { + algo = "sha1,rsa2048"; + key-name-hint = "dev"; + }; + signature-2 { + algo = "sha256,rsa2048"; + key-name-hint = "dev"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/166_pad_in_sections.dts b/roms/u-boot/tools/binman/test/166_pad_in_sections.dts new file mode 100644 index 000000000..f2b327ff9 --- /dev/null +++ b/roms/u-boot/tools/binman/test/166_pad_in_sections.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + section { + pad-byte = <0x21>; + + before { + type = "u-boot"; + }; + u-boot { + pad-before = <12>; + pad-after = <6>; + }; + after { + type = "u-boot"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/167_fit_image_subentry_alignment.dts b/roms/u-boot/tools/binman/test/167_fit_image_subentry_alignment.dts new file mode 100644 index 000000000..360cac526 --- /dev/null +++ b/roms/u-boot/tools/binman/test/167_fit_image_subentry_alignment.dts @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + fit { + description = "test-desc"; + #address-cells = <1>; + + images { + kernel { + description = "Offset-Align Test"; + type = "kernel"; + arch = "arm64"; + os = "linux"; + compression = "none"; + load = <00000000>; + entry = <00000000>; + u-boot-spl { + offset = <0x20>; + }; + u-boot { + align = <0x10>; + }; + }; + fdt-1 { + description = "Pad-Before-After Test"; + type = "flat_dt"; + arch = "arm64"; + compression = "none"; + u-boot-spl-dtb { + }; + text { + text-label = "test-id"; + pad-before = <20>; + pad-after = <30>; + }; + u-boot-dtb { + }; + }; + }; + + configurations { + default = "conf-1"; + conf-1 { + description = "Kernel with FDT blob"; + kernel = "kernel"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/168_fit_missing_blob.dts b/roms/u-boot/tools/binman/test/168_fit_missing_blob.dts new file mode 100644 index 000000000..15f6cc07e --- /dev/null +++ b/roms/u-boot/tools/binman/test/168_fit_missing_blob.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fit { + description = "test-desc"; + #address-cells = <1>; + fit,fdt-list = "of-list"; + + images { + kernel { + description = "ATF BL31"; + type = "kernel"; + arch = "ppc"; + os = "linux"; + compression = "gzip"; + load = <00000000>; + entry = <00000000>; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + atf-bl31 { + filename = "missing"; + }; + cros-ec-rw { + type = "atf-bl31"; + missing-msg = "wibble"; + }; + another { + type = "atf-bl31"; + }; + }; + }; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/169_atf_bl31.dts b/roms/u-boot/tools/binman/test/169_atf_bl31.dts new file mode 100644 index 000000000..2b7547d70 --- /dev/null +++ b/roms/u-boot/tools/binman/test/169_atf_bl31.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + atf-bl31 { + filename = "bl31.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/170_fit_fdt.dts b/roms/u-boot/tools/binman/test/170_fit_fdt.dts new file mode 100644 index 000000000..99d710c57 --- /dev/null +++ b/roms/u-boot/tools/binman/test/170_fit_fdt.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fit { + description = "test-desc"; + #address-cells = <1>; + fit,fdt-list = "of-list"; + + images { + kernel { + description = "Vanilla Linux kernel"; + type = "kernel"; + arch = "ppc"; + os = "linux"; + compression = "gzip"; + load = <00000000>; + entry = <00000000>; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + u-boot { + }; + }; + @fdt-SEQ { + description = "fdt-NAME.dtb"; + type = "flat_dt"; + compression = "none"; + }; + }; + + configurations { + default = "@config-DEFAULT-SEQ"; + @config-SEQ { + description = "conf-NAME.dtb"; + firmware = "uboot"; + loadables = "atf"; + fdt = "fdt-SEQ"; + }; + }; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/171_fit_fdt_missing_prop.dts b/roms/u-boot/tools/binman/test/171_fit_fdt_missing_prop.dts new file mode 100644 index 000000000..c36134715 --- /dev/null +++ b/roms/u-boot/tools/binman/test/171_fit_fdt_missing_prop.dts @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + fit { + description = "test-desc"; + #address-cells = <1>; + + images { + kernel { + description = "Vanilla Linux kernel"; + type = "kernel"; + arch = "ppc"; + os = "linux"; + compression = "gzip"; + load = <00000000>; + entry = <00000000>; + hash-1 { + algo = "crc32"; + }; + hash-2 { + algo = "sha1"; + }; + u-boot { + }; + }; + @fdt-SEQ { + description = "fdt-NAME.dtb"; + type = "flat_dt"; + compression = "none"; + }; + }; + + configurations { + default = "config-1"; + @config-SEQ { + description = "conf-NAME.dtb"; + firmware = "uboot"; + loadables = "atf"; + fdt = "fdt-SEQ"; + }; + }; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/172_scp.dts b/roms/u-boot/tools/binman/test/172_scp.dts new file mode 100644 index 000000000..354e4ef17 --- /dev/null +++ b/roms/u-boot/tools/binman/test/172_scp.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + + scp { + filename = "scp.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/173_missing_blob.dts b/roms/u-boot/tools/binman/test/173_missing_blob.dts new file mode 100644 index 000000000..ffb655a1c --- /dev/null +++ b/roms/u-boot/tools/binman/test/173_missing_blob.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + blob { + filename = "missing"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/174_env.dts b/roms/u-boot/tools/binman/test/174_env.dts new file mode 100644 index 000000000..d1393d2db --- /dev/null +++ b/roms/u-boot/tools/binman/test/174_env.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + u-boot-env { + filename = "env.txt"; + size = <0x18>; + fill-byte = [ff]; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/175_env_no_size.dts b/roms/u-boot/tools/binman/test/175_env_no_size.dts new file mode 100644 index 000000000..267acd154 --- /dev/null +++ b/roms/u-boot/tools/binman/test/175_env_no_size.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + u-boot-env { + filename = "env.txt"; + fill-byte = [ff]; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/176_env_too_small.dts b/roms/u-boot/tools/binman/test/176_env_too_small.dts new file mode 100644 index 000000000..2db8d0546 --- /dev/null +++ b/roms/u-boot/tools/binman/test/176_env_too_small.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + u-boot-env { + filename = "env.txt"; + size = <0x8>; + fill-byte = [ff]; + }; + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/177_skip_at_start.dts b/roms/u-boot/tools/binman/test/177_skip_at_start.dts new file mode 100644 index 000000000..021460b1a --- /dev/null +++ b/roms/u-boot/tools/binman/test/177_skip_at_start.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section { + skip-at-start = <16>; + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/178_skip_at_start_pad.dts b/roms/u-boot/tools/binman/test/178_skip_at_start_pad.dts new file mode 100644 index 000000000..deda3c862 --- /dev/null +++ b/roms/u-boot/tools/binman/test/178_skip_at_start_pad.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section { + skip-at-start = <16>; + u-boot { + pad-before = <8>; + pad-after = <4>; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/179_skip_at_start_section_pad.dts b/roms/u-boot/tools/binman/test/179_skip_at_start_section_pad.dts new file mode 100644 index 000000000..bf2f8f69b --- /dev/null +++ b/roms/u-boot/tools/binman/test/179_skip_at_start_section_pad.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section { + skip-at-start = <16>; + pad-before = <8>; + pad-after = <4>; + + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/180_section_pad.dts b/roms/u-boot/tools/binman/test/180_section_pad.dts new file mode 100644 index 000000000..7e4ebf257 --- /dev/null +++ b/roms/u-boot/tools/binman/test/180_section_pad.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + section@0 { + read-only; + + /* Padding for the section uses the 0x26 pad byte */ + pad-before = <3>; + pad-after = <2>; + + /* Set the padding byte for entries, i.e. u-boot */ + pad-byte = <0x21>; + + u-boot { + pad-before = <5>; + pad-after = <1>; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/181_section_align.dts b/roms/u-boot/tools/binman/test/181_section_align.dts new file mode 100644 index 000000000..90795d131 --- /dev/null +++ b/roms/u-boot/tools/binman/test/181_section_align.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + fill { + size = <1>; + }; + section@1 { + read-only; + + /* Padding for the section uses the 0x26 pad byte */ + align = <2>; + align-size = <0x10>; + + /* Set the padding byte for entries, i.e. u-boot */ + pad-byte = <0x21>; + + fill { + size = <1>; + }; + + u-boot { + align = <4>; + align-size = <8>; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/182_compress_image.dts b/roms/u-boot/tools/binman/test/182_compress_image.dts new file mode 100644 index 000000000..4176b7f2e --- /dev/null +++ b/roms/u-boot/tools/binman/test/182_compress_image.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + compress = "lz4"; + blob { + filename = "compress"; + }; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/183_compress_image_less.dts b/roms/u-boot/tools/binman/test/183_compress_image_less.dts new file mode 100644 index 000000000..1d9d57b78 --- /dev/null +++ b/roms/u-boot/tools/binman/test/183_compress_image_less.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + compress = "lz4"; + blob { + filename = "compress_big"; + }; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/184_compress_section_size.dts b/roms/u-boot/tools/binman/test/184_compress_section_size.dts new file mode 100644 index 000000000..95ed30add --- /dev/null +++ b/roms/u-boot/tools/binman/test/184_compress_section_size.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + section { + size = <0x30>; + compress = "lz4"; + blob { + filename = "compress"; + }; + + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/185_compress_section.dts b/roms/u-boot/tools/binman/test/185_compress_section.dts new file mode 100644 index 000000000..dc3e340c5 --- /dev/null +++ b/roms/u-boot/tools/binman/test/185_compress_section.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + section { + compress = "lz4"; + blob { + filename = "compress"; + }; + + u-boot { + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/186_compress_extra.dts b/roms/u-boot/tools/binman/test/186_compress_extra.dts new file mode 100644 index 000000000..59aae8226 --- /dev/null +++ b/roms/u-boot/tools/binman/test/186_compress_extra.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + u-boot { + }; + base { + type = "section"; + u-boot { + }; + section { + compress = "lz4"; + blob { + filename = "compress"; + }; + + u-boot { + }; + }; + section2 { + type = "section"; + compress = "lz4"; + blob { + filename = "compress"; + }; + blob2 { + type = "blob"; + filename = "compress"; + }; + }; + u-boot2 { + type = "u-boot"; + }; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/187_symbols_sub.dts b/roms/u-boot/tools/binman/test/187_symbols_sub.dts new file mode 100644 index 000000000..54511a737 --- /dev/null +++ b/roms/u-boot/tools/binman/test/187_symbols_sub.dts @@ -0,0 +1,22 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + section { + pad-byte = <0xff>; + u-boot-spl { + }; + + u-boot { + offset = <24>; + }; + }; + + u-boot-spl2 { + type = "u-boot-spl"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/188_image_entryarg.dts b/roms/u-boot/tools/binman/test/188_image_entryarg.dts new file mode 100644 index 000000000..29d814916 --- /dev/null +++ b/roms/u-boot/tools/binman/test/188_image_entryarg.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0xc00>; + u-boot { + }; + cros-ec-rw { + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/189_vblock_content.dts b/roms/u-boot/tools/binman/test/189_vblock_content.dts new file mode 100644 index 000000000..dcc74449c --- /dev/null +++ b/roms/u-boot/tools/binman/test/189_vblock_content.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u_boot: u-boot { + }; + + dtb: u-boot-dtb { + }; + + /* + * Put the vblock after the dtb so that the dtb is updated + * before the vblock reads its data. At present binman does not + * understand dependencies between entries, but simply + * iterates again when it thinks something needs to be + * recalculated. + */ + vblock { + content = <&u_boot &dtb>; + keyblock = "firmware.keyblock"; + signprivate = "firmware_data_key.vbprivk"; + version = <1>; + kernelkey = "kernel_subkey.vbpubk"; + preamble-flags = <1>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/190_files_align.dts b/roms/u-boot/tools/binman/test/190_files_align.dts new file mode 100644 index 000000000..213ba966d --- /dev/null +++ b/roms/u-boot/tools/binman/test/190_files_align.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + binman { + files { + pattern = "files/*.dat"; + files-compress = "none"; + files-align = <4>; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/191_read_image_skip.dts b/roms/u-boot/tools/binman/test/191_read_image_skip.dts new file mode 100644 index 000000000..31df518fa --- /dev/null +++ b/roms/u-boot/tools/binman/test/191_read_image_skip.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x400>; + section { + size = <0x10>; + u-boot { + }; + }; + fdtmap { + }; + image-header { + location = "end"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/192_u_boot_tpl_nodtb.dts b/roms/u-boot/tools/binman/test/192_u_boot_tpl_nodtb.dts new file mode 100644 index 000000000..94cef395e --- /dev/null +++ b/roms/u-boot/tools/binman/test/192_u_boot_tpl_nodtb.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-tpl-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/193_tpl_bss_pad.dts b/roms/u-boot/tools/binman/test/193_tpl_bss_pad.dts new file mode 100644 index 000000000..f5c2db064 --- /dev/null +++ b/roms/u-boot/tools/binman/test/193_tpl_bss_pad.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-tpl { + }; + + u-boot-tpl-bss-pad { + }; + + u-boot { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/194_fdt_incl.dts b/roms/u-boot/tools/binman/test/194_fdt_incl.dts new file mode 100644 index 000000000..b14c8ff8f --- /dev/null +++ b/roms/u-boot/tools/binman/test/194_fdt_incl.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot { + }; + u-boot-spl { + }; + u-boot-tpl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/195_fdt_incl_tpl.dts b/roms/u-boot/tools/binman/test/195_fdt_incl_tpl.dts new file mode 100644 index 000000000..3756ac4fc --- /dev/null +++ b/roms/u-boot/tools/binman/test/195_fdt_incl_tpl.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-tpl { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/196_symbols_nodtb.dts b/roms/u-boot/tools/binman/test/196_symbols_nodtb.dts new file mode 100644 index 000000000..5c900d607 --- /dev/null +++ b/roms/u-boot/tools/binman/test/196_symbols_nodtb.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl-nodtb { + }; + u-boot-spl-dtb { + }; + + u-boot { + offset = <0x38>; + }; + + u-boot-spl2 { + type = "u-boot-spl-nodtb"; + }; + u-boot-spl-dtb2 { + type = "u-boot-spl-dtb"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/197_symbols_expand.dts b/roms/u-boot/tools/binman/test/197_symbols_expand.dts new file mode 100644 index 000000000..8aee76dc7 --- /dev/null +++ b/roms/u-boot/tools/binman/test/197_symbols_expand.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl { + }; + + u-boot { + offset = <0x38>; + no-expanded; + }; + + u-boot-spl2 { + type = "u-boot-spl"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/198_collection.dts b/roms/u-boot/tools/binman/test/198_collection.dts new file mode 100644 index 000000000..484a1b005 --- /dev/null +++ b/roms/u-boot/tools/binman/test/198_collection.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + collection { + content = <&u_boot_nodtb &dtb>; + }; + fill { + size = <2>; + fill-byte = [ff]; + }; + u_boot_nodtb: u-boot-nodtb { + }; + fill2 { + type = "fill"; + size = <3>; + fill-byte = [fe]; + }; + dtb: u-boot-dtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/199_collection_section.dts b/roms/u-boot/tools/binman/test/199_collection_section.dts new file mode 100644 index 000000000..03a73194c --- /dev/null +++ b/roms/u-boot/tools/binman/test/199_collection_section.dts @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + collection { + content = <§ion &u_boot>; + }; + fill { + size = <2>; + fill-byte = [ff]; + }; + section: section { + u-boot-nodtb { + }; + u-boot-dtb { + }; + }; + fill2 { + type = "fill"; + size = <3>; + fill-byte = [fe]; + }; + u_boot: u-boot { + no-expanded; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/200_align_default.dts b/roms/u-boot/tools/binman/test/200_align_default.dts new file mode 100644 index 000000000..1b155770d --- /dev/null +++ b/roms/u-boot/tools/binman/test/200_align_default.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + align-default = <8>; + u-boot { + }; + + u-boot-align { + type = "u-boot"; + }; + + section { + align = <32>; + u-boot { + }; + + u-boot-nodtb { + }; + }; + + u-boot-nodtb { + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/201_opensbi.dts b/roms/u-boot/tools/binman/test/201_opensbi.dts new file mode 100644 index 000000000..942183f99 --- /dev/null +++ b/roms/u-boot/tools/binman/test/201_opensbi.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + opensbi { + filename = "fw_dynamic.bin"; + }; + }; +}; diff --git a/roms/u-boot/tools/binman/test/Makefile b/roms/u-boot/tools/binman/test/Makefile new file mode 100644 index 000000000..0b19b7d99 --- /dev/null +++ b/roms/u-boot/tools/binman/test/Makefile @@ -0,0 +1,74 @@ +# +# Builds test programs. This is launched from elf_test.BuildElfTestFiles() +# +# Copyright (C) 2017 Google, Inc +# Written by Simon Glass <sjg@chromium.org> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ ) +ifeq ($(findstring $(HOSTARCH),"x86" "x86_64"),) +ifeq ($(findstring $(MAKECMDGOALS),"help" "clean"),) +ifndef CROSS_COMPILE +$(error Binman tests need to compile to x86, but the CPU arch of your \ + machine is $(HOSTARCH). Set CROSS_COMPILE to a suitable cross compiler) +endif +endif +endif + +CC = $(CROSS_COMPILE)gcc +OBJCOPY = $(CROSS_COMPILE)objcopy + +VPATH := $(SRC) +CFLAGS := -march=i386 -m32 -nostdlib -I $(SRC)../../../include \ + -Wl,--no-dynamic-linker + +LDS_UCODE := -T $(SRC)u_boot_ucode_ptr.lds +LDS_BINMAN := -T $(SRC)u_boot_binman_syms.lds +LDS_BINMAN_BAD := -T $(SRC)u_boot_binman_syms_bad.lds +LDS_BINMAN_X86 := -T $(SRC)u_boot_binman_syms_x86.lds + +TARGETS = u_boot_ucode_ptr u_boot_no_ucode_ptr bss_data \ + u_boot_binman_syms u_boot_binman_syms.bin u_boot_binman_syms_bad \ + u_boot_binman_syms_size u_boot_binman_syms_x86 + +all: $(TARGETS) + +u_boot_no_ucode_ptr: CFLAGS += $(LDS_UCODE) +u_boot_no_ucode_ptr: u_boot_no_ucode_ptr.c + +u_boot_ucode_ptr: CFLAGS += $(LDS_UCODE) +u_boot_ucode_ptr: u_boot_ucode_ptr.c + +bss_data: CFLAGS += $(SRC)bss_data.lds +bss_data: bss_data.c + +u_boot_binman_syms.bin: u_boot_binman_syms + $(OBJCOPY) -O binary $< -R .note.gnu.build-id $@ + +u_boot_binman_syms: CFLAGS += $(LDS_BINMAN) +u_boot_binman_syms: u_boot_binman_syms.c + +u_boot_binman_syms_x86: CFLAGS += $(LDS_BINMAN_X86) +u_boot_binman_syms_x86: u_boot_binman_syms_x86.c + +u_boot_binman_syms_bad: CFLAGS += $(LDS_BINMAN_BAD) +u_boot_binman_syms_bad: u_boot_binman_syms_bad.c + +u_boot_binman_syms_size: CFLAGS += $(LDS_BINMAN) +u_boot_binman_syms_size: u_boot_binman_syms_size.c + +clean: + rm -f $(TARGETS) + +help: + @echo "Makefile for binman test programs" + @echo + @echo "Intended for use on x86 hosts" + @echo + @echo "Targets:" + @echo + @echo -e "\thelp - Print help (this is it!)" + @echo -e "\tall - Builds test programs (default targget)" + @echo -e "\tclean - Delete output files" diff --git a/roms/u-boot/tools/binman/test/bss_data.c b/roms/u-boot/tools/binman/test/bss_data.c new file mode 100644 index 000000000..79537c31b --- /dev/null +++ b/roms/u-boot/tools/binman/test/bss_data.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2016 Google, Inc + * + * Simple program to create a _dt_ucode_base_size symbol which can be read + * by binutils. This is used by binman tests. + */ + +int bss_data[10]; +int __bss_size = sizeof(bss_data); + +int main() +{ + bss_data[2] = 2; + + return 0; +} diff --git a/roms/u-boot/tools/binman/test/bss_data.lds b/roms/u-boot/tools/binman/test/bss_data.lds new file mode 100644 index 000000000..306dab504 --- /dev/null +++ b/roms/u-boot/tools/binman/test/bss_data.lds @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(_start) + +SECTIONS +{ + . = 0xfffffdf0; + _start = .; + __bss_size = 10; +} diff --git a/roms/u-boot/tools/binman/test/files/1.dat b/roms/u-boot/tools/binman/test/files/1.dat new file mode 100644 index 000000000..a95247061 --- /dev/null +++ b/roms/u-boot/tools/binman/test/files/1.dat @@ -0,0 +1 @@ +sorry I'm late diff --git a/roms/u-boot/tools/binman/test/files/2.dat b/roms/u-boot/tools/binman/test/files/2.dat new file mode 100644 index 000000000..687ea5273 --- /dev/null +++ b/roms/u-boot/tools/binman/test/files/2.dat @@ -0,0 +1 @@ +Oh, don't bother apologising, I'm sorry you're alive diff --git a/roms/u-boot/tools/binman/test/files/ignored_dir.dat/ignore b/roms/u-boot/tools/binman/test/files/ignored_dir.dat/ignore new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/roms/u-boot/tools/binman/test/files/ignored_dir.dat/ignore diff --git a/roms/u-boot/tools/binman/test/files/not-this-one b/roms/u-boot/tools/binman/test/files/not-this-one new file mode 100644 index 000000000..e71c2250f --- /dev/null +++ b/roms/u-boot/tools/binman/test/files/not-this-one @@ -0,0 +1 @@ +this does not have a .dat extenion diff --git a/roms/u-boot/tools/binman/test/fitimage.bin.gz b/roms/u-boot/tools/binman/test/fitimage.bin.gz Binary files differnew file mode 100644 index 000000000..0a9dcfc42 --- /dev/null +++ b/roms/u-boot/tools/binman/test/fitimage.bin.gz diff --git a/roms/u-boot/tools/binman/test/ifwi.bin.gz b/roms/u-boot/tools/binman/test/ifwi.bin.gz Binary files differnew file mode 100644 index 000000000..25d728929 --- /dev/null +++ b/roms/u-boot/tools/binman/test/ifwi.bin.gz diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms.c b/roms/u-boot/tools/binman/test/u_boot_binman_syms.c new file mode 100644 index 000000000..37fc339ce --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms.c @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2017 Google, Inc + * + * Simple program to create some binman symbols. This is used by binman tests. + */ + +#define CONFIG_BINMAN +#include <binman_sym.h> + +binman_sym_declare(unsigned long, u_boot_spl_any, offset); +binman_sym_declare(unsigned long long, u_boot_spl2, offset); +binman_sym_declare(unsigned long, u_boot_any, image_pos); +binman_sym_declare(unsigned long, u_boot_any, size); diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms.lds b/roms/u-boot/tools/binman/test/u_boot_binman_syms.lds new file mode 100644 index 000000000..825fc3f64 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms.lds @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(_start) + +SECTIONS +{ + . = 0x00000010; + _start = .; + + . = ALIGN(4); + .text : + { + __image_copy_start = .; + *(.text*) + } + + . = ALIGN(4); + .binman_sym_table : { + __binman_sym_start = .; + KEEP(*(SORT(.binman_sym*))); + __binman_sym_end = .; + } + .interp : { *(.interp*) } + +} diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.c b/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.c new file mode 120000 index 000000000..939b2e965 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.c @@ -0,0 +1 @@ +u_boot_binman_syms.c
\ No newline at end of file diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.lds b/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.lds new file mode 100644 index 000000000..849d158ac --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms_bad.lds @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(_start) + +SECTIONS +{ + . = 0x00000000; + _start = .; + + . = ALIGN(4); + .text : + { + *(.text*) + } + + . = ALIGN(4); + .binman_sym_table : { + __binman_sym_start = .; + KEEP(*(SORT(.binman_sym*))); + __binman_sym_end = .; + } + +} diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms_size.c b/roms/u-boot/tools/binman/test/u_boot_binman_syms_size.c new file mode 100644 index 000000000..7224bc186 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms_size.c @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2017 Google, Inc + * + * Simple program to create some binman symbols. This is used by binman tests. + */ + +#define CONFIG_BINMAN +#include <binman_sym.h> + +binman_sym_declare(char, u_boot_spl, pos); diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.c b/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.c new file mode 120000 index 000000000..939b2e965 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.c @@ -0,0 +1 @@ +u_boot_binman_syms.c
\ No newline at end of file diff --git a/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.lds b/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.lds new file mode 100644 index 000000000..9daf86f83 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_binman_syms_x86.lds @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(_start) + +SECTIONS +{ + . = 0xffffff00; + _start = .; + + . = ALIGN(4); + .text : + { + __image_copy_start = .; + *(.text*) + } + + . = ALIGN(4); + .binman_sym_table : { + __binman_sym_start = .; + KEEP(*(SORT(.binman_sym*))); + __binman_sym_end = .; + } + .interp : { *(.interp*) } + +} diff --git a/roms/u-boot/tools/binman/test/u_boot_no_ucode_ptr.c b/roms/u-boot/tools/binman/test/u_boot_no_ucode_ptr.c new file mode 100644 index 000000000..24cdb909d --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_no_ucode_ptr.c @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2016 Google, Inc + * + * Simple program to create a bad _dt_ucode_base_size symbol to create an + * error when it is used. This is used by binman tests. + */ + +static unsigned long not__dt_ucode_base_size[2] + __attribute__((section(".ucode"))) = {1, 2}; diff --git a/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.c b/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.c new file mode 100644 index 000000000..243c8e9e1 --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.c @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2016 Google, Inc + * + * Simple program to create a _dt_ucode_base_size symbol which can be read + * by binutils. This is used by binman tests. + */ + +static unsigned long _dt_ucode_base_size[2] + __attribute__((section(".ucode"))) = {1, 2}; diff --git a/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.lds b/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.lds new file mode 100644 index 000000000..cf4d1b8bb --- /dev/null +++ b/roms/u-boot/tools/binman/test/u_boot_ucode_ptr.lds @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(_start) + +SECTIONS +{ + . = 0xfffffe14; + _start = .; + .ucode : { + *(.ucode) + } + .interp : { *(.interp*) } +} |