Oleksandr Tymoshenko
1b1a53cf46
Add barebone Raspberry Pi port. Supported parts:
...
- Interrupts controller
- Watchdog
- System timer
- Framebuffer (hardcoded resolution/bpp)
2012-08-30 20:59:37 +00:00
Jayachandran C.
8099aeffc3
Add correct range parameter in XLP DTS
...
r239274 added support for ranges. Update XLP DTS to provide the correct
range parameter for the XLP SoC bus. Also fix bus_space_map method
for XLP bus space.
Submitted by: Sreekanth M. <sreekanth.molagavalli@broadcom.com>
2012-08-21 09:37:23 +00:00
Marcel Moolenaar
45f83785e1
Build zfs on ia64 as well. We don't build a loader with zfs support
...
just yet, but building it makes sure we catch (build) regressions.
2012-08-18 23:23:14 +00:00
Marcel Moolenaar
ed57c9d3d3
Don't build the ski loader anymore. The code is not deleted just yet,
...
as it explains the distinction between the common and the platform-
specific code.
2012-08-18 23:17:42 +00:00
Andrey V. Elsukov
a05f1f2028
Add comment why the code has been disabled.
...
Requested by: rpaulo
2012-08-16 06:45:58 +00:00
Andrey V. Elsukov
4b81189aff
Some BIOSes return incorrect number of sectors, make checks less
...
strictly, to do not lost some partitions.
Reported by: swills@
2012-08-15 12:01:13 +00:00
Andrey V. Elsukov
deafa47873
Rework r239232 to unbreak ZFS detection on MBR slices.
2012-08-15 10:11:29 +00:00
Andrey V. Elsukov
a188e43ef3
Explicitly terminate the string after strncpy(3).
2012-08-15 09:18:49 +00:00
Oleksandr Tymoshenko
e53470fee3
Merging of projects/armv6, part 10
...
- Support for Texas Instruments SoCs:
- AM335x
- OMAP4
- Kernel configs, DTS for Beaglebone and Pandaboard
Submitted by: Ben Gray, Damjan Marion
2012-08-15 06:31:32 +00:00
Oleksandr Tymoshenko
9dfe4a1fa4
Merging of projects/armv6, part 9
...
Very basic support for Nvidia Tegra2: timer, interrupts, UART.
Submitted by: Damjan Marion <dmarion@freebsd.org>
2012-08-15 06:06:43 +00:00
Oleksandr Tymoshenko
8dee0fd04c
Merging of projects/armv6, part 8
...
r235162:
Initial LPC32x0 support. Includes DTS file for Embedded Artists EA3250
board.
Peripherals currently supported:
- Serial ports
- Interrupt controller
- Timers
- Ethernet
- USB host
- Framebuffer (in conjunction with SSD1289 LCD controller)
- RTC
- SPI
- GPIO
Submitted by: Jakub Wojciech Klama <jceel@freebsd.org>
2012-08-15 05:37:10 +00:00
Oleksandr Tymoshenko
16694521fe
Merging of projects/armv6, part 7
...
Add Marvell ARMADA XP support
Obtained from: Marvell, Semihalf
2012-08-15 05:15:49 +00:00
Dag-Erling Smørgrav
e2082935f0
As discussed on -current, remove the hardcoded default maxswzone.
...
MFC after: 3 weeks
2012-08-14 17:01:21 +00:00
Dimitry Andric
6cad98e283
After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probing
...
in sys/boot/i386/libi386/biosdisk.c. Otherwise, when DISK_DEBUG is
enabled, the DEBUG() macros will clobber those fields, and cause the
probing to always fail mysteriously when debugging is enabled.
2012-08-13 21:04:01 +00:00
Andrey V. Elsukov
9131425146
Restore the old behaviour. If requested partition is a BSD slice,
...
but d_partition isn't explicitly set, then try to open BSD label and its
first partition.
2012-08-13 13:33:21 +00:00
Andrey V. Elsukov
baf3d8bfeb
Remove colons from the debug message, device name returned by the
...
disk_fmtdev() already has the colons.
2012-08-13 13:10:50 +00:00
Andrey V. Elsukov
42b577fe76
Unbreak booting from the true dedicated disks.
...
When we open the disk, check the type of partition table, that has
been detected. If this is BSD label, then we assume this is DD mode.
Reported by: dim@
2012-08-13 13:08:30 +00:00
Andrey V. Elsukov
777085904e
Add another debug message.
2012-08-12 14:32:30 +00:00
Andrey V. Elsukov
e6232c0dea
Add more debug messages.
2012-08-12 14:16:21 +00:00
Andrey V. Elsukov
06f2b92916
As it turned out, there are some installations, where BSD label
...
contains partitions with type zero. And it has worked.
So, allow detect these partitions.
Reported by: glebius
2012-08-07 09:22:46 +00:00
Andrey V. Elsukov
a2bdef2a84
Fix start offset calculation for the EBR partitions.
2012-08-06 08:54:06 +00:00
Andrey V. Elsukov
3db1bfd80d
Bump USERBOOT_VERSION.
...
Requested by: dfr
2012-08-05 17:04:58 +00:00
Yoshihiro Takahashi
7361df284b
Reduce diffs against i386.
2012-08-05 14:48:55 +00:00
Andrey V. Elsukov
4c89da6c18
Teach the ZFS use new partitions API when probing.
...
Note: now ZFS does probe only for partitions with type "freebsd-zfs"
and "freebsd".
2012-08-05 14:48:28 +00:00
Andrey V. Elsukov
6f6aad97b6
Remove unneeded flag.
2012-08-05 14:38:53 +00:00
Andrey V. Elsukov
a86f714d15
Add offset field to the i386_devdesc structure to be compatible with
...
disk_devdesc structure. Update biosdisk driver to the new disk API.
2012-08-05 14:37:48 +00:00
Yoshihiro Takahashi
d68fc999de
Reduce diffs against i386.
2012-08-05 14:11:07 +00:00
Yoshihiro Takahashi
72b179343b
MFi386: the part of r219452 and r236405.
...
- bunch of variables are turned into uint8_t.
- Remove unnecessary initializations.
2012-08-05 14:05:11 +00:00
Andrey V. Elsukov
95caf34849
When GPT signature is invalid in the primary GPT header, then try to
...
read backup GPT header.
Submitted by: hrs (previous version)
2012-08-05 12:57:38 +00:00
Andrey V. Elsukov
2c6f04dc0a
Introduce new API to work with disks from the loader's drivers.
...
It uses new API from the part.c to work with partition tables.
Update userboot's disk driver to use new API. Note that struct
loader_callbacks_v1 has changed.
2012-08-05 12:15:15 +00:00
Andrey V. Elsukov
9cef000008
Remove unused variables.
2012-08-05 11:59:46 +00:00
Andrey V. Elsukov
a0ff532148
Create the interface to work with various partition tables from the
...
loader(8). The following partition tables are supported: BSD label, GPT,
MBR, EBR and VTOC8.
2012-08-05 11:29:44 +00:00
Marius Strobl
614e309803
Pull the tier-2 card and change the sparc64 ZFS loader to no longer probe
...
all diskN aliases for providers (which more or less corresponds to how the
x86 version behaves) but instead probe only those listed in the boot-device
OFW environment variable. This has the following advantages:
- avoids otherwise unavoidable OFW warnings about failures to open disks
for which aliases exist but no actual hardware is connected
- avoids issues due to different diskN naming schemes
- aligns us with Solaris
MFC after: 3 days
2012-07-27 18:23:11 +00:00
Andrey A. Chernov
283e000db4
Try to avoid all files dependence on the modification time of the large and
...
often modified directory created symbolic links points to - it cause
unnecessary full rebuilds each time make runs when directory is changed.
So do it only if symbolic link does not exists, which usually means that
objdir is clean anyway.
MFC after: 1 week
2012-07-26 10:10:54 +00:00
Warner Losh
15fda8888a
Use the pin number rather than the hybrid pin number + name.
2012-07-15 05:35:14 +00:00
Devin Teske
d35c4b1d44
Fix domain.
...
Approved by: emaste
2012-07-14 01:45:35 +00:00
Warner Losh
51763c6303
Generalize this for loading the loader into the SPI. Plus trim about
...
100 bytes from the binary with silly tricks. Hope to get this small
enough to run on the models that have 4k SRAM. We are close compiled
for the at91rm9200, but still need to trim for the target.
2012-07-07 04:55:42 +00:00
Warner Losh
1d4fae3825
Allow other SOCs to be compiled in, first step.
2012-07-07 04:51:59 +00:00
Warner Losh
c4a9bff135
Strip out the useless junk. All we really care about is the text,
...
data and bss sections. All the rest is needed for normal binaries,
but boot loaders aren't normal.
2012-07-07 04:49:53 +00:00
Xin LI
a2953f767d
MFV: Update zlib to 1.2.7.
...
(x86 assembler optimization disabled for now because it
requires the new .cfi_* directives that is not supported
by base system binutils).
MFC after: 1 week
2012-06-21 21:47:08 +00:00
John Baldwin
32abc7ddc1
Don't return an error if a kld does not contain any modules (e.g. a
...
kld that only contained a sysctl). The kernel linker allows such
modules, so the boot loader should not reject them.
MFC after: 2 weeks
2012-06-20 21:06:51 +00:00
Martin Matuska
253a9c296c
Fix ZFS boot with pre-features pools (version <= 28) broken in r236884
...
Reported by: mav
MFC after: 1 month
2012-06-13 08:00:32 +00:00
Martin Matuska
2d9cf57e18
Introduce "feature flags" for ZFS pools (bump SPA version to 5000).
...
Add first feature "com.delphix:async_destroy" (asynchronous destroy
of ZFS datasets).
Implement features support in ZFS boot code.
Illumos revisions merged:
13700:2889e2596bd6
13701:1949b688d5fb
2619 asynchronous destruction of ZFS file systems
2747 SPA versioning with zfs feature flags
References:
https://www.illumos.org/issues/2619
https://www.illumos.org/issues/2747
Obtained from: illumos (issue #2619 , #2747 )
MFC after: 1 month
2012-06-11 11:35:22 +00:00
Marius Strobl
10ee2f9a87
The loaddev environment variable is not modifiable once set, so it is not
...
update for ZFS. It seems that this does not really affect anything except
the help command. Nevertheless, rearrange things so loaddev is set only
once in all cases in order to get it right.
Pointed out by: avg
MFC after: r235364
2012-06-04 20:56:40 +00:00
Marius Strobl
f6dd28dc27
The workaround added in r151650 for handling firmwares that don't allow
...
a single device to be opened multiple times concurrently unfortunately
isn't sufficient with ZFS. This is due to the fact, that ZFS may open
different partitions of a single device simultaneously. So the best we
can do in this case is to cache the lastly used device path and close
and open devices in ofwd_strategy() as needed.
PR: 165025
Submitted by: Gavin Mu
MFC after: 1 week
2012-06-04 20:45:33 +00:00
John Baldwin
370b70dc03
Remove unnecessary initializations. The BSS of boot2 is in fact
...
zero'd when boot2 begins execution by the _start() routine in btxcsu.S.
MFC after: 1 week
2012-06-01 15:48:24 +00:00
Kevin Lo
544c5e5b53
Make sure that each va_start has one and only one matching va_end,
...
especially in error cases.
2012-05-29 01:48:06 +00:00
Tim Kientzle
81174e7872
Allow the load address used by ARM ubldr to be set via Make argument.
...
In particular, this simplifies scripts that build system
images.
2012-05-27 16:27:04 +00:00
Rafal Jaworowski
3eef23db5e
Import DTS files for the upcoming DPAA QorIQ (PowerPC) support.
...
- P2041RDB
- P3041DS
- P5020DS
Obtained from: Freescale
2012-05-25 20:43:38 +00:00
Gleb Kurtsou
491a40587d
Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and prevent
...
unnecessary 64-bit math on 32-bit machines.
Sponsored by: Google Summer of Code 2011
2012-05-25 09:36:39 +00:00