summaryrefslogtreecommitdiff
path: root/sys
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-17Do not always create a new node when a beacon or a probe responseDamien Bergamini
is received. The creation of a new node is already handled in ieee80211_recv_probe_resp() when necessary. This avoids creating empty nodes with wrong channels when beacons are received on the wrong channel (overlapping channels). Those empty nodes may also prevent the real node from being discovered because of ieee80211_find_node_for_beacon() filtering. This should prevent entries of the form: nwid "" chan 3 bssid 00:01:02:03:04:05 0dB 54M in "ifconfig if0 scan" output, like reported by Rivo Nurges.
2010-02-17read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6Damien Bergamini
bit on 6x50 if version>=6.
2010-02-17Build and install the boot blocks, and put it as part of the snapshots files.Miod Vallat
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-17KNFPaul Irofti
2010-02-17change constant of convert formulra of SHT1X sensor to fitYojiro Uo
TEMPerHUM hardware. (It uses 3.38-3.48V as SHT1X's VDD). mentiond by Michael Fuckner
2010-02-17dont defer broadcast or multicast packets.David Gwynne
ok sthen@ henning@
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-16fix AR_DTIM_PERIODDamien Bergamini
2010-02-16Recognize the BCM57780 PHY, tested by bruce on tech@.Stuart Henderson
From Brad, ok jsg@ kettenis@
2010-02-16syncStuart Henderson
2010-02-16Add BCM57780, from Brad. ok jsg@ kettenis@Stuart Henderson
2010-02-16add some defines needed for the upcoming newfs_ext2fs; ok miod@Otto Moerbeek
2010-02-16Use i2c_addr_t as the type for the init_xfer function because thisMichael Knudsen
is what the function pointer type uses. ok grange
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-15regenDamien Bergamini
2010-02-15add MSI (Micro Star International) vendor and RT3090 product idDamien Bergamini
2010-02-15Properly detect when the band changes from 2GHz to 5GHz andDamien Bergamini
vice-versa, and do a full reset of the chip when it happens. This does not affect the AR9280 since a full reset is always necessary when the channel changes. Should fix dual-band AR5416 devices (problem reported by Rivo Nurges).
2010-02-15- handle SIOCS80211CHANNEL in monitor mode without doing a full resetDamien Bergamini
- call athn_set_multi on SIOCADDMULTI/SIOCDELMULTI
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-14The ASIC does not like PCI bursts on registers because of a silicon bug.Damien Bergamini
To prevent PCI read or write bursts, we issue a read to a non-contiguous register before accessing a register. This problem does not show up on the x86 architecture since the memory model makes it almost impossible to generate PCI bursts without doing DMA. This bug is "documented" in the Ralink Linux driver as: "//Patch for ASIC turst read/write bug, needs to remove after metel fix" This fix makes the RT2561S chip on the Gdium (loongson) work. It fails to load the firmware without it. Tested by miod@ of the Gdium (slightly different diff though)
2010-02-14Don't use absolute paths for includes.Michael Knudsen
ok drahn
2010-02-13Force chunks into correct order once metadata is attached. This preventsJoel Sing
chunks from being reordered on an existing volume. ok marco@
2010-02-13Unbreak automatic rebuilds from hotspares.Joel Sing
ok marco@
2010-02-13Removed unused variable sml_vn.Joel Sing
ok @marco
2010-02-13Pass the number of chunks to sr_meta_attach() rather than recalculating.Joel Sing
ok marco@
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-12Add mkuboot, a utility to build images for Das U-Boot.Michael Knudsen
This code is basically sys/arch/socppc/stand/mkboot/ but fixed to work on little endian machines and extended slightly to allow specifying the image OS and platform. Input from drahn and kettenis. ok kettenis
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.