[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnewsense-dev] deblobbing attempt
From: |
dww |
Subject: |
[Gnewsense-dev] deblobbing attempt |
Date: |
Wed, 2 Apr 2014 09:53:09 -0400 |
I got the wheezy linux source and attempted to deblob it ( on my parkes
machine). Should I really be doing it on a wheezy machine or does it
matter?
1. I put liberate.sh in debian/bin and changed it to the following (does
it look OK?):
#!/bin/bash
# Get Debian's Linux source package.
DEB_DIR=from_debian
if [ ! -d "$DEB_DIR" ] ; then
# We don't have the source package yet.
mkdir "$DEB_DIR"
cd "$DEB_DIR"
apt-get --target-release wheezy --download-only source linux
cd ..
fi
# Get deblob scripts.
LL_SVN=http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/
svn export ${LL_SVN}deblob-check
svn export ${LL_SVN}deblob-3.2
chmod +x deblob-*
# We're going to deblob the unpatched source.
tar -xf "$DEB_DIR"/*.orig.*
cd linux-3.2.*
# Has to be forced, as Debian has already cleaned almost all
firmware out.
../deblob-3.2 --force
echo TODO: deblob-check
echo TODO: deblob-check diff.gz?
# Wrap it back up.
cd ..
TAR_FILE=$(basename "$DEB_DIR"/*.orig.*)
tar -czf "$TAR_FILE" linux-3.2.*
# Fix checksums.
SHA1SUM=$(sha1sum *.orig.* | cut -d ' ' -f 1)
SHA256SUM=$(sha256sum *.orig.* | cut -d ' ' -f 1)
MD5SUM=$(md5sum *.orig.* | cut -d ' ' -f 1)
cp "$DEB_DIR"/*dsc .
sed -i -e 's,^ [[:alnum:]]\{40\}\( [0-9]\+ '${TAR_FILE}'\),
'${SHA1SUM}'\1,' *dsc
sed -i -e 's,^ [[:alnum:]]\{64\}\( [0-9]\+ '${TAR_FILE}'\),
'${SHA256SUM}'\1,' *dsc
sed -i -e 's,^ [[:alnum:]]\{32\}\( [0-9]\+ '${TAR_FILE}'\),
'${MD5SUM}'\1,' *dsc
# Fix file size.
SIZE=$(ls -l *.orig.* | cut -d ' ' -f 5)
sed -i -e 's,\(^ [[:alnum:]]\{40\} \)[0-9]\+\( '${TAR_FILE}'\),
'\1${SIZE}'\2,' *dsc
sed -i -e 's,\(^ [[:alnum:]]\{64\} \)[0-9]\+\( '${TAR_FILE}'\),
'\1${SIZE}'\2,' *dsc
sed -i -e 's,\(^ [[:alnum:]]\{32\} \)[0-9]\+\( '${TAR_FILE}'\),
'\1${SIZE}'\2,' *dsc
# Extract source package.
dpkg-source --no-check -x *dsc
# Check Debian patches for blobs.
find linux-3.2.*/debian/patches -iname '*.patch'
-exec ./deblob-check --list-blobs {} \+
echo TODO: add README.gNewSense
echo TODO: patch out LL's EXTRAVERSION
echo TODO: ...
2. Then I ran the command line 'sudo bash
linux-3.2*/debian/bin/liberate.sh > deblob.Output.txt' from the parent
directory of the source directory.
3. I received the following errors, do these look normal, seems like
there are a lot of files missing?
E: Ignore unavailable target release 'wheezy' of package 'linux'
E: Unable to find a source package for
tar: from_debian/*.orig.*: Cannot open: No such file or
directory
tar: Error is not recoverable: exiting now
WARNING: Using the force, ignored errors will be
ERROR: firmware/dsp56k/bootstrap.bin.ihex does not exist,
something is wrong
ERROR: firmware/dsp56k/bootstrap.asm does not exist, something
is wrong
ERROR: firmware/keyspan_pda/keyspan_pda.HEX does not exist,
something is wrong
ERROR: firmware/keyspan_pda/keyspan_pda.S does not exist,
something is wrong
ERROR: firmware/keyspan_pda/xircom_pgs.HEX does not exist,
something is wrong
ERROR: firmware/keyspan_pda/xircom_pgs.S does not exist,
something is wrong
ERROR: sound/pci/cs46xx/imgs/cwcdma.h does not exist, something
is wrong
ERROR: sound/pci/cs46xx/imgs/cwcdma.asp does not exist,
something is wrong
ERROR: firmware/isci/isci_firmware.bin.ihex does not exist,
something is wrong
ERROR: firmware/atmsar11.HEX does not exist, something is wrong
ERROR: firmware/intelliport2.bin.ihex does not exist, something
is wrong
ERROR: firmware/matrox/g200_warp.H16 does not exist, something
is wrong
ERROR: firmware/matrox/g400_warp.H16 does not exist, something
is wrong
ERROR: firmware/r128/r128_cce.bin.ihex does not exist, something
is wrong
ERROR: firmware/radeon/R100_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R200_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R300_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R420_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R520_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R600_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/R600_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RS600_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RS690_cp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RS780_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RS780_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV610_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV610_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV620_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV620_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV630_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV630_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV635_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV635_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV670_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV670_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV710_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV710_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV730_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV730_pfp.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV770_me.bin.ihex does not exist,
something is wrong
ERROR: firmware/radeon/RV770_pfp.bin.ihex does not exist,
something is wrong
ERROR: drivers/media/dvb/dvb-usb/af9005-script.h does not exist,
something is wrong
ERROR: firmware/ttusb-budget/dspbootcode.bin.ihex does not
exist, something is wrong
ERROR: firmware/cpia2/stv0672_vp4.bin.ihex does not exist,
something is wrong
ERROR: firmware/dabusb/bitstream.bin.ihex does not exist,
something is wrong
ERROR: firmware/dabusb/firmware.HEX does not exist, something is
wrong
ERROR: firmware/vicam/firmware.H16 does not exist, something is
wrong
ERROR: firmware/acenic/tg1.bin.ihex does not exist, something is
wrong
ERROR: firmware/acenic/tg2.bin.ihex does not exist, something is
wrong
ERROR: firmware/adaptec/starfire_rx.bin.ihex does not exist,
something is wrong
ERROR: firmware/adaptec/starfire_tx.bin.ihex does not exist,
something is wrong
ERROR: firmware/bnx2/bnx2-mips-09-6.2.1a.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2/bnx2-rv2p-09-6.0.17.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw.ihex does not
exist, something is wrong
ERROR: firmware/bnx2/bnx2-mips-06-6.2.1.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2/bnx2-rv2p-06-6.0.15.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2x/bnx2x-e1-6.2.9.0.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw.ihex does not exist,
something is wrong
ERROR: firmware/bnx2x/bnx2x-e2-6.2.9.0.fw.ihex does not exist,
something is wrong
ERROR: firmware/sun/cassini.bin.ihex does not exist, something
is wrong
ERROR: firmware/cxgb3/t3b_psram-1.1.0.bin.ihex does not exist,
something is wrong
ERROR: firmware/cxgb3/t3c_psram-1.1.0.bin.ihex does not exist,
something is wrong
ERROR: firmware/cxgb3/t3fw-7.10.0.bin.ihex does not exist,
something is wrong
ERROR: firmware/cxgb3/ael2005_opt_edc.bin.ihex does not exist,
something is wrong
ERROR: firmware/cxgb3/ael2005_twx_edc.bin.ihex does not exist,
something is wrong
ERROR: firmware/cxgb3/ael2020_twx_edc.bin.ihex does not exist,
something is wrong
ERROR: firmware/e100/d101m_ucode.bin.ihex does not exist,
something is wrong
ERROR: firmware/e100/d101s_ucode.bin.ihex does not exist,
something is wrong
ERROR: firmware/e100/d102e_ucode.bin.ihex does not exist,
something is wrong
ERROR: drivers/staging/ft1000/ft1000-pcmcia/ft1000.img does not
exist, something is wrong
ERROR: drivers/staging/ft1000/ft1000-pcmcia/boot.h does not
exist, something is wrong
ERROR: drivers/staging/ft1000/ft1000-usb/ft3000.img does not
exist, something is wrong
ERROR: firmware/myricom/lanai.bin.ihex does not exist, something
is wrong
ERROR: firmware/tehuti/bdx.bin.ihex does not exist, something is
wrong
ERROR: firmware/tigon/tg3.bin.ihex does not exist, something is
wrong
ERROR: firmware/tigon/tg3_tso.bin.ihex does not exist, something
is wrong
ERROR: firmware/tigon/tg3_tso5.bin.ihex does not exist,
something is wrong
ERROR: firmware/3com/typhoon.bin.ihex does not exist, something
is wrong
ERROR: drivers/net/appletalk/cops.c does not exist, something is
wrong
ERROR: drivers/net/appletalk/cops.c does not exist, something is
wrong
ERROR: drivers/net/appletalk/cops_ffdrv.h does not exist,
something is wrong
ERROR: drivers/net/appletalk/cops_ltdrv.h does not exist,
something is wrong
ERROR: drivers/net/appletalk/Makefile does not contain matches
for CONFIG_COPS
ERROR: firmware/yam/1200.bin.ihex does not exist, something is
wrong
ERROR: firmware/yam/9600.bin.ihex does not exist, something is
wrong
ERROR: firmware/ositech/Xilinx7OD.bin.ihex does not exist,
something is wrong
ERROR: firmware/cis/3CCFEM556.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/3CXEM556.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/LA-PCM.cis.ihex does not exist, something is
wrong
ERROR: firmware/cis/PCMLM28.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/DP83903.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/NE2K.cis.ihex does not exist, something is
wrong
ERROR: firmware/cis/tamarack.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/PE-200.cis.ihex does not exist, something is
wrong
ERROR: firmware/cis/PE520.cis.ihex does not exist, something is
wrong
ERROR: firmware/3com/3C359.bin.ihex does not exist, something is
wrong
ERROR: firmware/tr_smctr.bin.ihex does not exist, something is
wrong
ERROR: firmware/kaweth/new_code.bin.ihex does not exist,
something is wrong
ERROR: firmware/kaweth/new_code_fix.bin.ihex does not exist,
something is wrong
ERROR: firmware/kaweth/trigger_code.bin.ihex does not exist,
something is wrong
ERROR: firmware/kaweth/trigger_code_fix.bin.ihex does not exist,
something is wrong
ERROR: drivers/staging/wlags49_h2/ap_h2.c does not exist,
something is wrong
ERROR: drivers/staging/wlags49_h2/sta_h2.c does not exist,
something is wrong
ERROR: drivers/staging/wlags49_h2/ap_h25.c does not exist,
something is wrong
ERROR: drivers/staging/wlags49_h2/sta_h25.c does not exist,
something is wrong
ERROR: drivers/staging/rtl8192e/r8192E_hwimg.c did not change,
something is wrong
ERROR: firmware/qlogic/sd7220.fw.ihex does not exist, something
is wrong
ERROR: firmware/cis/MT5634ZLX.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/RS-COM-2P.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/COMpad2.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/COMpad4.cis.ihex does not exist, something
is wrong
ERROR: firmware/cis/SW_555_SER.cis.ihex does not exist,
something is wrong
ERROR: firmware/cis/SW_7xx_SER.cis.ihex does not exist,
something is wrong
ERROR: firmware/cis/SW_8xx_SER.cis.ihex does not exist,
something is wrong
ERROR: firmware/qlogic/isp1000.bin.ihex does not exist,
something is wrong
ERROR: firmware/advansys/mcode.bin.ihex does not exist,
something is wrong
ERROR: firmware/advansys/3550.bin.ihex does not exist, something
is wrong
ERROR: firmware/advansys/38C0800.bin.ihex does not exist,
something is wrong
ERROR: firmware/advansys/38C1600.bin.ihex does not exist,
something is wrong
ERROR: firmware/qlogic/1040.bin.ihex does not exist, something
is wrong
ERROR: firmware/qlogic/1280.bin.ihex does not exist, something
is wrong
ERROR: firmware/qlogic/12160.bin.ihex does not exist, something
is wrong
ERROR: firmware/emi26/bitstream.HEX does not exist, something is
wrong
ERROR: firmware/emi26/firmware.HEX does not exist, something is
wrong
ERROR: firmware/emi26/loader.HEX does not exist, something is
wrong
ERROR: firmware/emi62/bitstream.HEX does not exist, something is
wrong
ERROR: firmware/emi62/loader.HEX does not exist, something is
wrong
ERROR: firmware/emi62/midi.HEX does not exist, something is
wrong
ERROR: firmware/emi62/spdif.HEX does not exist, something is
wrong
ERROR: drivers/staging/keucr/init.h does not exist, something is
wrong
ERROR: firmware/keyspan/mpr.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa18x.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa19.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa19qi.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa19qw.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa19w.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa28.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa28xa.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa28xb.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa28x.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa49w.HEX does not exist, something is
wrong
ERROR: firmware/keyspan/usa49wlc.HEX does not exist, something
is wrong
ERROR: firmware/edgeport/boot.H16 does not exist, something is
wrong
ERROR: firmware/edgeport/boot2.H16 does not exist, something is
wrong
ERROR: firmware/edgeport/down.H16 does not exist, something is
wrong
ERROR: firmware/edgeport/down2.H16 does not exist, something is
wrong
ERROR: firmware/edgeport/down3.bin.ihex does not exist,
something is wrong
ERROR: firmware/ti_3410.fw.ihex does not exist, something is
wrong
ERROR: firmware/ti_5052.fw.ihex does not exist, something is
wrong
ERROR: firmware/mts_cdma.fw.ihex does not exist, something is
wrong
ERROR: firmware/mts_gsm.fw.ihex does not exist, something is
wrong
ERROR: firmware/mts_edge.fw.ihex does not exist, something is
wrong
ERROR: firmware/whiteheat.HEX does not exist, something is wrong
ERROR: firmware/whiteheat_loader.HEX does not exist, something
is wrong
ERROR: firmware/whiteheat_loader_debug.HEX does not exist,
something is wrong
ERROR: sound/pci/cs46xx/cs46xx_image.h does not exist, something
is wrong
ERROR: sound/pci/cs46xx/imgs/cwc4630.h does not exist, something
is wrong
ERROR: sound/pci/cs46xx/imgs/cwcasync.h does not exist,
something is wrong
ERROR: sound/pci/cs46xx/imgs/cwcsnoop.h does not exist,
something is wrong
ERROR: firmware/korg/k1212.dsp.ihex does not exist, something is
wrong
ERROR: firmware/ess/maestro3_assp_kernel.fw.ihex does not exist,
something is wrong
ERROR: firmware/ess/maestro3_assp_minisrc.fw.ihex does not
exist, something is wrong
ERROR: firmware/yamaha/ds1_ctrl.fw.ihex does not exist,
something is wrong
ERROR: firmware/yamaha/ds1_dsp.fw.ihex does not exist, something
is wrong
ERROR: firmware/yamaha/ds1e_ctrl.fw.ihex does not exist,
something is wrong
ERROR: firmware/sb16/alaw_main.csp.ihex does not exist,
something is wrong
ERROR: firmware/sb16/mulaw_main.csp.ihex does not exist,
something is wrong
ERROR: firmware/sb16/ima_adpcm_init.csp.ihex does not exist,
something is wrong
ERROR: firmware/sb16/ima_adpcm_capture.csp.ihex does not exist,
something is wrong
ERROR: firmware/sb16/ima_adpcm_playback.csp.ihex does not exist,
something is wrong
ERROR: firmware/yamaha/yss225_registers.bin.ihex does not exist,
something is wrong
ERROR: firmware/README.AddingFirmware does not exist, something
is wrong
ERROR: firmware/WHENCE does not exist, something is wrong
errors above were ignored because of --force
cp: cannot stat `from_debian/*dsc': No such file or directory
sed: can't read *dsc: No such file or directory
sed: can't read *dsc: No such file or directory
sed: can't read *dsc: No such file or directory
sed: can't read *dsc: No such file or directory
sed: can't read *dsc: No such file or directory
sed: can't read *dsc: No such file or directory
dpkg-source: error: cannot open *dsc: No such file or directory
linux-3.2.54/debian/bin/liberate.sh: line 56: unexpected EOF
while looking for matching `''
linux-3.2.54/debian/bin/liberate.sh: line 58: syntax error:
unexpected end of file
4. The output is in the attached file deblob.Output.txt. Is it expected
to have this many drivers deblobbed? Does the rest of the output look
OK?
5. I have not tried to build the source yet. I will do so if the output
above appears normal.
deblob.Output.txt
Description: Text document
- [Gnewsense-dev] deblobbing attempt,
dww <=