Glen Barber
9fcdd5a3c9
Sigh. Really fix CHECKSUM file creation.
...
Sponsored by: The FreeBSD Foundation
2015-05-08 15:15:36 +00:00
Glen Barber
395475f31e
Fix CHECKSUM file creation.
...
Sponsored by: The FreeBSD Foundation
2015-05-08 15:10:00 +00:00
Glen Barber
53f0cb8fae
Initial support for building WANDBOARD-QUAD images.
...
Several parts of this were obtained from Crochet.
Sponsored by: The FreeBSD Foundation
2015-05-08 15:07:17 +00:00
Glen Barber
763034ac01
Initial commit to support building RPI2 images, based on information
...
and documentation written by loos@ on the Wiki.
Sponsored by: The FreeBSD Foundation
2015-05-08 13:55:27 +00:00
Glen Barber
4bf1e8aee0
Do not include '/R' in the path when generating checksums, since
...
that will cause '/R' to be included in the CHECKSUM files.
Sponsored by: The FreeBSD Foundation
2015-05-08 12:55:25 +00:00
Glen Barber
99cf2362e2
Move the finished image build to the '/R' directory (the
...
standard 'install' location for other architectures), then
compress the image with xz(1), and generate the CHECKSUM
files.
Sponsored by: The FreeBSD Foundation
2015-05-08 12:50:48 +00:00
Glen Barber
40847e360b
Fix the name of the final image.
...
Sigh. Thou shalt not commit before coffee.
Sponsored by: The FreeBSD Foundation
2015-05-08 10:47:57 +00:00
Glen Barber
b3e7a59bdf
Rename KERNEL.img -> OSRELEASE-KERNEL.img when complete.
...
Sponsored by: The FreeBSD Foundation
2015-05-08 10:43:29 +00:00
Glen Barber
78e712f1bc
Do not create the uenv.txt file for RPI-B. It is not needed.
...
Submitted by: ian
Sponsored by: The FreeBSD Foundation
2015-05-08 10:39:52 +00:00
Glen Barber
fef41f600c
Fix path to /boot/msdos for the target image.
...
Sponsored by: The FreeBSD Foundation
2015-05-08 10:38:32 +00:00
Glen Barber
70437a3a2f
Copy the rpi.dtb file to the FAT partition, preventing the
...
'Unrecognized partition table' error, causing boot failure.
Sponsored by: The FreeBSD Foundation
2015-05-07 23:49:48 +00:00
Glen Barber
869ef34722
Reorder / and /boot/msdos mount to avoid the following error:
...
Mounting local file systems:
mount: /boot/msdos: No such file or directory
Sponsored by: The FreeBSD Foundation
2015-05-07 23:46:33 +00:00
Glen Barber
efc6ab44f2
Create the /boot/msdos directory so the FAT partition is mounted
...
properly.
Noticed by: sbruno
Sponsored by: The FreeBSD Foundation
2015-05-07 20:25:17 +00:00
Glen Barber
e26ba8ae96
Remove the ZEDBOARD configuration file, as it does not
...
have a corresponding u-boot port in the Ports Collection.
Sponsored by: The FreeBSD Foundation
2015-05-07 20:06:39 +00:00
Glen Barber
a3a86d8697
Spell 'u-boot.img' correctly.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 20:02:50 +00:00
Glen Barber
57fa7d0f2d
Remove the arm/ROADMAP file.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 19:48:06 +00:00
Glen Barber
1deb618afd
Remove arm/Makefile.{KERNEL} files, as this project
...
branch is now going in a different direction than
originally planned.
Sponsored by: The FreeBSD Foundation
2015-05-07 19:47:15 +00:00
Glen Barber
6052b0ac86
Fix creating directories within DESTDIR.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 19:10:08 +00:00
Glen Barber
51aa8af2cc
Fix a copy/paste mistake.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 18:53:48 +00:00
Glen Barber
5287f5496e
Add entries to uenv.txt.
...
Obtained from: Crochet
Sponsored by: The FreeBSD Foundation
2015-05-07 18:51:59 +00:00
Glen Barber
60bc17f490
Enable the growfs rc(8) script.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 18:49:43 +00:00
Glen Barber
77d9ac1703
Set NODOC=1 to avoid building the reldoc target.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 18:48:47 +00:00
Glen Barber
b36739d1ea
Add initial native suppor for RPI-B:
...
- Set UBLDR_LOADADDR.
- Include files to install to the FAT partition.
Obtained from: Crochet
Sponsored by: The FreeBSD Foundation
2015-05-07 18:47:59 +00:00
Glen Barber
8c61607444
Remove FDT_DIR definition, which is no longer needed.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 18:41:23 +00:00
Glen Barber
91ea0e63de
Reduce the number of files copied onto the FAT partition.
...
The DTB files are loaded from /boot/dtb on the UFS filesystem.
Submitted by: loos
Sponsored by: The FreeBSD Foundation
2015-05-07 18:32:11 +00:00
Glen Barber
6bd844ae0d
In arm_install_uboot(), mount both FAT and UFS partitions
...
in the empty DESTDIR, and update path names.
Copy the ubldr to the FAT partition. [1]
Spotted by: andrew [1]
Sponsored by: The FreeBSD Foundation
2015-05-07 18:00:12 +00:00
Glen Barber
ab44589d80
Set UBLDR_LOADADDR for the BEAGLEBONE image.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 17:50:24 +00:00
Glen Barber
c2b4ad660a
Do not rename u-boot.img file when copying to the FAT partition.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 17:48:19 +00:00
Glen Barber
ac1401b2c3
Fix paths.
...
Remove the temporary directory when done with it.
Destroy the md(4) device when done with it.
Sponsored by: The FreeBSD Foundation
2015-05-07 17:40:00 +00:00
Glen Barber
04b7fd007b
In arm_create_disk(), chroot(8) to the build environment
...
is necessary.
In arm_install_base(), chroot(8) when installing world
and kernel. Fix paths for fstab(5) and rc.conf(5).
Sponsored by: The FreeBSD Foundation
2015-05-07 17:35:48 +00:00
Glen Barber
379d8dca37
Fix file/directory paths.
...
Sponsored by: The FreeBSD Foundation
2015-05-07 17:33:21 +00:00
Glen Barber
befaadd56c
In release.sh, create the /dev directory within the chroot
...
before attempting to mount(8) devfs. Also, create the
.OBJDIR for the 'release' target, so files end up in the
correct location.
In tools/arm.subr, fix the target device when creating the
gpart partition scheme.
Sponsored by: The FreeBSD Foundation
2015-05-07 00:27:28 +00:00
Glen Barber
68bca5fb30
Use the correct variable for the tools/TARGET.conf file.
...
Sponsored by: The FreeBSD Foundation
2015-05-06 23:26:51 +00:00
Glen Barber
4ad8b75d53
Add tools/arm.subr to contain common subroutines used for
...
building arm images. This is similar to tools/vmimage.subr
used for building virtual machine disk images. By default,
only arm_create_disk() and arm_install_base() contain real
functionality here, and arm_install_uboot() must be overridden
in the arm/KERNEL.conf file.
In release.sh, make create_arm_armv6_build_release() do
something now.
In arm/BEAGLEBONE.conf, set IMAGE_SIZE, PART_SCHEME, FAT_SIZE,
FAT_TYPE, and MD_ARGS, as well as make arm_install_uboot()
functional.
Parts of this were taken from disecting a previous BEAGLEBONE
image, and other parts obtained from Crochet sources.
Sponsored by: The FreeBSD Foundation
2015-05-06 19:58:12 +00:00
Glen Barber
9056dae945
Evaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCH
...
of the build target.
Move arm/armv6 'release' bits to chroot_arm_armv6_build_release().
Sponsored by: The FreeBSD Foundation
2015-05-06 18:16:27 +00:00
Glen Barber
57dbde2ca8
buildenv_setup(), if overridden in the configuration file,
...
only needs to be invoked once.
Sponsored by: The FreeBSD Foundation
2015-05-06 16:21:12 +00:00
Glen Barber
6848c01fad
Remove Crochet invocation.
...
Sponsored by: The FreeBSD Foundation
2015-05-06 16:04:11 +00:00
Glen Barber
fea236302d
Remove crochet configuration files and tools/arm/ directory.
...
Sponsored by: The FreeBSD Foundation
2015-05-06 15:59:29 +00:00
Glen Barber
cf582ac56f
Update the arm/*.conf configuration files to only set
...
EMBEDDEDBUILD, EMBEDDED_TARGET, EMBEDDED_TARGET_ARCH,
EMBEDDEDPORTS, and KERNEL.
In release.sh, set TARGET and TARGET_ARCH to the
EMBEDDED_* variants from the configuration file.
Sponsored by: The FreeBSD Foundation
2015-05-06 15:58:21 +00:00
Glen Barber
a03128832c
In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.
...
Move the port build for EMBEDDEDPORTS (if set) from arm/release.sh
to release.sh.
Remove arm/release.sh.
Sponsored by: The FreeBSD Foundation
2015-05-06 15:41:43 +00:00
Glen Barber
8501ddab55
Add a return to chroot_build_target().
...
In chroot_build_release(), reverse the order evaluating
EMBEDDEDBUILD.
Sponsored by: The FreeBSD Foundation
2015-05-06 15:20:29 +00:00
Glen Barber
7290c83913
Wrap long lines in comments after previous commits that indented
...
the file.
Sponsored by: The FreeBSD Foundation
2015-05-06 15:10:50 +00:00
Glen Barber
3c9143a888
Ensure resolv.conf exists on the build host before attempting
...
to copy it to the build chroot.
Move where the ldconfig(8) startup script is invoked.
Sponsored by: The FreeBSD Foundation
2015-05-06 15:05:38 +00:00
Glen Barber
81cfc2845b
Move where the configuration file is sourced if '-c'
...
is specified. If the configuration file does not exist,
proceed with the default options instead of exiting.
Sponsored by: The FreeBSD Foundation
2015-05-06 14:59:16 +00:00
Glen Barber
43eee0751f
Move the trap after env_check(), since CHROOTDIR may be
...
redefined.
Sponsored by: The FreeBSD Foundation
2015-05-06 14:53:34 +00:00
Glen Barber
3ddb84b3bb
Shorten long lines.
...
Sponsored by: The FreeBSD Foundation
2015-05-06 14:53:01 +00:00
Glen Barber
5dbf38dcca
Move PATH and export to the same line.
...
Handle svn or svnlite being installed in /usr/bin or
/usr/local/bin.
Sponsored by: The FreeBSD Foundation
2015-05-06 14:48:35 +00:00
Glen Barber
a12fa24967
Add documentation for newly-added functions.
...
While here, move CHROOT_* and RELEASE_* variables from
env_setup() to env_check() since they may change if
a release.conf file is used.
Sponsored by: The FreeBSD Foundation
2015-05-06 14:35:43 +00:00
Glen Barber
fb539361f7
Add the following functions to release.sh to organize and make
...
clear the workflow:
- env_setup()
- env_check()
- chroot_setup()
- extra_chroot_setup()
- chroot_build_target()
- chroot_build_release()
There should be no functional changes at this point.
Sponsored by: The FreeBSD Foundation
2015-05-06 14:21:51 +00:00
Glen Barber
2252f43bdc
MFH: r282315-r282534
...
Sponsored by: The FreeBSD Foundation
2015-05-06 11:50:30 +00:00