data: remove WiFi firmware data files 82/249282/2
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 9 Dec 2020 22:37:30 +0000 (07:37 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 10 Dec 2020 01:06:44 +0000 (10:06 +0900)
Remove WiFi firmare data files and codes related with it.
It doesn't need to include anymore.

Change-Id: Id527d4467e430a268b65df8829b0cd89e27ea001
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
data/LICENCE.broadcom_bcm43xx [deleted file]
data/brcmfmac43430-sdio.bin [deleted file]
data/brcmfmac43430-sdio.txt [deleted file]
data/brcmfmac43455-sdio.bin [deleted file]
data/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt [deleted file]
data/brcmfmac43455-sdio.raspberrypi,4-model-b.txt [deleted file]
data/dnsmasq.conf [deleted file]
data/hostapd.conf [deleted file]
packaging/initrd-flash.spec
scripts/41-flash.list.in
scripts/flash-init.sh

diff --git a/data/LICENCE.broadcom_bcm43xx b/data/LICENCE.broadcom_bcm43xx
deleted file mode 100644 (file)
index ff26fdd..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-SOFTWARE LICENSE AGREEMENT
-
-The accompanying software in binary code form (“Software”), is licensed to you,
-or, if you are accepting on behalf of an entity, the entity and its affiliates
-exercising rights hereunder (“Licensee”) subject to the terms of this software
-license agreement (“Agreement”), unless Licensee and Broadcom Corporation
-(“Broadcom”) execute a separate written software license agreement governing
-use of the Software. ANY USE, REPRODUCTION, OR DISTRIBUTION OF THE SOFTWARE
-CONSTITUTES LICENSEE’S ACCEPTANCE OF THIS AGREEMENT.
-
-1.     License. Subject to the terms and conditions of this Agreement,
-Broadcom hereby grants to Licensee a limited, non-exclusive, non-transferable,
-royalty-free license: (i) to use and integrate the Software with any other
-software; and (ii) to reproduce and distribute the Software complete,
-unmodified, and as provided by Broadcom, solely for use with Broadcom
-proprietary integrated circuit product(s) sold by Broadcom with which the
-Software was designed to be used, or their successors.
-
-2.     Restrictions. Licensee shall distribute Software with a copy of this
-Agreement. Licensee shall not remove, efface or obscure any copyright or
-trademark notices from the Software. Reproductions of the Broadcom copyright
-notice shall be included with each copy of the Software, except where such
-Software is embedded in a manner not readily accessible to the end user.
-Licensee shall not: (i) use, license, sell or otherwise distribute the Software
-except as provided in this Agreement; (ii) attempt to modify in any way,
-reverse engineer, decompile or disassemble any portion of the Software; or
-(iii) use the Software or other material in violation of any applicable law or
-regulation, including but not limited to any regulatory agency. This Agreement
-shall automatically terminate upon Licensee’s failure to comply with any of the
-terms of this Agreement. In such event, Licensee will destroy all copies of the
-Software and its component parts.
-
-3.     Ownership. The Software is licensed and not sold.  Title to and
-ownership of the Software, including all intellectual property rights thereto,
-and any portion thereof remain with Broadcom or its licensors. Licensee hereby
-covenants that it will not assert any claim that the Software created by or for
-Broadcom infringe any intellectual property right owned or controlled by
-Licensee.
-
-4.             Disclaimer. THE SOFTWARE IS OFFERED “AS IS,” AND BROADCOM PROVIDES AND
-GRANTS AND LICENSEE RECEIVES NO SUPPORT AND NO WARRANTIES OF ANY KIND, EXPRESS
-OR IMPLIED, BY STATUTE, COMMUNICATION OR CONDUCT WITH LICENSEE, OR OTHERWISE.
-BROADCOM SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A SPECIFIC PURPOSE, OR NONINFRINGEMENT CONCERNING THE SOFTWARE OR
-ANY UPGRADES TO OR DOCUMENTATION FOR THE SOFTWARE. WITHOUT LIMITATION OF THE
-ABOVE, BROADCOM GRANTS NO WARRANTY THAT THE SOFTWARE IS ERROR-FREE OR WILL
-OPERATE WITHOUT INTERRUPTION, AND GRANTS NO WARRANTY REGARDING ITS USE OR THE
-RESULTS THEREFROM INCLUDING, WITHOUT LIMITATION, ITS CORRECTNESS, ACCURACY, OR
-RELIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM
-OR ANY OF ITS LICENSORS HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER FOR BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR
-OTHERWISE, ARISING OUT OF THIS AGREEMENT OR USE, REPRODUCTION, OR DISTRIBUTION
-OF THE SOFTWARE, INCLUDING BUT NOT LIMITED TO LOSS OF DATA AND LOSS OF PROFITS,
-EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THESE
-LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY
-LIMITED REMEDY.
-
-5.     Export Laws.  LICENSEE UNDERSTANDS AND AGREES THAT THE SOFTWARE IS
-SUBJECT TO UNITED STATES AND OTHER APPLICABLE EXPORT-RELATED LAWS AND
-REGULATIONS AND THAT LICENSEE MAY NOT EXPORT, RE-EXPORT OR TRANSFER THE
-SOFTWARE OR ANY DIRECT PRODUCT OF THE SOFTWARE EXCEPT AS PERMITTED UNDER THOSE
-LAWS. WITHOUT LIMITING THE FOREGOING, EXPORT, RE-EXPORT, OR TRANSFER OF THE
-SOFTWARE TO CUBA, IRAN, NORTH KOREA, SUDAN, AND SYRIA IS PROHIBITED.
-
diff --git a/data/brcmfmac43430-sdio.bin b/data/brcmfmac43430-sdio.bin
deleted file mode 100644 (file)
index 4b2945e..0000000
Binary files a/data/brcmfmac43430-sdio.bin and /dev/null differ
diff --git a/data/brcmfmac43430-sdio.txt b/data/brcmfmac43430-sdio.txt
deleted file mode 100644 (file)
index 732c19b..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-# (C) Copyright 2018 Raspberry Pi (Trading) Ltd.
-# NVRAM config file for the BCM43430 WiFi/BT chip as found on the
-# Raspberry Pi 3 Model B
-aa2g=1
-ag0=255
-AvVmid_c0=0x0,0xc8
-boardflags=0x00404201
-boardflags3=0x08000000
-boardnum=22
-boardrev=0x1202
-boardtype=0x0726
-btc_mode=1
-btc_params1=0x7530
-btc_params8=0x4e20
-cckbw202gpo=0
-cckpwroffset0=5
-ccode=ALL
-# cldo_pwm is not set
-deadman_to=0xffffffff
-devid=0x43e2
-extpagain2g=0
-il0macaddr=00:90:4c:c5:12:38
-legofdmbw202gpo=0x66111111
-macaddr=00:90:4c:c5:12:38
-manfid=0x2d0
-maxp2ga0=84
-mcsbw202gpo=0x77711111
-muxenab=0x1
-nocrc=1
-ofdmdigfilttype=18
-ofdmdigfilttypebe=18
-pa0itssit=0x20
-pa2ga0=-168,7161,-820
-pacalidx2g=32
-papdendidx=61
-papdepsoffset=-36
-papdmode=1
-papdvalidtest=1
-prodid=0x0726
-propbw202gpo=0xdd
-spurconfig=0x3 
-sromrev=11
-txpwrbckof=6
-vendid=0x14e4
-wl0id=0x431b
-xtalfreq=37400
diff --git a/data/brcmfmac43455-sdio.bin b/data/brcmfmac43455-sdio.bin
deleted file mode 100644 (file)
index 0212bcf..0000000
Binary files a/data/brcmfmac43455-sdio.bin and /dev/null differ
diff --git a/data/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt b/data/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
deleted file mode 100644 (file)
index ba94f54..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-# (C) Copyright 2018 Raspberry Pi (Trading) Ltd.
-# NVRAM config file for the BCM43455 WiFi/BT chip as found on the
-# Raspberry Pi 3 Model B+
-aa2g=1
-aa5g=1
-AvVmid_c0=1,165,2,100,2,100,2,100,2,100
-boardflags=0x00480201
-boardflags2=0x40800000
-boardflags3=0x48200100
-boardrev=0x1304
-boardtype=0x6e4
-btc_mode=1
-btc_params1=0x7530
-btc_params8=0x4e20
-cbfilttype=1
-cckPwrIdxCorr=3
-cckTssiDelay=150
-deadman_to=481500000
-devid=0x43ab
-dot11agofdmhrbw202gpo=0x4442
-dot11b_opts=0x3aa85
-ed_thresh2g=-54
-ed_thresh5g=-54
-eu_edthresh2g=-54
-eu_edthresh5g=-54
-extpagain2g=2
-extpagain5g=2
-fdsslevel_ch11=6
-femctrl=0
-itrsw=1
-ldo1=4
-ltecxfnsel=0x22
-ltecxgcigpio=0x32
-ltecxmux=0
-ltecxpadnum=0x0504
-macaddr=b8:27:eb:74:f2:6c
-manfid=0x2d0
-maxp2ga0=80
-maxp5ga0=82,82,82,82
-mcsbw202gpo=0x98444422
-mcsbw205ghpo=0xb9555000
-mcsbw205glpo=0xb9555000
-mcsbw205gmpo=0xb9555000
-mcsbw402gpo=0x98444422
-mcsbw405ghpo=0xb9555000
-mcsbw405glpo=0xb9555000
-mcsbw405gmpo=0xb9555000
-mcsbw805ghpo=0xb9555000
-mcsbw805glpo=0xb9555000
-mcsbw805gmpo=0xb9555000
-nocrc=1
-ofdmlrbw202gpo=0x0022
-ofdmTssiDelay=150
-pa2ga0=-129,6525,-718
-pa2ga1=-149,4408,-601
-pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
-pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
-pdoffset2g40ma0=16
-pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
-pdoffset40ma0=0x8888
-pdoffset80ma0=0x8888
-pdoffsetcckma0=2
-phycal_tempdelta=15
-prodid=0x06e4
-rawtempsense=0x1ff
-rxchain=1
-sromrev=11
-swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff
-swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe
-swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
-swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3
-tssipos2g=1
-tssipos5g=1
-tworangetssi2g=1
-tworangetssi5g=1
-txchain=1
-txpwr2gAdcScale=1
-txpwr5gAdcScale=1
-vcodivmode=1
-vendid=0x14e4
-xtalfreq=37400
diff --git a/data/brcmfmac43455-sdio.raspberrypi,4-model-b.txt b/data/brcmfmac43455-sdio.raspberrypi,4-model-b.txt
deleted file mode 100644 (file)
index 425d293..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-# (C) Copyright 2018 Raspberry Pi (Trading) Ltd.
-# NVRAM config file for the BCM43455 WiFi/BT chip as found on the
-# Raspberry Pi 4 Model B
-aa2g=1
-aa5g=1
-AvVmid_c0=1,165,2,100,2,100,2,100,2,100
-boardflags=0x00480201
-boardflags2=0x40800000
-boardflags3=0x44200100
-boardrev=0x1304
-boardtype=0x6e4
-btc_mode=1
-btc_params1=0x7530
-btc_params8=0x4e20
-cbfilttype=1
-cckPwrIdxCorr=3
-cckTssiDelay=150
-deadman_to=481500000
-devid=0x43ab
-dot11agofdmhrbw202gpo=0x4442
-dot11b_opts=0x3aa85
-ed_thresh2g=-54
-ed_thresh5g=-54
-eu_edthresh2g=-54
-eu_edthresh5g=-54
-extpagain2g=2
-extpagain5g=2
-fdsslevel_ch11=6
-femctrl=0
-itrsw=1
-ldo1=4
-ltecxfnsel=0x22
-ltecxgcigpio=0x32
-ltecxmux=0
-ltecxpadnum=0x0504
-macaddr=b8:27:eb:74:f2:6c
-manfid=0x2d0
-maxp2ga0=80
-maxp5ga0=82,82,82,82
-mcsbw202gpo=0x98444422
-mcsbw205ghpo=0xb9555000
-mcsbw205glpo=0xb9555000
-mcsbw205gmpo=0xb9555000
-mcsbw402gpo=0x98444422
-mcsbw405ghpo=0xb9555000
-mcsbw405glpo=0xb9555000
-mcsbw405gmpo=0xb9555000
-mcsbw805ghpo=0xb9555000
-mcsbw805glpo=0xb9555000
-mcsbw805gmpo=0xb9555000
-nocrc=1
-ofdmlrbw202gpo=0x0022
-ofdmTssiDelay=150
-pa2ga0=-129,6525,-718
-pa2ga1=-149,4408,-601
-pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
-pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
-pdoffset2g40ma0=16
-pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
-pdoffset40ma0=0x8888
-pdoffset80ma0=0x8888
-pdoffsetcckma0=2
-phycal_tempdelta=15
-prodid=0x06e4
-rawtempsense=0x1ff
-rxchain=1
-sromrev=11
-swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff
-swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe
-swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
-swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3
-tssipos2g=1
-tssipos5g=1
-tworangetssi2g=1
-tworangetssi5g=1
-txchain=1
-txpwr2gAdcScale=1
-txpwr5gAdcScale=1
-vcodivmode=1
-vendid=0x14e4
-xtalfreq=37400
diff --git a/data/dnsmasq.conf b/data/dnsmasq.conf
deleted file mode 100755 (executable)
index a8d5a27..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-dhcp-range=192.168.43.3,192.168.43.254,255.255.255.0
-enable-dbus
-group=""
-user=""
-dhcp-option=tag:blue,option:router,192.168.129.3
-dhcp-option=6,0.0.0.0
-pid-file=/lib/firmware/brcm/dnsmasq.pid
diff --git a/data/hostapd.conf b/data/hostapd.conf
deleted file mode 100644 (file)
index 133fb81..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-interface=wlan0
-driver=nl80211
-ssid=
-channel=6
-ignore_broadcast_ssid=0
-hw_mode=g
-ieee80211n=1
index 05fdf38..a73e989 100644 (file)
@@ -51,12 +51,6 @@ make %{?jobs:-j%jobs}
 
 cp ./data/partition_* %{buildroot}%{_datadir}/
 
-mkdir -p %{buildroot}%{_datadir}/firmware/brcm
-cp ./data/brcmfmac* %{buildroot}%{_datadir}/firmware/brcm
-cp ./data/LICENCE.broadcom_bcm43xx %{buildroot}%{_datadir}/firmware/brcm
-cp ./data/hostapd.conf %{buildroot}%{_datadir}/firmware/brcm
-cp ./data/dnsmasq.conf %{buildroot}%{_datadir}/firmware/brcm
-
 %post
 
 %post -n fm-data-rpi3
@@ -73,7 +67,3 @@ mv %{_datadir}/partition_rpi3.info %{_datadir}/partition.info
 
 %files -n fm-data-rpi3
 %{_datadir}/partition_rpi3.info
-%{_datadir}/firmware/brcm/brcmfmac*
-%{_datadir}/firmware/brcm/LICENCE.broadcom_bcm43xx
-%{_datadir}/firmware/brcm/hostapd.conf
-%{_datadir}/firmware/brcm/dnsmasq.conf
index 45c23b5..247ec0c 100755 (executable)
@@ -2,7 +2,6 @@
 MVWITHLIBS="
 @INITRD_FLASH_LIBEXEC_DIR@/flash-init.sh
 /usr/bin/flash-manager
-/usr/share/firmware/brcm/*
 "
 
 WITHLIBS="
@@ -18,10 +17,7 @@ WITHLIBS="
 /usr/sbin/ifconfig
 /usr/bin/grep
 /usr/bin/kmod
-/usr/sbin/insmod
 /usr/bin/find
-/usr/bin/hostapd
-/usr/bin/dnsmasq
 /usr/bin/ln
 /usr/bin/sed
 "
index 2ef1cd9..edab88b 100755 (executable)
@@ -19,14 +19,10 @@ GREP="/usr/bin/grep"
 SYNC="/usr/bin/sync"
 COPY="/usr/bin/cp"
 FIND="/usr/bin/find"
-INSMOD="/usr/sbin/insmod"
-DNSMASQ="/usr/bin/dnsmasq"
-HOSTAPD="/usr/bin/hostapd"
 LINK="/usr/bin/ln"
 SED="/usr/bin/sed"
 
 NETIF="eth0"
-WLANIF="wlan0"
 
 #------------------------------------------------
 #      clear_bootmode
@@ -53,78 +49,6 @@ setup_usb() {
 }
 
 #------------------------------------------------
-# Identify the target and prepare firmwares
-#------------------------------------------------
-prepare_wireless() {
-       MODEL=$(cat /sys/firmware/devicetree/base/model)
-
-       if [[ $MODEL == *"Raspberry"* ]]; then
-               FIRM_DIR="/lib/firmware/brcm"
-
-               if [ "$MODEL" = "Raspberry Pi 4 Model B" ]; then
-                       COMPAT="raspberrypi,4-model-b"
-                       FIRMWARE="brcmfmac43455-sdio"
-                       BOARD_TYPE="RPI4"
-               elif [ "$MODEL" = "Raspberry Pi 3 Model B+" ]; then
-                       COMPAT="raspberrypi,3-model-b-plus"
-                       FIRMWARE="brcmfmac43455-sdio"
-                       BOARD_TYPE="RPI3+"
-               elif [ "$MODEL" = "Raspberry Pi 3 Model B" ]; then
-                       BOARD_TYPE="RPI3"
-               fi
-
-               if [ -n "$COMPAT" ]; then
-                       $LINK -s ${FIRM_DIR}/${FIRMWARE}.${COMPAT}.txt ${FIRM_DIR}/${FIRMWARE}.txt
-               fi
-               SERIAL=$(cat /sys/firmware/devicetree/base/serial-number)
-       else
-               SERIAL=""
-               BOARD_TYPE="BOARD"
-       fi
-}
-
-#------------------------------------------------
-# Copy Module and Firmware file
-#------------------------------------------------
-setup_wireless() {
-       MODULES_PART=`"$BLKID" --label modules`
-       if [ "$MODULES_PART" != "" ]; then
-               echo "Module partition is $MODULES_PART"
-               $MOUNT -t ext4 ${MODULES_PART} ${TMP_PATH}
-
-               BRCMFMAC=`$FIND ${TMP_PATH} -name brcmfmac.ko`
-               BRCMUTIL=`$FIND ${TMP_PATH} -name brcmutil.ko`
-               echo "Module brcmfmac is $BRCMFMAC"
-               echo "Module brcmutil is $BRCMUTIL"
-               $LINK -s /usr/share/firmware /lib/firmware
-               $COPY $BRCMFMAC /lib/firmware/brcm/
-               $COPY $BRCMUTIL /lib/firmware/brcm/
-               $SYNC
-               $UMOUNT ${TMP_PATH}
-
-               prepare_wireless
-
-               $INSMOD /lib/firmware/brcm/brcmutil.ko
-               sleep 1
-               $INSMOD /lib/firmware/brcm/brcmfmac.ko
-               sleep 1
-
-               WLANIP="192.168.43.1"
-               $IFCONFIG $WLANIF ${WLANIP} up
-
-               $DNSMASQ -p 0 -9 -C /lib/firmware/brcm/dnsmasq.conf
-               SSID="TIZEN_${BOARD_TYPE}_${SERIAL}"
-
-               $SED -i "s/ssid=/ssid=${SSID}/g" /lib/firmware/brcm/hostapd.conf
-               $HOSTAPD -B /lib/firmware/brcm/hostapd.conf > /dev/null
-       else
-               echo "There is no module partition"
-               WLANIP="N/A"
-               SSID="N/A"
-       fi
-}
-
-#------------------------------------------------
 #      setup_writed_nic()
 #------------------------------------------------
 setup_wired_nic() {
@@ -162,7 +86,6 @@ print_info() {
        echo ""
        echo "Network Information:"
        echo "Wired: ${IPADDR}"
-       echo "Wireless: ${WLANIP} [SSID: ${SSID}]"
 }
 
 #------------------------------------------------
@@ -186,7 +109,6 @@ do_flash() {
 #      Main Routine Start
 #------------------------------------------------
 setup_wired_nic
-#setup_wireless
 setup_usb
 clear_bootmode
 print_info