Файловый менеджер - Редактировать - /var/www/html/boot.zip
Ðазад
PK ! � � Makefilenu �[��� # # 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. # # Copyright (C) 1995, 1998, 2001, 2002 by Ralf Baechle # Copyright (C) 2004 Maciej W. Rozycki # # # Some DECstations need all possible sections of an ECOFF executable # ifdef CONFIG_MACH_DECSTATION e2eflag := -a endif # # Drop some uninteresting sections in the kernel. # This is only relevant for ELF kernels but doesn't hurt a.out # drop-sections := .reginfo .mdebug .comment .note .pdr .options .MIPS.options strip-flags := $(addprefix --remove-section=,$(drop-sections)) hostprogs := elf2ecoff suffix-y := bin suffix-$(CONFIG_KERNEL_BZIP2) := bz2 suffix-$(CONFIG_KERNEL_GZIP) := gz suffix-$(CONFIG_KERNEL_LZMA) := lzma suffix-$(CONFIG_KERNEL_LZO) := lzo targets := vmlinux.ecoff quiet_cmd_ecoff = ECOFF $@ cmd_ecoff = $(obj)/elf2ecoff $(VMLINUX) $@ $(e2eflag) $(obj)/vmlinux.ecoff: $(obj)/elf2ecoff $(VMLINUX) FORCE $(call if_changed,ecoff) targets += vmlinux.bin quiet_cmd_bin = OBJCOPY $@ cmd_bin = $(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $@ $(obj)/vmlinux.bin: $(VMLINUX) FORCE $(call if_changed,bin) targets += vmlinux.srec quiet_cmd_srec = OBJCOPY $@ cmd_srec = $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $@ $(obj)/vmlinux.srec: $(VMLINUX) FORCE $(call if_changed,srec) UIMAGE_LOADADDR = $(VMLINUX_LOAD_ADDRESS) UIMAGE_ENTRYADDR = $(VMLINUX_ENTRY_ADDRESS) # # Compressed vmlinux images # extra-y += vmlinux.bin.bz2 extra-y += vmlinux.bin.gz extra-y += vmlinux.bin.lzma extra-y += vmlinux.bin.lzo $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE $(call if_changed,bzip2) $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE $(call if_changed,gzip) $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE $(call if_changed,lzma) $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE $(call if_changed,lzo) # # Compressed u-boot images # targets += uImage targets += uImage.bin targets += uImage.bz2 targets += uImage.gz targets += uImage.lzma targets += uImage.lzo $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE $(call if_changed,uimage,none) $(obj)/uImage.bz2: $(obj)/vmlinux.bin.bz2 FORCE $(call if_changed,uimage,bzip2) $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE $(call if_changed,uimage,gzip) $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE $(call if_changed,uimage,lzma) $(obj)/uImage.lzo: $(obj)/vmlinux.bin.lzo FORCE $(call if_changed,uimage,lzo) $(obj)/uImage: $(obj)/uImage.$(suffix-y) @ln -sf $(notdir $<) $@ @echo ' Image $@ is ready' # # Flattened Image Tree (.itb) images # ifeq ($(ADDR_BITS),32) itb_addr_cells = 1 endif ifeq ($(ADDR_BITS),64) itb_addr_cells = 2 endif targets += vmlinux.its.S quiet_cmd_its_cat = CAT $@ cmd_its_cat = cat $(real-prereqs) >$@ $(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) FORCE $(call if_changed,its_cat) targets += vmlinux.its targets += vmlinux.gz.its targets += vmlinux.bz2.its targets += vmlinux.lzma.its targets += vmlinux.lzo.its quiet_cmd_cpp_its_S = ITS $@ cmd_cpp_its_S = $(CPP) -P -C -o $@ $< \ -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \ -DVMLINUX_BINARY="\"$(3)\"" \ -DVMLINUX_COMPRESSION="\"$(2)\"" \ -DVMLINUX_LOAD_ADDRESS=$(VMLINUX_LOAD_ADDRESS) \ -DVMLINUX_ENTRY_ADDRESS=$(VMLINUX_ENTRY_ADDRESS) \ -DADDR_BITS=$(ADDR_BITS) \ -DADDR_CELLS=$(itb_addr_cells) $(obj)/vmlinux.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE $(call if_changed,cpp_its_S,none,vmlinux.bin) $(obj)/vmlinux.gz.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE $(call if_changed,cpp_its_S,gzip,vmlinux.bin.gz) $(obj)/vmlinux.bz2.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE $(call if_changed,cpp_its_S,bzip2,vmlinux.bin.bz2) $(obj)/vmlinux.lzma.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE $(call if_changed,cpp_its_S,lzma,vmlinux.bin.lzma) $(obj)/vmlinux.lzo.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE $(call if_changed,cpp_its_S,lzo,vmlinux.bin.lzo) targets += vmlinux.itb targets += vmlinux.gz.itb targets += vmlinux.bz2.itb targets += vmlinux.lzma.itb targets += vmlinux.lzo.itb quiet_cmd_itb-image = ITB $@ cmd_itb-image = \ env PATH="$(objtree)/scripts/dtc:$(PATH)" \ $(BASH) $(MKIMAGE) \ -D "-I dts -O dtb -p 500 \ --include $(objtree)/arch/mips \ --warning no-unit_address_vs_reg" \ -f $(2) $@ $(obj)/vmlinux.itb: $(obj)/vmlinux.its $(obj)/vmlinux.bin FORCE $(call if_changed,itb-image,$<) $(obj)/vmlinux.%.itb: $(obj)/vmlinux.%.its $(obj)/vmlinux.bin.% FORCE $(call if_changed,itb-image,$<) PK ! ~0�K) ) dts/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 subdir-$(CONFIG_BMIPS_GENERIC) += brcm subdir-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon subdir-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += img subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += img subdir-$(CONFIG_MACH_INGENIC) += ingenic subdir-$(CONFIG_LANTIQ) += lantiq subdir-$(CONFIG_MACH_LOONGSON64) += loongson subdir-$(CONFIG_SOC_VCOREIII) += mscc subdir-$(CONFIG_MIPS_MALTA) += mti subdir-$(CONFIG_LEGACY_BOARD_SEAD3) += mti subdir-$(CONFIG_NLM_XLP_BOARD) += netlogic subdir-$(CONFIG_FIT_IMAGE_FDT_NI169445) += ni subdir-$(CONFIG_MACH_PIC32) += pic32 subdir-$(CONFIG_ATH79) += qca subdir-$(CONFIG_RALINK) += ralink subdir-$(CONFIG_MACH_REALTEK_RTL) += realtek subdir-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += xilfpga obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y)) PK ! B��q q install.shnu �[��� #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # # arch/s390x/boot/install.sh # # Copyright (C) 1995 by Linus Torvalds # # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin # # "make install" script for s390 architecture # # Arguments: # $1 - kernel version # $2 - kernel image file # $3 - kernel map file # $4 - default install path (blank if root directory) # # User may have a custom install script if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi echo "Warning: '${INSTALLKERNEL}' command not available - additional " \ "bootloader config required" >&2 if [ -f $4/vmlinuz-$1 ]; then mv $4/vmlinuz-$1 $4/vmlinuz-$1.old; fi if [ -f $4/System.map-$1 ]; then mv $4/System.map-$1 $4/System.map-$1.old; fi cat $2 > $4/vmlinuz-$1 cp $3 $4/System.map-$1 PK ! <h64g g compressed/Makefilenu �[��� # # This file is subject to the terms and conditions of the GNU General Public # License. # # Adapted for MIPS Pete Popov, Dan Malek # # Copyright (C) 1994 by Linus Torvalds # Adapted for PowerPC by Gary Thomas # modified by Cort (cort@cs.nmt.edu) # # Copyright (C) 2009 Lemote Inc. & DSLab, Lanzhou University # Author: Wu Zhangjin <wuzhangjin@gmail.com> # include $(srctree)/arch/mips/Kbuild.platforms # set the default size of the mallocing area for decompressing BOOT_HEAP_SIZE := 0x400000 # Disable Function Tracer KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE), $(KBUILD_CFLAGS)) KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS)) # Disable lq/sq in zboot ifdef CONFIG_CPU_LOONGSON64 KBUILD_CFLAGS := $(filter-out -march=loongson3a, $(KBUILD_CFLAGS)) -march=mips64r2 endif KBUILD_CFLAGS := $(KBUILD_CFLAGS) -D__KERNEL__ -D__DISABLE_EXPORTS \ -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) -D"VMLINUX_LOAD_ADDRESS_ULL=$(VMLINUX_LOAD_ADDRESS)ull" KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \ -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \ -DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS) # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. KCOV_INSTRUMENT := n GCOV_PROFILE := n UBSAN_SANITIZE := n # decompressor objects (linked with vmlinuz) vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o $(obj)/bswapsi.o ifdef CONFIG_DEBUG_ZBOOT vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART_PROM) += $(obj)/uart-prom.o vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o vmlinuzobjs-$(CONFIG_ATH79) += $(obj)/uart-ath79.o endif extra-y += uart-ath79.c $(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c $(call cmd,shipped) vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o vmlinuzobjs-$(CONFIG_KERNEL_ZSTD) += $(obj)/bswapdi.o $(obj)/ashldi3.o $(obj)/clz_ctz.o extra-y += ashldi3.c $(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE $(call if_changed,shipped) extra-y += bswapsi.c $(obj)/bswapsi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c FORCE $(call if_changed,shipped) extra-y += bswapdi.c $(obj)/bswapdi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c FORCE $(call if_changed,shipped) targets := $(notdir $(vmlinuzobjs-y)) targets += vmlinux.bin OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S $(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE $(call if_changed,objcopy) tool_$(CONFIG_KERNEL_GZIP) = gzip tool_$(CONFIG_KERNEL_BZIP2) = bzip2 tool_$(CONFIG_KERNEL_LZ4) = lz4 tool_$(CONFIG_KERNEL_LZMA) = lzma tool_$(CONFIG_KERNEL_LZO) = lzo tool_$(CONFIG_KERNEL_XZ) = xzkern tool_$(CONFIG_KERNEL_ZSTD) = zstd22 targets += vmlinux.bin.z $(obj)/vmlinux.bin.z: $(obj)/vmlinux.bin FORCE $(call if_changed,$(tool_y)) targets += piggy.o dummy.o OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \ --set-section-flags=.image=contents,alloc,load,readonly,data $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE $(call if_changed,objcopy) HOSTCFLAGS_calc_vmlinuz_load_addr.o += $(LINUXINCLUDE) # Calculate the load address of the compressed kernel image hostprogs := calc_vmlinuz_load_addr ifneq ($(zload-y),) VMLINUZ_LOAD_ADDRESS := $(zload-y) else VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ $(obj)/vmlinux.bin $(LINKER_LOAD_ADDRESS)) endif UIMAGE_LOADADDR = $(VMLINUZ_LOAD_ADDRESS) vmlinuzobjs-y += $(obj)/piggy.o targets += ../../../../vmlinuz quiet_cmd_zld = LD $@ cmd_zld = $(LD) $(KBUILD_LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T $< $(vmlinuzobjs-y) -o $@ quiet_cmd_strip = STRIP $@ cmd_strip = $(STRIP) -s $@ $(objtree)/vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/calc_vmlinuz_load_addr $(call cmd,zld) $(call cmd,strip) objboot := $(objtree)/arch/mips/boot $(objboot)/vmlinuz: $(objtree)/vmlinuz FORCE # # Some DECstations need all possible sections of an ECOFF executable # ifdef CONFIG_MACH_DECSTATION e2eflag := -a endif # elf2ecoff can only handle 32bit image hostprogs += ../elf2ecoff ifdef CONFIG_32BIT VMLINUZ = $(objtree)/vmlinuz else VMLINUZ = $(objboot)/vmlinuz.32 endif targets += ../vmlinuz.32 quiet_cmd_32 = OBJCOPY $@ cmd_32 = $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@ $(objboot)/vmlinuz.32: $(objtree)/vmlinuz $(call cmd,32) targets += ../vmlinuz.ecoff quiet_cmd_ecoff = ECOFF $@ cmd_ecoff = $< $(VMLINUZ) $@ $(e2eflag) $(objboot)/vmlinuz.ecoff: $(objboot)/elf2ecoff $(VMLINUZ) $(call cmd,ecoff) targets += ../vmlinuz.bin OBJCOPYFLAGS_vmlinuz.bin := $(OBJCOPYFLAGS) -O binary $(objboot)/vmlinuz.bin: $(objtree)/vmlinuz $(call cmd,objcopy) targets += ../vmlinuz.srec OBJCOPYFLAGS_vmlinuz.srec := $(OBJCOPYFLAGS) -S -O srec $(objboot)/vmlinuz.srec: $(objtree)/vmlinuz $(call cmd,objcopy) targets += ../uzImage.bin $(objboot)/uzImage.bin: $(objboot)/vmlinuz.bin FORCE $(call if_changed,uimage,none) # # Flattened Image Tree (.itb) image # ifeq ($(ADDR_BITS),32) itb_addr_cells = 1 endif ifeq ($(ADDR_BITS),64) itb_addr_cells = 2 endif targets += ../vmlinuz.its.S quiet_cmd_its_cat = CAT $@ cmd_its_cat = cat $(real-prereqs) >$@ $(objboot)/vmlinuz.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) FORCE $(call if_changed,its_cat) targets += ../vmlinuz.its quiet_cmd_cpp_its_S = ITS $@ cmd_cpp_its_S = $(CPP) -P -C -o $@ $< \ -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \ -DVMLINUX_BINARY="\"$(2)\"" \ -DVMLINUX_COMPRESSION="\"none\"" \ -DVMLINUX_LOAD_ADDRESS=$(VMLINUZ_LOAD_ADDRESS) \ -DVMLINUX_ENTRY_ADDRESS=$(VMLINUZ_LOAD_ADDRESS) \ -DADDR_BITS=$(ADDR_BITS) \ -DADDR_CELLS=$(itb_addr_cells) $(objboot)/vmlinuz.its: $(objboot)/vmlinuz.its.S FORCE $(call if_changed,cpp_its_S,vmlinuz.bin) targets += ../vmlinuz.itb quiet_cmd_itb-image = ITB $@ cmd_itb-image = \ env PATH="$(objtree)/scripts/dtc:$(PATH)" \ $(BASH) $(MKIMAGE) \ -D "-I dts -O dtb -p 500 \ --include $(objtree)/arch/mips \ --warning no-unit_address_vs_reg" \ -f $(2) $@ $(objboot)/vmlinuz.itb: $(objboot)/vmlinuz.its $(objboot)/vmlinuz.bin FORCE $(call if_changed,itb-image,$<) PK ! �K�� � genimage.shnu �[��� #!/bin/bash # # 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. # # Copyright (C) 2017 by Changbin Du <changbin.du@intel.com> # # Adapted from code in arch/x86/boot/Makefile by H. Peter Anvin and others # # "make fdimage/fdimage144/fdimage288/hdimage/isoimage" # script for x86 architecture # # Arguments: # $1 - fdimage format # $2 - target image file # $3 - kernel bzImage file # $4 - mtools configuration file # $5 - kernel cmdline # $6+ - initrd image file(s) # # This script requires: # bash # syslinux # genisoimage # mtools (for fdimage* and hdimage) # edk2/OVMF (for hdimage) # # Otherwise try to stick to POSIX shell commands... # # Use "make V=1" to debug this script case "${KBUILD_VERBOSE}" in *1*) set -x ;; esac # Exit the top-level shell with an error topshell=$$ trap 'exit 1' USR1 die() { echo "" 1>&2 echo " *** $*" 1>&2 echo "" 1>&2 kill -USR1 $topshell } # Verify the existence and readability of a file verify() { if [ ! -f "$1" -o ! -r "$1" ]; then die "Missing file: $1" fi } diskfmt="$1" FIMAGE="$2" FBZIMAGE="$3" MTOOLSRC="$4" KCMDLINE="$5" shift 5 # Remaining arguments = initrd files export MTOOLSRC # common options for dd dd='dd iflag=fullblock' # Make sure the files actually exist verify "$FBZIMAGE" declare -a FDINITRDS irdpfx=' initrd=' initrdopts_syslinux='' initrdopts_efi='' for f in "$@"; do if [ -f "$f" -a -r "$f" ]; then FDINITRDS=("${FDINITRDS[@]}" "$f") fname="$(basename "$f")" initrdopts_syslinux="${initrdopts_syslinux}${irdpfx}${fname}" irdpfx=, initrdopts_efi="${initrdopts_efi} initrd=${fname}" fi done # Read a $3-byte littleendian unsigned value at offset $2 from file $1 le() { local n=0 local m=1 for b in $(od -A n -v -j $2 -N $3 -t u1 "$1"); do n=$((n + b*m)) m=$((m * 256)) done echo $n } # Get the EFI architecture name such that boot{name}.efi is the default # boot file name. Returns false with no output if the file is not an # EFI image or otherwise unknown. efiarch() { [ -f "$1" ] || return [ $(le "$1" 0 2) -eq 23117 ] || return # MZ magic peoffs=$(le "$1" 60 4) # PE header offset [ $peoffs -ge 64 ] || return [ $(le "$1" $peoffs 4) -eq 17744 ] || return # PE magic case $(le "$1" $((peoffs+4+20)) 2) in # PE type 267) ;; # PE32 523) ;; # PE32+ *) return 1 ;; # Invalid esac [ $(le "$1" $((peoffs+4+20+68)) 2) -eq 10 ] || return # EFI app case $(le "$1" $((peoffs+4)) 2) in # Machine type 332) echo i386 ;; 450) echo arm ;; 512) echo ia64 ;; 20530) echo riscv32 ;; 20580) echo riscv64 ;; 20776) echo riscv128 ;; 34404) echo x64 ;; 43620) echo aa64 ;; esac } # Get the combined sizes in bytes of the files given, counting sparse # files as full length, and padding each file to a 4K block size filesizes() { local t=0 local s for s in $(ls -lnL "$@" 2>/dev/null | awk '/^-/{ print $5; }'); do t=$((t + ((s+4095)/4096)*4096)) done echo $t } # Expand directory names which should be in /usr/share into a list # of possible alternatives sharedirs() { local dir file for dir in /usr/share /usr/lib64 /usr/lib; do for file; do echo "$dir/$file" echo "$dir/${file^^}" done done } efidirs() { local dir file for dir in /usr/share /boot /usr/lib64 /usr/lib; do for file; do echo "$dir/$file" echo "$dir/${file^^}" done done } findsyslinux() { local f="$(find -L $(sharedirs syslinux isolinux) \ -name "$1" -readable -type f -print -quit 2>/dev/null)" if [ ! -f "$f" ]; then die "Need a $1 file, please install syslinux/isolinux." fi echo "$f" return 0 } findovmf() { local arch="$1" shift local -a names=(-false) local name f for name; do names=("${names[@]}" -or -iname "$name") done for f in $(find -L $(efidirs edk2 ovmf) \ \( "${names[@]}" \) -readable -type f \ -print 2>/dev/null); do if [ "$(efiarch "$f")" = "$arch" ]; then echo "$f" return 0 fi done die "Need a $1 file for $arch, please install EDK2/OVMF." } do_mcopy() { if [ ${#FDINITRDS[@]} -gt 0 ]; then mcopy "${FDINITRDS[@]}" "$1" fi if [ -n "$efishell" ]; then mmd "$1"EFI "$1"EFI/Boot mcopy "$efishell" "$1"EFI/Boot/boot${kefiarch}.efi fi if [ -n "$kefiarch" ]; then echo linux "$KCMDLINE$initrdopts_efi" | \ mcopy - "$1"startup.nsh fi echo default linux "$KCMDLINE$initrdopts_syslinux" | \ mcopy - "$1"syslinux.cfg mcopy "$FBZIMAGE" "$1"linux } genbzdisk() { verify "$MTOOLSRC" mformat -v 'LINUX_BOOT' a: syslinux "$FIMAGE" do_mcopy a: } genfdimage144() { verify "$MTOOLSRC" $dd if=/dev/zero of="$FIMAGE" bs=1024 count=1440 2>/dev/null mformat -v 'LINUX_BOOT' v: syslinux "$FIMAGE" do_mcopy v: } genfdimage288() { verify "$MTOOLSRC" $dd if=/dev/zero of="$FIMAGE" bs=1024 count=2880 2>/dev/null mformat -v 'LINUX_BOOT' w: syslinux "$FIMAGE" do_mcopy w: } genhdimage() { verify "$MTOOLSRC" mbr="$(findsyslinux mbr.bin)" kefiarch="$(efiarch "$FBZIMAGE")" if [ -n "$kefiarch" ]; then # The efishell provides command line handling efishell="$(findovmf $kefiarch shell.efi shell${kefiarch}.efi)" ptype='-T 0xef' # EFI system partition, no GPT fi sizes=$(filesizes "$FBZIMAGE" "${FDINITRDS[@]}" "$efishell") # Allow 1% + 1 MiB for filesystem and partition table overhead, # syslinux, and config files megs=$(((sizes + sizes/100 + 2*1024*1024 - 1)/(1024*1024))) $dd if=/dev/zero of="$FIMAGE" bs=$((1024*1024)) count=$megs 2>/dev/null mpartition -I -c -s 32 -h 64 -t $megs $ptype -b 512 -a h: $dd if="$mbr" of="$FIMAGE" bs=440 count=1 conv=notrunc 2>/dev/null mformat -v 'LINUX_BOOT' -s 32 -h 64 -t $megs h: syslinux --offset $((512*512)) "$FIMAGE" do_mcopy h: } geniso() { tmp_dir="$(dirname "$FIMAGE")/isoimage" rm -rf "$tmp_dir" mkdir "$tmp_dir" isolinux=$(findsyslinux isolinux.bin) ldlinux=$(findsyslinux ldlinux.c32) cp "$isolinux" "$ldlinux" "$tmp_dir" cp "$FBZIMAGE" "$tmp_dir"/linux echo default linux "$KCMDLINE" > "$tmp_dir"/isolinux.cfg if [ ${#FDINITRDS[@]} -gt 0 ]; then cp "${FDINITRDS[@]}" "$tmp_dir"/ fi genisoimage -J -r -appid 'LINUX_BOOT' -input-charset=utf-8 \ -quiet -o "$FIMAGE" -b isolinux.bin \ -c boot.cat -no-emul-boot -boot-load-size 4 \ -boot-info-table "$tmp_dir" isohybrid "$FIMAGE" 2>/dev/null || true rm -rf "$tmp_dir" } rm -f "$FIMAGE" case "$diskfmt" in bzdisk) genbzdisk;; fdimage144) genfdimage144;; fdimage288) genfdimage288;; hdimage) genhdimage;; isoimage) geniso;; *) die "Unknown image format: $diskfmt";; esac PK ! 19�� deflate_xip_data.shnu ȯ�� #!/bin/sh # SPDX-License-Identifier: GPL-2.0-only # XIP kernel .data segment compressor # # Created by: Nicolas Pitre, August 2017 # Copyright: (C) 2017 Linaro Limited # # This script locates the start of the .data section in xipImage and # substitutes it with a compressed version. The needed offsets are obtained # from symbol addresses in vmlinux. It is expected that .data extends to # the end of xipImage. set -e VMLINUX="$1" XIPIMAGE="$2" DD="dd status=none" # Use "make V=1" to debug this script. case "$KBUILD_VERBOSE" in *1*) set -x ;; esac sym_val() { # extract hex value for symbol in $1 local val=$($NM "$VMLINUX" 2>/dev/null | sed -n "/ $1\$/{s/ .*$//p;q}") [ "$val" ] || { echo "can't find $1 in $VMLINUX" 1>&2; exit 1; } # convert from hex to decimal echo $((0x$val)) } __data_loc=$(sym_val __data_loc) _edata_loc=$(sym_val _edata_loc) base_offset=$(sym_val _xiprom) # convert to file based offsets data_start=$(($__data_loc - $base_offset)) data_end=$(($_edata_loc - $base_offset)) # Make sure data occupies the last part of the file. file_end=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" "$XIPIMAGE") if [ "$file_end" != "$data_end" ]; then printf "end of xipImage doesn't match with _edata_loc (%#x vs %#x)\n" \ $(($file_end + $base_offset)) $_edata_loc 1>&2 exit 1; fi # be ready to clean up trap 'rm -f "$XIPIMAGE.tmp"; exit 1' 1 2 3 # substitute the data section by a compressed version $DD if="$XIPIMAGE" count=$data_start iflag=count_bytes of="$XIPIMAGE.tmp" $DD if="$XIPIMAGE" skip=$data_start iflag=skip_bytes | $KGZIP -9 >> "$XIPIMAGE.tmp" # replace kernel binary mv -f "$XIPIMAGE.tmp" "$XIPIMAGE" PK ! /(�T� � bootp/bootp.ldsnu �[��� /* * linux/arch/arm/boot/bootp/bootp.lds * * Copyright (C) 2000-2002 Russell King * * 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. */ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { . = 0; .text : { _stext = .; *(.start) *(.text) initrd_size = initrd_end - initrd_start; _etext = .; } .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } .stab.excl 0 : { *(.stab.excl) } .stab.exclstr 0 : { *(.stab.exclstr) } .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } } PK ! lu�� bootp/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 # # linux/arch/arm/boot/bootp/Makefile # # This file is included by the global makefile so that you can add your own # architecture-specific flags and dependencies. # GCOV_PROFILE := n LDFLAGS_bootp := --no-undefined -X \ --defsym initrd_phys=$(INITRD_PHYS) \ --defsym params_phys=$(PARAMS_PHYS) -T AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\" targets := bootp init.o kernel.o initrd.o # Note that bootp.lds picks up kernel.o and initrd.o $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE $(call if_changed,ld) # kernel.o and initrd.o includes a binary image using # .incbin, a dependency which is not tracked automatically $(obj)/kernel.o: arch/arm/boot/zImage FORCE $(obj)/initrd.o: $(INITRD) FORCE PHONY += $(INITRD) PK ! 7:LE E lib/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 # # Makefile for some libs needed by zImage. # zlib := inffast.c inflate.c inftrees.c lib-y += $(zlib:.c=.o) zmem.o ccflags-y := -I $(srctree)/lib/zlib_inflate ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_inflate.o = -pg CFLAGS_REMOVE_zmem.o = -pg CFLAGS_REMOVE_inftrees.o = -pg CFLAGS_REMOVE_inffast.o = -pg endif KASAN_SANITIZE := n CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong CFLAGS_REMOVE_inftrees.o += -fstack-protector -fstack-protector-strong CFLAGS_REMOVE_inffast.o += -fstack-protector -fstack-protector-strong quiet_cmd_copy_zlib = COPY $@ cmd_copy_zlib = cat $< > $@ $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/% $(call cmd,copy_zlib) clean-files := $(zlib) PK ! ,�(C C boot-elf/Makefilenu �[��� # # 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. # OBJCOPY_ARGS := -O $(if $(CONFIG_CPU_BIG_ENDIAN),elf32-xtensa-be,elf32-xtensa-le) CPPFLAGS_boot.lds += -P -C KBUILD_AFLAGS += -mtext-section-literals boot-y := bootstrap.o targets += $(boot-y) boot.lds OBJS := $(addprefix $(obj)/,$(boot-y)) $(obj)/Image.o: $(obj)/../vmlinux.bin $(OBJS) $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section image=$< \ --set-section-flags image=contents,alloc,load,load,data \ $(OBJS) $@ $(obj)/../Image.elf: $(obj)/Image.o $(obj)/boot.lds $(Q)$(LD) $(KBUILD_LDFLAGS) \ -T $(obj)/boot.lds \ --build-id=none \ -o $@ $(obj)/Image.o $(Q)$(kecho) ' Kernel: $@ is ready' all Image: $(obj)/../Image.elf PK ! rK� � boot-redboot/Makefilenu �[��� # # 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. # OBJCOPY_ARGS := -O $(if $(CONFIG_CPU_BIG_ENDIAN),elf32-xtensa-be,elf32-xtensa-le) LD_ARGS = -T $(srctree)/$(obj)/boot.ld boot-y := bootstrap.o targets += $(boot-y) OBJS := $(addprefix $(obj)/,$(boot-y)) LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) $(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS) $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section image=$< \ --set-section-flags image=contents,alloc,load,load,data \ $(OBJS) $@ $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS) $(Q)$(LD) $(LD_ARGS) -o $@ $^ -L/xtensa-elf/lib $(LIBGCC) $(obj)/../zImage.redboot: $(obj)/zImage.elf $(Q)$(OBJCOPY) -S -O binary $< $@ $(Q)$(kecho) ' Kernel: $@ is ready' all zImage: $(obj)/../zImage.redboot PK ! �f)� bootloader.ldsnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ OUTPUT_FORMAT("elf64-alpha") ENTRY(__start) printk = srm_printk; SECTIONS { . = 0x20000000; .text : { *(.text) } _etext = .; PROVIDE (etext = .); .rodata : { *(.rodata) *(.rodata.*) } .data : { *(.data) CONSTRUCTORS } .got : { *(.got) } .sdata : { *(.sdata) } _edata = .; PROVIDE (edata = .); .sbss : { *(.sbss) *(.scommon) } .bss : { *(.bss) *(COMMON) } _end = . ; PROVIDE (end = .); .mdebug 0 : { *(.mdebug) } .note 0 : { *(.note) } .comment 0 : { *(.comment) } } PK ! J!�n� � tools/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 hostprogs += relocs relocs-objs += relocs_32.o relocs-objs += relocs_64.o relocs-objs += relocs_main.o PHONY += relocs relocs: $(obj)/relocs @: PK ! �a�[ [ dts/ni/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0-only dtb-$(CONFIG_FIT_IMAGE_FDT_NI169445) += 169445.dtb PK ! .b��s s dts/ralink/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_DTB_RT2880_EVAL) += rt2880_eval.dtb dtb-$(CONFIG_DTB_RT305X_EVAL) += rt3052_eval.dtb dtb-$(CONFIG_DTB_RT3883_EVAL) += rt3883_eval.dtb dtb-$(CONFIG_DTB_MT7620A_EVAL) += mt7620a_eval.dtb dtb-$(CONFIG_DTB_OMEGA2P) += omega2p.dtb dtb-$(CONFIG_DTB_VOCORE2) += vocore2.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! z�� � dts/img/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += boston.dtb dtb-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += pistachio_marduk.dtb PK ! ��Q_ _ dts/brcm/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_DT_BCM93384WVG) += bcm93384wvg.dtb dtb-$(CONFIG_DT_BCM93384WVG_VIPER) += bcm93384wvg_viper.dtb dtb-$(CONFIG_DT_BCM96368MVWG) += bcm96368mvwg.dtb dtb-$(CONFIG_DT_BCM9EJTAGPRB) += bcm9ejtagprb.dtb dtb-$(CONFIG_DT_BCM97125CBMB) += bcm97125cbmb.dtb dtb-$(CONFIG_DT_BCM97346DBSMB) += bcm97346dbsmb.dtb dtb-$(CONFIG_DT_BCM97358SVMB) += bcm97358svmb.dtb dtb-$(CONFIG_DT_BCM97360SVMB) += bcm97360svmb.dtb dtb-$(CONFIG_DT_BCM97362SVMB) += bcm97362svmb.dtb dtb-$(CONFIG_DT_BCM97420C) += bcm97420c.dtb dtb-$(CONFIG_DT_BCM97425SVMB) += bcm97425svmb.dtb dtb-$(CONFIG_DT_BCM97435SVMB) += bcm97435svmb.dtb dtb-$(CONFIG_DT_COMTREND_VR3032U) += bcm63268-comtrend-vr-3032u.dtb dtb-$(CONFIG_DT_NETGEAR_CVG834G) += bcm3368-netgear-cvg834g.dtb dtb-$(CONFIG_DT_SFR_NEUFBOX4_SERCOMM) += bcm6358-neufbox4-sercomm.dtb dtb-$(CONFIG_DT_SFR_NEUFBOX6_SERCOMM) += bcm6362-neufbox6-sercomm.dtb dtb-$(CONFIG_DT_NONE) += \ bcm3368-netgear-cvg834g.dtb \ bcm6358-neufbox4-sercomm.dtb \ bcm6362-neufbox6-sercomm.dtb \ bcm63268-comtrend-vr-3032u.dtb \ bcm93384wvg.dtb \ bcm93384wvg_viper.dtb \ bcm96368mvwg.dtb \ bcm9ejtagprb.dtb \ bcm97125cbmb.dtb \ bcm97346dbsmb.dtb \ bcm97358svmb.dtb \ bcm97360svmb.dtb \ bcm97362svmb.dtb \ bcm97420c.dtb \ bcm97425svmb.dtb \ bcm97435svmb.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! ��]? ? dts/realtek/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-y += cisco_sg220-26.dtb PK ! ��>) ) dts/mscc/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0-only dtb-$(CONFIG_SOC_VCOREIII) += \ jaguar2_pcb110.dtb \ jaguar2_pcb111.dtb \ jaguar2_pcb118.dtb \ luton_pcb091.dtb \ ocelot_pcb120.dtb \ ocelot_pcb123.dtb \ serval_pcb105.dtb \ serval_pcb106.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! lUW�[ [ dts/ingenic/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_JZ4740_QI_LB60) += qi_lb60.dtb dtb-$(CONFIG_JZ4740_RS90) += rs90.dtb dtb-$(CONFIG_JZ4770_GCW0) += gcw0.dtb dtb-$(CONFIG_JZ4780_CI20) += ci20.dtb dtb-$(CONFIG_X1000_CU1000_NEO) += cu1000-neo.dtb dtb-$(CONFIG_X1830_CU1830_NEO) += cu1830-neo.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! �sX X dts/xilfpga/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += nexys4ddr.dtb PK ! ��)� � dts/lantiq/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_DT_EASY50712) += easy50712.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! z��zU U dts/qca/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 # All DTBs dtb-$(CONFIG_ATH79) += ar9132_tl_wr1043nd_v1.dtb dtb-$(CONFIG_ATH79) += ar9331_dpt_module.dtb dtb-$(CONFIG_ATH79) += ar9331_dragino_ms14.dtb dtb-$(CONFIG_ATH79) += ar9331_omega.dtb dtb-$(CONFIG_ATH79) += ar9331_openembed_som9331_board.dtb dtb-$(CONFIG_ATH79) += ar9331_tl_mr3020.dtb PK ! o�&� � dts/loongson/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_MACH_LOONGSON64) += loongson64_2core_2k1000.dtb dtb-$(CONFIG_MACH_LOONGSON64) += loongson64c_4core_ls7a.dtb dtb-$(CONFIG_MACH_LOONGSON64) += loongson64c_4core_rs780e.dtb dtb-$(CONFIG_MACH_LOONGSON64) += loongson64c_8core_rs780e.dtb dtb-$(CONFIG_MACH_LOONGSON64) += loongson64g_4core_ls7a.dtb dtb-$(CONFIG_MACH_LOONGSON64) += loongson64v_4core_virtio.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! ]%��� � dts/pic32/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_DTB_PIC32_MZDA_SK) += pic32mzda_sk.dtb dtb-$(CONFIG_DTB_PIC32_NONE) += \ pic32mzda_sk.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! 7�9# # dts/netlogic/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_DT_XLP_EVP) += xlp_evp.dtb dtb-$(CONFIG_DT_XLP_SVP) += xlp_svp.dtb dtb-$(CONFIG_DT_XLP_FVP) += xlp_fvp.dtb dtb-$(CONFIG_DT_XLP_GVP) += xlp_gvp.dtb dtb-$(CONFIG_DT_XLP_RVP) += xlp_rvp.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! ��*� � dts/cavium-octeon/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! �Ն�� � dts/mti/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_MIPS_MALTA) += malta.dtb dtb-$(CONFIG_LEGACY_BOARD_SEAD3) += sead3.dtb obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y)) PK ! � � Makefilenu �[��� PK ! ~0�K) ) . dts/Makefilenu �[��� PK ! B��q q � install.shnu �[��� PK ! <h64g g > compressed/Makefilenu �[��� PK ! �K�� � �1 genimage.shnu �[��� PK ! 19�� L deflate_xip_data.shnu ȯ�� PK ! /(�T� � �R bootp/bootp.ldsnu �[��� PK ! lu�� �U bootp/Makefilenu �[��� PK ! 7:LE E 1Y lib/Makefilenu �[��� PK ! ,�(C C �\ boot-elf/Makefilenu �[��� PK ! rK� � 6` boot-redboot/Makefilenu �[��� PK ! �f)� <d bootloader.ldsnu �[��� PK ! J!�n� � �f tools/Makefilenu �[��� PK ! �a�[ [ �g dts/ni/Makefilenu �[��� PK ! .b��s s #h dts/ralink/Makefilenu �[��� PK ! z�� � �i dts/img/Makefilenu �[��� PK ! ��Q_ _ �j dts/brcm/Makefilenu �[��� PK ! ��]? ? Ip dts/realtek/Makefilenu �[��� PK ! ��>) ) �p dts/mscc/Makefilenu �[��� PK ! lUW�[ [ 6r dts/ingenic/Makefilenu �[��� PK ! �sX X �s dts/xilfpga/Makefilenu �[��� PK ! ��)� � qt dts/lantiq/Makefilenu �[��� PK ! z��zU U ;u dts/qca/Makefilenu �[��� PK ! o�&� � �v dts/loongson/Makefilenu �[��� PK ! ]%��� � �x dts/pic32/Makefilenu �[��� PK ! 7�9# # �y dts/netlogic/Makefilenu �[��� PK ! ��*� � S{ dts/cavium-octeon/Makefilenu �[��� PK ! �Ն�� � ;| dts/mti/Makefilenu �[��� PK � *}
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка