|
The simplest way to build an image:
- do not change anything (ubuntu vivid will be created, if you want different distro/release, just change distro and repo parameters)
- run: sudo ./create_image
- Ubuntu Vivid fs will be created in linux-vivid directory
- ... if you need to, change anything you want in that directory, as root ...
- run: sudo ./image_from_dir linux_vivid /dev/sdX to create bootable OPI SD Card
- or
- run: sudo ./image_from_dir linux_vivid my_opi_linux_image to create SDCard image
- my_opi_linux_image.img, my_opi_linux_image.xz, and md5sum files will be created (if you don't need compressed xz archive, set _compress="no" in params.sh)
- you can write the image to sd card: dd if=my_opi_linux_image.img of=/dev/sdX bs=1M oflag=direct
- After cd card is created, mount 1st partition (VFAT, LABEL=BOOT) and copy uImage & script.bin according to yo board type
I don't see any reason why would you have to recompile 5 times.
If you want to install some packages, or do any configuration during the image creation, you can put your code into second_stage script.
It is executed in chrooted environment with qemu-arm-static arm emulation.
You can put your code (bash commands) before the line rm -Rf /boot/* >> $_LOGFILE 2>&1 in second_stage script.
Thermal management in the new kernel is much better, so no need for NO BUDGET COOLING option.
|
|