make-linux helper for v4.4.x
This commit is contained in:
parent
d0a3cf57c3
commit
302c7ddf86
121 changed files with 4976 additions and 93454 deletions
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
files=`find -type f`
|
||||
while read -r line
|
||||
do
|
||||
./deblob-check $line
|
||||
done <<< "$files"
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,31 +0,0 @@
|
|||
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.c linux-2.6.35/drivers/scsi/megaraid.c
|
||||
--- linux-2.6.35.orig/drivers/scsi/megaraid.c 2010-08-01 22:11:14.000000000 +0000
|
||||
+++ linux-2.6.35/drivers/scsi/megaraid.c 2011-05-02 20:30:39.000000000 +0000
|
||||
@@ -4995,9 +4995,14 @@
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
+ HP_SUBSYS_VID, HP_NETRAID1M_SUBSYS_DID, 0, 0, 0},
|
||||
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
+ HP_SUBSYS_VID, HP_NETRAID2M_SUBSYS_DID, 0, 0, 0},
|
||||
{0,}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, megaraid_pci_tbl);
|
||||
+#define HBA_SIGNATURE 0x3344
|
||||
|
||||
static struct pci_driver megaraid_pci_driver = {
|
||||
.name = "megaraid_legacy",
|
||||
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.h linux-2.6.35/drivers/scsi/megaraid.h
|
||||
--- linux-2.6.35.orig/drivers/scsi/megaraid.h 2010-08-01 22:11:14.000000000 +0000
|
||||
+++ linux-2.6.35/drivers/scsi/megaraid.h 2011-05-02 20:31:01.000000000 +0000
|
||||
@@ -84,6 +84,9 @@
|
||||
#define LSI_SUBSYS_VID 0x1000
|
||||
#define INTEL_SUBSYS_VID 0x8086
|
||||
|
||||
+#define HP_NETRAID1M_SUBSYS_DID 0x60E7
|
||||
+#define HP_NETRAID2M_SUBSYS_DID 0x60E8
|
||||
+
|
||||
#define HBA_SIGNATURE 0x3344
|
||||
#define HBA_SIGNATURE_471 0xCCCC
|
||||
#define HBA_SIGNATURE_64BIT 0x0299
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
files=`find -type f`
|
||||
while read -r line
|
||||
do
|
||||
./deblob-check $line
|
||||
done <<< "$files"
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +0,0 @@
|
|||
*.gen.S
|
||||
*.fw
|
||||
*.bin
|
||||
*.csp
|
||||
*.dsp
|
||||
ihex2fw
|
||||
|
|
@ -1,251 +0,0 @@
|
|||
#
|
||||
# kbuild file for firmware/
|
||||
#
|
||||
|
||||
# Create $(fwabs) from $(CONFIG_EXTRA_FIRMWARE_DIR) -- if it doesn't have a
|
||||
# leading /, it's relative to $(srctree).
|
||||
fwdir := $(subst ",,$(CONFIG_EXTRA_FIRMWARE_DIR))
|
||||
fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
|
||||
|
||||
fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE))
|
||||
|
||||
# There are three cases to care about:
|
||||
# 1. Building kernel with CONFIG_FIRMWARE_IN_KERNEL=y -- $(fw-shipped-y) should
|
||||
# include the firmware files to include, according to .config
|
||||
# 2. 'make modules_install', which will install firmware for modules, and
|
||||
# _also_ for the in-kernel drivers when CONFIG_FIRMWARE_IN_KERNEL=n
|
||||
# 3. 'make firmware_install', which installs all firmware, unconditionally.
|
||||
|
||||
# For the former two cases we want $(fw-shipped-y) and $(fw-shipped-m) to be
|
||||
# accurate. In the latter case it doesn't matter -- it'll use $(fw-shipped-all).
|
||||
# But be aware that the config file might not be included at all.
|
||||
|
||||
ifdef CONFIG_ACENIC_OMIT_TIGON_I
|
||||
acenic-objs := $(DEBLOBBED)
|
||||
fw-shipped- += $(DEBLOBBED)
|
||||
else
|
||||
acenic-objs := $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_ACENIC) += $(acenic-objs)
|
||||
fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
|
||||
fw-shipped-$(CONFIG_ATM_AMBASSADOR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2X) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CASSINI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CHELSIO_T3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_MGA) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_R128) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_RADEON) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin
|
||||
fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_E100) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_MYRI_SBUS) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_PCNET) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C589) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C574) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SERIAL_8250_CS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_SMC91C92) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_ADVANSYS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGIC_1280) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGICPTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_INFINIBAND_QIB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_KORG1212) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_MAESTRO3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_SB16_CSP) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_YMFPCI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_WAVEFRONT) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TEHUTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TIGON3) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TYPHOON) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI26) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI62) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_KAWETH) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
ifdef CONFIG_FIRMWARE_IN_KERNEL
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_MPR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA18X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QW) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XA) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49WLC) += $(DEBLOBBED)
|
||||
else
|
||||
fw-shipped- += $(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_TI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT_TI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_WHITEHEAT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
# $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_PDA) += keyspan_pda/keyspan_pda.fw
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_XIRCOM) += keyspan_pda/xircom_pgs.fw
|
||||
fw-shipped-$(CONFIG_USB_VICAM) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_VIDEO_CPIA2) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_YAM) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
|
||||
fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-)
|
||||
|
||||
# Directories which we _might_ need to create, so we have a rule for them.
|
||||
firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all))))
|
||||
|
||||
quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@)
|
||||
cmd_mkdir = mkdir -p $@
|
||||
|
||||
quiet_cmd_ihex = IHEX $@
|
||||
cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@
|
||||
|
||||
quiet_cmd_ihex2fw = IHEX2FW $@
|
||||
cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@
|
||||
|
||||
quiet_cmd_h16tofw = H16TOFW $@
|
||||
cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@
|
||||
|
||||
quiet_cmd_fwbin = MK_FW $@
|
||||
cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \
|
||||
FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst \
|
||||
firmware/%.gen.S,%,$@))))"; \
|
||||
ASM_WORD=$(if $(CONFIG_64BIT),.quad,.long); \
|
||||
ASM_ALIGN=$(if $(CONFIG_64BIT),3,2); \
|
||||
PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \
|
||||
echo "/* Generated by firmware/Makefile */" > $@;\
|
||||
echo " .section .rodata" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_bin:" >>$@;\
|
||||
echo " .incbin \"$(2)\"" >>$@;\
|
||||
echo "_fw_end:" >>$@;\
|
||||
echo " .section .rodata.str,\"aMS\",$${PROGBITS},1" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_name:" >>$@;\
|
||||
echo " .string \"$$FWNAME\"" >>$@;\
|
||||
echo " .section .builtin_fw,\"a\",$${PROGBITS}" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_name" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_bin" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_end - _fw_$${FWSTR}_bin" >>$@;
|
||||
|
||||
# One of these files will change, or come into existence, whenever
|
||||
# the configuration changes between 32-bit and 64-bit. The .S files
|
||||
# need to change when that happens.
|
||||
wordsize_deps := $(wildcard include/config/64bit.h include/config/32bit.h \
|
||||
include/config/ppc32.h include/config/ppc64.h \
|
||||
include/config/superh32.h include/config/superh64.h \
|
||||
include/config/x86_32.h include/config/x86_64.h)
|
||||
|
||||
# Workaround for make < 3.81, where .SECONDEXPANSION doesn't work.
|
||||
# It'll end up depending on these targets, so make them a PHONY rule which
|
||||
# depends on _all_ the directories in $(firmware-dirs), and it'll work out OK.
|
||||
PHONY += $(objtree)/$$(%) $(objtree)/$(obj)/$$(%)
|
||||
$(objtree)/$$(%) $(objtree)/$(obj)/$$(%): $(firmware-dirs)
|
||||
@true
|
||||
|
||||
# For the $$(dir %) trick, where we need % to be expanded first.
|
||||
.SECONDEXPANSION:
|
||||
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-shipped-y)): %: $(wordsize_deps) \
|
||||
| $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(patsubst %.gen.S,%,$@))
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) \
|
||||
include/config/extra/firmware/dir.h | $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(fwabs)/$(patsubst $(obj)/%.gen.S,%,$@))
|
||||
|
||||
# The .o files depend on the binaries directly; the .S files don't.
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-shipped-y)): %.gen.o: %
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/%
|
||||
|
||||
# .ihex is used just as a simple way to hold binary files in a source tree
|
||||
# where binaries are frowned upon. They are directly converted with objcopy.
|
||||
$(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex)
|
||||
|
||||
# Don't depend on ihex2fw if we're installing and it already exists.
|
||||
# Putting it after | in the dependencies doesn't seem sufficient when
|
||||
# we're installing after a cross-compile, because ihex2fw has dependencies
|
||||
# on stuff like /usr/lib/gcc/ppc64-redhat-linux/4.3.0/include/stddef.h and
|
||||
# thus wants to be rebuilt. Which it can't be, if the prebuilt kernel tree
|
||||
# is exported read-only for someone to run 'make install'.
|
||||
ifeq ($(INSTALL):$(wildcard $(obj)/ihex2fw),install:$(obj)/ihex2fw)
|
||||
ihex2fw_dep :=
|
||||
else
|
||||
ihex2fw_dep := $(obj)/ihex2fw
|
||||
endif
|
||||
|
||||
# .HEX is also Intel HEX, but where the offset and length in each record
|
||||
# is actually meaningful, because the firmware has to be loaded in a certain
|
||||
# order rather than as a single binary blob. Thus, we convert them into our
|
||||
# more compact binary representation of ihex records (<linux/ihex.h>)
|
||||
$(obj)/%.fw: $(obj)/%.HEX $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex2fw)
|
||||
|
||||
# .H16 is our own modified form of Intel HEX, with 16-bit length for records.
|
||||
$(obj)/%.fw: $(obj)/%.H16 $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,h16tofw)
|
||||
|
||||
$(firmware-dirs):
|
||||
$(call cmd,mkdir)
|
||||
|
||||
obj-y += $(patsubst %,%.gen.o, $(fw-external-y))
|
||||
obj-$(CONFIG_FIRMWARE_IN_KERNEL) += $(patsubst %,%.gen.o, $(fw-shipped-y))
|
||||
|
||||
# Remove .S files and binaries created from ihex
|
||||
# (during 'make clean' .config isn't included so they're all in $(fw-shipped-))
|
||||
targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \
|
||||
$(shell find $(obj) -name \*.gen.S 2>/dev/null))
|
||||
|
||||
# Without this, built-in.o won't be created when it's empty, and the
|
||||
# final vmlinux link will fail.
|
||||
obj-n := dummy
|
||||
|
||||
hostprogs-y := ihex2fw
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
|
||||
DO NOT ADD FIRMWARE TO THIS DIRECTORY.
|
||||
======================================
|
||||
|
||||
This directory is only here to contain firmware images extracted from old
|
||||
device drivers which predate the common use of request_firmware().
|
||||
|
||||
As we update those drivers to use request_firmware() and keep a clean
|
||||
separation between code and firmware, we put the extracted firmware
|
||||
here.
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
Ben Hutchings <ben@decadent.org.uk>
|
||||
|
||||
Your commit should include an update to the WHENCE file clearly
|
||||
identifying the licence under which the firmware is available, and
|
||||
that it is redistributable. If the licence is long and involved, it's
|
||||
permitted to include it in a separate file and refer to it from the
|
||||
WHENCE file.
|
||||
|
||||
Ideally, your commit should contain a Signed-Off-By: from someone
|
||||
authoritative on the licensing of the firmware in question (i.e. from
|
||||
within the company that owns the code).
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
**********
|
||||
* WHENCE *
|
||||
**********
|
||||
|
||||
This file attempts to document the origin and licensing information,
|
||||
if known, for each piece of firmware distributed for use with the Linux
|
||||
kernel.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: keyspan_pda -- USB Keyspan PDA single-port serial device
|
||||
|
||||
File: keyspan_pda/keyspan_pda.fw
|
||||
Source: keyspan_pda/keyspan_pda.S
|
||||
|
||||
File: keyspan_pda/xircom_pgs.fw
|
||||
Source: keyspan_pda/xircom_pgs.S
|
||||
|
||||
Licence: GPLv2+
|
||||
|
||||
Compiled from original 8051 source into Intel HEX, used in our binary ihex form.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: ATARI_DSP56K - Atari DSP56k support
|
||||
|
||||
File: dsp56k/bootstrap.bin
|
||||
Source: dsp56k/bootstrap.asm
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
DSP56001 assembler, possibly buildable with a56 from
|
||||
http://www.zdomain.com/a56.html
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: DVB AV7110 -- AV7110 cards
|
||||
|
||||
File: av7110/bootcode.bin
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
ARM assembly source code available at http://www.linuxtv.org/downloads/firmware/Boot.S
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*
|
||||
Madge Ambassador ATM Adapter microcode.
|
||||
Copyright (C) 1995-1999 Madge Networks Ltd.
|
||||
|
||||
This microcode data is placed under the terms of the GNU General
|
||||
Public License. The GPL is contained in /usr/doc/copyright/GPL on a
|
||||
Debian system and in the file COPYING in the Linux kernel source.
|
||||
|
||||
We would prefer you not to distribute modified versions without
|
||||
consultation and not to ask for assembly/other microcode source.
|
||||
*/
|
||||
|
||||
First record is start address in a __be32.
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
Boot.S: boot loader for Siemens DVB-S card
|
||||
|
||||
Copyright (C) 2001 Convergence integrated media GmbH
|
||||
Written by Ralph Metzler
|
||||
<rjkm@convergence.de>
|
||||
Copyright (C) 2006 Matthieu CASTET <castet.mattheiu@free.fr>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
check AV711x_3_1.pdf for some hardware infos
|
||||
build it with :
|
||||
$ cc -mbig-endian -c Boot.S
|
||||
$ ld -Ttext 0x2c000000 -EB -o Boot Boot.o
|
||||
$ objcopy -Obinary Boot
|
||||
*/
|
||||
|
||||
.text
|
||||
.align
|
||||
.globl _start
|
||||
_start:
|
||||
b reset // reset vector
|
||||
movs pc, r14 // undefined
|
||||
subs pc, r14, #4 // SWI
|
||||
subs pc, r14, #4 // prefetch abort
|
||||
subs pc, r14, #8 // data abort
|
||||
subs pc, r14, #4 // reserved
|
||||
subs pc, r14, #4 // IRQ
|
||||
subs pc, r14, #4 // FIQ
|
||||
|
||||
.word tbl // table needed by firmware ROM
|
||||
tbl: .word (endtbl - tbl)
|
||||
.word 0
|
||||
.word conf
|
||||
endtbl: .word 0
|
||||
conf: .word 0xa5a55a5a
|
||||
.word 0x001f1555
|
||||
.word 0x00000009
|
||||
|
||||
reset: ldr r13, buffer
|
||||
ldr r4, flag
|
||||
mov r0, #0
|
||||
str r0, [r4]
|
||||
str r0, [r4, #4]
|
||||
|
||||
ldr r1, wait_address
|
||||
ldr r2, flag_address
|
||||
ldr r3, sram
|
||||
|
||||
copycode: // copy the code HW Sram
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
cmp r1, r2
|
||||
ble copycode
|
||||
ldr pc, sram // jump to the copied code
|
||||
|
||||
wait: ldrh r1, [r4] // wait for flag!=0
|
||||
cmp r1, #0
|
||||
beq wait
|
||||
|
||||
mov r1, r13 // buffer address
|
||||
ldr r3, [r4,#4] // destaddr
|
||||
|
||||
ldrh r2, [r4,#2] // get segment length
|
||||
add r2, r2, #63 // round length to next 64 bytes
|
||||
movs r2, r2, lsr #6 // and divide by 64
|
||||
moveq r0, #2 // if 0, set flag to 2, else signal
|
||||
strh r0, [r4] // that buffer is accepted by setting to 0
|
||||
beq wait
|
||||
|
||||
copyloop:
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
subs r2, r2, #1
|
||||
bne copyloop
|
||||
|
||||
eor r13, r13, #0x1400 // switch to other buffer
|
||||
b wait
|
||||
|
||||
// flag is stored at 0x2c0003f8, length at 0x2c0003fa,
|
||||
// destaddr at 0x2c0003fc
|
||||
|
||||
flag: .word 0x2c0003f8
|
||||
|
||||
|
||||
// buffer 1 is at 0x2c000400, buffer 2 at 0x2c001000
|
||||
|
||||
buffer: .word 0x2c000400
|
||||
|
||||
sram: .word 0x9e000800
|
||||
wait_address: .word wait
|
||||
flag_address: .word flag
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
:10000000EA00000EE1B0F00EE25EF004E25EF00401
|
||||
:10001000E25EF008E25EF004E25EF004E25EF0040C
|
||||
:100020002C0000240000000C000000002C00003414
|
||||
:1000300000000000A5A55A5A001F15550000000930
|
||||
:10004000E59FD07CE59F4074E3A00000E5840000BC
|
||||
:10005000E5840004E59F1070E59F2070E59F306403
|
||||
:10006000E8B11FE0E8A31FE0E1510002DAFFFFFB67
|
||||
:10007000E59FF050E1D410B0E35100000AFFFFFC0F
|
||||
:10008000E1A0100DE5943004E1D420B2E282203FDB
|
||||
:10009000E1B0232203A00002E1C400B00AFFFFF494
|
||||
:1000A000E8B11FE0E8A31FE0E8B11FE0E8A31FE00C
|
||||
:1000B000E25220011AFFFFF9E22DDB05EAFFFFEC17
|
||||
:1000C0002C0003F82C0004009E0008002C00007493
|
||||
:0400D0002C0000C040
|
||||
:00000001FF
|
||||
|
|
@ -1 +0,0 @@
|
|||
*.cis
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
||||
Copyright 2001, STMicrolectronics, Inc.
|
||||
Contact: steve.miller@st.com
|
||||
|
||||
Description:
|
||||
This file contains patch data for the CPiA2 (stv0672) VP4.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
; Author: Frederik Noring <noring@nocrew.org>
|
||||
;
|
||||
; This file is subject to the terms and conditions of the GNU General Public
|
||||
; License. See the file COPYING in the main directory of this archive
|
||||
; for more details.
|
||||
|
||||
; DSP56k loader
|
||||
|
||||
; Host Interface
|
||||
M_BCR EQU $FFFE ; Port A Bus Control Register
|
||||
M_PBC EQU $FFE0 ; Port B Control Register
|
||||
M_PBDDR EQU $FFE2 ; Port B Data Direction Register
|
||||
M_PBD EQU $FFE4 ; Port B Data Register
|
||||
M_PCC EQU $FFE1 ; Port C Control Register
|
||||
M_PCDDR EQU $FFE3 ; Port C Data Direction Register
|
||||
M_PCD EQU $FFE5 ; Port C Data Register
|
||||
|
||||
M_HCR EQU $FFE8 ; Host Control Register
|
||||
M_HSR EQU $FFE9 ; Host Status Register
|
||||
M_HRX EQU $FFEB ; Host Receive Data Register
|
||||
M_HTX EQU $FFEB ; Host Transmit Data Register
|
||||
|
||||
; SSI, Synchronous Serial Interface
|
||||
M_RX EQU $FFEF ; Serial Receive Data Register
|
||||
M_TX EQU $FFEF ; Serial Transmit Data Register
|
||||
M_CRA EQU $FFEC ; SSI Control Register A
|
||||
M_CRB EQU $FFED ; SSI Control Register B
|
||||
M_SR EQU $FFEE ; SSI Status Register
|
||||
M_TSR EQU $FFEE ; SSI Time Slot Register
|
||||
|
||||
; Exception Processing
|
||||
M_IPR EQU $FFFF ; Interrupt Priority Register
|
||||
|
||||
org P:$0
|
||||
start jmp <$40
|
||||
|
||||
org P:$40
|
||||
; ; Zero 16384 DSP X and Y words
|
||||
; clr A #0,r0
|
||||
; clr B #0,r4
|
||||
; do #64,<_block1
|
||||
; rep #256
|
||||
; move A,X:(r0)+ B,Y:(r4)+
|
||||
;_block1 ; Zero (32768-512) Program words
|
||||
; clr A #512,r0
|
||||
; do #126,<_block2
|
||||
; rep #256
|
||||
; move A,P:(r0)+
|
||||
;_block2
|
||||
|
||||
; Copy DSP program control
|
||||
move #real,r0
|
||||
move #upload,r1
|
||||
do #upload_end-upload,_copy
|
||||
movem P:(r0)+,x0
|
||||
movem x0,P:(r1)+
|
||||
_copy movep #4,X:<<M_HCR
|
||||
movep #$c00,X:<<M_IPR
|
||||
and #<$fe,mr
|
||||
jmp upload
|
||||
|
||||
real
|
||||
org P:$7ea9
|
||||
upload
|
||||
movep #1,X:<<M_PBC
|
||||
movep #0,X:<<M_BCR
|
||||
|
||||
next jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,A
|
||||
move #>3,x0
|
||||
cmp x0,A #>1,x0
|
||||
jeq <$0
|
||||
_get_address
|
||||
jclr #0,X:<<M_HSR,_get_address
|
||||
movep X:<<M_HRX,r0
|
||||
_get_length
|
||||
jclr #0,X:<<M_HSR,_get_length
|
||||
movep X:<<M_HRX,y0
|
||||
cmp x0,A #>2,x0
|
||||
jeq load_X
|
||||
cmp x0,A
|
||||
jeq load_Y
|
||||
|
||||
load_P do y0,_load_P
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,P:(r0)+
|
||||
_load_P jmp next
|
||||
load_X do y0,_load_X
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,X:(r0)+
|
||||
_load_X jmp next
|
||||
load_Y do y0,_load_Y
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,Y:(r0)+
|
||||
_load_Y jmp next
|
||||
|
||||
upload_end
|
||||
end
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
:100000000C004000000000000000000000000000A4
|
||||
:1000100000000000000000000000000000000000E0
|
||||
:1000200000000000000000000000000000000000D0
|
||||
:1000300000000000000000000000000000000000C0
|
||||
:1000400000000000000000000000000000000000B0
|
||||
:1000500000000000000000000000000000000000A0
|
||||
:100060000000000000000000000000000000000090
|
||||
:100070000000000000000000000000000000000080
|
||||
:100080000000000000000000000000000000000070
|
||||
:100090000000000000000000000000000000000060
|
||||
:1000A0000000000000000000000000000000000050
|
||||
:1000B0000000000000000000000000000000000040
|
||||
:1000C00060F40000004F61F400007EA9062E80005D
|
||||
:1000D000004707D88407598408F4A800000408F4EE
|
||||
:1000E000BF000C0000FEB80AF080007EA908F4A052
|
||||
:1000F00000000108F4BE0000000AA980007EAD08DF
|
||||
:100100004E2B44F40000000344F4450000010EA00F
|
||||
:10011000000AA980007EB508502B0AA980007EB88D
|
||||
:1001200008462B44F4450000020AF0AA007EC920CC
|
||||
:1001300000450AF0AA007ED006C600007EC60AA9C5
|
||||
:1001400080007EC408586B0AF080007EAD06C600B1
|
||||
:10015000007ECD0AA980007ECB0858AB0AF0800053
|
||||
:100160007EAD06C600007ED40AA980007ED2085863
|
||||
:07017000EB0AF080007EADF8
|
||||
:00000001FF
|
||||
/* DSP56001 bootstrap code */
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport Binary Image (for TI based products)
|
||||
//* Generated by TIBin2C v2.00 (watchport)
|
||||
//* Copyright (C) 2001 Inside Out Networks, All rights reserved.
|
||||
//**************************************************************
|
||||
|
|
@ -1,280 +0,0 @@
|
|||
/*
|
||||
* Parser/loader for IHEX formatted data.
|
||||
*
|
||||
* Copyright © 2008 David Woodhouse <dwmw2@infradead.org>
|
||||
* Copyright © 2005 Jan Harkes <jaharkes@cs.cmu.edu>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#define _GNU_SOURCE
|
||||
#include <getopt.h>
|
||||
|
||||
|
||||
struct ihex_binrec {
|
||||
struct ihex_binrec *next; /* not part of the real data structure */
|
||||
uint32_t addr;
|
||||
uint16_t len;
|
||||
uint8_t data[];
|
||||
};
|
||||
|
||||
/**
|
||||
* nybble/hex are little helpers to parse hexadecimal numbers to a byte value
|
||||
**/
|
||||
static uint8_t nybble(const uint8_t n)
|
||||
{
|
||||
if (n >= '0' && n <= '9') return n - '0';
|
||||
else if (n >= 'A' && n <= 'F') return n - ('A' - 10);
|
||||
else if (n >= 'a' && n <= 'f') return n - ('a' - 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint8_t hex(const uint8_t *data, uint8_t *crc)
|
||||
{
|
||||
uint8_t val = (nybble(data[0]) << 4) | nybble(data[1]);
|
||||
*crc += val;
|
||||
return val;
|
||||
}
|
||||
|
||||
static int process_ihex(uint8_t *data, ssize_t size);
|
||||
static void file_record(struct ihex_binrec *record);
|
||||
static int output_records(int outfd);
|
||||
|
||||
static int sort_records = 0;
|
||||
static int wide_records = 0;
|
||||
static int include_jump = 0;
|
||||
|
||||
static int usage(void)
|
||||
{
|
||||
fprintf(stderr, "ihex2fw: Convert ihex files into binary "
|
||||
"representation for use by Linux kernel\n");
|
||||
fprintf(stderr, "usage: ihex2fw [<options>] <src.HEX> <dst.fw>\n");
|
||||
fprintf(stderr, " -w: wide records (16-bit length)\n");
|
||||
fprintf(stderr, " -s: sort records by address\n");
|
||||
fprintf(stderr, " -j: include records for CS:IP/EIP address\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int infd, outfd;
|
||||
struct stat st;
|
||||
uint8_t *data;
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "wsj")) != -1) {
|
||||
switch (opt) {
|
||||
case 'w':
|
||||
wide_records = 1;
|
||||
break;
|
||||
case 's':
|
||||
sort_records = 1;
|
||||
break;
|
||||
case 'j':
|
||||
include_jump = 1;
|
||||
break;
|
||||
return usage();
|
||||
}
|
||||
}
|
||||
|
||||
if (optind + 2 != argc)
|
||||
return usage();
|
||||
|
||||
if (!strcmp(argv[optind], "-"))
|
||||
infd = 0;
|
||||
else
|
||||
infd = open(argv[optind], O_RDONLY);
|
||||
if (infd == -1) {
|
||||
fprintf(stderr, "Failed to open source file: %s",
|
||||
strerror(errno));
|
||||
return usage();
|
||||
}
|
||||
if (fstat(infd, &st)) {
|
||||
perror("stat");
|
||||
return 1;
|
||||
}
|
||||
data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0);
|
||||
if (data == MAP_FAILED) {
|
||||
perror("mmap");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[optind+1], "-"))
|
||||
outfd = 1;
|
||||
else
|
||||
outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
|
||||
if (outfd == -1) {
|
||||
fprintf(stderr, "Failed to open destination file: %s",
|
||||
strerror(errno));
|
||||
return usage();
|
||||
}
|
||||
if (process_ihex(data, st.st_size))
|
||||
return 1;
|
||||
|
||||
return output_records(outfd);
|
||||
}
|
||||
|
||||
static int process_ihex(uint8_t *data, ssize_t size)
|
||||
{
|
||||
struct ihex_binrec *record;
|
||||
uint32_t offset = 0;
|
||||
uint32_t data32;
|
||||
uint8_t type, crc = 0, crcbyte = 0;
|
||||
int i, j;
|
||||
int line = 1;
|
||||
int len;
|
||||
|
||||
i = 0;
|
||||
next_record:
|
||||
/* search for the start of record character */
|
||||
while (i < size) {
|
||||
if (data[i] == '\n') line++;
|
||||
if (data[i++] == ':') break;
|
||||
}
|
||||
|
||||
/* Minimum record length would be about 10 characters */
|
||||
if (i + 10 > size) {
|
||||
fprintf(stderr, "Can't find valid record at line %d\n", line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
len = hex(data + i, &crc); i += 2;
|
||||
if (wide_records) {
|
||||
len <<= 8;
|
||||
len += hex(data + i, &crc); i += 2;
|
||||
}
|
||||
record = malloc((sizeof (*record) + len + 3) & ~3);
|
||||
if (!record) {
|
||||
fprintf(stderr, "out of memory for records\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(record, 0, (sizeof(*record) + len + 3) & ~3);
|
||||
record->len = len;
|
||||
|
||||
/* now check if we have enough data to read everything */
|
||||
if (i + 8 + (record->len * 2) > size) {
|
||||
fprintf(stderr, "Not enough data to read complete record at line %d\n",
|
||||
line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
record->addr = hex(data + i, &crc) << 8; i += 2;
|
||||
record->addr |= hex(data + i, &crc); i += 2;
|
||||
type = hex(data + i, &crc); i += 2;
|
||||
|
||||
for (j = 0; j < record->len; j++, i += 2)
|
||||
record->data[j] = hex(data + i, &crc);
|
||||
|
||||
/* check CRC */
|
||||
crcbyte = hex(data + i, &crc); i += 2;
|
||||
if (crc != 0) {
|
||||
fprintf(stderr, "CRC failure at line %d: got 0x%X, expected 0x%X\n",
|
||||
line, crcbyte, (unsigned char)(crcbyte-crc));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Done reading the record */
|
||||
switch (type) {
|
||||
case 0:
|
||||
/* old style EOF record? */
|
||||
if (!record->len)
|
||||
break;
|
||||
|
||||
record->addr += offset;
|
||||
file_record(record);
|
||||
goto next_record;
|
||||
|
||||
case 1: /* End-Of-File Record */
|
||||
if (record->addr || record->len) {
|
||||
fprintf(stderr, "Bad EOF record (type 01) format at line %d",
|
||||
line);
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: /* Extended Segment Address Record (HEX86) */
|
||||
case 4: /* Extended Linear Address Record (HEX386) */
|
||||
if (record->addr || record->len != 2) {
|
||||
fprintf(stderr, "Bad HEX86/HEX386 record (type %02X) at line %d\n",
|
||||
type, line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* We shouldn't really be using the offset for HEX86 because
|
||||
* the wraparound case is specified quite differently. */
|
||||
offset = record->data[0] << 8 | record->data[1];
|
||||
offset <<= (type == 2 ? 4 : 16);
|
||||
goto next_record;
|
||||
|
||||
case 3: /* Start Segment Address Record */
|
||||
case 5: /* Start Linear Address Record */
|
||||
if (record->addr || record->len != 4) {
|
||||
fprintf(stderr, "Bad Start Address record (type %02X) at line %d\n",
|
||||
type, line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
memcpy(&data32, &record->data[0], sizeof(data32));
|
||||
data32 = htonl(data32);
|
||||
memcpy(&record->data[0], &data32, sizeof(data32));
|
||||
|
||||
/* These records contain the CS/IP or EIP where execution
|
||||
* starts. If requested output this as a record. */
|
||||
if (include_jump)
|
||||
file_record(record);
|
||||
goto next_record;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Unknown record (type %02X)\n", type);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ihex_binrec *records;
|
||||
|
||||
static void file_record(struct ihex_binrec *record)
|
||||
{
|
||||
struct ihex_binrec **p = &records;
|
||||
|
||||
while ((*p) && (!sort_records || (*p)->addr < record->addr))
|
||||
p = &((*p)->next);
|
||||
|
||||
record->next = *p;
|
||||
*p = record;
|
||||
}
|
||||
|
||||
static int output_records(int outfd)
|
||||
{
|
||||
unsigned char zeroes[6] = {0, 0, 0, 0, 0, 0};
|
||||
struct ihex_binrec *p = records;
|
||||
|
||||
while (p) {
|
||||
uint16_t writelen = (p->len + 9) & ~3;
|
||||
|
||||
p->addr = htonl(p->addr);
|
||||
p->len = htons(p->len);
|
||||
if (write(outfd, &p->addr, writelen) != writelen)
|
||||
return 1;
|
||||
p = p->next;
|
||||
}
|
||||
/* EOF record is zero length, since we don't bother to represent
|
||||
the type field in the binary version */
|
||||
if (write(outfd, zeroes, 6) != 6)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
:03000000020200F9
|
||||
:0400230002055F0073
|
||||
:0400430002010000B6
|
||||
:050030000000000000CB
|
||||
:10010000020296000200000002000000020000004F
|
||||
:1001100002000000020000000200000002000000D7
|
||||
:1001200002000000020000000204610002048900D5
|
||||
:1002000075815EE4F532F533F530F531F534C20031
|
||||
:10021000C201A90074FE901000F0A3D9FC74FD90F7
|
||||
:100220001100F0A3D9FC7402907F9DF07400907FC0
|
||||
:1002300097F07486907F9EF0907F957403F0907F86
|
||||
:10024000AFE0D2E0F07401907FABF0907FAEF09021
|
||||
:100250007FAC7404F0907FAD7404F0907FC9F074AB
|
||||
:1002600084907F98F07400F59875C8307B059120D4
|
||||
:10027000D2CA759850D2E8D2AFD2AC7400F586904D
|
||||
:100280007FD67402F0792E7A007B00DBFEDAFAD991
|
||||
:10029000F67406F080FEC086C082C083C084C0852C
|
||||
:1002A000C0E0E591C2E4F591907FAB7401F0907FDE
|
||||
:1002B000E8E0F9A3E0FAA3E0FBA3E0FCE95460B4B2
|
||||
:1002C0000003020339B4406EBA000B12042040034D
|
||||
:1002D00002040202040ABA010302040ABA02030277
|
||||
:1002E000040ABA0303020444BA041EBB000A907F46
|
||||
:1002F00095E04402F0020402907F98E054FDF090F3
|
||||
:100300007F95E054FDF0020402BA050302040ABA24
|
||||
:100310000619BB0008E533D395320203DEBB0108A2
|
||||
:10032000E532C395330203DE02040ABA07058B34B3
|
||||
:1003300002040202040A02040ABA0020B9801090E2
|
||||
:100340007F00E4F0A3F0907FB57402F0020402B9DC
|
||||
:10035000820280EBB9810280E602040ABA010FBB77
|
||||
:10036000000302040ABB010302040202040ABA03E6
|
||||
:100370000FBB000302040ABB010302040202040AC9
|
||||
:10038000BA0656BC010F907FD47406F0907FD574E6
|
||||
:1003900012F0020402BC0212BB006F907FD47406FC
|
||||
:1003A000F0907FD57424F0020402BC03297404C3C6
|
||||
:1003B0009B40576055EB2B9006442582F5827400D4
|
||||
:1003C0003583F583E0F9A3E0FA907FD4E9F0907FDC
|
||||
:1003D000D5EAF002040202040ABA080F7401907F01
|
||||
:1003E00000F07401907FB5F0020402BA0903020420
|
||||
:1003F00002BA0A0574000203DEBA0B030204020209
|
||||
:10040000040A907FB47402F08009907FB4E0440144
|
||||
:10041000F08000D0E0D085D084D083D082D08632E6
|
||||
:10042000EB20E71EC3940A5019EB2324FEF58274D7
|
||||
:10043000053400F583E0F5CBF5CDA3E0F5CAF5CCA6
|
||||
:10044000C322D322B94111EB64FF5484FB907F98FF
|
||||
:10045000E0547B4BF0020402907F9BE064FF0203B8
|
||||
:10046000DEC086C082C083C084C085C0E0E591C282
|
||||
:10047000E4F591907FA97404F01205A0D0E0D08536
|
||||
:10048000D084D083D082D08632C086C082C083C060
|
||||
:1004900084C085C0E0E591C2E4F591907FAA740420
|
||||
:1004A000F0907FC9E0F9E4F586907DC075851085F0
|
||||
:1004B0003284E005860584F0E584B53302800905C1
|
||||
:1004C000320586A3D9EC8000907FC9F0B131D0E02D
|
||||
:1004D000D085D084D083D082D08632E4F586907FD8
|
||||
:1004E000BCE020E14B907D00E532F0A3E533F0A3C2
|
||||
:1004F000E530F0A3E531F0A3E430000104F0A305FA
|
||||
:10050000869010007910E0A30586F0A30586D9F641
|
||||
:10051000058674FCF0A305869011007910E0A30510
|
||||
:1005200086F0A30586D9F6E4F586907FBD7426F0A3
|
||||
:1005300022200013E532B53301220533758310857F
|
||||
:100540003382E0F599D2007400B5340122E533D34B
|
||||
:100550009532C3953440F5753400D2010205A0C030
|
||||
:1005600086C082C083C084C085C0E0309907C2992C
|
||||
:10057000C20012053430980512058AC298D0E0D026
|
||||
:1005800085D084D083D082D0863275831185308225
|
||||
:100590000582E599F0E582B53101220530B1A0224E
|
||||
:1005A000907FB8E020E138200136E530B5310122F6
|
||||
:1005B000E4F5867583110586907E00F0A3058679A3
|
||||
:1005C00001E530B5310280100531853182E00586C4
|
||||
:1005D000F0A3058609B940E9907FB9E96001F022EE
|
||||
:1005E000C201E4F586907E007401F0A37402F090DD
|
||||
:1005F0007FB9F022C299F5993099FDC29922E55E42
|
||||
:10060000F63CFD8FFEC8FF64FFB2FFD9FFEDFFF39C
|
||||
:10061000FFFA12010001FFFFFF40CD06040189AB84
|
||||
:1006200001020301090220000101008032090400D7
|
||||
:100630000002FFFFFF0007058203400001070502DB
|
||||
:1006400002400000064C0650067206A0040300009B
|
||||
:100650002203410043004D00450020007500730057
|
||||
:100660006200200077006900640067006500740084
|
||||
:1006700073002E03410043004D004500200055004B
|
||||
:1006800053004200200073006500720069006100A1
|
||||
:100690006C0020007700690064006700650074004A
|
||||
:0606A000060334003700E0
|
||||
:00000001FF
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,87 +0,0 @@
|
|||
:03000000020200F9
|
||||
:0400230002059B0037
|
||||
:050030000000000000CB
|
||||
:0400430002010000B6
|
||||
:100100000202BA000200000002000000020000002B
|
||||
:1001100002000000020000000200000002000000D7
|
||||
:100120000200000002000000020485000204B90081
|
||||
:1002000075815EE4F532F533F530F531F534C20031
|
||||
:10021000C201A90074FE901000F0A3D9FC74FD90F7
|
||||
:100220001100F0A3D9FC907F9474BFF0907F957477
|
||||
:10023000EFF07410907F9EF07400907F98F07440FF
|
||||
:10024000907F9DF07400907F97F07482907F9EF075
|
||||
:10025000907F957403F0907FAFE0D2E0F07401904E
|
||||
:100260007FABF0907FAEF0907FAC7404F0907FADE8
|
||||
:100270007404F0907FC9F07407907FAFF074209001
|
||||
:100280007F9CF07480907F98F07453F59875C83017
|
||||
:100290007B059144D2CA759850D2E8D2AFD2AC74E3
|
||||
:1002A00000F586907FD67402F0792E7A007B00DB11
|
||||
:1002B000FEDAFAD9F67406F080FEC086C082C083EA
|
||||
:1002C000C084C085C0E0E591C2E4F591907FAB7435
|
||||
:1002D00001F0907FE8E0F9A3E0FAA3E0FBA3E0FCE3
|
||||
:1002E000E95460B4000302035DB4406EBA000B121F
|
||||
:1002F0000444400302042602042EBA010302042E21
|
||||
:10030000BA020302042EBA0303020468BA041EBB35
|
||||
:10031000000A907F95E04402F0020426907F98E066
|
||||
:1003200054FDF0907F95E054FDF0020426BA0503D9
|
||||
:1003300002042EBA0619BB0008E533D39532020435
|
||||
:1003400002BB0108E532C3953302040202042EBA4F
|
||||
:1003500007058B3402042602042E02042EBA002064
|
||||
:10036000B98010907F00E4F0A3F0907FB57402F0A4
|
||||
:10037000020426B9820280EBB9810280E602042ED3
|
||||
:10038000BA010FBB000302042EBB010302042602C4
|
||||
:10039000042EBA030FBB000302042EBB01030204A8
|
||||
:1003A0002602042EBA0656BC010F907FD47406F0C4
|
||||
:1003B000907FD5745AF0020426BC0212BB006F90E5
|
||||
:1003C0007FD47406F0907FD5746CF0020426BC03D1
|
||||
:1003D000297404C39B40576055EB2B90068C2582F3
|
||||
:1003E000F58274003583F583E0F9A3E0FA907FD4B9
|
||||
:1003F000E9F0907FD5EAF002042602042EBA080F35
|
||||
:100400007401907F00F07401907FB5F0020426BA69
|
||||
:100410000903020426BA0A057400020402BA0B0397
|
||||
:1004200002042602042E907FB47402F08009907FAB
|
||||
:10043000B4E04401F08000D0E0D085D084D083D0F7
|
||||
:1004400082D08632EB20E71EC3940A5019EB232496
|
||||
:1004500046F58274063400F583E0F5CBF5CDA3E0D4
|
||||
:10046000F5CAF5CCC322D322B94111EB64FF548005
|
||||
:10047000FB907F98E0547F4BF0020426907F9BE036
|
||||
:1004800064FF020402C086C082C083C084C085C0ED
|
||||
:10049000E0E591C2E4F591907FA97404F074209096
|
||||
:1004A0007F9CF01205DC7420907F9CF0D0E0D0851A
|
||||
:1004B000D084D083D082D08632C086C082C083C030
|
||||
:1004C00084C085C0E07410907F9CF0E591C2E4F593
|
||||
:1004D00091907FAA7404F0907FC9E0F9E4F58690CA
|
||||
:1004E0007DC0758510853284E005860584F0E5843D
|
||||
:1004F000B53302800905320586A3D9EC8000907FD0
|
||||
:10050000C9F0B16D7420907F9CF0D0E0D085D0848C
|
||||
:10051000D083D082D08632E4F586907FBCE020E1A3
|
||||
:100520004B907D00E532F0A3E533F0A3E530F0A376
|
||||
:10053000E531F0A3E430000104F0A305869010003B
|
||||
:100540007910E0A30586F0A30586D9F6058674FC2C
|
||||
:10055000F0A305869011007910E0A30586F0A305AD
|
||||
:1005600086D9F6E4F586907FBD7426F0222000132C
|
||||
:10057000E532B53301220533758310853382E0F50A
|
||||
:1005800099D2007400B5340122E533D39532C39576
|
||||
:100590003440F5753400D2010205DCC086C082C04B
|
||||
:1005A00083C084C085C0E0309907C299C20012059B
|
||||
:1005B000703098051205C6C298D0E0D085D084D09E
|
||||
:1005C00083D082D086327583118530820582E59989
|
||||
:1005D000F0E582B53101220530B1DC227410907F44
|
||||
:1005E0009CF0907FB8E020E13E20013CE530B53141
|
||||
:1005F0000122E4F5867583110586907E00F0A3053F
|
||||
:10060000867901E530B5310280100531853182E00F
|
||||
:100610000586F0A3058609B940E97410907F9CF027
|
||||
:10062000907FB9E96001F022C201E4F586907E0076
|
||||
:100630007401F0A37402F0907FB9F022C299F59989
|
||||
:100640003099FDC29922E55EF63CFD8FFEC8FF643D
|
||||
:10065000FFB2FFD9FFEDFFF3FFFA12010001FFFF28
|
||||
:10066000FF40CD06040189AB01020301090220000D
|
||||
:1006700001010080320904000002FFFFFF000705AE
|
||||
:10068000820340000107050202400000069406981C
|
||||
:1006900006BA06E8040300002203410043004D00AF
|
||||
:1006A000450020007500730062002000770069009B
|
||||
:1006B000640067006500740073002E03410043006E
|
||||
:1006C0004D004500200055005300420020007300FB
|
||||
:1006D00065007200690061006C002000770069000D
|
||||
:0E06E0006400670065007400060334003700F4
|
||||
:00000001FF
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.c linux-2.6.35/drivers/scsi/megaraid.c
|
||||
--- linux-2.6.35.orig/drivers/scsi/megaraid.c 2010-08-01 22:11:14.000000000 +0000
|
||||
+++ linux-2.6.35/drivers/scsi/megaraid.c 2011-05-02 20:30:39.000000000 +0000
|
||||
@@ -4995,9 +4995,14 @@
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
+ HP_SUBSYS_VID, HP_NETRAID1M_SUBSYS_DID, 0, 0, 0},
|
||||
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||
+ HP_SUBSYS_VID, HP_NETRAID2M_SUBSYS_DID, 0, 0, 0},
|
||||
{0,}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, megaraid_pci_tbl);
|
||||
+#define HBA_SIGNATURE 0x3344
|
||||
|
||||
static struct pci_driver megaraid_pci_driver = {
|
||||
.name = "megaraid_legacy",
|
||||
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.h linux-2.6.35/drivers/scsi/megaraid.h
|
||||
--- linux-2.6.35.orig/drivers/scsi/megaraid.h 2010-08-01 22:11:14.000000000 +0000
|
||||
+++ linux-2.6.35/drivers/scsi/megaraid.h 2011-05-02 20:31:01.000000000 +0000
|
||||
@@ -84,6 +84,9 @@
|
||||
#define LSI_SUBSYS_VID 0x1000
|
||||
#define INTEL_SUBSYS_VID 0x8086
|
||||
|
||||
+#define HP_NETRAID1M_SUBSYS_DID 0x60E7
|
||||
+#define HP_NETRAID2M_SUBSYS_DID 0x60E8
|
||||
+
|
||||
#define HBA_SIGNATURE 0x3344
|
||||
#define HBA_SIGNATURE_471 0xCCCC
|
||||
#define HBA_SIGNATURE_64BIT 0x0299
|
||||
|
|
@ -1,104 +0,0 @@
|
|||
From c21ab7dfe08353f54716a1361b541aade42c1dca Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Valente <paolo.valente@unimore.it>
|
||||
Date: Thu, 22 May 2014 11:59:35 +0200
|
||||
Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r7-3.16
|
||||
|
||||
Update Kconfig.iosched and do the related Makefile changes to include
|
||||
kernel configuration options for BFQ. Also add the bfqio controller
|
||||
to the cgroups subsystem.
|
||||
|
||||
Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
|
||||
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
|
||||
---
|
||||
block/Kconfig.iosched | 32 ++++++++++++++++++++++++++++++++
|
||||
block/Makefile | 1 +
|
||||
include/linux/cgroup_subsys.h | 4 ++++
|
||||
3 files changed, 37 insertions(+)
|
||||
|
||||
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
|
||||
index 421bef9..0ee5f0f 100644
|
||||
--- a/block/Kconfig.iosched
|
||||
+++ b/block/Kconfig.iosched
|
||||
@@ -39,6 +39,27 @@ config CFQ_GROUP_IOSCHED
|
||||
---help---
|
||||
Enable group IO scheduling in CFQ.
|
||||
|
||||
+config IOSCHED_BFQ
|
||||
+ tristate "BFQ I/O scheduler"
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ The BFQ I/O scheduler tries to distribute bandwidth among
|
||||
+ all processes according to their weights.
|
||||
+ It aims at distributing the bandwidth as desired, independently of
|
||||
+ the disk parameters and with any workload. It also tries to
|
||||
+ guarantee low latency to interactive and soft real-time
|
||||
+ applications. If compiled built-in (saying Y here), BFQ can
|
||||
+ be configured to support hierarchical scheduling.
|
||||
+
|
||||
+config CGROUP_BFQIO
|
||||
+ bool "BFQ hierarchical scheduling support"
|
||||
+ depends on CGROUPS && IOSCHED_BFQ=y
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ Enable hierarchical scheduling in BFQ, using the cgroups
|
||||
+ filesystem interface. The name of the subsystem will be
|
||||
+ bfqio.
|
||||
+
|
||||
choice
|
||||
prompt "Default I/O scheduler"
|
||||
default DEFAULT_CFQ
|
||||
@@ -52,6 +73,16 @@ choice
|
||||
config DEFAULT_CFQ
|
||||
bool "CFQ" if IOSCHED_CFQ=y
|
||||
|
||||
+ config DEFAULT_BFQ
|
||||
+ bool "BFQ" if IOSCHED_BFQ=y
|
||||
+ help
|
||||
+ Selects BFQ as the default I/O scheduler which will be
|
||||
+ used by default for all block devices.
|
||||
+ The BFQ I/O scheduler aims at distributing the bandwidth
|
||||
+ as desired, independently of the disk parameters and with
|
||||
+ any workload. It also tries to guarantee low latency to
|
||||
+ interactive and soft real-time applications.
|
||||
+
|
||||
config DEFAULT_NOOP
|
||||
bool "No-op"
|
||||
|
||||
@@ -61,6 +92,7 @@ config DEFAULT_IOSCHED
|
||||
string
|
||||
default "deadline" if DEFAULT_DEADLINE
|
||||
default "cfq" if DEFAULT_CFQ
|
||||
+ default "bfq" if DEFAULT_BFQ
|
||||
default "noop" if DEFAULT_NOOP
|
||||
|
||||
endmenu
|
||||
diff --git a/block/Makefile b/block/Makefile
|
||||
index a2ce6ac..a0fc06a 100644
|
||||
--- a/block/Makefile
|
||||
+++ b/block/Makefile
|
||||
@@ -18,6 +18,7 @@ obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
|
||||
obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
|
||||
+obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
|
||||
|
||||
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
||||
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o
|
||||
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h
|
||||
index 98c4f9b..13b010d 100644
|
||||
--- a/include/linux/cgroup_subsys.h
|
||||
+++ b/include/linux/cgroup_subsys.h
|
||||
@@ -35,6 +35,10 @@ SUBSYS(net_cls)
|
||||
SUBSYS(blkio)
|
||||
#endif
|
||||
|
||||
+#if IS_ENABLED(CONFIG_CGROUP_BFQIO)
|
||||
+SUBSYS(bfqio)
|
||||
+#endif
|
||||
+
|
||||
#if IS_ENABLED(CONFIG_CGROUP_PERF)
|
||||
SUBSYS(perf_event)
|
||||
#endif
|
||||
--
|
||||
2.1.3
|
||||
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,319 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Copyright (C) 2008-2012 Alexandre Oliva <lxoliva@fsfla.org>
|
||||
|
||||
# This program is part of GNU Linux-libre, a GNU project that
|
||||
# publishes scripts to clean up Linux so as to make it suitable for
|
||||
# use in the GNU Project and in Free System Distributions.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
||||
# USA
|
||||
|
||||
# deblob-main - prepare a GNU Linux-libre tarball out of a non-libre
|
||||
# Linux tarball. It expects the Linux release (mver, say 3.0) as the
|
||||
# first argument, the gnu sub-release (extra) as the second optional
|
||||
# argument, and the patch release (sver, say .13) as an optional third
|
||||
# argument. mver and sver are pasted together to form kver.
|
||||
|
||||
# linux-$kver.tar.bz2 and deblob-$mver must exist in the current
|
||||
# directory, and the line that sets kver and extra in deblob-$mver
|
||||
# must match mver and extra.
|
||||
|
||||
# The resulting tarball is put in linux-libre-$kver-gnu$extra.tar.bz2.
|
||||
# An uncompressed xdelta that produces linux-libre-$kver-gnu$extra.tar
|
||||
# out of linux-$kver.tar is put in linux-libre-$kver-gnu$extra.xdelta.
|
||||
# This xdelta can be distributed to enable third parties to easily
|
||||
# reconstruct the binary tarball starting out of sources downloaded
|
||||
# from kernel.org, but without distributing non-Free Software
|
||||
# yourself, because xdelta (unlike patches) is not reversible: the
|
||||
# removed bits are not present in it at all.
|
||||
|
||||
# xdelta version 3 uses different command line syntax, and it switched
|
||||
# to the more standardized but less efficient vcdiff file format.
|
||||
# This script will also produce a vcdiff file if xdelta3 is present,
|
||||
# and it expects the xdelta program to use the version 1 syntax.
|
||||
|
||||
# To enable you to check the differences between the tarballs, a patch
|
||||
# file is generated in linux-libre-$kver-gnu$extra.patch. This patch
|
||||
# file contains the non-Free blobs, even though in reversed form, so
|
||||
# its distribution is discouraged.
|
||||
|
||||
# The tar files and binary deltas are finally compressed with bzip2,
|
||||
# and optionally with lzip and xz too, if the compressors are
|
||||
# available.
|
||||
|
||||
# At the end, the script attempts to generate a digital signature for
|
||||
# the newly-created tarball. This is the last thing the script does,
|
||||
# so interrupting it at that point to skip the signing won't fail to
|
||||
# do anything else.
|
||||
|
||||
# It is safe to interrupt the script at any other point. When it gets
|
||||
# a ^C (other than during signing), it starts cleaning up all of its
|
||||
# temporary and output files. If you insist, it may leave junk
|
||||
# behind, and then it will refuse to run again before you clean it up
|
||||
# by hand. It takes extra care to avoid overwriting useful files.
|
||||
|
||||
# If deblob-$mver finds any unexpected situation, it will error out,
|
||||
# and then deblob-main will quit. Pass --force to deblob-main, before
|
||||
# any other argument, for deblob-main to ignore any such situations.
|
||||
|
||||
case $1 in
|
||||
--force) force=--force; shift;;
|
||||
*) force=;;
|
||||
esac
|
||||
|
||||
# We don't want e.g. diff output translations to affect us.
|
||||
LC_ALL=C; export LC_ALL
|
||||
LANGUAGE=C; export LANGUAGE
|
||||
|
||||
mver=$1 extra=$2 sver=$3
|
||||
kver=$mver$sver gnu=gnu$extra
|
||||
deblob= dir=`echo "$0" | sed 's,[^/]*$,,;s,^$,.,;s,/*$,,'`
|
||||
|
||||
if test -f linux-$kver.tar; then
|
||||
zext=tar zcmd=
|
||||
elif test -f linux-$kver.tar.bz2; then
|
||||
zext=tar.bz2 zcmd=bunzip2
|
||||
elif test -f linux-$kver.tar.xz; then
|
||||
zext=tar.xz zcmd=unxz
|
||||
elif test -f linux-$kver.tar.lz; then
|
||||
zext=tar.lz zcmd="lzip -d"
|
||||
elif test -f linux-$kver.tar.gz; then
|
||||
zext=tar.gz zcmd=gunzip
|
||||
elif test -f linux-$kver.tgz; then
|
||||
zext=tgz zcmd=gunzip
|
||||
else
|
||||
echo linux-$kver.tar not found, tried .bz2, .xz, .lz, .gz and .tgz too >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f deblob-$mver; then
|
||||
deblob=deblob-$mver
|
||||
elif test -f deblob; then
|
||||
deblob=deblob
|
||||
elif test -f $dir/deblob-$mver; then
|
||||
cp $dir/deblob-$mver deblob
|
||||
deblob=deblob
|
||||
else
|
||||
echo deblob does not exist >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
x1="kver=$mver extra=$extra"
|
||||
x2=`grep "^kver=[^ ]* extra=" $deblob`
|
||||
if test "$x1" = "$x2"; then
|
||||
:
|
||||
else
|
||||
echo deblob script does not match command-line arguments >&2
|
||||
echo expected: $x1 >&2
|
||||
echo found : $x2 >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cleanup=
|
||||
|
||||
for f in \
|
||||
linux-libre-$kver-$gnu.tar.bz2 \
|
||||
linux-libre-$kver-$gnu.tar.bz2.asc \
|
||||
linux-libre-$kver-$gnu.tar.bz2.sign \
|
||||
linux-libre-$kver-$gnu.tar.xz \
|
||||
linux-libre-$kver-$gnu.tar.xz.asc \
|
||||
linux-libre-$kver-$gnu.tar.xz.sign \
|
||||
linux-libre-$kver-$gnu.tar.lz \
|
||||
linux-libre-$kver-$gnu.tar.lz.asc \
|
||||
linux-libre-$kver-$gnu.tar.lz.sign \
|
||||
linux-libre-$kver-$gnu.tar \
|
||||
linux-libre-$kver-$gnu.tar.asc \
|
||||
linux-libre-$kver-$gnu.tar.sign \
|
||||
linux-libre-$kver-$gnu.patch \
|
||||
linux-libre-$kver-$gnu.log \
|
||||
linux-libre-$kver-$gnu.vcdiff \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2 \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2.sign \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz.sign \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz.sign \
|
||||
linux-libre-$kver-$gnu.xdelta \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2 \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2.sign \
|
||||
linux-libre-$kver-$gnu.xdelta.xz \
|
||||
linux-libre-$kver-$gnu.xdelta.xz.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.xz.sign \
|
||||
linux-libre-$kver-$gnu.xdelta.lz \
|
||||
linux-libre-$kver-$gnu.xdelta.lz.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.lz.sign \
|
||||
; do
|
||||
if test -f $f; then
|
||||
echo $f already exists >&2
|
||||
exit 1
|
||||
fi
|
||||
cleanup="$cleanup $f"
|
||||
done
|
||||
|
||||
for d in \
|
||||
linux-$kver \
|
||||
linux-libre-$kver-$gnu \
|
||||
orig-linux-$kver \
|
||||
; do
|
||||
if test -d $d; then
|
||||
echo $d already exists >&2
|
||||
exit 1
|
||||
fi
|
||||
cleanup="$cleanup $d"
|
||||
done
|
||||
|
||||
if test -f $dir/deblob-$kver; then
|
||||
if cmp $dir/deblob-$kver $deblob; then
|
||||
:
|
||||
else
|
||||
echo $dir/deblob-$kver and $deblob are different >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ! -f deblob-check; then
|
||||
if test -f $dir/deblob-check; then
|
||||
cp $dir/deblob-check deblob-check
|
||||
fi
|
||||
else
|
||||
if test -f $dir/deblob-check; then
|
||||
if cmp $dir/deblob-check deblob-check; then
|
||||
:
|
||||
else
|
||||
echo $dir/deblob-check and deblob-check are different >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
trap 'status=$?; echo cleaning up...; rm -rf $cleanup; (exit $status); exit' 0 1 2 15
|
||||
|
||||
set -e
|
||||
|
||||
if test -n "$zcmd"; then
|
||||
echo Uncompressing linux-$kver.$zext into linux-$kver.tar
|
||||
rm -rf linux-$kver.tar
|
||||
cleanup="$cleanup linux-$kver.tar"
|
||||
$zcmd < linux-$kver.$zext > linux-$kver.tar
|
||||
fi
|
||||
|
||||
echo Extracting linux-$kver.tar into linux-$kver
|
||||
rm -rf linux-$kver
|
||||
tar -xf linux-$kver.tar
|
||||
rm -rf linux-libre-$kver-$gnu linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Copying linux-$kver to linux-libre-$kver-$gnu
|
||||
cp linux-$kver.tar linux-libre-$kver-$gnu.tar
|
||||
cp -lR linux-$kver/. linux-libre-$kver-$gnu
|
||||
|
||||
rm -f linux-libre-$kver-$gnu.log linux-libre-$kver-$gnu.log.tmp
|
||||
echo Deblobbing within linux-libre-$kver-$gnu, saving output to linux-libre-$kver-$gnu.log
|
||||
# We can't just pipe deblob into tee, for then we fail to detect
|
||||
# error conditions. Use file renaming to tell whether we succeeded.
|
||||
if (cd linux-libre-$kver-$gnu && /bin/sh ../$deblob $force) 2>&1; then
|
||||
mv linux-libre-$kver-$gnu.log.tmp linux-libre-$kver-$gnu.log
|
||||
fi | tee linux-libre-$kver-$gnu.log.tmp
|
||||
if test ! -f linux-libre-$kver-$gnu.log; then
|
||||
mv linux-libre-$kver-$gnu.log.tmp linux-libre-$kver-$gnu.log
|
||||
echo $deblob failed, aborting >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -f linux-libre-$kver-$gnu.patch
|
||||
|
||||
# Do not copy these scripts for now, deblob-check regards itself as a blob.
|
||||
# cp -p $0 $deblob deblob-check linux-libre-$kver-$gnu
|
||||
|
||||
echo Generating linux-libre-$kver-$gnu.patch
|
||||
diff -druN linux-$kver linux-libre-$kver-$gnu > linux-libre-$kver-$gnu.patch || :
|
||||
|
||||
echo Removing removed or modified files from linux-libre-$kver-$gnu.tar
|
||||
diff -rq linux-$kver linux-libre-$kver-$gnu |
|
||||
sed -n "
|
||||
s,^Only in \\(linux-$kver\\(/.*\\)\\?\\): \\(.*\\),\1/\3,p;
|
||||
s,^Files \\(linux-$kver\\)/\\(.*\\) and linux-libre-$kver-$gnu/\\2 differ,\\1/\\2,p;
|
||||
" |
|
||||
xargs tar --delete -f linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Adding modified or added files to linux-libre-$kver-$gnu.tar
|
||||
rm -rf orig-linux-$kver
|
||||
mv linux-$kver orig-linux-$kver
|
||||
mv linux-libre-$kver-$gnu linux-$kver
|
||||
diff -rq orig-linux-$kver linux-$kver |
|
||||
sed -n "
|
||||
s,^Files orig-\\(linux-$kver/.*\\) and \\1 differ,\\1,p;
|
||||
s,^Only in \\(linux-$kver\\(/.*\\)\\?\\): \\(.*\\),\\1/\\3,p;
|
||||
" |
|
||||
xargs tar --append -f linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Wiping out extracted trees
|
||||
rm -rf linux-$kver orig-linux-$kver
|
||||
|
||||
echo Creating vcdiff between linux-$kver.tar and linux-libre-$kver-$gnu.tar
|
||||
xdelta3 -e -9 -S djw -s linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.vcdiff || : # don't fail if xdelta3 is not present
|
||||
|
||||
echo Creating xdelta between linux-$kver.tar and linux-libre-$kver-$gnu.tar
|
||||
xdelta delta -0 linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.xdelta || : # xdelta returns nonzero on success
|
||||
|
||||
cleanup="linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.vcdiff linux-libre-$kver-$gnu.xdelta"
|
||||
|
||||
echo Compressing binary deltas and linux-libre-$kver-$gnu.tar
|
||||
rm -f linux-$kver.tar
|
||||
if test -f linux-libre-$kver-$gnu.vcdiff; then
|
||||
bzip2 -k9 linux-libre-$kver-$gnu.vcdiff
|
||||
xz -k9 linux-libre-$kver-$gnu.vcdiff || :
|
||||
lzip -k9 linux-libre-$kver-$gnu.vcdiff || :
|
||||
fi
|
||||
if test -f linux-libre-$kver-$gnu.xdelta; then
|
||||
bzip2 -k9 linux-libre-$kver-$gnu.xdelta
|
||||
xz -k9 linux-libre-$kver-$gnu.xdelta || :
|
||||
lzip -k9 linux-libre-$kver-$gnu.xdelta || :
|
||||
fi
|
||||
bzip2 -k9 linux-libre-$kver-$gnu.tar
|
||||
xz -k9 linux-libre-$kver-$gnu.tar || :
|
||||
lzip -k9 linux-libre-$kver-$gnu.tar || :
|
||||
|
||||
echo Done except for signing, feel free to interrupt
|
||||
for f in \
|
||||
linux-libre-$kver-$gnu.tar \
|
||||
linux-libre-$kver-$gnu.tar.bz2 \
|
||||
linux-libre-$kver-$gnu.tar.xz \
|
||||
linux-libre-$kver-$gnu.tar.lz \
|
||||
linux-libre-$kver-$gnu.vcdiff \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2 \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz \
|
||||
linux-libre-$kver-$gnu.xdelta \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2 \
|
||||
linux-libre-$kver-$gnu.xdelta.xz \
|
||||
linux-libre-$kver-$gnu.xdelta.lz \
|
||||
; do
|
||||
if test -f $f; then
|
||||
gpg -a --detach-sign $f
|
||||
mv $f.asc $f.sign
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f $cleanup
|
||||
cleanup=
|
||||
trap 'status=$?; (exit $status); exit' 0 1 2 15
|
||||
|
||||
echo All set, please review linux-libre-$kver-$gnu.patch
|
||||
|
||||
exit 0
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
*.gen.S
|
||||
*.fw
|
||||
*.bin
|
||||
*.csp
|
||||
*.dsp
|
||||
ihex2fw
|
||||
|
|
@ -1,251 +0,0 @@
|
|||
#
|
||||
# kbuild file for firmware/
|
||||
#
|
||||
|
||||
# Create $(fwabs) from $(CONFIG_EXTRA_FIRMWARE_DIR) -- if it doesn't have a
|
||||
# leading /, it's relative to $(srctree).
|
||||
fwdir := $(subst ",,$(CONFIG_EXTRA_FIRMWARE_DIR))
|
||||
fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
|
||||
|
||||
fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE))
|
||||
|
||||
# There are three cases to care about:
|
||||
# 1. Building kernel with CONFIG_FIRMWARE_IN_KERNEL=y -- $(fw-shipped-y) should
|
||||
# include the firmware files to include, according to .config
|
||||
# 2. 'make modules_install', which will install firmware for modules, and
|
||||
# _also_ for the in-kernel drivers when CONFIG_FIRMWARE_IN_KERNEL=n
|
||||
# 3. 'make firmware_install', which installs all firmware, unconditionally.
|
||||
|
||||
# For the former two cases we want $(fw-shipped-y) and $(fw-shipped-m) to be
|
||||
# accurate. In the latter case it doesn't matter -- it'll use $(fw-shipped-all).
|
||||
# But be aware that the config file might not be included at all.
|
||||
|
||||
ifdef CONFIG_ACENIC_OMIT_TIGON_I
|
||||
acenic-objs := $(DEBLOBBED)
|
||||
fw-shipped- += $(DEBLOBBED)
|
||||
else
|
||||
acenic-objs := $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_ACENIC) += $(acenic-objs)
|
||||
fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
|
||||
fw-shipped-$(CONFIG_ATM_AMBASSADOR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2X) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CASSINI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CHELSIO_T3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_MGA) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_R128) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_RADEON) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin
|
||||
fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_E100) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_MYRI_SBUS) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_PCNET) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C589) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C574) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SERIAL_8250_CS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_SMC91C92) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_ADVANSYS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGIC_1280) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGICPTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_INFINIBAND_QIB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_KORG1212) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_MAESTRO3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_SB16_CSP) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_YMFPCI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_WAVEFRONT) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TEHUTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TIGON3) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TYPHOON) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI26) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI62) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_KAWETH) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
ifdef CONFIG_FIRMWARE_IN_KERNEL
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_MPR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA18X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QW) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XA) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49WLC) += $(DEBLOBBED)
|
||||
else
|
||||
fw-shipped- += $(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_TI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT_TI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_WHITEHEAT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
# $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_PDA) += keyspan_pda/keyspan_pda.fw
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_XIRCOM) += keyspan_pda/xircom_pgs.fw
|
||||
fw-shipped-$(CONFIG_USB_VICAM) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_VIDEO_CPIA2) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_YAM) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
|
||||
fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-)
|
||||
|
||||
# Directories which we _might_ need to create, so we have a rule for them.
|
||||
firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all))))
|
||||
|
||||
quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@)
|
||||
cmd_mkdir = mkdir -p $@
|
||||
|
||||
quiet_cmd_ihex = IHEX $@
|
||||
cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@
|
||||
|
||||
quiet_cmd_ihex2fw = IHEX2FW $@
|
||||
cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@
|
||||
|
||||
quiet_cmd_h16tofw = H16TOFW $@
|
||||
cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@
|
||||
|
||||
quiet_cmd_fwbin = MK_FW $@
|
||||
cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \
|
||||
FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst \
|
||||
firmware/%.gen.S,%,$@))))"; \
|
||||
ASM_WORD=$(if $(CONFIG_64BIT),.quad,.long); \
|
||||
ASM_ALIGN=$(if $(CONFIG_64BIT),3,2); \
|
||||
PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \
|
||||
echo "/* Generated by firmware/Makefile */" > $@;\
|
||||
echo " .section .rodata" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_bin:" >>$@;\
|
||||
echo " .incbin \"$(2)\"" >>$@;\
|
||||
echo "_fw_end:" >>$@;\
|
||||
echo " .section .rodata.str,\"aMS\",$${PROGBITS},1" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_name:" >>$@;\
|
||||
echo " .string \"$$FWNAME\"" >>$@;\
|
||||
echo " .section .builtin_fw,\"a\",$${PROGBITS}" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_name" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_bin" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_end - _fw_$${FWSTR}_bin" >>$@;
|
||||
|
||||
# One of these files will change, or come into existence, whenever
|
||||
# the configuration changes between 32-bit and 64-bit. The .S files
|
||||
# need to change when that happens.
|
||||
wordsize_deps := $(wildcard include/config/64bit.h include/config/32bit.h \
|
||||
include/config/ppc32.h include/config/ppc64.h \
|
||||
include/config/superh32.h include/config/superh64.h \
|
||||
include/config/x86_32.h include/config/x86_64.h)
|
||||
|
||||
# Workaround for make < 3.81, where .SECONDEXPANSION doesn't work.
|
||||
# It'll end up depending on these targets, so make them a PHONY rule which
|
||||
# depends on _all_ the directories in $(firmware-dirs), and it'll work out OK.
|
||||
PHONY += $(objtree)/$$(%) $(objtree)/$(obj)/$$(%)
|
||||
$(objtree)/$$(%) $(objtree)/$(obj)/$$(%): $(firmware-dirs)
|
||||
@true
|
||||
|
||||
# For the $$(dir %) trick, where we need % to be expanded first.
|
||||
.SECONDEXPANSION:
|
||||
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-shipped-y)): %: $(wordsize_deps) \
|
||||
| $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(patsubst %.gen.S,%,$@))
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) \
|
||||
include/config/extra/firmware/dir.h | $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(fwabs)/$(patsubst $(obj)/%.gen.S,%,$@))
|
||||
|
||||
# The .o files depend on the binaries directly; the .S files don't.
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-shipped-y)): %.gen.o: %
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/%
|
||||
|
||||
# .ihex is used just as a simple way to hold binary files in a source tree
|
||||
# where binaries are frowned upon. They are directly converted with objcopy.
|
||||
$(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex)
|
||||
|
||||
# Don't depend on ihex2fw if we're installing and it already exists.
|
||||
# Putting it after | in the dependencies doesn't seem sufficient when
|
||||
# we're installing after a cross-compile, because ihex2fw has dependencies
|
||||
# on stuff like /usr/lib/gcc/ppc64-redhat-linux/4.3.0/include/stddef.h and
|
||||
# thus wants to be rebuilt. Which it can't be, if the prebuilt kernel tree
|
||||
# is exported read-only for someone to run 'make install'.
|
||||
ifeq ($(INSTALL):$(wildcard $(obj)/ihex2fw),install:$(obj)/ihex2fw)
|
||||
ihex2fw_dep :=
|
||||
else
|
||||
ihex2fw_dep := $(obj)/ihex2fw
|
||||
endif
|
||||
|
||||
# .HEX is also Intel HEX, but where the offset and length in each record
|
||||
# is actually meaningful, because the firmware has to be loaded in a certain
|
||||
# order rather than as a single binary blob. Thus, we convert them into our
|
||||
# more compact binary representation of ihex records (<linux/ihex.h>)
|
||||
$(obj)/%.fw: $(obj)/%.HEX $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex2fw)
|
||||
|
||||
# .H16 is our own modified form of Intel HEX, with 16-bit length for records.
|
||||
$(obj)/%.fw: $(obj)/%.H16 $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,h16tofw)
|
||||
|
||||
$(firmware-dirs):
|
||||
$(call cmd,mkdir)
|
||||
|
||||
obj-y += $(patsubst %,%.gen.o, $(fw-external-y))
|
||||
obj-$(CONFIG_FIRMWARE_IN_KERNEL) += $(patsubst %,%.gen.o, $(fw-shipped-y))
|
||||
|
||||
# Remove .S files and binaries created from ihex
|
||||
# (during 'make clean' .config isn't included so they're all in $(fw-shipped-))
|
||||
targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \
|
||||
$(shell find $(obj) -name \*.gen.S 2>/dev/null))
|
||||
|
||||
# Without this, built-in.o won't be created when it's empty, and the
|
||||
# final vmlinux link will fail.
|
||||
obj-n := dummy
|
||||
|
||||
hostprogs-y := ihex2fw
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
|
||||
DO NOT ADD FIRMWARE TO THIS DIRECTORY.
|
||||
======================================
|
||||
|
||||
This directory is only here to contain firmware images extracted from old
|
||||
device drivers which predate the common use of request_firmware().
|
||||
|
||||
As we update those drivers to use request_firmware() and keep a clean
|
||||
separation between code and firmware, we put the extracted firmware
|
||||
here.
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
Ben Hutchings <ben@decadent.org.uk>
|
||||
|
||||
Your commit should include an update to the WHENCE file clearly
|
||||
identifying the licence under which the firmware is available, and
|
||||
that it is redistributable. If the licence is long and involved, it's
|
||||
permitted to include it in a separate file and refer to it from the
|
||||
WHENCE file.
|
||||
|
||||
Ideally, your commit should contain a Signed-Off-By: from someone
|
||||
authoritative on the licensing of the firmware in question (i.e. from
|
||||
within the company that owns the code).
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
**********
|
||||
* WHENCE *
|
||||
**********
|
||||
|
||||
This file attempts to document the origin and licensing information,
|
||||
if known, for each piece of firmware distributed for use with the Linux
|
||||
kernel.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: keyspan_pda -- USB Keyspan PDA single-port serial device
|
||||
|
||||
File: keyspan_pda/keyspan_pda.fw
|
||||
Source: keyspan_pda/keyspan_pda.S
|
||||
|
||||
File: keyspan_pda/xircom_pgs.fw
|
||||
Source: keyspan_pda/xircom_pgs.S
|
||||
|
||||
Licence: GPLv2+
|
||||
|
||||
Compiled from original 8051 source into Intel HEX, used in our binary ihex form.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: ATARI_DSP56K - Atari DSP56k support
|
||||
|
||||
File: dsp56k/bootstrap.bin
|
||||
Source: dsp56k/bootstrap.asm
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
DSP56001 assembler, possibly buildable with a56 from
|
||||
http://www.zdomain.com/a56.html
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: DVB AV7110 -- AV7110 cards
|
||||
|
||||
File: av7110/bootcode.bin
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
ARM assembly source code available at http://www.linuxtv.org/downloads/firmware/Boot.S
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*
|
||||
Madge Ambassador ATM Adapter microcode.
|
||||
Copyright (C) 1995-1999 Madge Networks Ltd.
|
||||
|
||||
This microcode data is placed under the terms of the GNU General
|
||||
Public License. The GPL is contained in /usr/doc/copyright/GPL on a
|
||||
Debian system and in the file COPYING in the Linux kernel source.
|
||||
|
||||
We would prefer you not to distribute modified versions without
|
||||
consultation and not to ask for assembly/other microcode source.
|
||||
*/
|
||||
|
||||
First record is start address in a __be32.
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
Boot.S: boot loader for Siemens DVB-S card
|
||||
|
||||
Copyright (C) 2001 Convergence integrated media GmbH
|
||||
Written by Ralph Metzler
|
||||
<rjkm@convergence.de>
|
||||
Copyright (C) 2006 Matthieu CASTET <castet.mattheiu@free.fr>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
check AV711x_3_1.pdf for some hardware infos
|
||||
build it with :
|
||||
$ cc -mbig-endian -c Boot.S
|
||||
$ ld -Ttext 0x2c000000 -EB -o Boot Boot.o
|
||||
$ objcopy -Obinary Boot
|
||||
*/
|
||||
|
||||
.text
|
||||
.align
|
||||
.globl _start
|
||||
_start:
|
||||
b reset // reset vector
|
||||
movs pc, r14 // undefined
|
||||
subs pc, r14, #4 // SWI
|
||||
subs pc, r14, #4 // prefetch abort
|
||||
subs pc, r14, #8 // data abort
|
||||
subs pc, r14, #4 // reserved
|
||||
subs pc, r14, #4 // IRQ
|
||||
subs pc, r14, #4 // FIQ
|
||||
|
||||
.word tbl // table needed by firmware ROM
|
||||
tbl: .word (endtbl - tbl)
|
||||
.word 0
|
||||
.word conf
|
||||
endtbl: .word 0
|
||||
conf: .word 0xa5a55a5a
|
||||
.word 0x001f1555
|
||||
.word 0x00000009
|
||||
|
||||
reset: ldr r13, buffer
|
||||
ldr r4, flag
|
||||
mov r0, #0
|
||||
str r0, [r4]
|
||||
str r0, [r4, #4]
|
||||
|
||||
ldr r1, wait_address
|
||||
ldr r2, flag_address
|
||||
ldr r3, sram
|
||||
|
||||
copycode: // copy the code HW Sram
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
cmp r1, r2
|
||||
ble copycode
|
||||
ldr pc, sram // jump to the copied code
|
||||
|
||||
wait: ldrh r1, [r4] // wait for flag!=0
|
||||
cmp r1, #0
|
||||
beq wait
|
||||
|
||||
mov r1, r13 // buffer address
|
||||
ldr r3, [r4,#4] // destaddr
|
||||
|
||||
ldrh r2, [r4,#2] // get segment length
|
||||
add r2, r2, #63 // round length to next 64 bytes
|
||||
movs r2, r2, lsr #6 // and divide by 64
|
||||
moveq r0, #2 // if 0, set flag to 2, else signal
|
||||
strh r0, [r4] // that buffer is accepted by setting to 0
|
||||
beq wait
|
||||
|
||||
copyloop:
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
subs r2, r2, #1
|
||||
bne copyloop
|
||||
|
||||
eor r13, r13, #0x1400 // switch to other buffer
|
||||
b wait
|
||||
|
||||
// flag is stored at 0x2c0003f8, length at 0x2c0003fa,
|
||||
// destaddr at 0x2c0003fc
|
||||
|
||||
flag: .word 0x2c0003f8
|
||||
|
||||
|
||||
// buffer 1 is at 0x2c000400, buffer 2 at 0x2c001000
|
||||
|
||||
buffer: .word 0x2c000400
|
||||
|
||||
sram: .word 0x9e000800
|
||||
wait_address: .word wait
|
||||
flag_address: .word flag
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
:10000000EA00000EE1B0F00EE25EF004E25EF00401
|
||||
:10001000E25EF008E25EF004E25EF004E25EF0040C
|
||||
:100020002C0000240000000C000000002C00003414
|
||||
:1000300000000000A5A55A5A001F15550000000930
|
||||
:10004000E59FD07CE59F4074E3A00000E5840000BC
|
||||
:10005000E5840004E59F1070E59F2070E59F306403
|
||||
:10006000E8B11FE0E8A31FE0E1510002DAFFFFFB67
|
||||
:10007000E59FF050E1D410B0E35100000AFFFFFC0F
|
||||
:10008000E1A0100DE5943004E1D420B2E282203FDB
|
||||
:10009000E1B0232203A00002E1C400B00AFFFFF494
|
||||
:1000A000E8B11FE0E8A31FE0E8B11FE0E8A31FE00C
|
||||
:1000B000E25220011AFFFFF9E22DDB05EAFFFFEC17
|
||||
:1000C0002C0003F82C0004009E0008002C00007493
|
||||
:0400D0002C0000C040
|
||||
:00000001FF
|
||||
|
|
@ -1 +0,0 @@
|
|||
*.cis
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
||||
Copyright 2001, STMicrolectronics, Inc.
|
||||
Contact: steve.miller@st.com
|
||||
|
||||
Description:
|
||||
This file contains patch data for the CPiA2 (stv0672) VP4.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
; Author: Frederik Noring <noring@nocrew.org>
|
||||
;
|
||||
; This file is subject to the terms and conditions of the GNU General Public
|
||||
; License. See the file COPYING in the main directory of this archive
|
||||
; for more details.
|
||||
|
||||
; DSP56k loader
|
||||
|
||||
; Host Interface
|
||||
M_BCR EQU $FFFE ; Port A Bus Control Register
|
||||
M_PBC EQU $FFE0 ; Port B Control Register
|
||||
M_PBDDR EQU $FFE2 ; Port B Data Direction Register
|
||||
M_PBD EQU $FFE4 ; Port B Data Register
|
||||
M_PCC EQU $FFE1 ; Port C Control Register
|
||||
M_PCDDR EQU $FFE3 ; Port C Data Direction Register
|
||||
M_PCD EQU $FFE5 ; Port C Data Register
|
||||
|
||||
M_HCR EQU $FFE8 ; Host Control Register
|
||||
M_HSR EQU $FFE9 ; Host Status Register
|
||||
M_HRX EQU $FFEB ; Host Receive Data Register
|
||||
M_HTX EQU $FFEB ; Host Transmit Data Register
|
||||
|
||||
; SSI, Synchronous Serial Interface
|
||||
M_RX EQU $FFEF ; Serial Receive Data Register
|
||||
M_TX EQU $FFEF ; Serial Transmit Data Register
|
||||
M_CRA EQU $FFEC ; SSI Control Register A
|
||||
M_CRB EQU $FFED ; SSI Control Register B
|
||||
M_SR EQU $FFEE ; SSI Status Register
|
||||
M_TSR EQU $FFEE ; SSI Time Slot Register
|
||||
|
||||
; Exception Processing
|
||||
M_IPR EQU $FFFF ; Interrupt Priority Register
|
||||
|
||||
org P:$0
|
||||
start jmp <$40
|
||||
|
||||
org P:$40
|
||||
; ; Zero 16384 DSP X and Y words
|
||||
; clr A #0,r0
|
||||
; clr B #0,r4
|
||||
; do #64,<_block1
|
||||
; rep #256
|
||||
; move A,X:(r0)+ B,Y:(r4)+
|
||||
;_block1 ; Zero (32768-512) Program words
|
||||
; clr A #512,r0
|
||||
; do #126,<_block2
|
||||
; rep #256
|
||||
; move A,P:(r0)+
|
||||
;_block2
|
||||
|
||||
; Copy DSP program control
|
||||
move #real,r0
|
||||
move #upload,r1
|
||||
do #upload_end-upload,_copy
|
||||
movem P:(r0)+,x0
|
||||
movem x0,P:(r1)+
|
||||
_copy movep #4,X:<<M_HCR
|
||||
movep #$c00,X:<<M_IPR
|
||||
and #<$fe,mr
|
||||
jmp upload
|
||||
|
||||
real
|
||||
org P:$7ea9
|
||||
upload
|
||||
movep #1,X:<<M_PBC
|
||||
movep #0,X:<<M_BCR
|
||||
|
||||
next jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,A
|
||||
move #>3,x0
|
||||
cmp x0,A #>1,x0
|
||||
jeq <$0
|
||||
_get_address
|
||||
jclr #0,X:<<M_HSR,_get_address
|
||||
movep X:<<M_HRX,r0
|
||||
_get_length
|
||||
jclr #0,X:<<M_HSR,_get_length
|
||||
movep X:<<M_HRX,y0
|
||||
cmp x0,A #>2,x0
|
||||
jeq load_X
|
||||
cmp x0,A
|
||||
jeq load_Y
|
||||
|
||||
load_P do y0,_load_P
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,P:(r0)+
|
||||
_load_P jmp next
|
||||
load_X do y0,_load_X
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,X:(r0)+
|
||||
_load_X jmp next
|
||||
load_Y do y0,_load_Y
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,Y:(r0)+
|
||||
_load_Y jmp next
|
||||
|
||||
upload_end
|
||||
end
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
:100000000C004000000000000000000000000000A4
|
||||
:1000100000000000000000000000000000000000E0
|
||||
:1000200000000000000000000000000000000000D0
|
||||
:1000300000000000000000000000000000000000C0
|
||||
:1000400000000000000000000000000000000000B0
|
||||
:1000500000000000000000000000000000000000A0
|
||||
:100060000000000000000000000000000000000090
|
||||
:100070000000000000000000000000000000000080
|
||||
:100080000000000000000000000000000000000070
|
||||
:100090000000000000000000000000000000000060
|
||||
:1000A0000000000000000000000000000000000050
|
||||
:1000B0000000000000000000000000000000000040
|
||||
:1000C00060F40000004F61F400007EA9062E80005D
|
||||
:1000D000004707D88407598408F4A800000408F4EE
|
||||
:1000E000BF000C0000FEB80AF080007EA908F4A052
|
||||
:1000F00000000108F4BE0000000AA980007EAD08DF
|
||||
:100100004E2B44F40000000344F4450000010EA00F
|
||||
:10011000000AA980007EB508502B0AA980007EB88D
|
||||
:1001200008462B44F4450000020AF0AA007EC920CC
|
||||
:1001300000450AF0AA007ED006C600007EC60AA9C5
|
||||
:1001400080007EC408586B0AF080007EAD06C600B1
|
||||
:10015000007ECD0AA980007ECB0858AB0AF0800053
|
||||
:100160007EAD06C600007ED40AA980007ED2085863
|
||||
:07017000EB0AF080007EADF8
|
||||
:00000001FF
|
||||
/* DSP56001 bootstrap code */
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport Binary Image (for TI based products)
|
||||
//* Generated by TIBin2C v2.00 (watchport)
|
||||
//* Copyright (C) 2001 Inside Out Networks, All rights reserved.
|
||||
//**************************************************************
|
||||
|
|
@ -1,280 +0,0 @@
|
|||
/*
|
||||
* Parser/loader for IHEX formatted data.
|
||||
*
|
||||
* Copyright © 2008 David Woodhouse <dwmw2@infradead.org>
|
||||
* Copyright © 2005 Jan Harkes <jaharkes@cs.cmu.edu>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#define _GNU_SOURCE
|
||||
#include <getopt.h>
|
||||
|
||||
|
||||
struct ihex_binrec {
|
||||
struct ihex_binrec *next; /* not part of the real data structure */
|
||||
uint32_t addr;
|
||||
uint16_t len;
|
||||
uint8_t data[];
|
||||
};
|
||||
|
||||
/**
|
||||
* nybble/hex are little helpers to parse hexadecimal numbers to a byte value
|
||||
**/
|
||||
static uint8_t nybble(const uint8_t n)
|
||||
{
|
||||
if (n >= '0' && n <= '9') return n - '0';
|
||||
else if (n >= 'A' && n <= 'F') return n - ('A' - 10);
|
||||
else if (n >= 'a' && n <= 'f') return n - ('a' - 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint8_t hex(const uint8_t *data, uint8_t *crc)
|
||||
{
|
||||
uint8_t val = (nybble(data[0]) << 4) | nybble(data[1]);
|
||||
*crc += val;
|
||||
return val;
|
||||
}
|
||||
|
||||
static int process_ihex(uint8_t *data, ssize_t size);
|
||||
static void file_record(struct ihex_binrec *record);
|
||||
static int output_records(int outfd);
|
||||
|
||||
static int sort_records = 0;
|
||||
static int wide_records = 0;
|
||||
static int include_jump = 0;
|
||||
|
||||
static int usage(void)
|
||||
{
|
||||
fprintf(stderr, "ihex2fw: Convert ihex files into binary "
|
||||
"representation for use by Linux kernel\n");
|
||||
fprintf(stderr, "usage: ihex2fw [<options>] <src.HEX> <dst.fw>\n");
|
||||
fprintf(stderr, " -w: wide records (16-bit length)\n");
|
||||
fprintf(stderr, " -s: sort records by address\n");
|
||||
fprintf(stderr, " -j: include records for CS:IP/EIP address\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int infd, outfd;
|
||||
struct stat st;
|
||||
uint8_t *data;
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "wsj")) != -1) {
|
||||
switch (opt) {
|
||||
case 'w':
|
||||
wide_records = 1;
|
||||
break;
|
||||
case 's':
|
||||
sort_records = 1;
|
||||
break;
|
||||
case 'j':
|
||||
include_jump = 1;
|
||||
break;
|
||||
return usage();
|
||||
}
|
||||
}
|
||||
|
||||
if (optind + 2 != argc)
|
||||
return usage();
|
||||
|
||||
if (!strcmp(argv[optind], "-"))
|
||||
infd = 0;
|
||||
else
|
||||
infd = open(argv[optind], O_RDONLY);
|
||||
if (infd == -1) {
|
||||
fprintf(stderr, "Failed to open source file: %s",
|
||||
strerror(errno));
|
||||
return usage();
|
||||
}
|
||||
if (fstat(infd, &st)) {
|
||||
perror("stat");
|
||||
return 1;
|
||||
}
|
||||
data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0);
|
||||
if (data == MAP_FAILED) {
|
||||
perror("mmap");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[optind+1], "-"))
|
||||
outfd = 1;
|
||||
else
|
||||
outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
|
||||
if (outfd == -1) {
|
||||
fprintf(stderr, "Failed to open destination file: %s",
|
||||
strerror(errno));
|
||||
return usage();
|
||||
}
|
||||
if (process_ihex(data, st.st_size))
|
||||
return 1;
|
||||
|
||||
return output_records(outfd);
|
||||
}
|
||||
|
||||
static int process_ihex(uint8_t *data, ssize_t size)
|
||||
{
|
||||
struct ihex_binrec *record;
|
||||
uint32_t offset = 0;
|
||||
uint32_t data32;
|
||||
uint8_t type, crc = 0, crcbyte = 0;
|
||||
int i, j;
|
||||
int line = 1;
|
||||
int len;
|
||||
|
||||
i = 0;
|
||||
next_record:
|
||||
/* search for the start of record character */
|
||||
while (i < size) {
|
||||
if (data[i] == '\n') line++;
|
||||
if (data[i++] == ':') break;
|
||||
}
|
||||
|
||||
/* Minimum record length would be about 10 characters */
|
||||
if (i + 10 > size) {
|
||||
fprintf(stderr, "Can't find valid record at line %d\n", line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
len = hex(data + i, &crc); i += 2;
|
||||
if (wide_records) {
|
||||
len <<= 8;
|
||||
len += hex(data + i, &crc); i += 2;
|
||||
}
|
||||
record = malloc((sizeof (*record) + len + 3) & ~3);
|
||||
if (!record) {
|
||||
fprintf(stderr, "out of memory for records\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(record, 0, (sizeof(*record) + len + 3) & ~3);
|
||||
record->len = len;
|
||||
|
||||
/* now check if we have enough data to read everything */
|
||||
if (i + 8 + (record->len * 2) > size) {
|
||||
fprintf(stderr, "Not enough data to read complete record at line %d\n",
|
||||
line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
record->addr = hex(data + i, &crc) << 8; i += 2;
|
||||
record->addr |= hex(data + i, &crc); i += 2;
|
||||
type = hex(data + i, &crc); i += 2;
|
||||
|
||||
for (j = 0; j < record->len; j++, i += 2)
|
||||
record->data[j] = hex(data + i, &crc);
|
||||
|
||||
/* check CRC */
|
||||
crcbyte = hex(data + i, &crc); i += 2;
|
||||
if (crc != 0) {
|
||||
fprintf(stderr, "CRC failure at line %d: got 0x%X, expected 0x%X\n",
|
||||
line, crcbyte, (unsigned char)(crcbyte-crc));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Done reading the record */
|
||||
switch (type) {
|
||||
case 0:
|
||||
/* old style EOF record? */
|
||||
if (!record->len)
|
||||
break;
|
||||
|
||||
record->addr += offset;
|
||||
file_record(record);
|
||||
goto next_record;
|
||||
|
||||
case 1: /* End-Of-File Record */
|
||||
if (record->addr || record->len) {
|
||||
fprintf(stderr, "Bad EOF record (type 01) format at line %d",
|
||||
line);
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: /* Extended Segment Address Record (HEX86) */
|
||||
case 4: /* Extended Linear Address Record (HEX386) */
|
||||
if (record->addr || record->len != 2) {
|
||||
fprintf(stderr, "Bad HEX86/HEX386 record (type %02X) at line %d\n",
|
||||
type, line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* We shouldn't really be using the offset for HEX86 because
|
||||
* the wraparound case is specified quite differently. */
|
||||
offset = record->data[0] << 8 | record->data[1];
|
||||
offset <<= (type == 2 ? 4 : 16);
|
||||
goto next_record;
|
||||
|
||||
case 3: /* Start Segment Address Record */
|
||||
case 5: /* Start Linear Address Record */
|
||||
if (record->addr || record->len != 4) {
|
||||
fprintf(stderr, "Bad Start Address record (type %02X) at line %d\n",
|
||||
type, line);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
memcpy(&data32, &record->data[0], sizeof(data32));
|
||||
data32 = htonl(data32);
|
||||
memcpy(&record->data[0], &data32, sizeof(data32));
|
||||
|
||||
/* These records contain the CS/IP or EIP where execution
|
||||
* starts. If requested output this as a record. */
|
||||
if (include_jump)
|
||||
file_record(record);
|
||||
goto next_record;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Unknown record (type %02X)\n", type);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ihex_binrec *records;
|
||||
|
||||
static void file_record(struct ihex_binrec *record)
|
||||
{
|
||||
struct ihex_binrec **p = &records;
|
||||
|
||||
while ((*p) && (!sort_records || (*p)->addr < record->addr))
|
||||
p = &((*p)->next);
|
||||
|
||||
record->next = *p;
|
||||
*p = record;
|
||||
}
|
||||
|
||||
static int output_records(int outfd)
|
||||
{
|
||||
unsigned char zeroes[6] = {0, 0, 0, 0, 0, 0};
|
||||
struct ihex_binrec *p = records;
|
||||
|
||||
while (p) {
|
||||
uint16_t writelen = (p->len + 9) & ~3;
|
||||
|
||||
p->addr = htonl(p->addr);
|
||||
p->len = htons(p->len);
|
||||
if (write(outfd, &p->addr, writelen) != writelen)
|
||||
return 1;
|
||||
p = p->next;
|
||||
}
|
||||
/* EOF record is zero length, since we don't bother to represent
|
||||
the type field in the binary version */
|
||||
if (write(outfd, zeroes, 6) != 6)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
:03000000020200F9
|
||||
:0400230002055F0073
|
||||
:0400430002010000B6
|
||||
:050030000000000000CB
|
||||
:10010000020296000200000002000000020000004F
|
||||
:1001100002000000020000000200000002000000D7
|
||||
:1001200002000000020000000204610002048900D5
|
||||
:1002000075815EE4F532F533F530F531F534C20031
|
||||
:10021000C201A90074FE901000F0A3D9FC74FD90F7
|
||||
:100220001100F0A3D9FC7402907F9DF07400907FC0
|
||||
:1002300097F07486907F9EF0907F957403F0907F86
|
||||
:10024000AFE0D2E0F07401907FABF0907FAEF09021
|
||||
:100250007FAC7404F0907FAD7404F0907FC9F074AB
|
||||
:1002600084907F98F07400F59875C8307B059120D4
|
||||
:10027000D2CA759850D2E8D2AFD2AC7400F586904D
|
||||
:100280007FD67402F0792E7A007B00DBFEDAFAD991
|
||||
:10029000F67406F080FEC086C082C083C084C0852C
|
||||
:1002A000C0E0E591C2E4F591907FAB7401F0907FDE
|
||||
:1002B000E8E0F9A3E0FAA3E0FBA3E0FCE95460B4B2
|
||||
:1002C0000003020339B4406EBA000B12042040034D
|
||||
:1002D00002040202040ABA010302040ABA02030277
|
||||
:1002E000040ABA0303020444BA041EBB000A907F46
|
||||
:1002F00095E04402F0020402907F98E054FDF090F3
|
||||
:100300007F95E054FDF0020402BA050302040ABA24
|
||||
:100310000619BB0008E533D395320203DEBB0108A2
|
||||
:10032000E532C395330203DE02040ABA07058B34B3
|
||||
:1003300002040202040A02040ABA0020B9801090E2
|
||||
:100340007F00E4F0A3F0907FB57402F0020402B9DC
|
||||
:10035000820280EBB9810280E602040ABA010FBB77
|
||||
:10036000000302040ABB010302040202040ABA03E6
|
||||
:100370000FBB000302040ABB010302040202040AC9
|
||||
:10038000BA0656BC010F907FD47406F0907FD574E6
|
||||
:1003900012F0020402BC0212BB006F907FD47406FC
|
||||
:1003A000F0907FD57424F0020402BC03297404C3C6
|
||||
:1003B0009B40576055EB2B9006442582F5827400D4
|
||||
:1003C0003583F583E0F9A3E0FA907FD4E9F0907FDC
|
||||
:1003D000D5EAF002040202040ABA080F7401907F01
|
||||
:1003E00000F07401907FB5F0020402BA0903020420
|
||||
:1003F00002BA0A0574000203DEBA0B030204020209
|
||||
:10040000040A907FB47402F08009907FB4E0440144
|
||||
:10041000F08000D0E0D085D084D083D082D08632E6
|
||||
:10042000EB20E71EC3940A5019EB2324FEF58274D7
|
||||
:10043000053400F583E0F5CBF5CDA3E0F5CAF5CCA6
|
||||
:10044000C322D322B94111EB64FF5484FB907F98FF
|
||||
:10045000E0547B4BF0020402907F9BE064FF0203B8
|
||||
:10046000DEC086C082C083C084C085C0E0E591C282
|
||||
:10047000E4F591907FA97404F01205A0D0E0D08536
|
||||
:10048000D084D083D082D08632C086C082C083C060
|
||||
:1004900084C085C0E0E591C2E4F591907FAA740420
|
||||
:1004A000F0907FC9E0F9E4F586907DC075851085F0
|
||||
:1004B0003284E005860584F0E584B53302800905C1
|
||||
:1004C000320586A3D9EC8000907FC9F0B131D0E02D
|
||||
:1004D000D085D084D083D082D08632E4F586907FD8
|
||||
:1004E000BCE020E14B907D00E532F0A3E533F0A3C2
|
||||
:1004F000E530F0A3E531F0A3E430000104F0A305FA
|
||||
:10050000869010007910E0A30586F0A30586D9F641
|
||||
:10051000058674FCF0A305869011007910E0A30510
|
||||
:1005200086F0A30586D9F6E4F586907FBD7426F0A3
|
||||
:1005300022200013E532B53301220533758310857F
|
||||
:100540003382E0F599D2007400B5340122E533D34B
|
||||
:100550009532C3953440F5753400D2010205A0C030
|
||||
:1005600086C082C083C084C085C0E0309907C2992C
|
||||
:10057000C20012053430980512058AC298D0E0D026
|
||||
:1005800085D084D083D082D0863275831185308225
|
||||
:100590000582E599F0E582B53101220530B1A0224E
|
||||
:1005A000907FB8E020E138200136E530B5310122F6
|
||||
:1005B000E4F5867583110586907E00F0A3058679A3
|
||||
:1005C00001E530B5310280100531853182E00586C4
|
||||
:1005D000F0A3058609B940E9907FB9E96001F022EE
|
||||
:1005E000C201E4F586907E007401F0A37402F090DD
|
||||
:1005F0007FB9F022C299F5993099FDC29922E55E42
|
||||
:10060000F63CFD8FFEC8FF64FFB2FFD9FFEDFFF39C
|
||||
:10061000FFFA12010001FFFFFF40CD06040189AB84
|
||||
:1006200001020301090220000101008032090400D7
|
||||
:100630000002FFFFFF0007058203400001070502DB
|
||||
:1006400002400000064C0650067206A0040300009B
|
||||
:100650002203410043004D00450020007500730057
|
||||
:100660006200200077006900640067006500740084
|
||||
:1006700073002E03410043004D004500200055004B
|
||||
:1006800053004200200073006500720069006100A1
|
||||
:100690006C0020007700690064006700650074004A
|
||||
:0606A000060334003700E0
|
||||
:00000001FF
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,87 +0,0 @@
|
|||
:03000000020200F9
|
||||
:0400230002059B0037
|
||||
:050030000000000000CB
|
||||
:0400430002010000B6
|
||||
:100100000202BA000200000002000000020000002B
|
||||
:1001100002000000020000000200000002000000D7
|
||||
:100120000200000002000000020485000204B90081
|
||||
:1002000075815EE4F532F533F530F531F534C20031
|
||||
:10021000C201A90074FE901000F0A3D9FC74FD90F7
|
||||
:100220001100F0A3D9FC907F9474BFF0907F957477
|
||||
:10023000EFF07410907F9EF07400907F98F07440FF
|
||||
:10024000907F9DF07400907F97F07482907F9EF075
|
||||
:10025000907F957403F0907FAFE0D2E0F07401904E
|
||||
:100260007FABF0907FAEF0907FAC7404F0907FADE8
|
||||
:100270007404F0907FC9F07407907FAFF074209001
|
||||
:100280007F9CF07480907F98F07453F59875C83017
|
||||
:100290007B059144D2CA759850D2E8D2AFD2AC74E3
|
||||
:1002A00000F586907FD67402F0792E7A007B00DB11
|
||||
:1002B000FEDAFAD9F67406F080FEC086C082C083EA
|
||||
:1002C000C084C085C0E0E591C2E4F591907FAB7435
|
||||
:1002D00001F0907FE8E0F9A3E0FAA3E0FBA3E0FCE3
|
||||
:1002E000E95460B4000302035DB4406EBA000B121F
|
||||
:1002F0000444400302042602042EBA010302042E21
|
||||
:10030000BA020302042EBA0303020468BA041EBB35
|
||||
:10031000000A907F95E04402F0020426907F98E066
|
||||
:1003200054FDF0907F95E054FDF0020426BA0503D9
|
||||
:1003300002042EBA0619BB0008E533D39532020435
|
||||
:1003400002BB0108E532C3953302040202042EBA4F
|
||||
:1003500007058B3402042602042E02042EBA002064
|
||||
:10036000B98010907F00E4F0A3F0907FB57402F0A4
|
||||
:10037000020426B9820280EBB9810280E602042ED3
|
||||
:10038000BA010FBB000302042EBB010302042602C4
|
||||
:10039000042EBA030FBB000302042EBB01030204A8
|
||||
:1003A0002602042EBA0656BC010F907FD47406F0C4
|
||||
:1003B000907FD5745AF0020426BC0212BB006F90E5
|
||||
:1003C0007FD47406F0907FD5746CF0020426BC03D1
|
||||
:1003D000297404C39B40576055EB2B90068C2582F3
|
||||
:1003E000F58274003583F583E0F9A3E0FA907FD4B9
|
||||
:1003F000E9F0907FD5EAF002042602042EBA080F35
|
||||
:100400007401907F00F07401907FB5F0020426BA69
|
||||
:100410000903020426BA0A057400020402BA0B0397
|
||||
:1004200002042602042E907FB47402F08009907FAB
|
||||
:10043000B4E04401F08000D0E0D085D084D083D0F7
|
||||
:1004400082D08632EB20E71EC3940A5019EB232496
|
||||
:1004500046F58274063400F583E0F5CBF5CDA3E0D4
|
||||
:10046000F5CAF5CCC322D322B94111EB64FF548005
|
||||
:10047000FB907F98E0547F4BF0020426907F9BE036
|
||||
:1004800064FF020402C086C082C083C084C085C0ED
|
||||
:10049000E0E591C2E4F591907FA97404F074209096
|
||||
:1004A0007F9CF01205DC7420907F9CF0D0E0D0851A
|
||||
:1004B000D084D083D082D08632C086C082C083C030
|
||||
:1004C00084C085C0E07410907F9CF0E591C2E4F593
|
||||
:1004D00091907FAA7404F0907FC9E0F9E4F58690CA
|
||||
:1004E0007DC0758510853284E005860584F0E5843D
|
||||
:1004F000B53302800905320586A3D9EC8000907FD0
|
||||
:10050000C9F0B16D7420907F9CF0D0E0D085D0848C
|
||||
:10051000D083D082D08632E4F586907FBCE020E1A3
|
||||
:100520004B907D00E532F0A3E533F0A3E530F0A376
|
||||
:10053000E531F0A3E430000104F0A305869010003B
|
||||
:100540007910E0A30586F0A30586D9F6058674FC2C
|
||||
:10055000F0A305869011007910E0A30586F0A305AD
|
||||
:1005600086D9F6E4F586907FBD7426F0222000132C
|
||||
:10057000E532B53301220533758310853382E0F50A
|
||||
:1005800099D2007400B5340122E533D39532C39576
|
||||
:100590003440F5753400D2010205DCC086C082C04B
|
||||
:1005A00083C084C085C0E0309907C299C20012059B
|
||||
:1005B000703098051205C6C298D0E0D085D084D09E
|
||||
:1005C00083D082D086327583118530820582E59989
|
||||
:1005D000F0E582B53101220530B1DC227410907F44
|
||||
:1005E0009CF0907FB8E020E13E20013CE530B53141
|
||||
:1005F0000122E4F5867583110586907E00F0A3053F
|
||||
:10060000867901E530B5310280100531853182E00F
|
||||
:100610000586F0A3058609B940E97410907F9CF027
|
||||
:10062000907FB9E96001F022C201E4F586907E0076
|
||||
:100630007401F0A37402F0907FB9F022C299F59989
|
||||
:100640003099FDC29922E55EF63CFD8FFEC8FF643D
|
||||
:10065000FFB2FFD9FFEDFFF3FFFA12010001FFFF28
|
||||
:10066000FF40CD06040189AB01020301090220000D
|
||||
:1006700001010080320904000002FFFFFF000705AE
|
||||
:10068000820340000107050202400000069406981C
|
||||
:1006900006BA06E8040300002203410043004D00AF
|
||||
:1006A000450020007500730062002000770069009B
|
||||
:1006B000640067006500740073002E03410043006E
|
||||
:1006C0004D004500200055005300420020007300FB
|
||||
:1006D00065007200690061006C002000770069000D
|
||||
:0E06E0006400670065007400060334003700F4
|
||||
:00000001FF
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*****************************************************************************
|
||||
*
|
||||
* whiteheat.h -- ConnectTech WhiteHEAT Firmware.
|
||||
*
|
||||
* Copyright (C) 2000-2002 ConnectTech Inc (http://www.connecttech.com/)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* (10/09/2002) Stuart MacDonald
|
||||
* Firmware 4.06
|
||||
*
|
||||
* (04/09/2000) gkh
|
||||
* Updated the firmware with the latest provided by ConnectTech.
|
||||
*
|
||||
* (01/16/2000) gkh
|
||||
* Fixed my intel hex processing tool, so now the firmware actually
|
||||
* matches the original file (this was causing a few problems...)
|
||||
*
|
||||
* (01/15/2000) gkh
|
||||
* Added debug loader firmware if DEBUG is #defined:
|
||||
* Port 1 LED flashes when the vend_ax program is running
|
||||
* Port 2 LED flashes when any SETUP command arrives
|
||||
* Port 3 LED flashes when any valid VENDOR request occurs
|
||||
* Port 4 LED flashes when the EXTERNAL RAM DOWNLOAD request occurs
|
||||
*
|
||||
* version 1.0 (01/09/2000) gkh
|
||||
* Original firmware from ConnectTech massaged a little to be program
|
||||
* readable.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define whiteheat_DATE "20000106"
|
||||
|
|
@ -1,104 +0,0 @@
|
|||
From 2b248dae913fb3e556f3fe761970291ceea0442c Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Valente <paolo.valente@unimore.it>
|
||||
Date: Sat, 6 Jun 2015 17:56:31 +0200
|
||||
Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r8-3.19.0
|
||||
|
||||
Update Kconfig.iosched and do the related Makefile changes to include
|
||||
kernel configuration options for BFQ. Also add the bfqio controller
|
||||
to the cgroups subsystem.
|
||||
|
||||
Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
|
||||
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
|
||||
---
|
||||
block/Kconfig.iosched | 32 ++++++++++++++++++++++++++++++++
|
||||
block/Makefile | 1 +
|
||||
include/linux/cgroup_subsys.h | 4 ++++
|
||||
3 files changed, 37 insertions(+)
|
||||
|
||||
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
|
||||
index 421bef9..0ee5f0f 100644
|
||||
--- a/block/Kconfig.iosched
|
||||
+++ b/block/Kconfig.iosched
|
||||
@@ -39,6 +39,27 @@ config CFQ_GROUP_IOSCHED
|
||||
---help---
|
||||
Enable group IO scheduling in CFQ.
|
||||
|
||||
+config IOSCHED_BFQ
|
||||
+ tristate "BFQ I/O scheduler"
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ The BFQ I/O scheduler tries to distribute bandwidth among
|
||||
+ all processes according to their weights.
|
||||
+ It aims at distributing the bandwidth as desired, independently of
|
||||
+ the disk parameters and with any workload. It also tries to
|
||||
+ guarantee low latency to interactive and soft real-time
|
||||
+ applications. If compiled built-in (saying Y here), BFQ can
|
||||
+ be configured to support hierarchical scheduling.
|
||||
+
|
||||
+config CGROUP_BFQIO
|
||||
+ bool "BFQ hierarchical scheduling support"
|
||||
+ depends on CGROUPS && IOSCHED_BFQ=y
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ Enable hierarchical scheduling in BFQ, using the cgroups
|
||||
+ filesystem interface. The name of the subsystem will be
|
||||
+ bfqio.
|
||||
+
|
||||
choice
|
||||
prompt "Default I/O scheduler"
|
||||
default DEFAULT_CFQ
|
||||
@@ -52,6 +73,16 @@ choice
|
||||
config DEFAULT_CFQ
|
||||
bool "CFQ" if IOSCHED_CFQ=y
|
||||
|
||||
+ config DEFAULT_BFQ
|
||||
+ bool "BFQ" if IOSCHED_BFQ=y
|
||||
+ help
|
||||
+ Selects BFQ as the default I/O scheduler which will be
|
||||
+ used by default for all block devices.
|
||||
+ The BFQ I/O scheduler aims at distributing the bandwidth
|
||||
+ as desired, independently of the disk parameters and with
|
||||
+ any workload. It also tries to guarantee low latency to
|
||||
+ interactive and soft real-time applications.
|
||||
+
|
||||
config DEFAULT_NOOP
|
||||
bool "No-op"
|
||||
|
||||
@@ -61,6 +92,7 @@ config DEFAULT_IOSCHED
|
||||
string
|
||||
default "deadline" if DEFAULT_DEADLINE
|
||||
default "cfq" if DEFAULT_CFQ
|
||||
+ default "bfq" if DEFAULT_BFQ
|
||||
default "noop" if DEFAULT_NOOP
|
||||
|
||||
endmenu
|
||||
diff --git a/block/Makefile b/block/Makefile
|
||||
index 00ecc97..1ed86d5 100644
|
||||
--- a/block/Makefile
|
||||
+++ b/block/Makefile
|
||||
@@ -18,6 +18,7 @@ obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
|
||||
obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
|
||||
+obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
|
||||
|
||||
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
||||
obj-$(CONFIG_BLK_CMDLINE_PARSER) += cmdline-parser.o
|
||||
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h
|
||||
index 98c4f9b..13b010d 100644
|
||||
--- a/include/linux/cgroup_subsys.h
|
||||
+++ b/include/linux/cgroup_subsys.h
|
||||
@@ -35,6 +35,10 @@ SUBSYS(net_cls)
|
||||
SUBSYS(blkio)
|
||||
#endif
|
||||
|
||||
+#if IS_ENABLED(CONFIG_CGROUP_BFQIO)
|
||||
+SUBSYS(bfqio)
|
||||
+#endif
|
||||
+
|
||||
#if IS_ENABLED(CONFIG_CGROUP_PERF)
|
||||
SUBSYS(perf_event)
|
||||
#endif
|
||||
--
|
||||
2.1.4
|
||||
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,311 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Copyright (C) 2008-2014 Alexandre Oliva <lxoliva@fsfla.org>
|
||||
|
||||
# This program is part of GNU Linux-libre, a GNU project that
|
||||
# publishes scripts to clean up Linux so as to make it suitable for
|
||||
# use in the GNU Project and in Free System Distributions.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
||||
# USA
|
||||
|
||||
# deblob-main - prepare a GNU Linux-libre tarball out of a non-libre
|
||||
# Linux tarball. It expects the Linux release (mver, say 3.0) as the
|
||||
# first argument, the gnu sub-release (extra) as the second optional
|
||||
# argument, and the patch release (sver, say .13) as an optional third
|
||||
# argument. mver and sver are pasted together to form kver.
|
||||
|
||||
# linux-$kver.tar.bz2 and deblob-$mver must exist in the current
|
||||
# directory, and the line that sets kver and extra in deblob-$mver
|
||||
# must match mver and extra.
|
||||
|
||||
# The resulting tarball is put in linux-libre-$kver-gnu$extra.tar.bz2.
|
||||
# An uncompressed xdelta that produces linux-libre-$kver-gnu$extra.tar
|
||||
# out of linux-$kver.tar is put in linux-libre-$kver-gnu$extra.xdelta.
|
||||
# This xdelta can be distributed to enable third parties to easily
|
||||
# reconstruct the binary tarball starting out of sources downloaded
|
||||
# from kernel.org, but without distributing non-Free Software
|
||||
# yourself, because xdelta (unlike patches) is not reversible: the
|
||||
# removed bits are not present in it at all.
|
||||
|
||||
# xdelta version 3 uses different command line syntax, and it switched
|
||||
# to the more standardized but less efficient vcdiff file format.
|
||||
# This script will also produce a vcdiff file if xdelta3 is present,
|
||||
# and it expects the xdelta program to use the version 1 syntax.
|
||||
|
||||
# To enable you to check the differences between the tarballs, a patch
|
||||
# file is generated in linux-libre-$kver-gnu$extra.patch. This patch
|
||||
# file contains the non-Free blobs, even though in reversed form, so
|
||||
# its distribution is discouraged.
|
||||
|
||||
# The tar files and binary deltas are finally compressed with bzip2,
|
||||
# and optionally with lzip and xz too, if the compressors are
|
||||
# available.
|
||||
|
||||
# At the end, the script attempts to generate a digital signature for
|
||||
# the newly-created tarball. This is the last thing the script does,
|
||||
# so interrupting it at that point to skip the signing won't fail to
|
||||
# do anything else.
|
||||
|
||||
# It is safe to interrupt the script at any other point. When it gets
|
||||
# a ^C (other than during signing), it starts cleaning up all of its
|
||||
# temporary and output files. If you insist, it may leave junk
|
||||
# behind, and then it will refuse to run again before you clean it up
|
||||
# by hand. It takes extra care to avoid overwriting useful files.
|
||||
|
||||
# If deblob-$mver finds any unexpected situation, it will error out,
|
||||
# and then deblob-main will quit. Pass --force to deblob-main, before
|
||||
# any other argument, for deblob-main to ignore any such situations.
|
||||
|
||||
case $1 in
|
||||
--force) force=--force; shift;;
|
||||
*) force=;;
|
||||
esac
|
||||
|
||||
# We don't want e.g. diff output translations to affect us.
|
||||
LC_ALL=C; export LC_ALL
|
||||
LANGUAGE=C; export LANGUAGE
|
||||
|
||||
mver=$1 extra=$2 sver=$3
|
||||
kver=$mver$sver gnu=gnu$extra
|
||||
deblob= dir=`echo "$0" | sed 's,[^/]*$,,;s,^$,.,;s,/*$,,'`
|
||||
|
||||
if test -f linux-$kver.tar; then
|
||||
zext=tar zcmd=
|
||||
elif test -f linux-$kver.tar.bz2; then
|
||||
zext=tar.bz2 zcmd=bunzip2
|
||||
elif test -f linux-$kver.tar.xz; then
|
||||
zext=tar.xz zcmd=unxz
|
||||
elif test -f linux-$kver.tar.lz; then
|
||||
zext=tar.lz zcmd="lzip -d"
|
||||
elif test -f linux-$kver.tar.gz; then
|
||||
zext=tar.gz zcmd=gunzip
|
||||
elif test -f linux-$kver.tgz; then
|
||||
zext=tgz zcmd=gunzip
|
||||
else
|
||||
echo linux-$kver.tar not found, tried .bz2, .xz, .lz, .gz and .tgz too >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f deblob-$mver; then
|
||||
deblob=deblob-$mver
|
||||
elif test -f deblob; then
|
||||
deblob=deblob
|
||||
elif test -f $dir/deblob-$mver; then
|
||||
cp $dir/deblob-$mver deblob
|
||||
deblob=deblob
|
||||
else
|
||||
echo deblob does not exist >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
x1="kver=$mver extra=$extra"
|
||||
x2=`grep "^kver=[^ ]* extra=" $deblob`
|
||||
if test "$x1" = "$x2"; then
|
||||
:
|
||||
else
|
||||
echo deblob script does not match command-line arguments >&2
|
||||
echo expected: $x1 >&2
|
||||
echo found : $x2 >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cleanup=
|
||||
|
||||
for f in \
|
||||
linux-libre-$kver-$gnu.tar.bz2 \
|
||||
linux-libre-$kver-$gnu.tar.bz2.asc \
|
||||
linux-libre-$kver-$gnu.tar.bz2.sign \
|
||||
linux-libre-$kver-$gnu.tar.xz \
|
||||
linux-libre-$kver-$gnu.tar.xz.asc \
|
||||
linux-libre-$kver-$gnu.tar.xz.sign \
|
||||
linux-libre-$kver-$gnu.tar.lz \
|
||||
linux-libre-$kver-$gnu.tar.lz.asc \
|
||||
linux-libre-$kver-$gnu.tar.lz.sign \
|
||||
linux-libre-$kver-$gnu.tar \
|
||||
linux-libre-$kver-$gnu.tar.asc \
|
||||
linux-libre-$kver-$gnu.tar.sign \
|
||||
linux-libre-$kver-$gnu.patch \
|
||||
linux-libre-$kver-$gnu.log \
|
||||
linux-libre-$kver-$gnu.vcdiff \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2 \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.bz2.sign \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.xz.sign \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz.asc \
|
||||
linux-libre-$kver-$gnu.vcdiff.lz.sign \
|
||||
linux-libre-$kver-$gnu.xdelta \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2 \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2.sign \
|
||||
linux-libre-$kver-$gnu.xdelta.xz \
|
||||
linux-libre-$kver-$gnu.xdelta.xz.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.xz.sign \
|
||||
linux-libre-$kver-$gnu.xdelta.lz \
|
||||
linux-libre-$kver-$gnu.xdelta.lz.asc \
|
||||
linux-libre-$kver-$gnu.xdelta.lz.sign \
|
||||
; do
|
||||
if test -f $f; then
|
||||
echo $f already exists >&2
|
||||
exit 1
|
||||
fi
|
||||
cleanup="$cleanup $f"
|
||||
done
|
||||
|
||||
for d in \
|
||||
linux-$kver \
|
||||
linux-libre-$kver-$gnu \
|
||||
orig-linux-$kver \
|
||||
; do
|
||||
if test -d $d; then
|
||||
echo $d already exists >&2
|
||||
exit 1
|
||||
fi
|
||||
cleanup="$cleanup $d"
|
||||
done
|
||||
|
||||
if test -f $dir/deblob-$kver; then
|
||||
if cmp $dir/deblob-$kver $deblob; then
|
||||
:
|
||||
else
|
||||
echo $dir/deblob-$kver and $deblob are different >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ! -f deblob-check; then
|
||||
if test -f $dir/deblob-check; then
|
||||
cp $dir/deblob-check deblob-check
|
||||
fi
|
||||
else
|
||||
if test -f $dir/deblob-check; then
|
||||
if cmp $dir/deblob-check deblob-check; then
|
||||
:
|
||||
else
|
||||
echo $dir/deblob-check and deblob-check are different >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
trap 'status=$?; echo cleaning up...; rm -rf $cleanup; (exit $status); exit' 0 1 2 15
|
||||
|
||||
set -e
|
||||
|
||||
if test -n "$zcmd"; then
|
||||
echo Uncompressing linux-$kver.$zext into linux-$kver.tar
|
||||
rm -rf linux-$kver.tar
|
||||
cleanup="$cleanup linux-$kver.tar"
|
||||
$zcmd < linux-$kver.$zext > linux-$kver.tar
|
||||
fi
|
||||
|
||||
echo Extracting linux-$kver.tar into linux-$kver
|
||||
rm -rf linux-$kver
|
||||
tar -xf linux-$kver.tar
|
||||
rm -rf linux-libre-$kver-$gnu linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Copying linux-$kver to linux-libre-$kver-$gnu
|
||||
cp linux-$kver.tar linux-libre-$kver-$gnu.tar
|
||||
cp -lR linux-$kver/. linux-libre-$kver-$gnu
|
||||
|
||||
rm -f linux-libre-$kver-$gnu.log linux-libre-$kver-$gnu.log.tmp
|
||||
echo Deblobbing within linux-libre-$kver-$gnu, saving output to linux-libre-$kver-$gnu.log
|
||||
# We can't just pipe deblob into tee, for then we fail to detect
|
||||
# error conditions. Use file renaming to tell whether we succeeded.
|
||||
if (cd linux-libre-$kver-$gnu && /bin/sh ../$deblob $force) 2>&1; then
|
||||
mv linux-libre-$kver-$gnu.log.tmp linux-libre-$kver-$gnu.log
|
||||
fi | tee linux-libre-$kver-$gnu.log.tmp
|
||||
if test ! -f linux-libre-$kver-$gnu.log; then
|
||||
mv linux-libre-$kver-$gnu.log.tmp linux-libre-$kver-$gnu.log
|
||||
echo $deblob failed, aborting >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -f linux-libre-$kver-$gnu.patch
|
||||
|
||||
# Do not copy these scripts for now, deblob-check regards itself as a blob.
|
||||
# cp -p $0 $deblob deblob-check linux-libre-$kver-$gnu
|
||||
|
||||
echo Generating linux-libre-$kver-$gnu.patch
|
||||
diff -druN linux-$kver linux-libre-$kver-$gnu > linux-libre-$kver-$gnu.patch || :
|
||||
|
||||
echo Removing removed or modified files from linux-libre-$kver-$gnu.tar
|
||||
diff -rq linux-$kver linux-libre-$kver-$gnu |
|
||||
sed -n "
|
||||
s,^Only in \\(linux-$kver\\(/.*\\)\\?\\): \\(.*\\),\1/\3,p;
|
||||
s,^Files \\(linux-$kver\\)/\\(.*\\) and linux-libre-$kver-$gnu/\\2 differ,\\1/\\2,p;
|
||||
" |
|
||||
xargs tar --delete -f linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Adding modified or added files to linux-libre-$kver-$gnu.tar
|
||||
rm -rf orig-linux-$kver
|
||||
mv linux-$kver orig-linux-$kver
|
||||
mv linux-libre-$kver-$gnu linux-$kver
|
||||
diff -rq orig-linux-$kver linux-$kver |
|
||||
sed -n "
|
||||
s,^Files orig-\\(linux-$kver/.*\\) and \\1 differ,\\1,p;
|
||||
s,^Only in \\(linux-$kver\\(/.*\\)\\?\\): \\(.*\\),\\1/\\3,p;
|
||||
" |
|
||||
xargs tar --append -f linux-libre-$kver-$gnu.tar
|
||||
|
||||
echo Wiping out extracted trees
|
||||
rm -rf linux-$kver orig-linux-$kver
|
||||
|
||||
echo Creating vcdiff between linux-$kver.tar and linux-libre-$kver-$gnu.tar
|
||||
xdelta3 -e -9 -S djw -s linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.vcdiff || : # don't fail if xdelta3 is not present
|
||||
|
||||
echo Creating xdelta between linux-$kver.tar and linux-libre-$kver-$gnu.tar
|
||||
xdelta delta -0 linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.xdelta || : # xdelta returns nonzero on success
|
||||
|
||||
cleanup="linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.xdelta"
|
||||
|
||||
echo Compressing binary deltas and linux-libre-$kver-$gnu.tar
|
||||
rm -f linux-$kver.tar
|
||||
if test -f linux-libre-$kver-$gnu.xdelta; then
|
||||
bzip2 -k9 linux-libre-$kver-$gnu.xdelta
|
||||
xz -k9 linux-libre-$kver-$gnu.xdelta || :
|
||||
lzip -k9 linux-libre-$kver-$gnu.xdelta || :
|
||||
fi
|
||||
bzip2 -k9 linux-libre-$kver-$gnu.tar
|
||||
xz -k9 linux-libre-$kver-$gnu.tar || :
|
||||
lzip -k9 linux-libre-$kver-$gnu.tar || :
|
||||
|
||||
echo Done except for signing, feel free to interrupt
|
||||
for f in \
|
||||
linux-libre-$kver-$gnu.tar \
|
||||
linux-libre-$kver-$gnu.tar.bz2 \
|
||||
linux-libre-$kver-$gnu.tar.xz \
|
||||
linux-libre-$kver-$gnu.tar.lz \
|
||||
linux-libre-$kver-$gnu.vcdiff \
|
||||
linux-libre-$kver-$gnu.xdelta \
|
||||
linux-libre-$kver-$gnu.xdelta.bz2 \
|
||||
linux-libre-$kver-$gnu.xdelta.xz \
|
||||
linux-libre-$kver-$gnu.xdelta.lz \
|
||||
; do
|
||||
if test -f $f; then
|
||||
gpg -a --detach-sign $f
|
||||
mv $f.asc $f.sign
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f $cleanup
|
||||
cleanup=
|
||||
trap 'status=$?; (exit $status); exit' 0 1 2 15
|
||||
|
||||
echo All set, please review linux-libre-$kver-$gnu.patch
|
||||
|
||||
exit 0
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
Source: linux-meta
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
|
||||
Standards-Version: 3.6.1
|
||||
Build-Depends: dpkg (>= 1.13.19), debhelper (>= 5), gawk
|
||||
|
||||
Package: linux
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image (= ${binary:Version})
|
||||
Description: Generic complete Linux-Libre kernel.
|
||||
This package will always depend on the latest generic complete Linux-Libre kernel
|
||||
available.
|
||||
|
||||
Package: linux-source
|
||||
Architecture: all
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-source-${kernel-version}
|
||||
Description: Linux-Libre kernel source with Ubuntu patches
|
||||
This package will always depend on the latest Linux-Libre kernel source code
|
||||
available. The Ubuntu patches have been applied.
|
||||
|
||||
Package: linux-image
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-${generic-depends} (= ${binary:Version})
|
||||
Description: Generic Linux-Libre kernel image.
|
||||
This package will always depend on the latest generic Linux-Libre kernel image
|
||||
available.
|
||||
|
||||
Package: linux-crashdump
|
||||
Architecture: i386 amd64
|
||||
Section: devel
|
||||
Depends: ${misc:Depends}, kexec-tools, makedumpfile, grub-pc (>= 1.96+20090611-1ubuntu2) | grub (>= 0.97-29ubuntu24)
|
||||
Recommends: apport
|
||||
Suggests: crash
|
||||
Description: Linux-Libre kernel crashdump setup for the latest generic kernel
|
||||
This package installs all the needed infrstracture to get crashdumps from
|
||||
your running system. If you are experiencing kernel crashes that cannot
|
||||
be debugged normally (because the problem is infrequent or panic's the
|
||||
system in such a way as to make information gathering impossible), then
|
||||
you can install this package to automatically enable capture of the
|
||||
vmcore on crashes.
|
||||
|
||||
Package: linux-tools
|
||||
Architecture: i386 amd64 armel
|
||||
Section: metapackages
|
||||
Depends: ${misc:Depends}, linux-tools-${kernel-abi-version}
|
||||
Description: Linux-Libre kernel versioned Tools
|
||||
This package will always depend on the latest Linux-Libre kernel versioned tools
|
||||
available. The Ubuntu patches have been applied.
|
||||
|
||||
|
||||
Package: linux-headers-generic
|
||||
Architecture: i386 amd64
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-generic
|
||||
Description: Generic Linux-Libre kernel headers
|
||||
This package will always depend on the latest generic kernel headers
|
||||
available.
|
||||
|
||||
Package: linux-image-generic
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-generic
|
||||
Description: Generic Linux-Libre kernel image
|
||||
This package will always depend on the latest generic kernel image
|
||||
available.
|
||||
|
||||
Package: linux-generic
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-generic (= ${binary:Version})
|
||||
Description: Complete Generic Linux-Libre kernel
|
||||
This package will always depend on the latest complete generic Linux-Libre kernel
|
||||
available.
|
||||
|
||||
Package: linux-headers-generic-pae
|
||||
Architecture: i386
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-generic-pae
|
||||
Description: Generic Linux-Libre kernel headers
|
||||
This package will always depend on the latest generic kernel headers
|
||||
available.
|
||||
|
||||
Package: linux-image-generic-pae
|
||||
Architecture: i386
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-generic-pae
|
||||
Description: Generic Linux-Libre kernel image
|
||||
This package will always depend on the latest generic kernel image
|
||||
available.
|
||||
|
||||
Package: linux-generic-pae
|
||||
Architecture: i386
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-generic-pae (= ${binary:Version})
|
||||
Description: Complete Generic Linux-Libre kernel
|
||||
This package will always depend on the latest complete generic Linux-Libre kernel
|
||||
available.
|
||||
|
||||
Package: linux-headers-server
|
||||
Architecture: amd64 i386
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-server [amd64], linux-headers-generic-pae [i386]
|
||||
Description: Linux-Libre kernel headers on Server Equipment.
|
||||
This package will always depend on the latest kernel headers available
|
||||
for Server Equipment.
|
||||
|
||||
Package: linux-image-server
|
||||
Architecture: amd64 i386
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-server [amd64], linux-image-generic-pae [i386]
|
||||
Description: Linux-Libre kernel image on Server Equipment.
|
||||
This package will always depend on the latest kernel image available
|
||||
for Server Equipment.
|
||||
|
||||
Package: linux-server
|
||||
Architecture: amd64 i386
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-server (= ${binary:Version}) [amd64], linux-generic-pae [i386]
|
||||
Description: Complete Linux-Libre kernel on Server Equipment.
|
||||
This package will always depend on the latest complete Linux-Libre kernel available
|
||||
for Server Equipment.
|
||||
|
||||
Package: linux-headers-virtual
|
||||
Architecture: i386 amd64
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-virtual
|
||||
Description: Linux-Libre kernel headers for virtual machines
|
||||
This package will always depend on the latest kernel headers available
|
||||
for virtual machines.
|
||||
|
||||
Package: linux-image-virtual
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-virtual
|
||||
Description: Linux-Libre kernel image for virtual machines
|
||||
This package will always depend on the latest kernel image available
|
||||
for virtual machines.
|
||||
|
||||
Package: linux-virtual
|
||||
Architecture: i386 amd64
|
||||
Section: metapackages
|
||||
Priority: optional
|
||||
Depends: ${misc:Depends}, linux-image-virtual (= ${binary:Version})
|
||||
Description: Complete Linux-Libre kernel for virtual machines
|
||||
This package will always depend on the latest complete Linux-Libre kernel available
|
||||
for virtual machines.
|
||||
|
||||
|
|
@ -1,19 +1,20 @@
|
|||
From 2b248dae913fb3e556f3fe761970291ceea0442c Mon Sep 17 00:00:00 2001
|
||||
From f54f3003586bf00ba0ee5974a92b732477b834e3 Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Valente <paolo.valente@unimore.it>
|
||||
Date: Sat, 6 Jun 2015 17:56:31 +0200
|
||||
Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r8-3.19.0
|
||||
Date: Tue, 7 Apr 2015 13:39:12 +0200
|
||||
Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r11-4.4.0
|
||||
|
||||
Update Kconfig.iosched and do the related Makefile changes to include
|
||||
kernel configuration options for BFQ. Also add the bfqio controller
|
||||
to the cgroups subsystem.
|
||||
kernel configuration options for BFQ. Also increase the number of
|
||||
policies supported by the blkio controller so that BFQ can add its
|
||||
own.
|
||||
|
||||
Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
|
||||
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
|
||||
Signed-off-by: Arianna Avanzini <avanzini@google.com>
|
||||
---
|
||||
block/Kconfig.iosched | 32 ++++++++++++++++++++++++++++++++
|
||||
block/Makefile | 1 +
|
||||
include/linux/cgroup_subsys.h | 4 ++++
|
||||
3 files changed, 37 insertions(+)
|
||||
include/linux/blkdev.h | 2 +-
|
||||
3 files changed, 34 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
|
||||
index 421bef9..0ee5f0f 100644
|
||||
|
|
@ -84,21 +85,19 @@ index 00ecc97..1ed86d5 100644
|
|||
|
||||
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
||||
obj-$(CONFIG_BLK_CMDLINE_PARSER) += cmdline-parser.o
|
||||
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h
|
||||
index 98c4f9b..13b010d 100644
|
||||
--- a/include/linux/cgroup_subsys.h
|
||||
+++ b/include/linux/cgroup_subsys.h
|
||||
@@ -35,6 +35,10 @@ SUBSYS(net_cls)
|
||||
SUBSYS(blkio)
|
||||
#endif
|
||||
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
|
||||
index c70e358..ae43492 100644
|
||||
--- a/include/linux/blkdev.h
|
||||
+++ b/include/linux/blkdev.h
|
||||
@@ -44,7 +44,7 @@ struct pr_ops;
|
||||
* Maximum number of blkcg policies allowed to be registered concurrently.
|
||||
* Defined here to simplify include dependency.
|
||||
*/
|
||||
-#define BLKCG_MAX_POLS 2
|
||||
+#define BLKCG_MAX_POLS 3
|
||||
|
||||
+#if IS_ENABLED(CONFIG_CGROUP_BFQIO)
|
||||
+SUBSYS(bfqio)
|
||||
+#endif
|
||||
+
|
||||
#if IS_ENABLED(CONFIG_CGROUP_PERF)
|
||||
SUBSYS(perf_event)
|
||||
#endif
|
||||
struct request;
|
||||
typedef void (rq_end_io_fn)(struct request *, int);
|
||||
--
|
||||
2.1.4
|
||||
1.9.1
|
||||
|
||||
|
|
@ -1,104 +0,0 @@
|
|||
From 35b91cb0131f9c63141a887d5dbb7657f01d8808 Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Valente <paolo.valente@unimore.it>
|
||||
Date: Tue, 3 Sep 2013 16:50:42 +0200
|
||||
Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r5-3.13
|
||||
|
||||
Update Kconfig.iosched and do the related Makefile changes to include
|
||||
kernel configuration options for BFQ. Also add the bfqio controller
|
||||
to the cgroups subsystem.
|
||||
|
||||
Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
|
||||
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
|
||||
---
|
||||
block/Kconfig.iosched | 32 ++++++++++++++++++++++++++++++++
|
||||
block/Makefile | 1 +
|
||||
include/linux/cgroup_subsys.h | 4 ++++
|
||||
3 files changed, 37 insertions(+)
|
||||
|
||||
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
|
||||
index 421bef9..0ee5f0f 100644
|
||||
--- a/block/Kconfig.iosched
|
||||
+++ b/block/Kconfig.iosched
|
||||
@@ -39,6 +39,27 @@ config CFQ_GROUP_IOSCHED
|
||||
---help---
|
||||
Enable group IO scheduling in CFQ.
|
||||
|
||||
+config IOSCHED_BFQ
|
||||
+ tristate "BFQ I/O scheduler"
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ The BFQ I/O scheduler tries to distribute bandwidth among
|
||||
+ all processes according to their weights.
|
||||
+ It aims at distributing the bandwidth as desired, independently of
|
||||
+ the disk parameters and with any workload. It also tries to
|
||||
+ guarantee low latency to interactive and soft real-time
|
||||
+ applications. If compiled built-in (saying Y here), BFQ can
|
||||
+ be configured to support hierarchical scheduling.
|
||||
+
|
||||
+config CGROUP_BFQIO
|
||||
+ bool "BFQ hierarchical scheduling support"
|
||||
+ depends on CGROUPS && IOSCHED_BFQ=y
|
||||
+ default n
|
||||
+ ---help---
|
||||
+ Enable hierarchical scheduling in BFQ, using the cgroups
|
||||
+ filesystem interface. The name of the subsystem will be
|
||||
+ bfqio.
|
||||
+
|
||||
choice
|
||||
prompt "Default I/O scheduler"
|
||||
default DEFAULT_CFQ
|
||||
@@ -52,6 +73,16 @@ choice
|
||||
config DEFAULT_CFQ
|
||||
bool "CFQ" if IOSCHED_CFQ=y
|
||||
|
||||
+ config DEFAULT_BFQ
|
||||
+ bool "BFQ" if IOSCHED_BFQ=y
|
||||
+ help
|
||||
+ Selects BFQ as the default I/O scheduler which will be
|
||||
+ used by default for all block devices.
|
||||
+ The BFQ I/O scheduler aims at distributing the bandwidth
|
||||
+ as desired, independently of the disk parameters and with
|
||||
+ any workload. It also tries to guarantee low latency to
|
||||
+ interactive and soft real-time applications.
|
||||
+
|
||||
config DEFAULT_NOOP
|
||||
bool "No-op"
|
||||
|
||||
@@ -61,6 +92,7 @@ config DEFAULT_IOSCHED
|
||||
string
|
||||
default "deadline" if DEFAULT_DEADLINE
|
||||
default "cfq" if DEFAULT_CFQ
|
||||
+ default "bfq" if DEFAULT_BFQ
|
||||
default "noop" if DEFAULT_NOOP
|
||||
|
||||
endmenu
|
||||
diff --git a/block/Makefile b/block/Makefile
|
||||
index 20645e8..cbd83fb 100644
|
||||
--- a/block/Makefile
|
||||
+++ b/block/Makefile
|
||||
@@ -16,6 +16,7 @@ obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
|
||||
obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
|
||||
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
|
||||
+obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
|
||||
|
||||
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
||||
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o
|
||||
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h
|
||||
index b613ffd..43c5dc9 100644
|
||||
--- a/include/linux/cgroup_subsys.h
|
||||
+++ b/include/linux/cgroup_subsys.h
|
||||
@@ -39,6 +39,10 @@ SUBSYS(net_cls)
|
||||
SUBSYS(blkio)
|
||||
#endif
|
||||
|
||||
+#if IS_SUBSYS_ENABLED(CONFIG_CGROUP_BFQIO)
|
||||
+SUBSYS(bfqio)
|
||||
+#endif
|
||||
+
|
||||
#if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
|
||||
SUBSYS(perf)
|
||||
#endif
|
||||
--
|
||||
1.9.3
|
||||
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,567 +0,0 @@
|
|||
diff -ru linux-3.13.0.orig/drivers/i2c/busses/i2c-designware-pcidrv.c linux-3.13.0/drivers/i2c/busses/i2c-designware-pcidrv.c
|
||||
--- linux-3.13.0.orig/drivers/i2c/busses/i2c-designware-pcidrv.c 2014-01-20 02:40:07.000000000 +0000
|
||||
+++ linux-3.13.0/drivers/i2c/busses/i2c-designware-pcidrv.c 2014-07-16 03:06:14.000000000 +0000
|
||||
@@ -54,6 +54,9 @@
|
||||
medfield_3,
|
||||
medfield_4,
|
||||
medfield_5,
|
||||
+
|
||||
+ haswell_0,
|
||||
+ haswell_1,
|
||||
};
|
||||
|
||||
struct dw_pci_controller {
|
||||
@@ -132,6 +135,20 @@
|
||||
.rx_fifo_depth = 32,
|
||||
.clk_khz = 25000,
|
||||
},
|
||||
+ [haswell_0] = {
|
||||
+ .bus_num = -1,
|
||||
+ .bus_cfg = INTEL_MID_STD_CFG | DW_IC_CON_SPEED_STD,
|
||||
+ .tx_fifo_depth = 32,
|
||||
+ .rx_fifo_depth = 32,
|
||||
+ .clk_khz = 100000,
|
||||
+ },
|
||||
+ [haswell_1] = {
|
||||
+ .bus_num = -1,
|
||||
+ .bus_cfg = INTEL_MID_STD_CFG | DW_IC_CON_SPEED_STD,
|
||||
+ .tx_fifo_depth = 32,
|
||||
+ .rx_fifo_depth = 32,
|
||||
+ .clk_khz = 100000,
|
||||
+ },
|
||||
};
|
||||
static struct i2c_algorithm i2c_dw_algo = {
|
||||
.master_xfer = i2c_dw_xfer,
|
||||
@@ -212,7 +229,7 @@
|
||||
{
|
||||
struct dw_i2c_dev *dev;
|
||||
struct i2c_adapter *adap;
|
||||
- int r;
|
||||
+ int r, adapter_num;
|
||||
struct dw_pci_controller *controller;
|
||||
|
||||
if (id->driver_data >= ARRAY_SIZE(dw_pci_controllers)) {
|
||||
@@ -270,8 +287,18 @@
|
||||
adap->algo = &i2c_dw_algo;
|
||||
adap->dev.parent = &pdev->dev;
|
||||
adap->nr = controller->bus_num;
|
||||
+
|
||||
+ switch (id->driver_data) {
|
||||
+ case haswell_0:
|
||||
+ case haswell_1:
|
||||
+ adapter_num = id->driver_data - haswell_0;
|
||||
+ break;
|
||||
+ default:
|
||||
+ adapter_num = adap->nr;
|
||||
+ break;
|
||||
+ }
|
||||
snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci-%d",
|
||||
- adap->nr);
|
||||
+ adapter_num);
|
||||
|
||||
r = devm_request_irq(&pdev->dev, pdev->irq, i2c_dw_isr, IRQF_SHARED,
|
||||
adap->name, dev);
|
||||
@@ -321,6 +348,9 @@
|
||||
{ PCI_VDEVICE(INTEL, 0x082C), medfield_0 },
|
||||
{ PCI_VDEVICE(INTEL, 0x082D), medfield_1 },
|
||||
{ PCI_VDEVICE(INTEL, 0x082E), medfield_2 },
|
||||
+ /* Haswell ULT */
|
||||
+ { PCI_VDEVICE(INTEL, 0x9c61), haswell_0 },
|
||||
+ { PCI_VDEVICE(INTEL, 0x9c62), haswell_1 },
|
||||
{ 0,}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, i2_designware_pci_ids);
|
||||
diff -ru linux-3.13.0.orig/drivers/platform/chrome/chromeos_laptop.c linux-3.13.0/drivers/platform/chrome/chromeos_laptop.c
|
||||
--- linux-3.13.0.orig/drivers/platform/chrome/chromeos_laptop.c 2014-01-20 02:40:07.000000000 +0000
|
||||
+++ linux-3.13.0/drivers/platform/chrome/chromeos_laptop.c 2014-07-16 03:07:10.000000000 +0000
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <linux/input.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/platform_device.h>
|
||||
|
||||
#define ATMEL_TP_I2C_ADDR 0x4b
|
||||
#define ATMEL_TP_I2C_BL_ADDR 0x25
|
||||
@@ -44,6 +45,8 @@
|
||||
"SMBus I801 adapter",
|
||||
"i915 gmbus vga",
|
||||
"i915 gmbus panel",
|
||||
+ "i2c-designware-pci-0",
|
||||
+ "i2c-designware-pci-1",
|
||||
};
|
||||
|
||||
/* Keep this enum consistent with i2c_adapter_names */
|
||||
@@ -51,22 +54,37 @@
|
||||
I2C_ADAPTER_SMBUS = 0,
|
||||
I2C_ADAPTER_VGADDC,
|
||||
I2C_ADAPTER_PANEL,
|
||||
+ I2C_ADAPTER_I2C0,
|
||||
+ I2C_ADAPTER_I2C1,
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata cyapa_device = {
|
||||
+struct i2c_peripheral {
|
||||
+ int (*add)(enum i2c_adapter_type type);
|
||||
+ enum i2c_adapter_type type;
|
||||
+};
|
||||
+
|
||||
+#define MAX_I2C_PERIPHERALS 3
|
||||
+
|
||||
+struct chromeos_laptop {
|
||||
+ struct i2c_peripheral i2c_peripherals[MAX_I2C_PERIPHERALS];
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop *cros_laptop;
|
||||
+
|
||||
+static struct i2c_board_info cyapa_device = {
|
||||
I2C_BOARD_INFO("cyapa", CYAPA_TP_I2C_ADDR),
|
||||
.flags = I2C_CLIENT_WAKE,
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata isl_als_device = {
|
||||
+static struct i2c_board_info isl_als_device = {
|
||||
I2C_BOARD_INFO("isl29018", ISL_ALS_I2C_ADDR),
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata tsl2583_als_device = {
|
||||
+static struct i2c_board_info tsl2583_als_device = {
|
||||
I2C_BOARD_INFO("tsl2583", TAOS_ALS_I2C_ADDR),
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata tsl2563_als_device = {
|
||||
+static struct i2c_board_info tsl2563_als_device = {
|
||||
I2C_BOARD_INFO("tsl2563", TAOS_ALS_I2C_ADDR),
|
||||
};
|
||||
|
||||
@@ -89,7 +107,7 @@
|
||||
.config_length = 0,
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata atmel_224s_tp_device = {
|
||||
+static struct i2c_board_info atmel_224s_tp_device = {
|
||||
I2C_BOARD_INFO("atmel_mxt_tp", ATMEL_TP_I2C_ADDR),
|
||||
.platform_data = &atmel_224s_tp_platform_data,
|
||||
.flags = I2C_CLIENT_WAKE,
|
||||
@@ -110,13 +128,13 @@
|
||||
.config_length = 0,
|
||||
};
|
||||
|
||||
-static struct i2c_board_info __initdata atmel_1664s_device = {
|
||||
+static struct i2c_board_info atmel_1664s_device = {
|
||||
I2C_BOARD_INFO("atmel_mxt_ts", ATMEL_TS_I2C_ADDR),
|
||||
.platform_data = &atmel_1664s_platform_data,
|
||||
.flags = I2C_CLIENT_WAKE,
|
||||
};
|
||||
|
||||
-static struct i2c_client __init *__add_probed_i2c_device(
|
||||
+static struct i2c_client *__add_probed_i2c_device(
|
||||
const char *name,
|
||||
int bus,
|
||||
struct i2c_board_info *info,
|
||||
@@ -169,7 +187,7 @@
|
||||
return client;
|
||||
}
|
||||
|
||||
-static int __init __find_i2c_adap(struct device *dev, void *data)
|
||||
+static int __find_i2c_adap(struct device *dev, void *data)
|
||||
{
|
||||
const char *name = data;
|
||||
static const char *prefix = "i2c-";
|
||||
@@ -180,7 +198,7 @@
|
||||
return (strncmp(adapter->name, name, strlen(name)) == 0);
|
||||
}
|
||||
|
||||
-static int __init find_i2c_adapter_num(enum i2c_adapter_type type)
|
||||
+static int find_i2c_adapter_num(enum i2c_adapter_type type)
|
||||
{
|
||||
struct device *dev = NULL;
|
||||
struct i2c_adapter *adapter;
|
||||
@@ -189,8 +207,9 @@
|
||||
dev = bus_find_device(&i2c_bus_type, NULL, (void *)name,
|
||||
__find_i2c_adap);
|
||||
if (!dev) {
|
||||
- pr_err("%s: i2c adapter %s not found on system.\n", __func__,
|
||||
- name);
|
||||
+ /* Adapters may appear later. Deferred probing will retry */
|
||||
+ pr_notice("%s: i2c adapter %s not found on system.\n", __func__,
|
||||
+ name);
|
||||
return -ENODEV;
|
||||
}
|
||||
adapter = to_i2c_adapter(dev);
|
||||
@@ -205,7 +224,7 @@
|
||||
* Returns NULL if no devices found.
|
||||
* See Documentation/i2c/instantiating-devices for more information.
|
||||
*/
|
||||
-static __init struct i2c_client *add_probed_i2c_device(
|
||||
+static struct i2c_client *add_probed_i2c_device(
|
||||
const char *name,
|
||||
enum i2c_adapter_type type,
|
||||
struct i2c_board_info *info,
|
||||
@@ -222,7 +241,7 @@
|
||||
* info->addr.
|
||||
* Returns NULL if no device found.
|
||||
*/
|
||||
-static __init struct i2c_client *add_i2c_device(const char *name,
|
||||
+static struct i2c_client *add_i2c_device(const char *name,
|
||||
enum i2c_adapter_type type,
|
||||
struct i2c_board_info *info)
|
||||
{
|
||||
@@ -233,161 +252,289 @@
|
||||
addr_list);
|
||||
}
|
||||
|
||||
-
|
||||
-static struct i2c_client __init *add_smbus_device(const char *name,
|
||||
- struct i2c_board_info *info)
|
||||
+static int setup_cyapa_tp(enum i2c_adapter_type type)
|
||||
{
|
||||
- return add_i2c_device(name, I2C_ADAPTER_SMBUS, info);
|
||||
-}
|
||||
+ if (tp)
|
||||
+ return 0;
|
||||
|
||||
-static int __init setup_cyapa_smbus_tp(const struct dmi_system_id *id)
|
||||
-{
|
||||
- /* add cyapa touchpad on smbus */
|
||||
- tp = add_smbus_device("trackpad", &cyapa_device);
|
||||
- return 0;
|
||||
+ /* add cyapa touchpad */
|
||||
+ tp = add_i2c_device("trackpad", type, &cyapa_device);
|
||||
+ return (!tp) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-static int __init setup_atmel_224s_tp(const struct dmi_system_id *id)
|
||||
+static int setup_atmel_224s_tp(enum i2c_adapter_type type)
|
||||
{
|
||||
const unsigned short addr_list[] = { ATMEL_TP_I2C_BL_ADDR,
|
||||
ATMEL_TP_I2C_ADDR,
|
||||
I2C_CLIENT_END };
|
||||
+ if (tp)
|
||||
+ return 0;
|
||||
|
||||
- /* add atmel mxt touchpad on VGA DDC GMBus */
|
||||
- tp = add_probed_i2c_device("trackpad", I2C_ADAPTER_VGADDC,
|
||||
+ /* add atmel mxt touchpad */
|
||||
+ tp = add_probed_i2c_device("trackpad", type,
|
||||
&atmel_224s_tp_device, addr_list);
|
||||
- return 0;
|
||||
+ return (!tp) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-static int __init setup_atmel_1664s_ts(const struct dmi_system_id *id)
|
||||
+static int setup_atmel_1664s_ts(enum i2c_adapter_type type)
|
||||
{
|
||||
const unsigned short addr_list[] = { ATMEL_TS_I2C_BL_ADDR,
|
||||
ATMEL_TS_I2C_ADDR,
|
||||
I2C_CLIENT_END };
|
||||
+ if (ts)
|
||||
+ return 0;
|
||||
|
||||
- /* add atmel mxt touch device on PANEL GMBus */
|
||||
- ts = add_probed_i2c_device("touchscreen", I2C_ADAPTER_PANEL,
|
||||
+ /* add atmel mxt touch device */
|
||||
+ ts = add_probed_i2c_device("touchscreen", type,
|
||||
&atmel_1664s_device, addr_list);
|
||||
- return 0;
|
||||
+ return (!ts) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-
|
||||
-static int __init setup_isl29018_als(const struct dmi_system_id *id)
|
||||
+static int setup_isl29018_als(enum i2c_adapter_type type)
|
||||
{
|
||||
+ if (als)
|
||||
+ return 0;
|
||||
+
|
||||
/* add isl29018 light sensor */
|
||||
- als = add_smbus_device("lightsensor", &isl_als_device);
|
||||
- return 0;
|
||||
+ als = add_i2c_device("lightsensor", type, &isl_als_device);
|
||||
+ return (!als) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-static int __init setup_isl29023_als(const struct dmi_system_id *id)
|
||||
+static int setup_tsl2583_als(enum i2c_adapter_type type)
|
||||
{
|
||||
- /* add isl29023 light sensor on Panel GMBus */
|
||||
- als = add_i2c_device("lightsensor", I2C_ADAPTER_PANEL,
|
||||
- &isl_als_device);
|
||||
- return 0;
|
||||
+ if (als)
|
||||
+ return 0;
|
||||
+
|
||||
+ /* add tsl2583 light sensor */
|
||||
+ als = add_i2c_device(NULL, type, &tsl2583_als_device);
|
||||
+ return (!als) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-static int __init setup_tsl2583_als(const struct dmi_system_id *id)
|
||||
+static int setup_tsl2563_als(enum i2c_adapter_type type)
|
||||
{
|
||||
- /* add tsl2583 light sensor on smbus */
|
||||
- als = add_smbus_device(NULL, &tsl2583_als_device);
|
||||
- return 0;
|
||||
+ if (als)
|
||||
+ return 0;
|
||||
+
|
||||
+ /* add tsl2563 light sensor */
|
||||
+ als = add_i2c_device(NULL, type, &tsl2563_als_device);
|
||||
+ return (!als) ? -EAGAIN : 0;
|
||||
}
|
||||
|
||||
-static int __init setup_tsl2563_als(const struct dmi_system_id *id)
|
||||
+static int __init chromeos_laptop_dmi_matched(const struct dmi_system_id *id)
|
||||
{
|
||||
- /* add tsl2563 light sensor on smbus */
|
||||
- als = add_smbus_device(NULL, &tsl2563_als_device);
|
||||
- return 0;
|
||||
+ cros_laptop = (void *)id->driver_data;
|
||||
+ pr_debug("DMI Matched %s.\n", id->ident);
|
||||
+
|
||||
+ /* Indicate to dmi_scan that processing is done. */
|
||||
+ return 1;
|
||||
}
|
||||
|
||||
-static struct dmi_system_id __initdata chromeos_laptop_dmi_table[] = {
|
||||
+static int chromeos_laptop_probe(struct platform_device *pdev)
|
||||
+{
|
||||
+ int i;
|
||||
+ int ret = 0;
|
||||
+
|
||||
+ for (i = 0; i < MAX_I2C_PERIPHERALS; i++) {
|
||||
+ struct i2c_peripheral *i2c_dev;
|
||||
+
|
||||
+ i2c_dev = &cros_laptop->i2c_peripherals[i];
|
||||
+
|
||||
+ /* No more peripherals. */
|
||||
+ if (i2c_dev->add == NULL)
|
||||
+ break;
|
||||
+
|
||||
+ /* Add the device. Set -EPROBE_DEFER on any failure */
|
||||
+ if (i2c_dev->add(i2c_dev->type))
|
||||
+ ret = -EPROBE_DEFER;
|
||||
+ }
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+static struct chromeos_laptop samsung_series_5_550 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_isl29018_als, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop samsung_series_5 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_tsl2583_als, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop chromebook_pixel = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Touch Screen. */
|
||||
+ { .add = setup_atmel_1664s_ts, I2C_ADAPTER_PANEL },
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_atmel_224s_tp, I2C_ADAPTER_VGADDC },
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_isl29018_als, I2C_ADAPTER_PANEL },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop acer_c720 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_isl29018_als, I2C_ADAPTER_I2C1 },
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_cyapa_tp, I2C_ADAPTER_I2C0 },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop hp_chromebook_14 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_cyapa_tp, I2C_ADAPTER_I2C0 },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop acer_c7_chromebook = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop acer_ac700 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_tsl2563_als, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop hp_pavilion_14_chromebook = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Touchpad. */
|
||||
+ { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static struct chromeos_laptop cr48 = {
|
||||
+ .i2c_peripherals = {
|
||||
+ /* Light Sensor. */
|
||||
+ { .add = setup_tsl2563_als, I2C_ADAPTER_SMBUS },
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+#define _CBDD(board_) \
|
||||
+ .callback = chromeos_laptop_dmi_matched, \
|
||||
+ .driver_data = (void *)&board_
|
||||
+
|
||||
+static struct dmi_system_id chromeos_laptop_dmi_table[] __initdata = {
|
||||
{
|
||||
- .ident = "Samsung Series 5 550 - Touchpad",
|
||||
+ .ident = "Samsung Series 5 550",
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "Lumpy"),
|
||||
},
|
||||
- .callback = setup_cyapa_smbus_tp,
|
||||
+ _CBDD(samsung_series_5_550),
|
||||
},
|
||||
{
|
||||
- .ident = "Chromebook Pixel - Touchscreen",
|
||||
+ .ident = "Samsung Series 5",
|
||||
.matches = {
|
||||
- DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
|
||||
+ DMI_MATCH(DMI_PRODUCT_NAME, "Alex"),
|
||||
},
|
||||
- .callback = setup_atmel_1664s_ts,
|
||||
+ _CBDD(samsung_series_5),
|
||||
},
|
||||
{
|
||||
- .ident = "Chromebook Pixel - Touchpad",
|
||||
+ .ident = "Chromebook Pixel",
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
|
||||
},
|
||||
- .callback = setup_atmel_224s_tp,
|
||||
+ _CBDD(chromebook_pixel),
|
||||
},
|
||||
{
|
||||
- .ident = "Samsung Series 5 550 - Light Sensor",
|
||||
+ .ident = "Acer C720",
|
||||
.matches = {
|
||||
- DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG"),
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "Lumpy"),
|
||||
+ DMI_MATCH(DMI_PRODUCT_NAME, "Peppy"),
|
||||
},
|
||||
- .callback = setup_isl29018_als,
|
||||
+ _CBDD(acer_c720),
|
||||
},
|
||||
{
|
||||
- .ident = "Chromebook Pixel - Light Sensor",
|
||||
+ .ident = "HP Chromebook 14",
|
||||
.matches = {
|
||||
- DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
|
||||
+ DMI_MATCH(DMI_PRODUCT_NAME, "Falco"),
|
||||
},
|
||||
- .callback = setup_isl29023_als,
|
||||
+ _CBDD(hp_chromebook_14),
|
||||
},
|
||||
{
|
||||
- .ident = "Acer C7 Chromebook - Touchpad",
|
||||
+ .ident = "Acer C7 Chromebook",
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "Parrot"),
|
||||
},
|
||||
- .callback = setup_cyapa_smbus_tp,
|
||||
+ _CBDD(acer_c7_chromebook),
|
||||
},
|
||||
{
|
||||
- .ident = "HP Pavilion 14 Chromebook - Touchpad",
|
||||
+ .ident = "Acer AC700",
|
||||
.matches = {
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "Butterfly"),
|
||||
+ DMI_MATCH(DMI_PRODUCT_NAME, "ZGB"),
|
||||
},
|
||||
- .callback = setup_cyapa_smbus_tp,
|
||||
+ _CBDD(acer_ac700),
|
||||
},
|
||||
{
|
||||
- .ident = "Samsung Series 5 - Light Sensor",
|
||||
+ .ident = "HP Pavilion 14 Chromebook",
|
||||
.matches = {
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "Alex"),
|
||||
+ DMI_MATCH(DMI_PRODUCT_NAME, "Butterfly"),
|
||||
},
|
||||
- .callback = setup_tsl2583_als,
|
||||
+ _CBDD(hp_pavilion_14_chromebook),
|
||||
},
|
||||
{
|
||||
- .ident = "Cr-48 - Light Sensor",
|
||||
+ .ident = "Cr-48",
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "Mario"),
|
||||
},
|
||||
- .callback = setup_tsl2563_als,
|
||||
- },
|
||||
- {
|
||||
- .ident = "Acer AC700 - Light Sensor",
|
||||
- .matches = {
|
||||
- DMI_MATCH(DMI_PRODUCT_NAME, "ZGB"),
|
||||
- },
|
||||
- .callback = setup_tsl2563_als,
|
||||
+ _CBDD(cr48),
|
||||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table);
|
||||
|
||||
+static struct platform_device *cros_platform_device;
|
||||
+
|
||||
+static struct platform_driver cros_platform_driver = {
|
||||
+ .driver = {
|
||||
+ .name = "chromeos_laptop",
|
||||
+ .owner = THIS_MODULE,
|
||||
+ },
|
||||
+ .probe = chromeos_laptop_probe,
|
||||
+};
|
||||
+
|
||||
static int __init chromeos_laptop_init(void)
|
||||
{
|
||||
+ int ret;
|
||||
if (!dmi_check_system(chromeos_laptop_dmi_table)) {
|
||||
pr_debug("%s unsupported system.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
+
|
||||
+ ret = platform_driver_register(&cros_platform_driver);
|
||||
+ if (ret)
|
||||
+ return ret;
|
||||
+
|
||||
+ cros_platform_device = platform_device_alloc("chromeos_laptop", -1);
|
||||
+ if (!cros_platform_device) {
|
||||
+ ret = -ENOMEM;
|
||||
+ goto fail_platform_device1;
|
||||
+ }
|
||||
+
|
||||
+ ret = platform_device_add(cros_platform_device);
|
||||
+ if (ret)
|
||||
+ goto fail_platform_device2;
|
||||
+
|
||||
return 0;
|
||||
+
|
||||
+fail_platform_device2:
|
||||
+ platform_device_put(cros_platform_device);
|
||||
+fail_platform_device1:
|
||||
+ platform_driver_unregister(&cros_platform_driver);
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
static void __exit chromeos_laptop_exit(void)
|
||||
File diff suppressed because it is too large
Load diff
215
helpers/DATA/linux-lts-wily/deblob-4.2 → helpers/DATA/linux/deblob-4.4
Normal file → Executable file
215
helpers/DATA/linux-lts-wily/deblob-4.2 → helpers/DATA/linux/deblob-4.4
Normal file → Executable file
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
# For each kver release, start extra with an empty string, then count
|
||||
# from 1 if changes are needed that require rebuilding the tarball.
|
||||
kver=4.2 extra=
|
||||
kver=4.4 extra=
|
||||
|
||||
set -e
|
||||
|
||||
|
|
@ -301,8 +301,8 @@ for f in \
|
|||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/idle.fuc \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3 \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf110.fuc4 \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf110.fuc4.h \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4 \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5 \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h \
|
||||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3 \
|
||||
|
|
@ -506,26 +506,14 @@ clean_blob arch/x86/kernel/cpu/microcode/amd.c
|
|||
clean_kconfig arch/x86/Kconfig MICROCODE_AMD
|
||||
clean_mk CONFIG_MICROCODE_AMD arch/x86/kernel/cpu/microcode/Makefile
|
||||
|
||||
announce MICROCODE_AMD_EARLY - "Early load AMD microcode"
|
||||
clean_blob arch/x86/kernel/cpu/microcode/amd_early.c
|
||||
clean_kconfig arch/x86/Kconfig MICROCODE_AMD_EARLY
|
||||
clean_mk CONFIG_MICROCODE_AMD_EARLY arch/x86/kernel/cpu/microcode/Makefile
|
||||
|
||||
announce MICROCODE_INTEL - "Intel microcode patch loading support"
|
||||
reject_firmware arch/x86/kernel/cpu/microcode/intel.c
|
||||
clean_blob arch/x86/kernel/cpu/microcode/intel.c
|
||||
clean_kconfig arch/x86/Kconfig MICROCODE_INTEL
|
||||
clean_mk CONFIG_MICROCODE_INTEL arch/x86/kernel/cpu/microcode/Makefile
|
||||
|
||||
announce MICROCODE_INTEL_EARLY - "Early load Intel microcode"
|
||||
clean_blob arch/x86/kernel/cpu/microcode/intel_early.c
|
||||
clean_kconfig arch/x86/Kconfig MICROCODE_INTEL_EARLY
|
||||
clean_mk CONFIG_MICROCODE_INTEL_EARLY arch/x86/kernel/cpu/microcode/Makefile
|
||||
|
||||
announce MICROCODE_EARLY - "Early load microcode"
|
||||
clean_blob Documentation/x86/early-microcode.txt
|
||||
clean_kconfig arch/x86/Kconfig MICROCODE_EARLY
|
||||
clean_mk CONFIG_MICROCODE_EARLY arch/x86/kernel/cpu/microcode/Makefile
|
||||
|
||||
# arm
|
||||
|
||||
|
|
@ -634,6 +622,10 @@ reject_firmware drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
|
|||
clean_blob drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
|
||||
reject_firmware drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
|
||||
clean_blob drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
|
||||
reject_firmware drivers/gpu/drm/amd/amdgpu/fiji_dpm.c
|
||||
clean_blob drivers/gpu/drm/amd/amdgpu/fiji_dpm.c
|
||||
reject_firmware drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
|
||||
clean_blob drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
|
||||
reject_firmware drivers/gpu/drm/amd/amdgpu/tonga_dpm.c
|
||||
clean_blob drivers/gpu/drm/amd/amdgpu/tonga_dpm.c
|
||||
clean_kconfig drivers/gpu/drm/Kconfig DRM_AMDGPU
|
||||
|
|
@ -659,7 +651,9 @@ clean_mk CONFIG_DRM_AST drivers/gpu/drm/ast/Makefile
|
|||
|
||||
announce DRM_I915 - "Intel 8xx/9xx/G3x/G4x/HD Graphics"
|
||||
reject_firmware drivers/gpu/drm/i915/intel_csr.c
|
||||
reject_firmware drivers/gpu/drm/i915/intel_guc_loader.c
|
||||
clean_blob drivers/gpu/drm/i915/intel_csr.c
|
||||
clean_blob drivers/gpu/drm/i915/intel_guc_loader.c
|
||||
clean_kconfig drivers/gpu/drm/i915/Kconfig DRM_I915
|
||||
clean_mk CONFIG_DRM_I915 drivers/gpu/drm/i915/Makefile
|
||||
|
||||
|
|
@ -1125,6 +1119,12 @@ reject_firmware drivers/media/pci/ttpci/budget-av.c
|
|||
announce DVB_BUDGET_CI - "Budget cards with onboard CI connector"
|
||||
reject_firmware drivers/media/pci/ttpci/budget-ci.c
|
||||
|
||||
announce DVB_C8SECTPFE - "STMicroelectronics C8SECTPFE DVB support"
|
||||
reject_firmware drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c
|
||||
clean_blob drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c
|
||||
clean_kconfig drivers/media/platform/sti/c8sectpfe/Kconfig DVB_C8SECTPFE
|
||||
clean_mk CONFIG_DVB_C8SECTPFE drivers/media/platform/sti/c8sectpfe/Makefile
|
||||
|
||||
announce DVB_DRXD - "Micronas DRXD driver"
|
||||
reject_firmware drivers/media/dvb-frontends/drxd_hard.c
|
||||
clean_blob drivers/media/dvb-frontends/drxd_hard.c
|
||||
|
|
@ -1393,8 +1393,6 @@ drop_fw_file firmware/bnx2/bnx2-rv2p-09-6.0.17.fw.ihex firmware/bnx2/bnx2-rv2p-0
|
|||
drop_fw_file firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw.ihex firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw
|
||||
drop_fw_file firmware/bnx2/bnx2-mips-06-6.2.1.fw.ihex firmware/bnx2/bnx2-mips-06-6.2.1.fw
|
||||
drop_fw_file firmware/bnx2/bnx2-rv2p-06-6.0.15.fw.ihex firmware/bnx2/bnx2-rv2p-06-6.0.15.fw
|
||||
drop_fw_file firmware/bnx2/bnx2-mips-09-6.2.1b.fw.ihex firmware/bnx2/bnx2-mips-09-6.2.1b.fw
|
||||
drop_fw_file firmware/bnx2/bnx2-mips-06-6.2.3.fw.ihex firmware/bnx2/bnx2-mips-06-6.2.3.fw
|
||||
reject_firmware drivers/net/ethernet/broadcom/bnx2.c
|
||||
clean_blob drivers/net/ethernet/broadcom/bnx2.c
|
||||
clean_kconfig drivers/net/ethernet/broadcom/Kconfig BNX2
|
||||
|
|
@ -1404,9 +1402,6 @@ announce BNX2X - "Broadcom NetXtremeII 10Gb support"
|
|||
drop_fw_file firmware/bnx2x/bnx2x-e1-6.2.9.0.fw.ihex firmware/bnx2x/bnx2x-e1-6.2.9.0.fw
|
||||
drop_fw_file firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw.ihex firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw
|
||||
drop_fw_file firmware/bnx2x/bnx2x-e2-6.2.9.0.fw.ihex firmware/bnx2x/bnx2x-e2-6.2.9.0.fw
|
||||
drop_fw_file firmware/bnx2x/bnx2x-e1-7.10.51.0.fw.ihex firmware/bnx2x/bnx2x-e1-7.10.51.0.fw
|
||||
drop_fw_file firmware/bnx2x/bnx2x-e1h-7.10.51.0.fw.ihex firmware/bnx2x/bnx2x-e1h-7.10.51.0.fw
|
||||
drop_fw_file firmware/bnx2x/bnx2x-e2-7.10.51.0.fw.ihex firmware/bnx2x/bnx2x-e2-7.10.51.0.fw
|
||||
reject_firmware drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
|
||||
clean_sed '
|
||||
/^#include "bnx2x_init\.h"/,/^$/{
|
||||
|
|
@ -1474,28 +1469,6 @@ clean_blob drivers/net/ethernet/intel/e100.c
|
|||
clean_kconfig drivers/net/ethernet/intel/Kconfig E100
|
||||
clean_mk CONFIG_E100 drivers/net/ethernet/intel/Makefile
|
||||
|
||||
announce FT1000_PCMCIA - "Driver for ft1000 pcmcia device."
|
||||
clean_file drivers/staging/ft1000/ft1000-pcmcia/ft1000.img
|
||||
clean_blob drivers/staging/ft1000/ft1000-pcmcia/boot.h
|
||||
clean_sed '
|
||||
/^static int ft1000_reset_card/,/^}$/ {
|
||||
/card_bootload/i\
|
||||
return /*(DEBLOBBED)*/ false;
|
||||
}
|
||||
' drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c \
|
||||
'disabled non-Free firmware-loading machinery'
|
||||
reject_firmware drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
|
||||
clean_blob drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
|
||||
clean_kconfig drivers/staging/ft1000/Kconfig FT1000_PCMCIA
|
||||
clean_mk CONFIG_FT1000_PCMCIA drivers/staging/ft1000/Makefile
|
||||
|
||||
announce FT1000_USB - "Driver for ft1000 USB devices."
|
||||
clean_file drivers/staging/ft1000/ft1000-usb/ft3000.img
|
||||
reject_firmware drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
|
||||
clean_blob drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
|
||||
clean_kconfig drivers/staging/ft1000/Kconfig FT1000_USB
|
||||
clean_mk CONFIG_FT1000_USB drivers/staging/ft1000/Makefile
|
||||
|
||||
announce LIQUIDIO - "Cavium LiquidIO support"
|
||||
reject_firmware drivers/net/ethernet/cavium/liquidio/lio_main.c
|
||||
clean_blob drivers/net/ethernet/cavium/liquidio/lio_main.c
|
||||
|
|
@ -1518,6 +1491,12 @@ clean_blob drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
|
|||
clean_kconfig drivers/net/ethernet/qlogic/Kconfig NETXEN_NIC
|
||||
clean_mk CONFIG_NETXEN_NIC drivers/net/ethernet/qlogic/Makefile
|
||||
|
||||
announce QED - "QLogic QED 25/40/100Gb core driver"
|
||||
reject_firmware drivers/net/ethernet/qlogic/qed/qed_main.c
|
||||
clean_blob drivers/net/ethernet/qlogic/qed/qed_main.c
|
||||
clean_kconfig drivers/net/ethernet/qlogic/Kconfig QED
|
||||
clean_mk CONFIG_QED drivers/net/ethernet/qlogic/qed/Makefile
|
||||
|
||||
announce QLCNIC - "QLOGIC QLCNIC 1/10Gb Converged Ethernet NIC Support"
|
||||
reject_firmware drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
|
||||
reject_firmware drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
|
||||
|
|
@ -1626,6 +1605,17 @@ clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/ethernet/smsc/Makefile
|
|||
|
||||
# near-field communication
|
||||
|
||||
announce NFC_FDP - "Intel FDP NFC driver"
|
||||
reject_firmware drivers/nfc/fdp/fdp.c
|
||||
clean_blob drivers/nfc/fdp/fdp.c
|
||||
clean_kconfig drivers/nfc/fdp/Kconfig NFC_FDP
|
||||
clean_mk CONFIG_NFC_FDP drivers/nfc/fdp/Makefile
|
||||
|
||||
announce NFC_MRVL - "Marvell NFC core driver"
|
||||
reject_firmware drivers/nfc/nfcmrvl/fw_dnld.c
|
||||
clean_kconfig drivers/nfc/nfcmrvl/Kconfig NFC_MRVL
|
||||
clean_mk CONFIG_NFC_MRVL drivers/nfc/nfcmrvl/Makefile
|
||||
|
||||
announce NFC_NXP_NCI - "NXP-NCI NFC driver"
|
||||
reject_firmware drivers/nfc/nxp-nci/firmware.c
|
||||
clean_kconfig drivers/nfc/nxp-nci/Kconfig NFC_NXP_NCI
|
||||
|
|
@ -1642,6 +1632,13 @@ reject_firmware drivers/nfc/pn544/i2c.c
|
|||
clean_kconfig drivers/nfc/pn544/Kconfig NFC_PN544_I2C
|
||||
clean_mk CONFIG_NFC_PN544_I2C drivers/nfc/pn544/Makefile
|
||||
|
||||
announce NFC_S3FWRN5 - "Core driver for Samsung S3FWRN5 NFC chip"
|
||||
clean_blob drivers/nfc/s3fwrn5/core.c
|
||||
reject_firmware drivers/nfc/s3fwrn5/firmware.c
|
||||
reject_firmware drivers/nfc/s3fwrn5/nci.c
|
||||
clean_kconfig drivers/nfc/s3fwrn5/Kconfig NFC_S3FWRN5
|
||||
clean_mk CONFIG_NFC_S3FWRN5 drivers/nfc/s3fwrn5/Makefile
|
||||
|
||||
# pcmcia
|
||||
|
||||
# CIS files are not software.
|
||||
|
|
@ -1914,7 +1911,7 @@ clean_mk CONFIG_ATH10K drivers/net/wireless/ath/ath10k/Makefile
|
|||
announce ATH10K NL80211_TESTMODE - "nl80211 testmode command"
|
||||
reject_firmware drivers/net/wireless/ath/ath10k/testmode.c
|
||||
clean_sed '
|
||||
/^[\t ]*\/\* utf\.bin firmware image/ s,/\* utf\.bin,/*(DEBLOBBED)*//*,
|
||||
s,^\([\t ]*\/\* We didn.t find FW UTF API 1 \)("utf\.bin"),\1*//*(DEBLOBBED)*//*,
|
||||
' drivers/net/wireless/ath/ath10k/testmode.c 'removed blob name in comment'
|
||||
clean_kconfig net/wireless/Kconfig NL80211_TESTMODE
|
||||
clean_mk CONFIG_NL80211_TESTMODE drivers/net/wireless/ath/ath10k/Makefile
|
||||
|
|
@ -2026,16 +2023,22 @@ clean_blob drivers/net/wireless/rt2x00/rt2800usb.c
|
|||
clean_kconfig drivers/net/wireless/rt2x00/Kconfig RT2800USB
|
||||
clean_mk CONFIG_RT2800USB drivers/net/wireless/rt2x00/Makefile
|
||||
|
||||
announce RTL8XXXU - "RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support"
|
||||
reject_firmware drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
|
||||
clean_blob drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtl8xxxu/Kconfig RTL8XXXU
|
||||
clean_mk CONFIG_RTL8XXXU drivers/net/wireless/realtek/rtl8xxxu/Makefile
|
||||
|
||||
announce RTLWIFI - "Realtek Wireless Network Adapters"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/core.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTLWIFI
|
||||
clean_mk CONFIG_RTLWIFI drivers/net/wireless/rtlwifi/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/core.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTLWIFI
|
||||
clean_mk CONFIG_RTLWIFI drivers/net/wireless/realtek/rtlwifi/Makefile
|
||||
|
||||
announce RTL8188EE - "Realtek RTL8188EE Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8188ee/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8188ee/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8188EE
|
||||
clean_mk CONFIG_RTL8188EE drivers/net/wireless/rtlwifi/rtl8188ee/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8188EE
|
||||
clean_mk CONFIG_RTL8188EE drivers/net/wireless/realtek/rtlwifi/rtl8188ee/Makefile
|
||||
|
||||
announce R8188EU - "Realtek RTL8188EU Wireless LAN NIC driver"
|
||||
reject_firmware drivers/staging/rtl8188eu/hal/fw.c
|
||||
|
|
@ -2045,28 +2048,28 @@ clean_kconfig drivers/staging/rtl8188eu/Kconfig R8188EU
|
|||
clean_mk CONFIG_R8188EU drivers/staging/rtl8188eu/Makefile
|
||||
|
||||
announce RTL8192CE - "Realtek RTL8192CE/RTL8188CE Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8192CE
|
||||
clean_mk CONFIG_RTL8192CE drivers/net/wireless/rtlwifi/rtl8192ce/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8192CE
|
||||
clean_mk CONFIG_RTL8192CE drivers/net/wireless/realtek/rtlwifi/rtl8192ce/Makefile
|
||||
|
||||
announce RTL8192CU - "Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8192CU
|
||||
clean_mk CONFIG_RTL8192CU drivers/net/wireless/rtlwifi/rtl8192cu/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8192CU
|
||||
clean_mk CONFIG_RTL8192CU drivers/net/wireless/realtek/rtlwifi/rtl8192cu/Makefile
|
||||
|
||||
announce RTL8192DE - "Realtek RTL8192DE/RTL8188DE PCIe Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8192de/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8192de/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8192DE
|
||||
clean_mk CONFIG_RTL8192DE drivers/net/wireless/rtlwifi/rtl8192de/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8192DE
|
||||
clean_mk CONFIG_RTL8192DE drivers/net/wireless/realtek/rtlwifi/rtl8192de/Makefile
|
||||
|
||||
announce RTL8192SE - "Realtek RTL8192SE/RTL8191SE PCIe Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8192se/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8192se/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8192SE
|
||||
clean_mk CONFIG_RTL8192SE drivers/net/wireless/rtlwifi/rtl8192se/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8192se/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8192se/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8192SE
|
||||
clean_mk CONFIG_RTL8192SE drivers/net/wireless/realtek/rtlwifi/rtl8192se/Makefile
|
||||
|
||||
announce RTL8192E - "RealTek RTL8192E Wireless LAN NIC driver"
|
||||
reject_firmware drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
|
||||
|
|
@ -2076,10 +2079,10 @@ clean_kconfig drivers/staging/rtl8192e/rtl8192e/Kconfig RTL8192E
|
|||
clean_mk CONFIG_RTL8192E drivers/staging/rtl8192e/Makefile
|
||||
|
||||
announce RTL8192EE - "RealTek RTL8192EE Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8192ee/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8192ee/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8192EE
|
||||
clean_mk CONFIG_RTL8192EE drivers/net/wireless/rtlwifi/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8192EE
|
||||
clean_mk CONFIG_RTL8192EE drivers/net/wireless/realtek/rtlwifi/Makefile
|
||||
|
||||
announce RTL8192U - "RealTek RTL8192U Wireless LAN NIC driver"
|
||||
reject_firmware drivers/staging/rtl8192u/r819xU_firmware.c
|
||||
|
|
@ -2094,10 +2097,10 @@ clean_kconfig drivers/staging/rtl8712/Kconfig R8712U
|
|||
clean_mk CONFIG_R8712U drivers/staging/rtl8712/Makefile
|
||||
|
||||
announce RTL8723AE - "Realtek RTL8723AE PCIe Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8723ae/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8723ae/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8723AE
|
||||
clean_mk CONFIG_RTL8723AE drivers/net/wireless/rtlwifi/rtl8723ae/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8723AE
|
||||
clean_mk CONFIG_RTL8723AE drivers/net/wireless/realtek/rtlwifi/rtl8723ae/Makefile
|
||||
|
||||
announce R8723AU - "RealTek RTL8723AU Wireless LAN NIC driver"
|
||||
reject_firmware drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
|
||||
|
|
@ -2107,16 +2110,16 @@ clean_kconfig drivers/staging/rtl8723au/Kconfig R8723AU
|
|||
clean_mk CONFIG_R8723AU drivers/staging/rtl8723au/Makefile
|
||||
|
||||
announce RTL8723BE - "Realtek RTL8723BE PCIe Wireless Network Adapter"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8723be/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8723be/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8723BE
|
||||
clean_mk CONFIG_RTL8723BE drivers/net/wireless/rtlwifi/rtl8723be/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8723BE
|
||||
clean_mk CONFIG_RTL8723BE drivers/net/wireless/realtek/rtlwifi/rtl8723be/Makefile
|
||||
|
||||
announce RTL8821AE - "Realtek RTL8821AE/RTL8812AE Wireless LAN NIC driver"
|
||||
reject_firmware drivers/net/wireless/rtlwifi/rtl8821ae/sw.c
|
||||
clean_blob drivers/net/wireless/rtlwifi/rtl8821ae/sw.c
|
||||
clean_kconfig drivers/net/wireless/rtlwifi/Kconfig RTL8821AE
|
||||
clean_mk CONFIG_RTL8821AE drivers/net/wireless/rtlwifi/rtl8821ae/Makefile
|
||||
reject_firmware drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c
|
||||
clean_blob drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c
|
||||
clean_kconfig drivers/net/wireless/realtek/rtlwifi/Kconfig RTL8821AE
|
||||
clean_mk CONFIG_RTL8821AE drivers/net/wireless/realtek/rtlwifi/rtl8821ae/Makefile
|
||||
|
||||
announce VT6656 - "VIA Technologies VT6656 support"
|
||||
reject_firmware drivers/staging/vt6656/firmware.c
|
||||
|
|
@ -2164,7 +2167,6 @@ clean_mk CONFIG_WCN36XX drivers/net/wireless/ath/wcn36xx/Makefile
|
|||
|
||||
announce WILC1000 - "WILC1000 support (WiFi only)"
|
||||
reject_firmware drivers/staging/wilc1000/linux_wlan.c
|
||||
clean_blob drivers/staging/wilc1000/linux_wlan.c
|
||||
clean_blob drivers/staging/wilc1000/Makefile
|
||||
clean_sed 's,\\"/\*(DEBLOBBED)\*/\\","&",g' drivers/staging/wilc1000/Makefile \
|
||||
"quote deblobbing markers"
|
||||
|
|
@ -2220,6 +2222,18 @@ clean_blob drivers/bluetooth/btusb.c
|
|||
clean_kconfig drivers/bluetooth/Kconfig BT_HCIBTUSB
|
||||
clean_mk CONFIG_BT_HCIBTUSB drivers/bluetooth/Makefile
|
||||
|
||||
announce BT_INTEL - "Bluetooth support for Intel devices"
|
||||
reject_firmware drivers/bluetooth/btintel.c
|
||||
clean_blob drivers/bluetooth/btintel.c
|
||||
clean_kconfig drivers/bluetooth/Kconfig BT_INTEL
|
||||
clean_mk CONFIG_BT_INTEL drivers/bluetooth/Makefile
|
||||
|
||||
announce BT_HCIUART_INTEL - "Intel protocol support"
|
||||
reject_firmware drivers/bluetooth/hci_intel.c
|
||||
clean_blob drivers/bluetooth/hci_intel.c
|
||||
clean_kconfig drivers/bluetooth/Kconfig BT_HCIUART_INTEL
|
||||
clean_mk CONFIG_BT_HCIUART_INTEL drivers/bluetooth/Makefile
|
||||
|
||||
announce BT_MRVL_SDIO - "Marvell BT-over-SDIO driver"
|
||||
reject_firmware drivers/bluetooth/btmrvl_sdio.c
|
||||
clean_blob drivers/bluetooth/btmrvl_sdio.c
|
||||
|
|
@ -2227,6 +2241,12 @@ clean_blob Documentation/btmrvl.txt
|
|||
clean_kconfig drivers/bluetooth/Kconfig BT_MRVL_SDIO
|
||||
clean_mk CONFIG_BT_MRVL_SDIO drivers/bluetooth/Makefile
|
||||
|
||||
announce BT_QCA - "Bluetooh support for Qualcomm/Atheros devices"
|
||||
reject_firmware drivers/bluetooth/btqca.c
|
||||
clean_blob drivers/bluetooth/btqca.c
|
||||
clean_kconfig drivers/bluetooth/Kconfig BT_QCA
|
||||
clean_mk CONFIG_BT_QCA drivers/bluetooth/Makefile
|
||||
|
||||
announce BT_RTL - "Bluetooth support for Realtek devices"
|
||||
reject_firmware drivers/bluetooth/btrtl.c
|
||||
clean_blob drivers/bluetooth/btrtl.c
|
||||
|
|
@ -2262,6 +2282,12 @@ clean_mk CONFIG_WIMAX_GDM72XX_USB drivers/staging/gdm72xx/Makefile
|
|||
|
||||
# infiniband
|
||||
|
||||
announce INFINIBAND_HFI1 - "Intel OPA Gen1 support"
|
||||
reject_firmware drivers/staging/rdma/hfi1/firmware.c
|
||||
clean_blob drivers/staging/rdma/hfi1/firmware.c
|
||||
clean_kconfig drivers/staging/rdma/hfi1/Kconfig INFINIBAND_HFI1
|
||||
clean_mk CONFIG_INFINIBAND_HFI1 drivers/staging/rdma/hfi1/Makefile
|
||||
|
||||
announce INFINIBAND_QIB - "QLogic PCIe HCA support"
|
||||
drop_fw_file firmware/qlogic/sd7220.fw.ihex firmware/qlogic/sd7220.fw
|
||||
reject_firmware drivers/infiniband/hw/qib/qib_sd7220.c
|
||||
|
|
@ -2401,6 +2427,12 @@ clean_blob drivers/input/touchscreen/atmel_mxt_ts.c
|
|||
clean_kconfig drivers/input/touchscreen/Kconfig TOUCHSCREEN_ATMEL_MXT
|
||||
clean_mk CONFIG_TOUCHSCREEN_ATMEL_MXT drivers/input/touchscreen/Makefile
|
||||
|
||||
announce TOUCHSCREEN_ROHM_BU21023 - "ROHM BU21023/24 Dual touch support resistive touchscreens"
|
||||
reject_firmware drivers/input/touchscreen/rohm_bu21023.c
|
||||
clean_blob drivers/input/touchscreen/rohm_bu21023.c
|
||||
clean_kconfig drivers/input/touchscreen/Kconfig TOUCHSCREEN_ROHM_BU21023
|
||||
clean_mk CONFIG_TOUCHSCREEN_ROHM_BU21023 drivers/input/touchscreen/Makefile
|
||||
|
||||
announce TOUCHSCREEN_WDT87XX_I2C - "Weida HiTech I2C touchscreen"
|
||||
reject_firmware drivers/input/touchscreen/wdt87xx_i2c.c
|
||||
clean_blob drivers/input/touchscreen/wdt87xx_i2c.c
|
||||
|
|
@ -2544,7 +2576,7 @@ clean_sed '
|
|||
/^config SCSI_QLA_FC$/,/^config /{
|
||||
/^ By default, firmware/i\
|
||||
/*(DEBLOBBED)*/
|
||||
/^ By default, firmware/,/linux-firmware tree[/]/d
|
||||
/^ By default, firmware/,/linux-firmware tree/d
|
||||
}' drivers/scsi/qla2xxx/Kconfig 'removed firmware notes'
|
||||
clean_blob drivers/scsi/qla2xxx/qla_os.c
|
||||
clean_kconfig drivers/scsi/qla2xxx/Kconfig SCSI_QLA_FC
|
||||
|
|
@ -2674,6 +2706,8 @@ clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
|
|||
announce USB_SERIAL_EDGEPORT_TI - "USB Inside Out Edgeport Serial Driver (TI devices)"
|
||||
clean_fw firmware/edgeport/down3.bin.ihex firmware/edgeport/down3.bin
|
||||
reject_firmware drivers/usb/serial/io_ti.c
|
||||
clean_sed 's,firmware "down3\.bin",firmware "(DEBLOBBED)",
|
||||
' drivers/usb/serial/io_ti.c 'deblobbed comment'
|
||||
clean_blob drivers/usb/serial/io_ti.c
|
||||
clean_kconfig drivers/usb/serial/Kconfig USB_SERIAL_EDGEPORT_TI
|
||||
clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
|
||||
|
|
@ -2730,6 +2764,8 @@ maybe_reject_firmware drivers/remoteproc/remoteproc_core.c
|
|||
undefine_macro SPROC_MODEM_FIRMWARE "\"/*(DEBLOBBED)*/\"" \
|
||||
"disabled non-Free firmware" drivers/remoteproc/ste_modem_rproc.c
|
||||
clean_blob Documentation/devicetree/bindings/remoteproc/wkup_m3_rproc.txt
|
||||
clean_blob arch/arm/boot/dts/am33xx.dtsi
|
||||
clean_blob arch/arm/boot/dts/am4372.dtsi
|
||||
clean_kconfig drivers/remoteproc/Kconfig STE_MODEM_RPROC
|
||||
clean_mk CONFIG_STE_MODEM_RPROC drivers/remoteproc/Makefile
|
||||
|
||||
|
|
@ -3010,6 +3046,14 @@ clean_blob sound/soc/intel/haswell/sst-haswell-ipc.c
|
|||
clean_kconfig sound/soc/intel/Kconfig SND_SOC_INTEL_HASWELL
|
||||
clean_mk CONFIG_SND_SOC_INTEL_HASWELL sound/soc/intel/haswell/Makefile
|
||||
|
||||
announce SND_SOC_INTEL_SKYLAKE - undocumented
|
||||
reject_firmware sound/soc/intel/skylake/skl-sst.c
|
||||
reject_firmware sound/soc/intel/skylake/skl-topology.c
|
||||
clean_blob sound/soc/intel/skylake/skl-sst.c
|
||||
clean_blob sound/soc/intel/skylake/skl-topology.c
|
||||
clean_kconfig sound/soc/intel/Kconfig SND_SOC_INTEL_SKYLAKE
|
||||
clean_mk CONFIG_SND_SOC_INTEL_SKYLAKE sound/soc/intel/skylake/Makefile
|
||||
|
||||
announce SND_SST_IPC - undocumented
|
||||
reject_firmware sound/soc/intel/atom/sst/sst.c
|
||||
reject_firmware sound/soc/intel/atom/sst/sst_loader.c
|
||||
|
|
@ -3099,7 +3143,8 @@ clean_mk CONFIG_SND_USB_6FIRE sound/usb/6fire/Makefile
|
|||
|
||||
announce KEYSTONE_NAVIGATOR_QMSS - "Keystone Queue Manager Sub System"
|
||||
reject_firmware drivers/soc/ti/knav_qmss_queue.c
|
||||
clean_blob Documentation/devicetree/bindings/soc/ti/keystone-navigator-qmss.txt
|
||||
clean_blob drivers/soc/ti/knav_qmss_queue.c
|
||||
clean_blob Documentation/arm/keystone/knav-qmss.txt
|
||||
clean_kconfig drivers/soc/ti/Kconfig KEYSTONE_NAVIGATOR_QMSS
|
||||
clean_mk CONFIG_KEYSTONE_NAVIGATOR_QMSS drivers/soc/ti/Makefile
|
||||
|
||||
File diff suppressed because it is too large
Load diff
0
helpers/DATA/linux-lts-vivid/deblob-main → helpers/DATA/linux/deblob-main
Normal file → Executable file
0
helpers/DATA/linux-lts-vivid/deblob-main → helpers/DATA/linux/deblob-main
Normal file → Executable file
6
helpers/DATA/linux/firmware/.gitignore
vendored
6
helpers/DATA/linux/firmware/.gitignore
vendored
|
|
@ -1,6 +0,0 @@
|
|||
*.gen.S
|
||||
*.fw
|
||||
*.bin
|
||||
*.csp
|
||||
*.dsp
|
||||
ihex2fw
|
||||
|
|
@ -1,251 +0,0 @@
|
|||
#
|
||||
# kbuild file for firmware/
|
||||
#
|
||||
|
||||
# Create $(fwabs) from $(CONFIG_EXTRA_FIRMWARE_DIR) -- if it doesn't have a
|
||||
# leading /, it's relative to $(srctree).
|
||||
fwdir := $(subst ",,$(CONFIG_EXTRA_FIRMWARE_DIR))
|
||||
fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
|
||||
|
||||
fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE))
|
||||
|
||||
# There are three cases to care about:
|
||||
# 1. Building kernel with CONFIG_FIRMWARE_IN_KERNEL=y -- $(fw-shipped-y) should
|
||||
# include the firmware files to include, according to .config
|
||||
# 2. 'make modules_install', which will install firmware for modules, and
|
||||
# _also_ for the in-kernel drivers when CONFIG_FIRMWARE_IN_KERNEL=n
|
||||
# 3. 'make firmware_install', which installs all firmware, unconditionally.
|
||||
|
||||
# For the former two cases we want $(fw-shipped-y) and $(fw-shipped-m) to be
|
||||
# accurate. In the latter case it doesn't matter -- it'll use $(fw-shipped-all).
|
||||
# But be aware that the config file might not be included at all.
|
||||
|
||||
ifdef CONFIG_ACENIC_OMIT_TIGON_I
|
||||
acenic-objs := $(DEBLOBBED)
|
||||
fw-shipped- += $(DEBLOBBED)
|
||||
else
|
||||
acenic-objs := $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_ACENIC) += $(acenic-objs)
|
||||
fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
|
||||
fw-shipped-$(CONFIG_ATM_AMBASSADOR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2X) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_BNX2) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CASSINI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_CHELSIO_T3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_MGA) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_R128) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DRM_RADEON) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin
|
||||
fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_E100) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_MYRI_SBUS) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_PCNET) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C589) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_3C574) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SERIAL_8250_CS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_PCMCIA_SMC91C92) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_ADVANSYS) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGIC_1280) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SCSI_QLOGICPTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_INFINIBAND_QIB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_KORG1212) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_MAESTRO3) += $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_SB16_CSP) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_YMFPCI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_SND_WAVEFRONT) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TEHUTI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TIGON3) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_TYPHOON) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI26) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_EMI62) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_KAWETH) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) \
|
||||
$(DEBLOBBED)
|
||||
ifdef CONFIG_FIRMWARE_IN_KERNEL
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_MPR) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA18X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19QW) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XA) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28XB) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA28X) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49W) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA49WLC) += $(DEBLOBBED)
|
||||
else
|
||||
fw-shipped- += $(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
endif
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_TI) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
$(DEBLOBBED) $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_EDGEPORT_TI) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_WHITEHEAT) += $(DEBLOBBED) $(DEBLOBBED) \
|
||||
# $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_PDA) += keyspan_pda/keyspan_pda.fw
|
||||
fw-shipped-$(CONFIG_USB_SERIAL_XIRCOM) += keyspan_pda/xircom_pgs.fw
|
||||
fw-shipped-$(CONFIG_USB_VICAM) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_VIDEO_CPIA2) += $(DEBLOBBED)
|
||||
fw-shipped-$(CONFIG_YAM) += $(DEBLOBBED) $(DEBLOBBED)
|
||||
|
||||
fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-)
|
||||
|
||||
# Directories which we _might_ need to create, so we have a rule for them.
|
||||
firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all))))
|
||||
|
||||
quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@)
|
||||
cmd_mkdir = mkdir -p $@
|
||||
|
||||
quiet_cmd_ihex = IHEX $@
|
||||
cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@
|
||||
|
||||
quiet_cmd_ihex2fw = IHEX2FW $@
|
||||
cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@
|
||||
|
||||
quiet_cmd_h16tofw = H16TOFW $@
|
||||
cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@
|
||||
|
||||
quiet_cmd_fwbin = MK_FW $@
|
||||
cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \
|
||||
FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst \
|
||||
firmware/%.gen.S,%,$@))))"; \
|
||||
ASM_WORD=$(if $(CONFIG_64BIT),.quad,.long); \
|
||||
ASM_ALIGN=$(if $(CONFIG_64BIT),3,2); \
|
||||
PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \
|
||||
echo "/* Generated by firmware/Makefile */" > $@;\
|
||||
echo " .section .rodata" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_bin:" >>$@;\
|
||||
echo " .incbin \"$(2)\"" >>$@;\
|
||||
echo "_fw_end:" >>$@;\
|
||||
echo " .section .rodata.str,\"aMS\",$${PROGBITS},1" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo "_fw_$${FWSTR}_name:" >>$@;\
|
||||
echo " .string \"$$FWNAME\"" >>$@;\
|
||||
echo " .section .builtin_fw,\"a\",$${PROGBITS}" >>$@;\
|
||||
echo " .p2align $${ASM_ALIGN}" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_name" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_$${FWSTR}_bin" >>$@;\
|
||||
echo " $${ASM_WORD} _fw_end - _fw_$${FWSTR}_bin" >>$@;
|
||||
|
||||
# One of these files will change, or come into existence, whenever
|
||||
# the configuration changes between 32-bit and 64-bit. The .S files
|
||||
# need to change when that happens.
|
||||
wordsize_deps := $(wildcard include/config/64bit.h include/config/32bit.h \
|
||||
include/config/ppc32.h include/config/ppc64.h \
|
||||
include/config/superh32.h include/config/superh64.h \
|
||||
include/config/x86_32.h include/config/x86_64.h)
|
||||
|
||||
# Workaround for make < 3.81, where .SECONDEXPANSION doesn't work.
|
||||
# It'll end up depending on these targets, so make them a PHONY rule which
|
||||
# depends on _all_ the directories in $(firmware-dirs), and it'll work out OK.
|
||||
PHONY += $(objtree)/$$(%) $(objtree)/$(obj)/$$(%)
|
||||
$(objtree)/$$(%) $(objtree)/$(obj)/$$(%): $(firmware-dirs)
|
||||
@true
|
||||
|
||||
# For the $$(dir %) trick, where we need % to be expanded first.
|
||||
.SECONDEXPANSION:
|
||||
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-shipped-y)): %: $(wordsize_deps) \
|
||||
| $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(patsubst %.gen.S,%,$@))
|
||||
$(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) \
|
||||
include/config/extra/firmware/dir.h | $(objtree)/$$(dir %)
|
||||
$(call cmd,fwbin,$(fwabs)/$(patsubst $(obj)/%.gen.S,%,$@))
|
||||
|
||||
# The .o files depend on the binaries directly; the .S files don't.
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-shipped-y)): %.gen.o: %
|
||||
$(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/%
|
||||
|
||||
# .ihex is used just as a simple way to hold binary files in a source tree
|
||||
# where binaries are frowned upon. They are directly converted with objcopy.
|
||||
$(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex)
|
||||
|
||||
# Don't depend on ihex2fw if we're installing and it already exists.
|
||||
# Putting it after | in the dependencies doesn't seem sufficient when
|
||||
# we're installing after a cross-compile, because ihex2fw has dependencies
|
||||
# on stuff like /usr/lib/gcc/ppc64-redhat-linux/4.3.0/include/stddef.h and
|
||||
# thus wants to be rebuilt. Which it can't be, if the prebuilt kernel tree
|
||||
# is exported read-only for someone to run 'make install'.
|
||||
ifeq ($(INSTALL):$(wildcard $(obj)/ihex2fw),install:$(obj)/ihex2fw)
|
||||
ihex2fw_dep :=
|
||||
else
|
||||
ihex2fw_dep := $(obj)/ihex2fw
|
||||
endif
|
||||
|
||||
# .HEX is also Intel HEX, but where the offset and length in each record
|
||||
# is actually meaningful, because the firmware has to be loaded in a certain
|
||||
# order rather than as a single binary blob. Thus, we convert them into our
|
||||
# more compact binary representation of ihex records (<linux/ihex.h>)
|
||||
$(obj)/%.fw: $(obj)/%.HEX $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,ihex2fw)
|
||||
|
||||
# .H16 is our own modified form of Intel HEX, with 16-bit length for records.
|
||||
$(obj)/%.fw: $(obj)/%.H16 $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
|
||||
$(call cmd,h16tofw)
|
||||
|
||||
$(firmware-dirs):
|
||||
$(call cmd,mkdir)
|
||||
|
||||
obj-y += $(patsubst %,%.gen.o, $(fw-external-y))
|
||||
obj-$(CONFIG_FIRMWARE_IN_KERNEL) += $(patsubst %,%.gen.o, $(fw-shipped-y))
|
||||
|
||||
# Remove .S files and binaries created from ihex
|
||||
# (during 'make clean' .config isn't included so they're all in $(fw-shipped-))
|
||||
targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \
|
||||
$(shell find $(obj) -name \*.gen.S 2>/dev/null))
|
||||
|
||||
# Without this, built-in.o won't be created when it's empty, and the
|
||||
# final vmlinux link will fail.
|
||||
obj-n := dummy
|
||||
|
||||
hostprogs-y := ihex2fw
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
|
||||
DO NOT ADD FIRMWARE TO THIS DIRECTORY.
|
||||
======================================
|
||||
|
||||
This directory is only here to contain firmware images extracted from old
|
||||
device drivers which predate the common use of request_firmware().
|
||||
|
||||
As we update those drivers to use request_firmware() and keep a clean
|
||||
separation between code and firmware, we put the extracted firmware
|
||||
here.
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
Ben Hutchings <ben@decadent.org.uk>
|
||||
|
||||
Your commit should include an update to the WHENCE file clearly
|
||||
identifying the licence under which the firmware is available, and
|
||||
that it is redistributable. If the licence is long and involved, it's
|
||||
permitted to include it in a separate file and refer to it from the
|
||||
WHENCE file.
|
||||
|
||||
Ideally, your commit should contain a Signed-Off-By: from someone
|
||||
authoritative on the licensing of the firmware in question (i.e. from
|
||||
within the company that owns the code).
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
**********
|
||||
* WHENCE *
|
||||
**********
|
||||
|
||||
This file attempts to document the origin and licensing information,
|
||||
if known, for each piece of firmware distributed for use with the Linux
|
||||
kernel.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: keyspan_pda -- USB Keyspan PDA single-port serial device
|
||||
|
||||
File: keyspan_pda/keyspan_pda.fw
|
||||
Source: keyspan_pda/keyspan_pda.S
|
||||
|
||||
File: keyspan_pda/xircom_pgs.fw
|
||||
Source: keyspan_pda/xircom_pgs.S
|
||||
|
||||
Licence: GPLv2+
|
||||
|
||||
Compiled from original 8051 source into Intel HEX, used in our binary ihex form.
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: ATARI_DSP56K - Atari DSP56k support
|
||||
|
||||
File: dsp56k/bootstrap.bin
|
||||
Source: dsp56k/bootstrap.asm
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
DSP56001 assembler, possibly buildable with a56 from
|
||||
http://www.zdomain.com/a56.html
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Driver: DVB AV7110 -- AV7110 cards
|
||||
|
||||
File: av7110/bootcode.bin
|
||||
|
||||
Licence: GPLv2 or later
|
||||
|
||||
ARM assembly source code available at http://www.linuxtv.org/downloads/firmware/Boot.S
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
/*
|
||||
Madge Ambassador ATM Adapter microcode.
|
||||
Copyright (C) 1995-1999 Madge Networks Ltd.
|
||||
|
||||
This microcode data is placed under the terms of the GNU General
|
||||
Public License. The GPL is contained in /usr/doc/copyright/GPL on a
|
||||
Debian system and in the file COPYING in the Linux kernel source.
|
||||
|
||||
We would prefer you not to distribute modified versions without
|
||||
consultation and not to ask for assembly/other microcode source.
|
||||
*/
|
||||
|
||||
First record is start address in a __be32.
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
Boot.S: boot loader for Siemens DVB-S card
|
||||
|
||||
Copyright (C) 2001 Convergence integrated media GmbH
|
||||
Written by Ralph Metzler
|
||||
<rjkm@convergence.de>
|
||||
Copyright (C) 2006 Matthieu CASTET <castet.mattheiu@free.fr>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
check AV711x_3_1.pdf for some hardware infos
|
||||
build it with :
|
||||
$ cc -mbig-endian -c Boot.S
|
||||
$ ld -Ttext 0x2c000000 -EB -o Boot Boot.o
|
||||
$ objcopy -Obinary Boot
|
||||
*/
|
||||
|
||||
.text
|
||||
.align
|
||||
.globl _start
|
||||
_start:
|
||||
b reset // reset vector
|
||||
movs pc, r14 // undefined
|
||||
subs pc, r14, #4 // SWI
|
||||
subs pc, r14, #4 // prefetch abort
|
||||
subs pc, r14, #8 // data abort
|
||||
subs pc, r14, #4 // reserved
|
||||
subs pc, r14, #4 // IRQ
|
||||
subs pc, r14, #4 // FIQ
|
||||
|
||||
.word tbl // table needed by firmware ROM
|
||||
tbl: .word (endtbl - tbl)
|
||||
.word 0
|
||||
.word conf
|
||||
endtbl: .word 0
|
||||
conf: .word 0xa5a55a5a
|
||||
.word 0x001f1555
|
||||
.word 0x00000009
|
||||
|
||||
reset: ldr r13, buffer
|
||||
ldr r4, flag
|
||||
mov r0, #0
|
||||
str r0, [r4]
|
||||
str r0, [r4, #4]
|
||||
|
||||
ldr r1, wait_address
|
||||
ldr r2, flag_address
|
||||
ldr r3, sram
|
||||
|
||||
copycode: // copy the code HW Sram
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
cmp r1, r2
|
||||
ble copycode
|
||||
ldr pc, sram // jump to the copied code
|
||||
|
||||
wait: ldrh r1, [r4] // wait for flag!=0
|
||||
cmp r1, #0
|
||||
beq wait
|
||||
|
||||
mov r1, r13 // buffer address
|
||||
ldr r3, [r4,#4] // destaddr
|
||||
|
||||
ldrh r2, [r4,#2] // get segment length
|
||||
add r2, r2, #63 // round length to next 64 bytes
|
||||
movs r2, r2, lsr #6 // and divide by 64
|
||||
moveq r0, #2 // if 0, set flag to 2, else signal
|
||||
strh r0, [r4] // that buffer is accepted by setting to 0
|
||||
beq wait
|
||||
|
||||
copyloop:
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
ldmia r1!, {r5-r12}
|
||||
stmia r3!, {r5-r12}
|
||||
subs r2, r2, #1
|
||||
bne copyloop
|
||||
|
||||
eor r13, r13, #0x1400 // switch to other buffer
|
||||
b wait
|
||||
|
||||
// flag is stored at 0x2c0003f8, length at 0x2c0003fa,
|
||||
// destaddr at 0x2c0003fc
|
||||
|
||||
flag: .word 0x2c0003f8
|
||||
|
||||
|
||||
// buffer 1 is at 0x2c000400, buffer 2 at 0x2c001000
|
||||
|
||||
buffer: .word 0x2c000400
|
||||
|
||||
sram: .word 0x9e000800
|
||||
wait_address: .word wait
|
||||
flag_address: .word flag
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
:10000000EA00000EE1B0F00EE25EF004E25EF00401
|
||||
:10001000E25EF008E25EF004E25EF004E25EF0040C
|
||||
:100020002C0000240000000C000000002C00003414
|
||||
:1000300000000000A5A55A5A001F15550000000930
|
||||
:10004000E59FD07CE59F4074E3A00000E5840000BC
|
||||
:10005000E5840004E59F1070E59F2070E59F306403
|
||||
:10006000E8B11FE0E8A31FE0E1510002DAFFFFFB67
|
||||
:10007000E59FF050E1D410B0E35100000AFFFFFC0F
|
||||
:10008000E1A0100DE5943004E1D420B2E282203FDB
|
||||
:10009000E1B0232203A00002E1C400B00AFFFFF494
|
||||
:1000A000E8B11FE0E8A31FE0E8B11FE0E8A31FE00C
|
||||
:1000B000E25220011AFFFFF9E22DDB05EAFFFFEC17
|
||||
:1000C0002C0003F82C0004009E0008002C00007493
|
||||
:0400D0002C0000C040
|
||||
:00000001FF
|
||||
1
helpers/DATA/linux/firmware/cis/.gitignore
vendored
1
helpers/DATA/linux/firmware/cis/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
*.cis
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
|
||||
Copyright 2001, STMicrolectronics, Inc.
|
||||
Contact: steve.miller@st.com
|
||||
|
||||
Description:
|
||||
This file contains patch data for the CPiA2 (stv0672) VP4.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
; Author: Frederik Noring <noring@nocrew.org>
|
||||
;
|
||||
; This file is subject to the terms and conditions of the GNU General Public
|
||||
; License. See the file COPYING in the main directory of this archive
|
||||
; for more details.
|
||||
|
||||
; DSP56k loader
|
||||
|
||||
; Host Interface
|
||||
M_BCR EQU $FFFE ; Port A Bus Control Register
|
||||
M_PBC EQU $FFE0 ; Port B Control Register
|
||||
M_PBDDR EQU $FFE2 ; Port B Data Direction Register
|
||||
M_PBD EQU $FFE4 ; Port B Data Register
|
||||
M_PCC EQU $FFE1 ; Port C Control Register
|
||||
M_PCDDR EQU $FFE3 ; Port C Data Direction Register
|
||||
M_PCD EQU $FFE5 ; Port C Data Register
|
||||
|
||||
M_HCR EQU $FFE8 ; Host Control Register
|
||||
M_HSR EQU $FFE9 ; Host Status Register
|
||||
M_HRX EQU $FFEB ; Host Receive Data Register
|
||||
M_HTX EQU $FFEB ; Host Transmit Data Register
|
||||
|
||||
; SSI, Synchronous Serial Interface
|
||||
M_RX EQU $FFEF ; Serial Receive Data Register
|
||||
M_TX EQU $FFEF ; Serial Transmit Data Register
|
||||
M_CRA EQU $FFEC ; SSI Control Register A
|
||||
M_CRB EQU $FFED ; SSI Control Register B
|
||||
M_SR EQU $FFEE ; SSI Status Register
|
||||
M_TSR EQU $FFEE ; SSI Time Slot Register
|
||||
|
||||
; Exception Processing
|
||||
M_IPR EQU $FFFF ; Interrupt Priority Register
|
||||
|
||||
org P:$0
|
||||
start jmp <$40
|
||||
|
||||
org P:$40
|
||||
; ; Zero 16384 DSP X and Y words
|
||||
; clr A #0,r0
|
||||
; clr B #0,r4
|
||||
; do #64,<_block1
|
||||
; rep #256
|
||||
; move A,X:(r0)+ B,Y:(r4)+
|
||||
;_block1 ; Zero (32768-512) Program words
|
||||
; clr A #512,r0
|
||||
; do #126,<_block2
|
||||
; rep #256
|
||||
; move A,P:(r0)+
|
||||
;_block2
|
||||
|
||||
; Copy DSP program control
|
||||
move #real,r0
|
||||
move #upload,r1
|
||||
do #upload_end-upload,_copy
|
||||
movem P:(r0)+,x0
|
||||
movem x0,P:(r1)+
|
||||
_copy movep #4,X:<<M_HCR
|
||||
movep #$c00,X:<<M_IPR
|
||||
and #<$fe,mr
|
||||
jmp upload
|
||||
|
||||
real
|
||||
org P:$7ea9
|
||||
upload
|
||||
movep #1,X:<<M_PBC
|
||||
movep #0,X:<<M_BCR
|
||||
|
||||
next jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,A
|
||||
move #>3,x0
|
||||
cmp x0,A #>1,x0
|
||||
jeq <$0
|
||||
_get_address
|
||||
jclr #0,X:<<M_HSR,_get_address
|
||||
movep X:<<M_HRX,r0
|
||||
_get_length
|
||||
jclr #0,X:<<M_HSR,_get_length
|
||||
movep X:<<M_HRX,y0
|
||||
cmp x0,A #>2,x0
|
||||
jeq load_X
|
||||
cmp x0,A
|
||||
jeq load_Y
|
||||
|
||||
load_P do y0,_load_P
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,P:(r0)+
|
||||
_load_P jmp next
|
||||
load_X do y0,_load_X
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,X:(r0)+
|
||||
_load_X jmp next
|
||||
load_Y do y0,_load_Y
|
||||
jclr #0,X:<<M_HSR,*
|
||||
movep X:<<M_HRX,Y:(r0)+
|
||||
_load_Y jmp next
|
||||
|
||||
upload_end
|
||||
end
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
:100000000C004000000000000000000000000000A4
|
||||
:1000100000000000000000000000000000000000E0
|
||||
:1000200000000000000000000000000000000000D0
|
||||
:1000300000000000000000000000000000000000C0
|
||||
:1000400000000000000000000000000000000000B0
|
||||
:1000500000000000000000000000000000000000A0
|
||||
:100060000000000000000000000000000000000090
|
||||
:100070000000000000000000000000000000000080
|
||||
:100080000000000000000000000000000000000070
|
||||
:100090000000000000000000000000000000000060
|
||||
:1000A0000000000000000000000000000000000050
|
||||
:1000B0000000000000000000000000000000000040
|
||||
:1000C00060F40000004F61F400007EA9062E80005D
|
||||
:1000D000004707D88407598408F4A800000408F4EE
|
||||
:1000E000BF000C0000FEB80AF080007EA908F4A052
|
||||
:1000F00000000108F4BE0000000AA980007EAD08DF
|
||||
:100100004E2B44F40000000344F4450000010EA00F
|
||||
:10011000000AA980007EB508502B0AA980007EB88D
|
||||
:1001200008462B44F4450000020AF0AA007EC920CC
|
||||
:1001300000450AF0AA007ED006C600007EC60AA9C5
|
||||
:1001400080007EC408586B0AF080007EAD06C600B1
|
||||
:10015000007ECD0AA980007ECB0858AB0AF0800053
|
||||
:100160007EAD06C600007ED40AA980007ED2085863
|
||||
:07017000EB0AF080007EADF8
|
||||
:00000001FF
|
||||
/* DSP56001 bootstrap code */
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
:/*(DEBLOBBED)*/
|
||||
//**************************************************************
|
||||
//* Edgeport/4 Binary Image
|
||||
//* Generated by HEX2C v1.06
|
||||
//* Copyright (C) 1998 Inside Out Networks, All rights reserved.
|
||||
//* This program is free software; you can redistribute it and/or modify
|
||||
//* it under the terms of the GNU General Public License as published by
|
||||
//* the Free Software Foundation; either version 2 of the License, or
|
||||
//* (at your option) any later version.
|
||||
//**************************************************************
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue