History log of /openbmc/openbmc-tools/prepare-emmc-qemu/prepare-emmc-qemu (Results 1 – 5 of 5)
Revision Date Author Comments
# 56acf685 15-Dec-2022 nitroglycerine <suichen6@gmail.com>

Fix two CI code formatting errors

The CI reports the following two errors:
* typing.Any unused in tof-voters/libvoters/subcmd/analyzer-commits.py
* the "function" keyword in prepare-emmc-qemu is not

Fix two CI code formatting errors

The CI reports the following two errors:
* typing.Any unused in tof-voters/libvoters/subcmd/analyzer-commits.py
* the "function" keyword in prepare-emmc-qemu is not needed

Fixing as suggested by the CI.

Tested: Ran the CI locally, the CI passes.

Signed-off-By: Sui Chen <suichen6@gmail.com>
Change-Id: Idbd3c47895c6ec6f923ede264264006ffc08e2f7

show more ...


# e310dd91 07-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Pa

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If16d2fd802a2d452234d8b56b41e79d030138a6b

show more ...


# 9949cc7c 17-Dec-2021 Joseph Reynolds <joseph-reynolds@charter.net>

prepare-emmc-qemu: Use xz or xzdec

This enhances prepare-emmc-qemu to use whichever of the xz or xzdec
commands is available. (It stops if neither is available.)

Tested: Ran su

prepare-emmc-qemu: Use xz or xzdec

This enhances prepare-emmc-qemu to use whichever of the xz or xzdec
commands is available. (It stops if neither is available.)

Tested: Ran successfully under bash with xz available.

Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net>
Change-Id: I3e4e12f8de3b32433d554502db86ca41e8809ff2

show more ...


# 5ec6208b 14-Dec-2021 Konstantin Aladyshev <aladyshev22@gmail.com>

prepare-emmc-qemu: Check if xzdec is present

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Change-Id: Iee33c50e23cb5c4c46c7c326b65457aea594d5c7


# 1800ed4d 26-Sep-2021 Andrew Jeffery <andrew@aj.id.au>

Add prepare-emmc-qemu

prepare-emmc-qemu is a script that assembles a bootable eMMC image from
the WIC and u-boot artefacts of an eMMC-based build of OpenBMC:

```
andrew@mist

Add prepare-emmc-qemu

prepare-emmc-qemu is a script that assembles a bootable eMMC image from
the WIC and u-boot artefacts of an eMMC-based build of OpenBMC:

```
andrew@mistburn:~/src/openbmc/openbmc/build/p10bmc $ prepare-emmc-qemu -h
NAME
prepare-emmc-qemu: Assemble an OpenBMC eMMC image that can be booted under QEMU

SYNOPSYS
prepare-emmc-qemu <TARGET> <BUILDDIR> [IMAGESIZE]

DESCRIPTION
TARGET: The name of the target machine, used to locate the required images.
BUILDDIR: The path to the OpenBMC build directory.
IMAGESIZE: The output image size, may be specified with units. Defaults to 16G.

EXAMPLE:
prepare-emmc-qemu p10bmc ~/src/openbmc/openbmc/build/p10bmc
andrew@mistburn:~/src/openbmc/openbmc/build/p10bmc $ prepare-emmc-qemu p10bmc .
+ target=p10bmc
+ build_dir=.
+ image_size=16G
+ fw_dir=./tmp/deploy/images/p10bmc
+ wicxz=./tmp/deploy/images/p10bmc/obmc-phosphor-image-p10bmc.wic.xz
+ mmc=mmc-p10bmc.img
+ dd of=mmc-p10bmc.img if=/dev/zero bs=1M count=128
128+0 records in
128+0 records out
134217728 bytes (134 MB, 128 MiB) copied, 0.115718 s, 1.2 GB/s
+ dd of=mmc-p10bmc.img if=./tmp/deploy/images/p10bmc/u-boot-spl.bin conv=notrunc
107+0 records in
107+0 records out
54784 bytes (55 kB, 54 KiB) copied, 0.00642483 s, 8.5 MB/s
+ dd of=mmc-p10bmc.img if=./tmp/deploy/images/p10bmc/u-boot.bin conv=notrunc bs=1K seek=64
411+1 records in
411+1 records out
421275 bytes (421 kB, 411 KiB) copied, 0.0129515 s, 32.5 MB/s
+ xzdec ./tmp/deploy/images/p10bmc/obmc-phosphor-image-p10bmc.wic.xz
+ dd of=mmc-p10bmc.img conv=notrunc bs=1M seek=2
0+1846910 records in
0+1846910 records out
15167689728 bytes (15 GB, 14 GiB) copied, 100.126 s, 151 MB/s
+ truncate --size 16G mmc-p10bmc.img
+ set +x

For an AST2600-based machine, invoke QEMU with the following parameters:

-drive file=/home/andrew/src/openbmc/openbmc/build/p10bmc/mmc-p10bmc.img,if=sd,format=raw,index=2
```

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I9dff01b4f85aa51e3253a6989bcd80bb2c48b6a9

show more ...