Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mkl 18.06.2 #4

Open
wants to merge 399 commits into
base: mkl-18.06
Choose a base branch
from
Open

Mkl 18.06.2 #4

wants to merge 399 commits into from

Conversation

lukrog
Copy link

@lukrog lukrog commented Mar 12, 2019

Small updates on openwrt, should work for smarteye and vending project.

jow- and others added 30 commits December 18, 2018 09:44
In order to be able to better compare files to sync in the future, include
all BIN_DIR subdirectories in the checksum calculation.

To not break existing applications, restrict the recursive checksumming to
CONFIG_BUILDBOT for now.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from 681e825)
Fix CID 1330844

Found-by: Coverity
Signed-off-by: Alexander Couzens <[email protected]>
(backported from e37ad4e)
The return value of the function isn't used anywhere.
Fixes missing return value, CID 1329717.

Found-by: Coverity
Signed-off-by: Alexander Couzens <[email protected]>
(backported from b06c447)
This was causing issues recently as samba36 is not API compatible with the
libtdb in the packages repo. It shouldn't be using it anyway. Nor tevent.

Signed-off-by: Rosen Penev <[email protected]>
(backported from 1f2612a)
The Gentoo GitHub mirror went down. One benefit of Fedora's usb.ids file
is that it's versioned.

Signed-off-by: Rosen Penev <[email protected]>
(backported from f23271f)
The order of the Ethernet ports were mixed up.
This commit fixes the order to be aligned with the physical layout.

Signed-off-by: Lev <[email protected]>
(backported from 3d6f57f)
48cff25 build: drop install -o/-g root
53d7e7a extensions: ebt_string: take action if snprintf discards data

Signed-off-by: Hans Dedecker <[email protected]>
(backported from afac2a2)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <[email protected]>
The GDB Text User Interface (TUI) is a terminal interface
which uses the curses library to show the source file,
the assembly output, the program registers and GDB
commands in separate text windows.

In other words it's a friendlier interface for idiots like me!

Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
(backported from 900d867)
Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
(backported from 89b5999)
Update cmake and refresh patches.

Signed-off-by: Hannu Nyman <[email protected]>
(backported from 55fa806)
update version and refresh patch

Signed-off-by: Hannu Nyman <[email protected]>
(backported from 7ec931b)
…naming

Newer kernels have a patch that implements compatible functionality
directly. Adjust the attribute of our own patch in preparation for
dropping it later

Signed-off-by: Felix Fietkau <[email protected]>
(backported from 41a1c1a)
… on 4.14

Signed-off-by: Felix Fietkau <[email protected]>
(backported from 21ee8ce)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <[email protected]>
build openwrt on centos 6 I should use devtoolset-3 to get gcc 4.9, but
it fail when make menuconfig. so I have to give option HOSTCC='gcc
-Wl,--copy-dt-needed-entries' to make. But it passed to sub make to
HOSTCC=gcc as micro SUBMAKE expand to HOSTCC=gcc
-Wl,--copy-dt-needed-entries. This patch fix this issue.

make -C build menuconfig HOSTCC='gcc -Wl,--copy-dt-needed-entries' V='1'
make: Entering directory `/work/openwrt/openwrt/build'
/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld:
lxdialog/checklist.o: undefined reference to symbol 'acs_map'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [mconf] Error 1
make -s -C scripts/config all CC=gcc -Wl,--copy-dt-needed-entries: build
failed. Please re-run make with -j1 V=s to see what's going on
make: *** [scripts/config/mconf] Error 1
make: Leaving directory `/work/openwrt/openwrt/build'

Signed-off-by: 李国 <[email protected]>
(backported from 6719991)
…r to get compiled

Signed-off-by: Peter Wagner <[email protected]>
(backported from d8d2133)
Increase the termination timeout to 15s to let OpenVPN properly tear down
its connections, especially when weak links or complex down scripts are
involved.

Fixes FS#859.
Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from 28d3a1b)
Move common variables and/or values to the package (variant) default.
Add additional values in variant packages if necessary. Remove further
duplicates by introducing new templates.

Remove the ANY_[HOSTAPD|SUPPLICANT_PROVIDERS]_PROVIDERS. The are the
same as the variables without the any prefix. No need to maintain both
variables.

Signed-off-by: Mathias Kresin <[email protected]>
(backported from 8af8ceb)
Add each variant to the matching PROVIDERS variables after evaluating
the respective hostapd*, wpad* and wpa* variant.

Each package providing the same feature will automatically conflict with
all prior packages providing the same feature.

This way we can handle the conflicts automatically without introducing
recursive dependencies.

Signed-off-by: Mathias Kresin <[email protected]>
(backported from 3838b16)
Restarting service sysctl echos multiple errors like:

  sysctl: -e: No such file or directory

After the first filename, all remaining arguments are treated
as files.

Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
(backported from 4c42887)
Signed-off-by: Felix Fietkau <[email protected]>
(backported from f0ac9af)
A missing comma caused the first command option to be considered part of
the error message.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from a6f4c7b)
Move the put_mtd_device() called on multiple error conditions to a goto
label to use it later for more error conditions.

The early return on failed open of the mtd device and mismatching mtd
type allows to get rid of one level of indentation. By jumping to the
cleanup code, a refcount bug is fixed for the wrong flash type condition.

While at it, make clear that we only check for the UBI magic if the read
from flash was successful.

Signed-off-by: Mathias Kresin <[email protected]>
(backported from fdf6760)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <[email protected]>
The first block(s) of the ubi mtd device might be bad. We need to take
care on our own to skip the bad block(s) and read the next one(s).

Don't treat recoverable read errors as fatal and check for the UBI magic
if the data of a block could be recovered using ECC or similar.

Signed-off-by: Mathias Kresin <[email protected]>
(backported from 0ac91d8)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <[email protected]>
With a10a204 ("kernel: make ubi auto-attach check for a tar file
magic") the check for the magic was added without considering a failing
mtd_read(). If the read fails, no check is done and the mount code is
called straight away.

Failing with an error message for such cases seems to me the cleaner way,
as it would allow to spot hidden/workaround issues.

Signed-off-by: Mathias Kresin <[email protected]>
(backported from 3716b5e)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <[email protected]>
Problem - rapsberry pi 3 b/b+ does not boot with bcm2710 images!

How Raspberry Pi boots Actualy?

When Raspberry is switched on GPU is activated.
1. GPU execute First stage bootloader from ROM.
First stage bootloader mount the FAT boot partition on the SD card
and execute second stage bootloader (bootcode.bin).
2. Second stage bootloader (bootcode.bin) activate SDRAM.
Load the GPU firmware (start.elf).
3. GPU firmware (start.elf)
  a) display Rainbow splash.
  b) read firmware configuration file config.txt and
     split the RAM using fixup.dat.
  c) loads a cmdline.txt
  d) enables the CPU.
  e) loads the kernel image configurable via config.txt

In your target/linux/brcm2708/image/config.txt
 493 ## kernel (string)
 494 ##     Alternative name to use when loading kernel.
 495 ##
 496 #kernel=""
it is not configured!

But in your target/linux/brcm2708/image/Makefile
  75   KERNEL_IMG := kernel8.img
  76   DEVICE_TITLE := Raspberry Pi 3B/3B+
you have kernel8.img

GPU Firmware search order by default for a PI 3 is:
kernel8.img if found boot in 64 bit mode
kernel8-32.img if found boot in 32 bit mode
kernel7.img if found boot in 32 bit mode
kernel.img if found boot in 32 bit mode

But a PI 2 will start the search from kernel7.img and
a PI 1 only looks for kernel.img.

Оbviously the kernel has been found.
But something goes wrong and the device is restarted.

In your package/kernel/brcm2708-gpu-fw/Makefile
  11 PKG_NAME:=brcm2708-gpu-fw
  12 PKG_VERSION:=2017-08-08
  13 PKG_RELEASE:=e7ba7ab135f5a68b2c00a919ea9ac8d5528a5d5b
boot loader is 10 monts old.

In conclusion, the best way to solve the problem is
to update the boot loader!

Fixup_cd.dat and start_cd.elf files are not necessary.
These are used when GPU memory is set to 16 MB, which disables
some GPU features.
I did not remove them just in case!

cheers

Signed-off-by: Christo Nedev <[email protected]>
(backported from c335649)
Signed-off-by: Rafał Miłecki <[email protected]>
(backported from 93cc44c)
[0-3](none, minimal[default], more, maximum)

It is not 100% backward compatible, because now 0 disables logging

Signed-off-by: Dmitry Tunin <[email protected]>
(backported from 7a6b2ba)
Add sc to build error message

Signed-off-by: Daniel Engberg <[email protected]>
(backported from 0aaa650)
jefferyto and others added 27 commits January 30, 2019 12:40
This fixes two issues with cleaning package files from STAGING_DIR:

* CleanStaging currently can only remove files and not directories. This
  changes CleanStaging to use clean-package.sh, which does remove
  directories.

* Because of the way directories are ordered in the staging files list,
  clean-package.sh currently tries (and fails) to remove parent
  directories before removing subdirectories. This changes
  clean-package.sh to process the staging files list in reverse, so that
  subdirectories are removed first.

Signed-off-by: Jeffery To <[email protected]>
(cherry picked from commit a117093)
the leading 0 is optional and not emitted by some shells

Signed-off-by: Thorsten Glaser <[email protected]>
(cherry picked from commit da5bee5)
Fold upstream fix d2d4990
("Fix missing braces in 8eac67c0a15b673c8d27002c248651b308093e4") into
the already existing static lease fix patch.

Signed-off-by: Jo-Philipp Wich <[email protected]>
When config_get is called as "config_get section option" the option
is unexpectedly globbed by the shell which differs from the way options
are read to a variable with "config_get variable section option".
Add another layer of double quotes to fix it.

Signed-off-by: Günther Kelleter <[email protected]>
(backported from commit c3389ab)
- add a new subtarget named mt7620nand
- new mt7620-nand driver

Signed-off-by: Chen Minqiang <[email protected]>
Specification:
 - CPU: 580 MHz
 - Flash size: 128 MiB NAND
 - RAM size: 128 MiB DDR2
 - Wireless No1: SoC-integrated: MT7620A 2x2 MIMO 802.11b/g/n (2.4 GHz)
 - Wireless No2: On-board chip: MT7612E 2x2 MIMO 802.11a/n/ac (5 GHz)
 - Switch: MT7620 built-in 10/100 switch w/ vlan support
 - USB: 2.0 x1

Flash instructions:
 1. access ssh via https://wiki.openwrt.org/toh/xiaomi/mir3
 2. in ssh:
      nvram set flag_last_success=1
      nvram set boot_wait=on
      nvram set uart_en=1
      nvram commit
      mtd write lede-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin kernel1
      mtd write lede-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin rootfs0
      reboot

If you want to revert back to stock fw while on LEDE:
  insert usb stick (FAT/FAT32) with stock fw renamed to miwifi.bin
  fw_setenv flag_last_success 0
  power off the device
  hold the reset button and power on the device, keep holding the reset button until yellow led starts blinking.

This is base on the new subtarget mt7620nand

Signed-off-by: Chen Minqiang <[email protected]>
config-VPU.seed is supported for now. If the script is run without
arguments and fzf is available it will show a nice selection menu.
With root password authorization disabled it is not necessary to
bother the user about an empty root password.
When a file rotation is detected we should read the remaining bytes from
the old file first before reopening it by name.
…unused

This enables GPIO access for SPI pins (nothing is populated on the PCB)
and USB power control (R5 needs to be bridged on PCB).
The busybox's svlogd daemon has several missing features due to
implementation bugs.
GNU rmdir is needed by the Python build system.
… usb client support for qca955x"

This reverts commit fa22714.
@jpc
Copy link
Member

jpc commented Mar 12, 2019

Te dwa reverty są nadal potrzebne?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.