https://github.com/3mdeb/meta-trenchboot-demo
Meta layer for Trenchboot related demos
https://github.com/3mdeb/meta-trenchboot-demo
Last synced: 5 months ago
JSON representation
Meta layer for Trenchboot related demos
- Host: GitHub
- URL: https://github.com/3mdeb/meta-trenchboot-demo
- Owner: 3mdeb
- License: mit
- Created: 2019-10-11T06:36:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T20:15:56.000Z (about 6 years ago)
- Last Synced: 2023-09-21T15:12:38.115Z (over 2 years ago)
- Language: BitBake
- Size: 51.8 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING.MIT
Awesome Lists containing this project
README
# WARNING
This is WIP repo and it is under development. Use it at your own risk.
If you have use-cases for such thing to be developed, please submit
an issue or PR with description of your needs / fixes.
## meta-trenchboot-demo
Meta layer for Trenchboot related demos
## Building
Make sure to adjust `~/ssh-keys` according to your configuration:
```
SHELL=bash kas-docker --ssh-dir ~/ssh-keys build meta-trenchboot-demo/kas.yml
```
Change a directory to `build/tmp/deploy/images/pcengines-apu2`. Find the
xen-dom0-image-pcengines-apu2 files with extensions wic.gz and wic.bmap.
Copy them to the apu platform (for example through ssh or memory stick).
At the platform, check device (`/dev/` ) of the drive to be flashed:
```bash
fdisk -l
```
Then flash the drive with bmap-tools:
```bash
bmaptool copy --bmap xen-dom0-image-pcengines-apu2.wic.bmap xen-dom0-image-pcengines-apu2.wic.gz /dev/
```
Example output
```bash
# bmaptool copy --bmap xen-dom0-image-pcengines-apu2.wic.bmap xen-dom0-image-pcengines-apu2.wic.gz /dev/sda
bmaptool: info: block map format version 2.0
bmaptool: info: 3163136 blocks of size 4096 (12.1 GiB), mapped 587526 blocks (2.2 GiB or 18.6%)
bmaptool: info: copying image 'xen-dom0-image-pcengines-apu2.wic.gz' to block device '/dev/sda' using bmap file 'xen-dom0-image-pcengines-apu2.wic.bmap'
bmaptool: info: 97% copied
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/sda'
bmaptool: info: copying time: 5m 30.3s, copying speed 6.9 MiB/sec
```
## Technical showcase
The demo has been shown at the [ELCE2019](https://3mdeb.com/news/events/#Embedded-Linux-Conference).