summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-02-17If PMON has loaded an initrd binary, and this binary looks like a validMiod Vallat
ELF image, assume it's the kernel and try to boot it immediately. This allows a Gdium system with both the bootloader and the kernel image on an ext2fs partition, with `al' pointing to the bootblocks and `rd' pointing to the kernel in PMON environment, to boot a kernel with proper kernel symbols, for the first time. (please don't get me started on how reliable `load -k' is on the Gdium) Bump bootblocks version to 0.2.
2010-02-17descend into mbr; ok miod@Otto Moerbeek
2010-02-17proto mbr for loongsonOtto Moerbeek
2010-02-17Split boot/Makefile in case we need to build several boot.${VENDOR} compiledMiod Vallat
from the same sources with different CFLAGS; the need for this has not arisen yet but I fear it will hit the fan soon enough; no functional change in the meantime.
2010-02-17- prevent "anti-memory" from showing up, this makes systems with 2GB ofJasper Lievisse Adriaanse
RAM work. help and ok miod@
2010-02-16Move part of the device_register() logic into platform-specific code. AddMiod Vallat
correct root device identification for Gdium (assuming it is booted from the G-Key), although it will not attach as sd0 if there is anything connected to the usb port next to the Ethernet port.
2010-02-16Use printf() in there, not pmon_printf().Miod Vallat
2010-02-16Display the system type on the mainbus0 line as well.Miod Vallat
2010-02-16Actually, both the Gdium and the Lemote PMON reset the USB controllersMiod Vallat
before transferring control to any binary, so trying to boot anything on the Gdium without bringing half the kernel code is a no-go. So, only keep `wd' as a possible boot device, for the Lemote systems, and complain loudly if run on a Gdium.
2010-02-15Simplify MBR and install it as /usr/mdec/mbr instead of /usr/mdec/mbr.miniMark Kettenis
since it makes a fairly decent template for fdisk -i. Change the procedure that makes the rb600 installation miniroot image to use fdisk -i instead of dd(1) to create the MBR for the image. Adjust the miniroot disk type in /etc/disktab to the slightly different layout that fdisk -i creates.
2010-02-15Since strip doesn't know how to strip a U-boot image, don't attempt toMark Kettenis
do so during install.
2010-02-15Descend into mbr subdirectory.Mark Kettenis
2010-02-15MBR for rb600 installation miniroot image.Mark Kettenis
2010-02-14Work in progress standalone boot blocks for OpenBSD/loongson systems. WillMiod Vallat
load a kernel from the OpenBSD partition, with symbols. However: - does not work on gdium (usb i/o errors) - no countdown due to PMON limitations, so either `bsd' in the PMON environment contains a kernel filename to load, and it will get loaded immediately, or it doesn't (e.g. the variable does no exist) and you get a prompt and can pass options to the kernel. Note that /etc/boot.conf commands can still be used in both cases. - does not work for me when loaded automatically from PMON (put in the `al' environment variable). However, `boot $al' works fine. Need to investigate.
2010-02-14Bump version number (to 1.0).Mark Kettenis
2010-02-14Enable loading kernels compressed by gzip(1).Mark Kettenis
2010-02-14Don't use absolute paths for includes.Michael Knudsen
ok drahn
2010-02-13port 'Makefile', builds tags.Dale Rahn
2010-02-13Install boot.elf in /usr/mdec, since we need it as a bootloader on the rb600.Mark Kettenis
2010-02-13Since the TLB handler exception code is now always a trampoline to branchMiod Vallat
to the handler code in the kernel, we can use relative branches in it to make it a bit faster. Also, get rid of the tlbmiss handler and have both the tlb and xtlb refill exceptions branch to the xtlbmiss handler.
2010-02-13Since we don't use the saved ipl in pcb anymore, remove it from the structMiod Vallat
layout.
2010-02-13Dont mix up the order of the registers with the defines.Dale Rahn
2010-02-12include devices found on fuloong: com0, re and rgephy; ok miod@Otto Moerbeek
2010-02-12use early setup hook to get serial console on the fuloong; with & ok miod@Otto Moerbeek
2010-02-12tftp boot paths do not start with a /; ok miod@Otto Moerbeek
2010-02-12Allow for two more per-platform function pointers, one for extra setup workMiod Vallat
while pmon is still available, and one for reset (in addition to the already existing powerdown routine). Add reset and powerdown code to the fuloong 2f platform; this also fixes reset on yeeloong. Tested by otto@
2010-02-12Switch to using mkuboot for building the U-Boot image.Michael Knudsen
`looks right' drahn
2010-02-12Overhaul per-platform specific operation by moving all the differences intoMiod Vallat
per-platform structs or function pointers; therefore bonito(4) no longer needs to know about particular systems. While there, bring little bits of Fuloong 2F support, tested on otto@'s machine.
2010-02-12Allow more legacy interrupts to reach the legacy PIC; found the hard way byMiod Vallat
otto@ on Fuloong.
2010-02-12ehci bits, not enabled.Dale Rahn
2010-02-12Initial version of ehci shim for omap, not complete.Dale Rahn
2010-02-12Rework prcm to support additional iclk/fclk registers.Dale Rahn
2010-02-12introduce a uvm_km_valloc_try function that won't get a lower level lockTed Unangst
for use by the uvm pseg code. this is the path of least resistance until we sort out how many of these functions we really need. problem found by mikeb ok kettenis oga
2010-02-11default to no pckbc and no legacy hardware; ok miod@Otto Moerbeek
2010-02-11align comments; ok miod@Otto Moerbeek
2010-02-11cd in nam2blk; ok miodOtto Moerbeek
2010-02-11fuloong model defineOtto Moerbeek
2010-02-10remove lingering debug print.Dale Rahn
2010-02-10And now mounts with reads and writes work.Dale Rahn
2010-02-10Would seem that the sdmmc layer does not like having CRC7 as part of theDale Rahn
136 bit RESP, shift it out. Card size is recognized.
2010-02-10Blame the right interrupt bit in `spurious interrupt' messages.Miod Vallat
2010-02-10Close to working MMCHS (ommmc) driver. much thanks to mk@ for continual poking.Dale Rahn
2010-02-10Unfortunately, newer versions of u-boot found on the beagle do not allowDale Rahn
the OS type of OpenBSD, so claim to be linux so u-boot is happy. Sigh.
2010-02-09Make the bonito_pci_attach_hook per-platform, as a new callback in structMiod Vallat
bonito_config. Move the Geode initalization code previously found there to yeeloong-specific code; and on Gdium, clear all the BAR of the internal mini pci slot - it does not get initialized by PMON and the MI PCI code complains about the bogus values it finds there on cold boots.
2010-02-09Flush caches upon startup anyway, the gdium pmon keeps it dirty, unlikeMiod Vallat
the lemote pmon.
2010-02-09Switching the strange VIA VT8251 PCIE host bridge into a PCI-PCI bridgeMark Kettenis
didn't quite work since the bridge seems to end up largely unconfigured, and our PCI resource configuration code isn't quite smart enough (yet) to fix things up. So instead switch it only into PCI-PCI bridge mode long enough to snoop the bus number, and attach pci(4) using that number. This is probably safer anyway, since ACPI may not like us switching things around behind its back. Fixes PR 6253 & 6304.
2010-02-09Process kernel options correctly when run from a `go' command instead ofMiod Vallat
`boot'.
2010-02-09Less aggressive cache ops on BUS_DMASYNC_PREREAD alone (leftover from olderMiod Vallat
code before I got DMA address computation reliable).
2010-02-09wsmux (for external, big-boned-fingers compatible, keyboards) and ext2fsMiod Vallat
support on the ramdisk.
2010-02-09- add the whole gang of USB devices; as prompted by deraadt@Jasper Lievisse Adriaanse
- add section headers ok otto@ miod@