| # HOW.GFIBER.quantenna.sdk.unpack |
| |
| How to unpack and format a Quantenna QSR1000 CDK as a u-boot vendor_drop. |
| Source filenames look like: quantenna-sdk-v37.4.8.62.tar.gz |
| |
| - initialize a repo with the default_unrestricted.xml manifest |
| - check out the vendor_drops branch |
| - remove the existing code |
| - unpack the downloaded SDK, it will create a new quantenna-sdk-... directory |
| |
| $ cd uboot/qsr1000 |
| $ git checkout -b l-vendor gfiber-internal/vendor_drops |
| (use rm with -rf splat, but make sure you're in the right place) |
| $ tar xvzpf $DOWNLOADS/$SDK |
| |
| The SDK includes both u-boot and linux, but we're only interested in the u-boot part. |
| Prune the set of files/directories down to what we want |
| |
| $ cd quantenna-sdk-* |
| $ rm -rf buildroot call_qcsapi_client_src.zip dbdc-quantenna-bin-*.tar drivers Kconfig libqcsapi_client_src.zip linux linux_2.6.35.12 pcie-host-quantenna-bin-*.tar pcie-quantenna-bin-*.tar post-process-configs.awk power_tables quantenna-bin-*.tar quantenna-hostapd-*.tar rfic6-quantenna-bin-*.tar common/doxygen |
| |
| Move the remaining files into a quantenna specific directory under u-boot |
| $ mkdir u-boot/quantenna |
| $ for ix in board_config.mk common configs host include Makefile Make.toolchain; do mv ${ix} u-boot/quantenna; done |
| |
| Then move everything up to where it really belongs |
| $ mv quantenna-sdk-v37.4.8.62/u-boot/* quantenna-sdk-v37.4.8.62/u-boot/.??* . |
| $ rm -rf quantenna-sdk-v37.4.8.62 |
| |
| $ git add --all |