ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] Ситуация с firmware
@ 2016-05-22 19:57 Konstantin Lepikhov
  2016-05-23  9:16 ` Konstantin Lepikhov
  2016-05-23 14:02 ` Michael Shigorin
  0 siblings, 2 replies; 4+ messages in thread
From: Konstantin Lepikhov @ 2016-05-22 19:57 UTC (permalink / raw)
  To: devel-distro

Привет!

Пишу это чтобы не забыть, когда буду собирать очередной livecd для себя. К
сожалению, сколько лет прошло, а у нас все так же плохо с firmware.
Установка linux-firmware или какой-нить проприетарщины в виде nvidia или
bcmwl решает проблему, но в целом это жопа.

Итак, обо всем по порядку:

Broadcom wifi
-------------

Отсутствуют блобы для brcm, а это все компоненты для bluetooth стека на
базе чипа BCM20702A0. Блобы извлекаются через hex2hcd и такой гайд:

http://askubuntu.com/questions/617513/bluetooth-not-connecting-to-devices-even-though-it-recognizes-them

Да, это нарушает все лицензии и это неправильно, но иметь нерабочий
bluetooth мне кажется еще хуже.

Также есть бесконечная история с b43 и fwcutter, ну блин, можно же в конце
концов это _один_ раз извлеч и запаковать? Особенно в livecd, где сеть не
поднялась.

Nuveau Video Acceleration
-------------------------

См. https://nouveau.freedesktop.org/wiki/VideoAcceleration/, да, опять
надо раскурочивать блобы, но раз мы уже пакуем их, есть смысл просто
раскурочить firmware при упаковке nvidia и положить в отдельный пакет.

Нельзя положить файлы в stage2
------------------------------

Если запаковывать это нельзя, то есть ли простой способ положить это в
stage2? Я пробовал добавлять директорию в параметр COPY_TREE, но, похоже,
этот параметр просто игнорируется при сборке stage2.

Идеи?

-- 
WBR et al.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel-distro] Ситуация с firmware
  2016-05-22 19:57 [devel-distro] Ситуация с firmware Konstantin Lepikhov
@ 2016-05-23  9:16 ` Konstantin Lepikhov
  2016-05-23 14:02 ` Michael Shigorin
  1 sibling, 0 replies; 4+ messages in thread
From: Konstantin Lepikhov @ 2016-05-23  9:16 UTC (permalink / raw)
  To: Distributions development

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

On 05/22/16, at 09:57:20 PM you wrote:

<skip>
> Нельзя положить файлы в stage2
> ------------------------------
> 
> Если запаковывать это нельзя, то есть ли простой способ положить это в
> stage2? Я пробовал добавлять директорию в параметр COPY_TREE, но, похоже,
> этот параметр просто игнорируется при сборке stage2.
> 
> Идеи?
Это победил, пачт прикладываю.

-- 
WBR et al.

[-- Attachment #2: 0001-sub.in-stage2-Added-copy-tree-to-stage2.patch --]
[-- Type: text/x-patch, Size: 1331 bytes --]

>From b740b4867be3251266acfb95d6a86e37a469325f Mon Sep 17 00:00:00 2001
From: "Konstantin A. Lepikhov" <lakostis@altlinux.ru>
Date: Mon, 23 May 2016 11:10:22 +0200
Subject: [PATCH] sub.in/stage2: Added copy-tree to stage2

stage2 only allows to run certain scripts and install packages, but
sometimes one need just to copy something to stage2 (like stage1 does).

How to use:

put files under ./files directory with the same structure as on
resulting image.
---
 sub.in/stage2/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sub.in/stage2/Makefile b/sub.in/stage2/Makefile
index 9fccca9..f124dfc 100644
--- a/sub.in/stage2/Makefile
+++ b/sub.in/stage2/Makefile
@@ -13,6 +13,10 @@ include $(GLOBAL_BUILDDIR)/distcfg.mk
 include $(GLOBAL_BUILDDIR)/functions.mk
 include $(MKIMAGE_PREFIX)/config.mk
 
+COPY_TREE = ./files
+
+include $(MKIMAGE_PREFIX)/targets.mk
+
 # this might have been prepared
 # by features.in/stage2/stage1/scripts.d/03-test-kernel
 -include $(GLOBAL_BUILDDIR)/squashcfg.mk
@@ -57,7 +61,7 @@ include $(MKIMAGE_PREFIX)/targets.mk
 GLOBAL_CLEANUP_PACKAGES := $(CLEANUP_PACKAGES)
 
 all: |  $(GLOBAL_DEBUG) \
-	build-image run-image-scripts run-scripts pack-image \
+	build-image run-image-scripts copy-tree run-scripts pack-image \
 	$(GLOBAL_CLEAN_WORKDIR)
 
 # dummy
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel-distro] Ситуация с  firmware
  2016-05-22 19:57 [devel-distro] Ситуация с firmware Konstantin Lepikhov
  2016-05-23  9:16 ` Konstantin Lepikhov
@ 2016-05-23 14:02 ` Michael Shigorin
  2016-05-23 15:31   ` Konstantin Lepikhov
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2016-05-23 14:02 UTC (permalink / raw)
  To: devel-distro

On Sun, May 22, 2016 at 09:57:20PM +0200, Konstantin Lepikhov wrote:
> Broadcom wifi
> -------------
> 
> Отсутствуют блобы для brcm, а это все компоненты для bluetooth стека на
> базе чипа BCM20702A0. Блобы извлекаются через hex2hcd и такой гайд:
[...]
> Также есть бесконечная история с b43 и fwcutter, ну блин, можно
> же в конце концов это _один_ раз извлечь и запаковать? Особенно
> в livecd, где сеть не поднялась.

Может, отпинаешь broadcom отправить их наконец в linux-firmware.git?

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel-distro] Ситуация с firmware
  2016-05-23 14:02 ` Michael Shigorin
@ 2016-05-23 15:31   ` Konstantin Lepikhov
  0 siblings, 0 replies; 4+ messages in thread
From: Konstantin Lepikhov @ 2016-05-23 15:31 UTC (permalink / raw)
  To: devel-distro

Hi Michael!

On 05/23/16, at 05:02:58 PM you wrote:

> On Sun, May 22, 2016 at 09:57:20PM +0200, Konstantin Lepikhov wrote:
> > Broadcom wifi
> > -------------
> > 
> > Отсутствуют блобы для brcm, а это все компоненты для bluetooth стека на
> > базе чипа BCM20702A0. Блобы извлекаются через hex2hcd и такой гайд:
> [...]
> > Также есть бесконечная история с b43 и fwcutter, ну блин, можно
> > же в конце концов это _один_ раз извлечь и запаковать? Особенно
> > в livecd, где сеть не поднялась.
> 
> Может, отпинаешь broadcom отправить их наконец в linux-firmware.git?
> 
Broadcom на это плевать, тем более блобы у них под закрытой лицензией,
не допускающей reverse engineering, так что, Миша не говори ерунды.
История о том, что без этих блобов сделать нормальный livecd на базе
ядерных драйверов не получится, и что делать, если кривущие блобы не
собираются непонятно. Мне кажется, проще это запаковать и/или положить
куда-нибудь отдельно и если нужно собрать livecd то подключать эту репу. И
про этот livecd написать что там внутри есть такие бяки и все что вы
делаете это ваши собственные проблемы.

Т.е. сделать такой use/firmware/unsupported не помешало бы.

-- 
WBR et al.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-23 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-22 19:57 [devel-distro] Ситуация с firmware Konstantin Lepikhov
2016-05-23  9:16 ` Konstantin Lepikhov
2016-05-23 14:02 ` Michael Shigorin
2016-05-23 15:31   ` Konstantin Lepikhov

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git