https://github.com/3mdeb/meta-tb-isar-dev
https://github.com/3mdeb/meta-tb-isar-dev
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/3mdeb/meta-tb-isar-dev
- Owner: 3mdeb
- Created: 2019-04-25T09:57:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T07:27:54.000Z (over 6 years ago)
- Last Synced: 2023-09-21T15:12:36.131Z (over 2 years ago)
- Language: BitBake
- Size: 31.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# meta-tb-isar-dev
## Prepare
* get `kas-docker` script:
```
wget -O ~/bin/kas-docker https://raw.githubusercontent.com/siemens/kas/1.0/kas-docker
```
* clone our repo:
```
mkdir tb-sdk
cd tb-sdk
git clone git@github.com:3mdeb/meta-tb-isar-dev.git
```
* clone linux repo:
> It will be convenient for local linux development. It is required by the
> `linux-apu2-local_git.bb` recipe
```
git clone --branch tb-apu2-dev git@github.com:3mdeb/linux-stable.git
```
## Build
* whole image:
> Below command will build kernel and rootfs. Kernel modules are part of the
> rootfs.
```
SHELL=bash kas-docker --isar build meta-tb-isar-dev/kas-rootfs.yml
```
## Development
### Rootfs modification
Simply add the `Debian` packages you need to the `isar-image-xen.bb` recipe.
### Linux kernel modification
#### configuration
Simply edit the `recipes-kernel/linux/files/apu2_defconfig`. The best practice
would be to:
* enable / disable options via `menuconfig`
* save config with `make savedefconfig`
* copy `defconfig` into `apu2_defconfig`
#### source modification
* Make some changes in the `tb-sdk/linux-stable` repo and commit them
* rebuild
## Deploy
Build artifacts are available in `isar-sdk/build/tmp/deploy/images/qemuamd64`:
```
-rw-r--r-- 1 root root 72M Apr 25 13:26 isar-image-xen-debian-buster-qemuamd64.tar.gz
-rw-r--r-- 1 root root 5.1M Apr 25 13:26 isar-image-xen-debian-buster-qemuamd64.initrd.img-4.19.36
-rw-r--r-- 1 builder builder 8.0M Apr 25 13:26 isar-image-xen-debian-buster-qemuamd64.vmlinuz-4.19.36
```