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
Glen Barber
ace79aa796
Fix building BEAGLEBONE images with Crochet using the
...
sysutils/u-boot-beaglebone port:
- In arm/BEAGLEBONE.conf, set EMBEDDEDPORTS to the
sysutils/u-boot-beaglebone port.
- In arm/release.sh, remove BEAGLEBONE from setting WANT_UBOOT
- In tools/arm/crochet-BEAGLEBONE.conf, override the
beaglebone_check_uboot(), and set BEAGLEBONE_UBOOT to
/tmp/external/u-boot-beaglebone, and create symlinks to the
u-boot files in /usr/local/share/u-boot-beaglebone and the
uEnv.txt file in crochet/board/Beaglebone/files.
Sponsored by: The FreeBSD Foundation
2015-05-05 21:08:50 +00:00
Glen Barber
86be889b61
Remove buildenv_setup(), and set EMBEDDEDPORTS to the
...
sysutils/u-boot-rpi2 port, since these cases are already
handled by arm/release.sh.
Sponsored by: The FreeBSD Foundation
2015-05-05 16:37:59 +00:00
Glen Barber
20a67b0520
Add initial support for building RPI2 images.
...
In release.sh, allow overriding buildenv_setup() before
the handoff to arm/release.sh.
Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
the correct KERNEL, and add the buildenv_setup() override
to install the sysutils/u-boot-rpi2 port/package.
Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
and set the correct entries for the RaspberryPi2 board.
Thanks to: loos@
Sponsored by: The FreeBSD Foundation
2015-05-05 16:28:04 +00:00
Glen Barber
4b9b2a3781
Document r281617, wc(1) race when receiving SIGINFO fixed.
...
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:21 +00:00
Glen Barber
41b4592ccf
Fix a FDP style nit. Wrap the lines as a result.
...
Found with: textproc/igor
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:19 +00:00
Glen Barber
9e84de4dbf
Document r281802, support added for building FreeBSD/aarch64 virtual
...
machine and memory stick images.
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:17 +00:00
Glen Barber
1357d43933
Update the svn revision marker.
...
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:15 +00:00
Glen Barber
48c9833590
Document r282434, openresolv updated to version 3.7.0.
...
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:12 +00:00
Glen Barber
324414db87
Document r282274, xen(4) PV domU kernel support removed.
...
Sponsored by: The FreeBSD Foundation
2015-05-05 15:16:10 +00:00