Commit Graph

1899 Commits

Author SHA1 Message Date
mrg 399f6b5a0b use GCC_NO_IMPLICIT_FALLTHRU 2021-04-24 04:50:47 +00:00
christos 58e21b67a6 Add a stubbed version of libwrap (tcpwrappers) 2021-03-09 00:06:44 +00:00
christos bb0dab52f7 Add regcomp.c and regexec.c so that we get a version that does not use NLS
and brings in all the locale code.
2021-02-25 21:24:00 +00:00
rin f324396195 Fix fallout from mkimage rev 1.76.
For mkimage:

- Update "size" if auto-calculated.
- Use "dd bs=1" instead of non-portable "head -c".
- Some style nits.

For MD make_label() functions:

- Stop using "newsize" as image size in MB, use "size" instead.
2020-12-23 10:35:18 +00:00
riastradh 15867ac673 embedded/mkimage: Pad image with zeros to multiple of 4 MB plus 1 MB.
Otherwise, there may not be enough space after the ffs partition for a
gpt, leading to very confusing results.
2020-12-21 16:38:02 +00:00
rin 7ef73ded12 G/C unused. 2020-12-01 04:21:26 +00:00
rin 938ac472bd rpi.img: Bump boot partition in a similar manner to other images. 2020-12-01 04:21:10 +00:00
msaitoh 57920690e6 s/occurence/occurrence/ 2020-09-29 02:58:51 +00:00
jmcneill 4813953ca0 Create an "octeon.img.gz" bootable image for evbmips64-eb release builds. 2020-07-17 15:16:34 +00:00
rin 58c9080053 Manifest that we need liblzma only when USE_XZ_SETS is enabled. 2020-06-03 07:06:18 +00:00
jmcneill 210b40805c Create a separate Arm64 image that uses MBR partitioning. Amlogic SoCs
require the bootloader to be installed on SD cards at LBA1 which makes
them incompatible with GPT images.
2020-05-28 10:22:49 +00:00
jmcneill 7923818521 Allow config file to override hostname 2020-05-28 10:19:02 +00:00
jmcneill aec3f0cda8 Move back to MBR based images for armv7 because Amlogic's bootloader (for
Amlogic S805 based boards) needs to be installed to sector 1, which
conflicts with the GPT header.
2020-05-27 21:53:04 +00:00
jmcneill 0fb404c413 Fix kernel= order, add pi0w conditional and comments 2020-05-27 11:02:52 +00:00
jmcneill eb9218acf0 Conditionally boot kernel.img or kernel7.img depending on board 2020-05-27 10:56:59 +00:00
jmcneill 3f1e657dba No need to rename netbsd-GENERIC.img to kernel7.img 2020-05-25 11:11:52 +00:00
jmcneill 32049c2b73 Switch to GPT w/ hybrid MBR for armv7 images 2020-05-25 11:06:49 +00:00
jmcneill 1c81516763 Enable GPT support w/ hybrid MBR for Raspberry Pi compatibility. 2020-05-24 18:44:46 +00:00
jmcneill 2e7e9cc4e8 Add support for hybrid MBR/GPT images. 2020-05-24 18:43:39 +00:00
jmcneill 2190516631 Add GPT support to mkimage. 2020-05-24 14:45:49 +00:00
jmcneill 043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
jdolecek 39b0cf9180 enable NO_IOBUF_ALIGNED for x_newfs and x_fsck_ffs 2020-04-18 12:56:38 +00:00
jdolecek ad81495fd9 include aligned_alloc(3), now needed for newfs and fsck_ffs 2020-04-17 14:55:24 +00:00
martin fa0d5eae99 Extend the curses hack to terminfo - build selected parts of
libterminfo as part of libhack, so we can drop unwanted features
for small install media.
2020-04-05 11:18:02 +00:00
roy 1d37b848af libhack: revert prior, will be done per consumer instead. 2020-03-02 16:01:52 +00:00
roy 0d1a142685 libhack: build with -D_REENTRANT
Some tools that use libhack expect thread locking.
An example of this is zpool(8).

Without it, it randomly crashes. As such, force _REENTRANT to avoid
debugging future random crashes from any other applications which
rely on this.
2020-03-01 22:47:26 +00:00
jmcneill 55db4fad0c RPi4 has a different root device, so use config.txt conditionals to load
an alternate cmdline txt file (cmdline-pi4.txt) on these boards.
2020-02-23 10:56:03 +00:00
skrll cb88287373 Use fat16 as the partition is too small for fat32. from Harold Gutch 2020-01-08 20:49:22 +00:00
skrll 62f0c78c04 Use make_label_evbarm instead of home grown 2020-01-05 16:41:07 +00:00
skrll b1843f788e upstream_kernel=1 is required with new firmware/kernel. 2020-01-01 14:16:51 +00:00
skrll 817923ee4d Update to new RaspberryPi firware
commit 0c01dbefba45a08c47f8538d5a071a0fba6b7e83
Author: popcornmix <popcornmix@gmail.com>
Date:   Wed Dec 11 15:30:08 2019 +0000

and include firmware for RPI4

Firmware has bee updated to support mainline linux kernels as described in
https://github.com/raspberrypi/linux/issues/3237
2019-12-16 11:00:30 +00:00
skrll 485e08e867 Fix whitespace in a comment 2019-12-16 08:01:20 +00:00
jmcneill 19487d1aef Remove the pretty much useless 128MB swap partition from the arm images. 2019-12-01 15:07:04 +00:00
jmcneill 06a777cdcb Move omap3 dtb files to /boot/dtb 2019-10-30 21:43:42 +00:00
martin 826ceeb473 Remove debug output, fix a progress message 2019-10-30 14:34:30 +00:00
martin ebcef7ca7f Derive the FAT type from the MBR partition type and pass it on to makefs
when crating a msdos file system.
2019-10-30 14:16:15 +00:00
martin c5068cfe52 Move a lot of *.dtb files to a dtb/ subdirectory on the FAT partition.
Mkimage (eroneously) creates a FAT16 partition (despite the configuration
asking for FAT32), and that has a root directory size limit.
Idea from Jared.
2019-10-30 12:28:32 +00:00
jmcneill 7b46fbe309 Switch to GENERIC kernels only. 2019-10-27 21:38:58 +00:00
jmcneill 788bc7b217 No support for tegra210 in armv7 kernel 2019-10-27 21:35:02 +00:00
mlelstv f84eb3e271 Fix typo 2019-10-05 09:25:11 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
mrg 21303c93e9 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-29 23:44:58 +00:00
christos 0287e63d96 use unsigned char to prevent sign extension. 2019-08-13 08:48:07 +00:00
martin 92d9c20449 Make this at least work for ASCII strings (there are way more users
than libcurses in various crunched environments, so the original assumption
of a very limited set of inputs was wrong).
2019-08-12 09:34:53 +00:00
martin 2f346b3370 Avoid using an unitialized variable 2019-08-01 12:28:53 +00:00
martin 5c19a89c12 Provide a way for crunched programs to use a non-WIDE_CHAR version of
libcurses by setting HACK_CURSES=yes before including this makefile.
2019-07-28 10:27:57 +00:00
martin f3b7b31ee0 We (especially libcurses and nvi) use more multibyte character locale
related symbols nowadays. Update libhack to avoid pulling in full grown
multibyte locale support on small install media.
2019-07-28 10:21:18 +00:00
rin 272639de87 Fallback to non-EFI boot script if EFI bootloader is absent.
Note that we do not currently build EFI bootloader for earmv7hf-eb,
as it requires little-endian version of toolchain.
2019-07-21 16:05:24 +00:00
christos d33bb7af26 Add an empty fmtcheck 2019-06-22 22:50:39 +00:00
mrg 1e5b60d053 move creds_msdos.8 into the normal place and install it. 2019-06-12 09:03:31 +00:00