247 Commits

Author SHA1 Message Date
Dongjin Kim
dcad4bb4fe Apply build flavour specific packages and overlay files
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I27d9f3d891141c80a5143f88e15e45c0d6830c12
2022-03-05 20:11:32 +09:00
Dongjin Kim
04c1aace65 Fix to get the options for 'apt install' from build target
Desktop package needs to install the recommended packages for better UX,
such packages will be installed without '--no-install-recommends' in
'apt install' command.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib024fa218b6d87d5df68f00e81584be87c4b7daa
2022-03-05 20:11:31 +09:00
Dongjin Kim
6f9ebd3395 functions: add to run board specific fixup scripts
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I8f7685f57c36f85e0ec97d71237c346e1e7ee49d
2022-03-05 20:11:31 +09:00
Dongjin Kim
5a43c1b0b7 Fix to build for internal project with 'INTERNAL=true'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4b130880f09437ec547f479f8846c75976f75849
2022-03-05 20:11:28 +09:00
Dongjin Kim
967d42cb1b Add dummy function for a board without U-Boot
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I3d4d17d5e5eafdcf38bda0866fec4dc5817e89c8
2022-03-05 20:11:24 +09:00
Dongjin Kim
c542c1ed68 Add new custom build to run simple SAMBA server
$ sudo ODROID_STAMPER_CHECKOUT=$PWD ./odroid-stamper samba

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I326dd59e092c886d21c62201485cab13337b6d1a
2022-02-16 01:13:21 +09:00
Dongjin Kim
6d5140ccd7 DEBIAN: add more dependent packages
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia7350fab2dcf061526d950a22cfe35a4bc148692
2022-02-16 01:12:40 +09:00
Dongjin Kim
0160e6239e Improve build script for Liveboot OS image
Adding 'root=casper toram' to '/etc/default/flash-kernel' is more
generic since /usr/share/flash-kernel/preboot.d/upstream presents
for ODROID-N2/C4.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5bf5b160409474cc1d37423f0ac15f99912f9b83
2022-02-15 01:43:02 +09:00
Dongjin Kim
d8b8709070 Set default groups to a default user
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia4155e04029b9b1c80fadf1840953f85008340df
2022-02-14 20:14:23 +09:00
Dongjin Kim
b6e8859a79 Add new OS version Debian 12 (Bookworm)
Change-Id: I6b37288b3cb31fbee805778aa022db2708cd5b67
2022-02-14 20:11:19 +09:00
Dongjin Kim
f609920320 Add properly resize root file system for NVMe
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ieea3864fb622749ddaeb8d12028638d773eb7bc6
2022-01-11 13:36:53 +09:00
Dongjin Kim
44ac27ba0e ODROID-C2: fix to build with recent packages
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I2ff9d8b90483f529080f4e8c761372c465464473
2021-05-23 17:04:31 +09:00
Dongjin Kim
102f5b822b functions: add to override functions if customos has
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Id4c14ecd4b98a89942a1086cd425768d55b221f3
2021-05-23 07:26:28 +09:00
Dongjin Kim
bee68b9ffb custom: mainsail: add to disable 'ondemand' service
The service 'ondemand' is to set CPU governor as 'ondemand' which could
lower the performance, so...removed to run with 'performance' governor
always.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie5ebde04281dca2305ac9ab09894fb8076c09897
2021-05-23 07:13:25 +09:00
Dongjin Kim
13f01b7824 Add custom first boot script
The first boot script is the one executed when the memory card is
freshly flashed and run on the board, this script is to initiate OS
environment. This custom script will genenate new secure keys in
/etc/ssh and back up to vendor partition using 'overlayroot' script.

Change-Id: Ibe84da3e33ffc893c319a9253793037c93a250fa
2021-05-08 07:12:23 +09:00
Dongjin Kim
343b995c00 Remove 'casper-bottom' scripts not required
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I1fd83aa12bb15646e40f2599f24db9d7dc38a74e
2021-05-08 04:26:24 +09:00
Dongjin Kim
1d07c12d15 Improve file system layout support
This change is to use 'casper' to run root file system on the memory and
mount additional partitions to it.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If1ae4f025a78765313e0fa2807fc97347d5214fc
2021-05-08 04:26:20 +09:00
Dongjin Kim
8c7a0bac78 Copy file list to top directory of partition as '.filesystem'
The file '.filesystem' contains the files that must be copied and stored
in the partition.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I92ac336f23e70846f81c419d18a176e475cdb609
2021-05-08 04:14:19 +09:00
Dongjin Kim
5854723844 Remove '/etc/ssh/ssh_host_*' to regenerate at first boot
Change-Id: I22927bc31e54781dbd1ff6d095a2675e0ce6bf61
2021-05-08 04:12:54 +09:00
Dongjin Kim
649821ade2 Move 'fixups/S98-fstab' to 'fixups/S90-fstab'
'98' is too late, no slot beween 98 and 99 for custom fix up script

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib446e7f66540ad495919fcea68f71e29591d3f8d
2021-05-07 00:40:09 +09:00
Dongjin Kim
b2e2313ed0 Add to create custom partitions to live boot system
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6eb71c5dded45c689400599a799eac8f38cbb0bd
2021-05-07 00:38:05 +09:00
Dongjin Kim
ed97976295 Add '*.squashfs' as a base root file system to build from
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6cff24d66dc2b5b6b2286cd18cc54941a79aba1a
2021-05-02 10:42:47 +00:00
Dongjin Kim
ad4e1a2cb9 Add new OS distribution 'Ubuntu 21.04'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4c75de05c453265d96fd7d9585631fc7f8a464bb
2021-05-02 10:42:43 +00:00
Dongjin Kim
5769ca2171 Add 'S65-overlay' to copy overay file to copy overlay/ files
The files in overlay/ should be copied after the package has been installed.

Change-Id: Id8b8f32463fd81d7240dcd258032f75ff4b06507
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2021-05-02 09:56:34 +00:00
Dongjin Kim
b0c52ac97c Add to create file system with given file list
This patch will create a partition image with given file list in a file.

For example, suppose we have 'vendor.list' that contains files

  $ cat custom/templates/oem/vendor.list
  /etc/hostname

And give the file name 'vendor.list' to 'hooks/partition' with a certain
partition list.

  $ cat custom/templates/oem/hooks/partition
  oem_mkfs_ext4 5 vendor vendor.list
  oem_mkfs_ext4 6 app
  oem_mkfs_ext4 7 lib

The partition labeled by 'vendor' will contains the files as listed in
'vendor.list'.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie4e80762f2d1c43c77dd941213f449dc3792fcbf
2021-05-02 04:05:16 +09:00
Dongjin Kim
258a4b1ea9 Copy files in '*/overlay/*' after running fixup scripts
This patch is to overwrite successfully the file installed by a package.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I743cb8dc23dc86ef272312b6f4fdd41fa4d46261
2021-05-01 16:25:41 +09:00
Dongjin Kim
2a4b95a028 DEBIAN: add dependency package to use '<mk|un>squashfs'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifd47d1b896c488968e3b12c0d9559cd65abd509c
2021-04-21 20:19:30 +09:00
Dongjin Kim
28d4caa447 command: add new build flag '--keep-builddir'
The working directory contains the files of a target OS system to build
and it's the source to create partitions and OS image. With the flag
'--keep-builddir' won't remove the working directory after the target OS
image is built such that one can traverse the file system in the build
machine. By default, the working directory will be removed.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I00e8488797535410fde6dbd01249ecb8ebc1ae56
2021-04-20 11:41:49 +09:00
Dongjin Kim
7b24cbbaec command: add new flag '--live' to build live boot image
The live boot image is intended to boot and run on system memory.
Its root file system is built as SQUASFS file system and loaded
from a file system on booting.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7df3cb7c43a53120afa300142032aa0e95a914fe
2021-04-20 11:41:46 +09:00
Dongjin Kim
e25e8d2d74 command: add command flag '--output=*' to set output directory
$ ./odroid-stamper --output=$PWD/output

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I9253d925cd406bb39c1486d4b1535c80bcf7e56a
2021-04-20 11:41:41 +09:00
Dongjin Kim
9e31949cde Fix typo for 'INTERNAL_APT'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib87a78d1e6f7776ecc3029b963def9b45d10e6ba
2021-04-14 16:09:24 +09:00
Dongjin Kim
87f3cbffbf Add to support comments start with '#' or ';'
This patch allows to describe the package list with comments in
the file 'packages'.

	; Fundamental package list to build LAMP server

	# Install MySQL
	mysql-client		# Client
	mysql-server		# Server

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I32ffc3e845b3ff7b05b81a26d99e83ed55488f97
2021-04-13 22:21:14 +09:00
Dongjin Kim
d4c7b57684 Add to disable interactive prompt when installing packages
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I58ab79e8e6dd3dbe0348d879e95367aaeea396a2
2021-04-13 17:21:43 +09:00
Dongjin Kim
221d184ae4 Fix long filename support on ISO image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I46d08b713d24284698fa3c6459d48051271a3812
2021-04-07 16:17:59 +09:00
Dongjin Kim
49da24c656 Add new build target for ODROID Ethcer
Change-Id: Iadeda0cab0ddbe3b9eb3b992c9bed2f2a0bf1395
2021-04-01 15:52:54 +09:00
Dongjin Kim
ada20903f5 Add to build ISO image and apply to Live System image
Add 'ISOIMAGE=true' to config file for target image

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ibec11c57ac8c256d8436e70353de72376f8280cd
2021-04-01 14:03:06 +09:00
Dongjin Kim
ac136d299e Change 'LIVEBOOT' to 'LIVESYSTEM'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I894684aac8d8831c7eb30e97c0aa35bcdb5affc7
2021-04-01 12:53:24 +09:00
Dongjin Kim
09c7fcf46e Improve partition size calculation when creating an image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib2528702f888c954f47a4f1e83bd6ca4e81a713a
2021-03-17 22:21:55 +09:00
Dongjin Kim
0c9fbc3992 Add to call 'partprobe' after 'fdisk' works
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I86322a3113aa9069587e23788b0d4cb3acfa58e2
2021-03-17 02:52:47 +09:00
Dongjin Kim
f21812106f custom: mainsail: add to rename Wifi device name to 'wlan?'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6c20c00b58dc695daa90d9e3fe6c54c4006ba236
2021-03-17 02:51:11 +09:00
Dongjin Kim
64c6e781cd Add 'linux-firmware' and 'network-manager' for more network support
- 'linux-firmware' contains the firmware for Wifi devices.
- 'network-manager' contains the network tools (ex: nmtui)

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifb83a0f3f9c6cea0cca41a6392f02524bd167091
2021-03-17 02:01:47 +09:00
Dongjin Kim
e8fdb99368 Add new custom build template for LAMP ready image
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Idae6d03571300a7048f2e35e813dff44fdd728e5
2021-03-16 13:44:22 +09:00
Dongjin Kim
b4c07ef5c9 Add new custom build template for Docker ready image
Change-Id: I139f297948792ff8c83b15fac3ed2a55e163dc52
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2021-03-16 13:44:18 +09:00
Dongjin Kim
72e543e251 Add workaround to fix OS image build error
This patch is to fix the error on the machine at the first boot for the
error while build the OS image.

> (process:21627): GLib-ERROR **: 20:50:46.361: getauxval () failed: No such file or directory
> qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
> Trace/breakpoint trap

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923289

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I087d76961d0dabbeb6be2e15e39a344e71f7e393
2021-03-16 11:14:37 +09:00
Dongjin Kim
fab7c46ccb Improving image build process in chroot environment
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7576e92fc28652e168179dd6dd61e3231c3993ce
2021-03-16 11:14:37 +09:00
Dongjin Kim
93b7acbf40 Fix typo for package repository file
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ibe7e8c5664e79f4cfdccce8688482101a270c7d5
2021-03-13 03:44:06 +09:00
Dongjin Kim
1bc9905ce6 Move 'custom/liveboot' to 'custom/templates/liveboot'
Change-Id: I038c6924222c83f7297cb055588938afeca9ff84
2021-03-12 14:45:41 +09:00
Dongjin Kim
b446a663f2 Add to OEM customizable partition layout
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib07e525ef2ede94f4b7aaf9555b283c84de2b318
2021-03-12 14:45:37 +09:00
Dongjin Kim
15a6852bf2 Add to create root file system running in RAM.
This commit is to crate the root file system with squash file system so
the OS runs on the memory.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I486224ddb074031a38dda6d3e9f2dcf5ee144fd9
2021-03-05 02:51:33 +09:00
Dongjin Kim
e3a71292c2 Remove test code merged by accident
Change-Id: I1a9276c71d3290220043a4d41dd51343c6bf7fd3
2021-03-04 16:21:16 +09:00