Commit Graph

195 Commits

Author SHA1 Message Date
joerg
bd383df604 Put GCC/GAS options under ACTIVE_CC == "gcc". 2014-08-10 17:46:54 +00:00
joerg
d617742404 Use __unreachable(). 2014-08-08 21:18:10 +00:00
joerg
0c7d9d4853 Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
2014-08-08 16:56:30 +00:00
joerg
c30561b5e9 Don't use non-literal strings as format strings.
XXX Switch to strlcpy.
2014-08-05 17:55:20 +00:00
christos
360bdb9d7b fix sprintf. 2014-03-26 17:35:08 +00:00
jakllsch
035a7c5fd0 drop trailing whitespace 2014-03-22 18:54:28 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
jakllsch
b21d55811d sprinkle const 2014-01-05 21:10:50 +00:00
jakllsch
99a7467c78 Drop duplicate and unused extern global variable. 2014-01-05 21:09:33 +00:00
nisimura
9e18f2cee2 shut off gcc 4.8 unused variable warnings. 2013-11-07 14:51:36 +00:00
phx
159a4dcdce New version can read the MAC address for QNAP systems from flash. 2013-09-15 18:22:57 +00:00
matt
61ef18cf91 Use <bsd.klinks.mk> 2013-08-21 06:41:52 +00:00
phx
c97d3b4ef3 QNAP V200 boards have no EEPROM for the MAC address, so all devices default
to the same address (00:e0:4c:69:20:01).
Now we read the real MAC address from the flash ROM. It is stored at the
beginning of a 512-byte block in ASCII format. Some QNAP's have a broken
ext2 file system, so we cannot look for the file ETH0.MAC_ADDR therein,
but have to search the whole flash in 512-byte steps for candidates...
2012-12-25 17:07:06 +00:00
phx
eed17668b3 Add a DEBUG function to search the Flash for byte-streams, as U-Boot usually
doesn't offer a search function.
2012-12-25 17:02:35 +00:00
dsl
6a03bb6b37 Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).
2012-05-21 21:34:16 +00:00
nisimura
fce167a595 Comment improvement. altboot(8) is now aware of the disk removal
for mirrored drive configuration.
2012-04-27 00:35:43 +00:00
phx
6bff4e7743 Multiple boot devices and/or paths may be specified, which are booted one
after another until success. When no boot device is specified altboot tries
to boot from all disk devices with a valid NetBSD disklabel, starting with
unit 0.
2012-04-26 19:59:36 +00:00
nisimura
57c8b9e4a1 Add KURO-BOX/T4 vendor custom U-Boot version message. 2012-04-24 14:56:07 +00:00
phx
8d59073313 Improved Synology CS/RS support: watch power-state of all SATA drives before
initializing them, configure drive LEDs to reflect SATA activity.
Configure drives on all ATA PCI devices, not only on the first one.
2012-04-16 16:55:29 +00:00
nisimura
84b214f158 The processor ExtClk value of Kurobox/T4 is comfirmed as 32768000. 2012-04-09 14:02:04 +00:00
nisimura
b6b259ed7f Change to use "kurot4" product name for Terastation TGL and
KuroBox/T4.
2012-04-09 13:26:37 +00:00
nisimura
6d4a5965d8 Refactor disklabel decode logic. RAIDFRAME case needs more attention
as it's not certain whether a general solution.
2012-04-09 12:40:55 +00:00
nisimura
ab2ed771fe Add an entry for Terastation TGL miconv2 satellite processor which
features a more complex protocol than Linkstation/Kurobox.
2012-04-08 10:38:34 +00:00
phx
9077ae621d Cleanup in perform_atareset(). 2012-01-22 13:16:54 +00:00
phx
b3662b7bde Support PATA drive configuration option (ide:N[N...]).
Wait until drives are ready after cold-start.
Wake up drives from standby mode.
A default command line can be saved to flash as initrd image.
2012-01-22 13:08:16 +00:00
nisimura
2971588656 Change BTINFO_ROOTDEV to include boot device partition number in
its cookie field to allow a kernel to determine rootdev correctly
when kernel image is loaded from other than 'a' partition.
2012-01-19 07:38:05 +00:00
phx
96d91a78ef Netronics is spelled Netronix. 2012-01-14 22:36:54 +00:00
phx
52f396b844 Add NH230 PPCboot version. 2012-01-14 20:16:53 +00:00
phx
4b15dce308 Add 0x70000000 BAT-mapping for NH230/231.
NH23x: Initialize LEDs on startup (status off, to indicate the bootloader
is running). Hardware reset routine.
2012-01-14 20:03:11 +00:00
phx
f66849eb53 Set the extclk for NH230 to 33000000Hz.
Prepare a synosetup() function which should set a different extclk for
the 400MHz models, as soon as we find a method to check for them.
2012-01-08 14:53:54 +00:00
phx
8e46b16673 NH230 PPCBoot configures the memory boundary registers for 128MB, although
the board has only 64MB. Fix that.
2012-01-07 19:57:49 +00:00
phx
e3c0375306 Handle devices with two network interfaces (e.g. a DSM-G600 with stge(4)
and ath(4)).
2012-01-01 18:25:03 +00:00
phx
2be27e0188 Add Iomega StorCenter. 2012-01-01 14:16:41 +00:00
phx
eeb50b3333 Add DS-106j. 2011-11-13 16:22:18 +00:00
phx
1c9e391710 Make the chipfix() functions return void instead of int, as the return
value is useless. Suggested by nisimura.
2011-11-13 00:06:54 +00:00
phx
096b4f18de Improved Iomega microcontroller support. Bumped version to 1.8. 2011-11-12 23:52:54 +00:00
phx
55277ecd82 Add support for IT821x IDE. 2011-11-12 16:56:12 +00:00
phx
155d3131ad Fixed Iomega microcontroller support. Implemented Iomega reboot function. 2011-11-07 21:11:55 +00:00
phx
8fb34a2940 Added a test terminal for communicating with the satellite microcontroller.
When compiled with DEBUG option it can be entered by typing 'C'.
2011-11-06 20:20:57 +00:00
nisimura
b41d886fae VIA 82C586A/B 82C686A/B SouthBridges share PCI ID 0x1066-0571.
They are distinguishable by looking at PCI-ISA bridge PCI ID and
revision number.
2011-11-02 04:10:33 +00:00
phx
45ea03e509 The Apollo family of IDE interface chips has both channels disabled by
default, so we have to enable them in a new chipfix function. Also move
the channel enable code for the 82C686B from encpcifix() to pciide.c.
2011-11-01 16:32:57 +00:00
phx
767f3b0324 Added in8() and out8() to access a byte with reorder-protection.
Use it in all drivers instead of (volatile uint8_t *).
2011-10-30 21:08:33 +00:00
phx
d250ff0e1c Make sure to disable interrupts, as U-Boot may call us with interrupts
enabled, causing quite unpleasant effects (e.g. by decrementer interrupts).

When DEBUG is defined, an exception handler will be installed, which reports
about all exceptions while altboot is running, including register dump and
stack frame backtrace.
2011-10-30 20:42:09 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
jdc
2370f69f6d Add support for booting from RAID 1.
Note, that the RAID partition must be the first partition of the disk.
Reviewed by phx@.
2011-06-20 19:48:05 +00:00
phx
83057b124e Support disk units from multiple IDE/SATA PCI controllers. 2011-06-08 18:06:02 +00:00
phx
ed377eee5f Add PPCBoot version from DS-207 and CS-407e. 2011-06-02 16:41:32 +00:00
phx
09f72307e2 When a drive is present, retry ATA-reset for a maximum of 10 seconds, until
successful.
2011-05-30 19:48:12 +00:00
phx
fd66150e69 When PPCBoot supports the SKnet interface it will configure it to automatically
byte-reverse all descriptors by setting a vendor-specific bit in PCI config
space. We have to clear that bit to make sure our driver can send and
receive.
2011-05-29 18:06:45 +00:00
phx
c91ba1563d Use printf() from libsa.
Ok by nisimura@.
2011-05-25 19:26:21 +00:00