mirror of
https://github.com/Opvolger/Opvolger.git
synced 2025-04-19 03:24:58 -04:00
48 lines
1.9 KiB
YAML
48 lines
1.9 KiB
YAML
# https://gitee.com/bianbu-linux/buildroot-ext/blob/bl-v1.0.y/board/spacemit/k1/partition_flash.json
|
|
- name: Clear partitions and create 4 new partitions fsbl,env,opensbi and uboot
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo sgdisk --clear \
|
|
--set-alignment=2 \
|
|
--new=1:256:767 --change-name=1:fsbl --typecode=1:76CE056B-7C39-40E6-972D-85800638DD5E \
|
|
--new=2:768:895 --change-name=2:env --typecode=2:9B670021-BE65-49F5-B10F-6C02EB9A8327 \
|
|
--new=3:2048:4095 --change-name=3:opensbi --typecode=2:EECBDE06-0362-414F-ABAB-4841EE8FA6D2 \
|
|
--new=4:4096:16383 --change-name=4:uboot --typecode=2:172C5C47-EFE7-49CE-BD1C-58A40A039428 \
|
|
{{ target }}"
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: "Write bootinfo_sd.bin to {{ target }}"
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo dd if=/home/opvolger/Downloads/bianbu-linux-k1-v2.0.2-20241111201323/factory/bootinfo_sd.bin of={{ target }}"
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: "Write FSBL.bin to {{ target }}1"
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo dd if=/home/opvolger/Downloads/bianbu-linux-k1-v2.0.2-20241111201323/factory/FSBL.bin of={{ target }}1"
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: "Write u-boot-env-default.bin to {{ target }}2"
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo dd if=/home/opvolger/Downloads/bianbu-linux-k1-v2.0.2-20241111201323/env.bin of={{ target }}2"
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: "Write fw_dynamic.itb to {{ target }}3"
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo dd if=/home/opvolger/Downloads/bianbu-linux-k1-v2.0.2-20241111201323/fw_dynamic.itb of={{ target }}3"
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: "Write u-boot.itb to {{ target }}4"
|
|
become: true
|
|
become_user: root
|
|
ansible.builtin.shell: "sudo dd if=/home/opvolger/Downloads/bianbu-linux-k1-v2.0.2-20241111201323/u-boot.itb of={{ target }}4"
|
|
args:
|
|
executable: /bin/bash
|