public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ISAR SDK image support
@ 2018-05-16 15:56 Maxim Yu. Osipov
  2018-05-16 15:56 ` [PATCH v2 1/2] isar-bitbake: Add AUTOREV definition Maxim Yu. Osipov
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Maxim Yu. Osipov @ 2018-05-16 15:56 UTC (permalink / raw)
  To: isar-users

Hello everybody,

Please ignore previous patch series.

This series introduces ISAR SDK image support.

In order to create ISAR SDK image just add package isar-sdk into 
variable IMAGE_INSTALL in bitbake's conf/local.conf and fireup the ISAR image build.

When build is done, perform the following steps:

1) Copy host's hostname and resolv.conf into resulting rootfs:

For example,

sudo cp /etc/hostname  $HOME/isar/src/build/tmp/work/debian-stretch-amd64/isar-image-base/rootfs/etc
sudo cp /etc/resolv.conf  $HOME/isar/src/build/tmp/work/debian-stretch-amd64/isar-image-base/rootfs/etc

2) Mount the following directories in chroot by passing resulting rootfs as an argument
to the script mount_chroot.sh:

$ cat mount_chroot.sh 
#!/bin/bash
sudo mount /tmp     $1/tmp                 -o bind
sudo mount proc     $1/proc    -t proc     -o nosuid,noexec,nodev
sudo mount sysfs    $1/sys     -t sysfs    -o nosuid,noexec,nodev
sudo mount devtmpfs $1/dev     -t devtmpfs -o mode=0755,nosuid
sudo mount devpts   $1/dev/pts -t devpts   -o gid=5,mode=620
sudo mount tmpfs    $1/dev/shm -t tmpfs    -o rw,seclabel,nosuid,nodev

$./mount_chroot.sh $HOME/isar/src/build/tmp/work/debian-stretch-amd64/isar-image-base/rootfs

3) chroot to isar SDK rootfs:

$sudo chroot $HOME/isar/src/build/tmp/work/debian-stretch-amd64/isar-image-base/rootfs

4) In chroot change user to 'builder', cd to directory isar and start the isar image generation as usual.

For example,

root@tiberius:/# su - builder
builder@tiberius:~$ cd isar/
builder@tiberius:~/isar$ . isar-init-build-env ../build/
builder@tiberius:~/build$ bitbake multiconfig:qemuamd64-stretch:isar-image-base


Kind regards,
Maxim.

Alexander Smirnov (1):
  isar-bitbake: Add AUTOREV definition

Maxim Yu. Osipov (1):
  image: Add ISAR SDK package to create SDK from any rootfs image.

 meta-isar/recipes-core/images/isar-image-sdk.bb |  9 ++++++
 meta/conf/isar-bitbake.conf                     |  2 ++
 meta/recipes-devtools/isar-sdk/files/README     |  2 ++
 meta/recipes-devtools/isar-sdk/files/postinst   | 21 +++++++++++++
 meta/recipes-devtools/isar-sdk/isar-sdk.bb      | 42 +++++++++++++++++++++++++
 5 files changed, 76 insertions(+)
 create mode 100644 meta-isar/recipes-core/images/isar-image-sdk.bb
 create mode 100644 meta/recipes-devtools/isar-sdk/files/README
 create mode 100644 meta/recipes-devtools/isar-sdk/files/postinst
 create mode 100644 meta/recipes-devtools/isar-sdk/isar-sdk.bb

-- 
2.11.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-05-22 10:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 15:56 [PATCH v2 0/2] ISAR SDK image support Maxim Yu. Osipov
2018-05-16 15:56 ` [PATCH v2 1/2] isar-bitbake: Add AUTOREV definition Maxim Yu. Osipov
2018-05-16 15:56 ` [PATCH v2 2/2] image: Add ISAR SDK package to create SDK from any rootfs image Maxim Yu. Osipov
2018-05-18  8:19   ` Henning Schild
2018-05-18  8:28   ` Henning Schild
2018-05-17  7:47 ` [PATCH v2 0/2] ISAR SDK image support Baurzhan Ismagulov
2018-05-18  8:33 ` Henning Schild
2018-05-18 11:01   ` Maxim Yu. Osipov
2018-05-22  8:26     ` Henning Schild
2018-05-22 10:43       ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox