Commit Graph

1814 Commits

Author SHA1 Message Date
ryo
fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
skrll
ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
jmcneill
d5f1b2266e Enable automatic booting on tegra210 2018-01-06 20:27:31 +00:00
jmcneill
fc29671b41 No need to specify console=fb for pinebook anymore as WSDISPLAY_MULTICONS will give us a framebuffer console 2017-12-18 19:08:16 +00:00
jmcneill
fda0fd2b2c Use fb console by default on Pinebook 2017-12-16 21:28:19 +00:00
skrll
f7d67b11fb Build fix (really this time) from Harold Gutch 2017-12-14 06:29:15 +00:00
jmcneill
d02e5c3caf Fix spelling in error message 2017-12-12 21:00:28 +00:00
jmcneill
4d9106a6a2 Add missing RPI FDT build goop, from nick. 2017-12-11 11:38:14 +00:00
jmcneill
8bfbe667cf On 64-bit boards, U-Boot expects to find .dtb files in an allwinner/ subdirectory 2017-12-03 13:31:45 +00:00
jmcneill
3a3fcbf0f7 Remove legacy awin kernels from image 2017-11-30 19:55:47 +00:00
kre
962d067df7 Be more precise about exactly what fails when something does.
Relying upon set -e to abort things is sort of OK (it is not
a recommended option to use in general - too many odd special cases),
but only if user can work out from the "build failed" what actually
went wrong.

Tested only on amd64 build (for this, i386 is the same) - if anyone
has problems on builds for other systems, please let me know.  However
the changes affect only failure paths, the most likely problem would
be for a build to fail to halt on an error, and I hope I have avoided
that.  There should be no difference at all to error-free builds.
2017-11-28 02:56:44 +00:00
kre
63138143a3 Handle use of TMPDIR in cleanup as well. 2017-11-28 00:24:08 +00:00
kre
570342e5fe Honour ${TMPDIR} if set for location of image, rather than always
simply using /tmp
2017-11-28 00:14:30 +00:00
skrll
1d977c34f7 Trailing whitespace 2017-11-09 21:36:46 +00:00
sevan
f7566f78e3 Fix test otherwise we try to load a fdtfile for boards which do not have use_fdt set. 2017-10-08 00:35:26 +00:00
jmcneill
391a41d919 Don't install uEnv.txt for beagle; boot.scr handles this now. 2017-10-08 00:15:13 +00:00
jmcneill
659266d076 Install a boot.scr on armv7.img that detects the running board and selects
the correct kernel and boot protocol. Should work on tegra, sunxi, and
am335x boards for now.
2017-10-07 23:40:00 +00:00
jmcneill
337b37be2b Create a config.txt for RPI and set 'enable_uart=1' and 'force_turbo=0'.
This config gives us a stable core_freq clock that is used to drive the
SD HOST and AUX UART devices.

More information on config.txt settings for the UART can be found here:

https://www.raspberrypi.org/documentation/configuration/uart.md
2017-07-31 16:34:22 +00:00
jmcneill
dd5461aaa9 Add : to body of populate_sunxi to appease bash. 2017-07-09 10:41:40 +00:00
jmcneill
4e0c37a038 Test for kernel build directory before reading DTB list 2017-07-06 21:07:09 +00:00
jmcneill
fab9db5f7e Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
2017-07-06 00:17:04 +00:00
manu
6a05c304af Make shared -DSMALL libc buildable without breaking libhack
We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc
2017-06-18 03:56:39 +00:00
christos
34d421b1f4 add the tests set. 2017-06-10 23:26:32 +00:00
hubertf
f468e54647 minor cleanup in customize_evbarm():
keep handling of /etc/rc.conf in one place
2017-05-13 10:44:58 +00:00
christos
df7224989b define SMALLPROG 2017-05-02 20:12:10 +00:00
jmcneill
fa18b035dc Grow the MBR partition table entry for the BSD partition before
growing the disklabel.
2017-04-14 13:47:21 +00:00
jmcneill
ea2b839e65 ODROID-C1: Now that the MBR partition table contains an entry for the BSD
partition, the disklabel no longer conflicts with the ODROID-C1 bootloader.
Root partition changes from ld0e to ld0a.
2017-04-12 23:35:29 +00:00
jmcneill
6d634d7e0c Slightly reduce the size of the MSDOS partition from 124M to 92M. With
the larger size, installing the ODROID-C1 bootloader causes the fs to
become unreadable. Not sure why..
2017-04-12 23:32:11 +00:00
jmcneill
4d3af4e0f2 Now that FAT+FFS images include the BSD partition in the MBR partition
table, install the disklabel after setting up MBR partitions. This moves
the disklabel to the BSD partition from the start of the disk, avoiding
a conflict with the ODROID-C1 bootloader.
2017-04-11 21:06:30 +00:00
jmcneill
efb61fccf8 Improvements and fixes for FAT+FFS images:
- Add a "NETBSD" volume label to the MSDOS file-system.
 - Explicitly initialize boot sector.
 - Correct an issue where the MSDOS file-system was larger than the
   partition table entry.
 - Add NetBSD partition to the MBR partition table.
2017-04-11 18:04:08 +00:00
jmcneill
43bbd720db Increase the size of the boot partition and remove the 'd' part from the
disklabel.
2017-04-11 17:30:17 +00:00
jmcneill
ec75ca4b3d tegra: set loadaddr to 0x90000000 (the default kernel_addr_r overlaps
fdt_addr_r on TK1 + L4T 21.x), and set default root device to ld0a to
match new device probe order.
2017-04-10 22:25:36 +00:00
skrll
c1d4c34f17 Mark the msdos parition active for boards like the BeagleBone Black 2017-03-14 06:37:39 +00:00
rin
879e53004e Cosmetic changes. No functional changes. 2017-02-08 23:26:24 +00:00
rin
abeb7dd201 Replace ".PATH ${SRCDIR}" before including Makefile.common to ensure the
correct order of search path.
2017-02-08 23:24:57 +00:00
rin
d394916260 Factor out a common part in Makefile's of ifconfig and x_ifconfig. 2017-02-08 23:22:43 +00:00
rin
6323d1adb5 Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.
2017-02-08 23:16:41 +00:00
rin
ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
2017-02-08 16:11:39 +00:00
rin
44fe74158a Define NOMAN before including bsd.own.mk to set MKMAN=no appropriately. 2017-02-07 16:49:40 +00:00
christos
16045db705 This is an example how to make a small program using libc. Original size
300K; final size 75K.
2017-01-12 01:58:03 +00:00
christos
d8205999e6 adjust to new zlib 2017-01-11 04:04:12 +00:00
christos
b6800095e8 PR/50729: Izumi Tsutsui: Add "small" disklabel 2016-01-31 18:56:49 +00:00
christos
d066f94a02 PR/50710: David Binderman: Fix memory leak. 2016-01-26 16:04:12 +00:00
skrll
8a25fadb3b C&P of change in rpi.conf (maybe factor out)
By default, RPI firmware sets the max CPU frequency to 600MHz. This can be
overridden by setting arm_freq in config.txt, but the default freq at boot
is still 600MHz.

Add logic to rc.local to compare the current vs. max CPU frequency; if they
differ, set the target frequency to the maximum.
2015-12-19 14:57:49 +00:00
jmcneill
0572689e04 Remove JETSONTK1 and NYAN-BIG kernels, add a new unified kernel named TEGRA. 2015-12-13 23:02:56 +00:00
jmcneill
719aab5470 Cubieboard2 kernel is named netbsd-CUBIEBOARD.ub not netbsd-CUBIEBOARD2.ub 2015-08-21 17:08:11 +00:00
ozaki-r
96b5a23030 Add -DCRUNCHOPS
It's required because ping6 is now rump-ified.
2015-08-07 00:37:14 +00:00
jmcneill
f9279be4bd install jetsontk1 boot script as boot.scr 2015-08-02 11:11:32 +00:00
jmcneill
c33ccff2e1 use a larger (64KB) block size, this helps SD card performance 2015-08-01 10:05:51 +00:00
jmcneill
54fb23f641 mount root partition with noatime 2015-08-01 10:04:50 +00:00