Grzegorz Bernacki
aa0ea9d07a
Add support for MSI in interrupt controlller.
...
MSI are implemented via software interrupt. PCIe cards will write
into software interrupt register which will cause inbound shared
interrupt which will be interpreted as a MSI.
Obtained from: Marvell, Semihalf
2012-09-14 10:05:01 +00:00
Grzegorz Bernacki
d65cdf4b9d
Add support for Armada XP A0.
...
- Add functions to calculate clocks instead using hardcoded values
- Update reset and timers functions
- Update number of interrupts
- Change name of platform from db88f78100 to db78460
- Correct DRAM size and PCI IRQ routing in dts file.
Obtained from: Semihalf
2012-09-14 09:55:19 +00:00
Tim Kientzle
181abccb96
The MBR data is not necessarily aligned. This is a problem on ARM.
2012-09-14 05:24:06 +00:00
Alexander Motin
a5174f1fb6
Make pxe device in lsdev really include device name, looking like this:
...
pxe0: 192.168.3.1:/storage/nfsroot/amd64
, instead of confusing and less useful:
192.168.3.1:pxeboot
2012-09-12 21:00:37 +00:00
Andriy Gapon
7ae0dc79b7
zfs boot: add a size check for a value in fzap_lookup
...
MFC after: 25 days
2012-09-11 07:15:11 +00:00
Andriy Gapon
4b7fc6b08e
zfs boot: print only an attribute name in fzap_list
...
... this matches mzap_list behavior
MFC after: 12 days
2012-09-11 07:13:58 +00:00
Andriy Gapon
e644b976b0
zfs boot: fix/replace fzap_rlookup implementation
...
The previous one was totally bogus as it used hash value of
_output_ variable as an index for searching...
The only reliable way to do a reverse lookup here is to iterate
over all entries.
MFC after: 15 days
2012-09-11 07:12:48 +00:00
Andriy Gapon
b6910e777e
zfs boot: bring zap_leaf_chunk field names in sync with kernel code
...
This change is cosmetic.
MFC after: 10 days
2012-09-11 07:11:32 +00:00
Andriy Gapon
c0e2226ce5
boot: file_loadraw should strdup name argument
...
... the same way it's done for type argument.
MFC after: 2 weeks
2012-09-11 06:18:36 +00:00
Andriy Gapon
9d1889cd04
a bit of trailing whitespace cleanup
...
MFC after: 1 week
2012-09-11 06:15:55 +00:00
Andrey V. Elsukov
915e341bac
Slightly reduce an overhead for the open() call in the zfsloader.
...
libstand(3) tries to detect file system in the predefined order,
but zfsloader usually is used for the booting from ZFS, and there is
no need to try detect several file system types for each open() call.
2012-09-11 04:54:44 +00:00
Andrey V. Elsukov
da1d05228c
Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.
2012-09-09 11:40:37 +00:00
Andrey V. Elsukov
60dff4f9f8
Update according to the change of struct uboot_devdesc.
2012-09-09 11:37:17 +00:00
Andrey V. Elsukov
9efbc4f52e
Build disk.c only when DISK_SUPPORT is enabled.
2012-09-09 11:34:27 +00:00
Andrey V. Elsukov
d958ec0ca3
Update uboot's disk driver to use new DISK API.
2012-09-09 11:33:06 +00:00
Andrey V. Elsukov
8be6260966
Use disk_fmtdev() and disk_parsedev() functions from the new DISK API.
2012-09-09 11:32:06 +00:00
Andrey V. Elsukov
6c96358f5f
Make struct uboot_devdesc compatible with struct disk_devdesc.
2012-09-09 11:30:45 +00:00
Andreas Tobler
85fdca2d85
Fix loading of kernel modules at boot time for powerpc64.
...
Reported by: Mathias Breuninger
MFC after: 1 week
2012-09-08 20:00:31 +00:00
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