Differences

This shows you the differences between two versions of the page.

Link to this comparison view

buildroot [2017/04/22 09:48]
buildroot [2022/10/13 14:18] (current)
rzr [MORE]
Line 1: Line 1:
 +===== Usage =====
 +
 +<code>
 +docker run ubuntu:12.04 cat /etc/issue
 +docker run -ti ubuntu:12.04 
 +cd $HOME
 +apt-get update ; apt-get install git ; apt-get upgrade
 +git clone -b avatar/devel https://github.com/tizenteam/buildroot && cd buildroot
 +$SHELL -x -e ./build.sh
 +</code>
 +
 +===== Setup =====
 +
 +<code>
 +docker run ubuntu:12.04 cat /etc/issue
 +docker run -ti ubuntu:12.04 
 +cd $HOME
 +apt-get update ; apt-get install git ;
 +git config --global user.name "Git user"
 +git config --global user.email "root@localhost.localdomain"
 +apt-get install etckeeper ; #TODO use git
 +cd /etc
 +git commit --amend --reset-author
 +
 +apt-get install \
 +  screen sudo unp curl wget zile locales openssh-server
 +
 +bash
 +screen
 +
 +apt-get install \
 + make rsync bzip2 unzip whois bc \
 + ia32-libs-multiarch libncurses-dev\
 + build-essential \
 + g++ php5 \
 + #eol
 +
 +sed -b -e 's|^define|%define|g' -i /usr/share/i18n/locales/* # or just tr_TR
 +</code>
 +
 +
 +===== Rebuild from downstream =====
 +
 +<code>
 +url=http://downloads.wdc.com/gpl/buildroot-GPL_1_01_09.tgz
 +wget $url # buildroot-GPL-FW1_07_02.tgz
 +curl $url | tar xfz -
 +
 +cd buildroot-GPL*
 +# 2013.05-svn39-dirty
 +</code>
 +
 +
 +  * https://support.wdc.com/downloads.aspx?lang=en
 +    * 2/10/2017(1.07.02), 9/29/2015(1.05.01), 6/9/2015(1.04.06), 11/17/2014(1.03.13), 10/07/2014(1.02.17), 9/30/2014(1.02.15), 9/3/2014(1.01.09)
 +
 +  * http://downloads.wdc.com/gpl/buildroot-GPL-FW1_07_02.tgz
 +  * http://downloads.wdc.com/gpl/buildroot-GPL-FW1_05_01.tgz
 +  * http://downloads.wdc.com/gpl/GPL-v1_04_06-20150605.zip
 +  * http://downloads.wdc.com/gpl/buildroot-GPL_1_03_13.tgz
 +  * http://downloads.wdc.com/gpl/buildroot-GPL_1_02_17.tgz
 +  * http://downloads.wdc.com/gpl/buildroot-GPL_1_02_15.tgz
 +  * http://downloads.wdc.com/gpl/buildroot-GPL_1_01_09.tgz
 +
 +
 +===== Rebuild from supported =====
 +
 +<code>
 +url=http://downloads.wdc.com/gpl/buildroot-GPL-FW1_07_02.tgz
 +wget $url # b8f799970db9700a9148e82d72d9f59d  buildroot-GPL-FW1_07_02.tgz
 +curl $url | tar xfz -
 +
 +cd buildroot-GPL*
 +
 +git init
 +git add .
 +git commit -sam 'import' 
 +
 +url=http://download.wdc.com/nas/MyPassportWireless_1.07.02.bin
 +wget $url
 +
 +unp -c MyPassportWireless_1.07.02.bin 
 +
 +mkdir -p output/target/etc/
 +cp -av ./fwupg_images/version.packages output/target/etc/
 +cp -av ./fwupg_images/version output/target/etc/
 +
 +
 +sh -x -e ./buildfwupg_img.sh
 +</code>
 +
 +===== Rebuild from upstream =====
 +
 +<code>
 +git clone -b am335xevm https://github.com/tizenteam/buildroot
 +cd buildroot
 +# ls ../buildroot-GPL dl
 +mkdir -p dl && cd dl
 +
 +cat<<EOF>urls.lst
 +https://releases.linaro.org/archive/13.03/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
 +https://distfiles.dereferenced.org/pkgconf/pkgconf-0.8.9.tar.bz2
 +http://archive.ubuntu.com/ubuntu/pool/main/n/net-tools/net-tools_1.60.orig.tar.gz
 +http://lmde-mirror.gwendallebihan.net/latest/pool/main/n/net-tools/net-tools_1.60-25.diff.gz
 +http://museum.php.net/php5/php-5.4.19.tar.bz2
 +http://pkgs.fedoraproject.org/repo/pkgs/shadow-utils/shadow-4.1.5.1.tar.bz2/a00449aa439c69287b6d472191dc2247/shadow-4.1.5.1.tar.bz2
 +EOF
 +
 +wget -i urls.lst
 +
 +cat<<EOF>md5.lst && md5sum -c md5.lst
 +76321c891aaa74365c3a0260231d808e  gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
 +5ab1e2184d0fa6518031291138f2fc51  net-tools_1.60-25.diff.gz
 +ecaf37acb5b5daff4bdda77785fd916d  net-tools_1.60.orig.tar.gz
 +f06f99b9872b503758adab5ba7a7e755  php-5.4.19.tar.bz2
 +2273d8f5186e56886bc83454002c84ed  pkgconf-0.8.9.tar.bz2
 +a00449aa439c69287b6d472191dc2247  shadow-4.1.5.1.tar.bz2
 +EOF
 +
 +
 +# toolchain/toolchain-external/ext-tool.mk:TOOLCHAIN_EXTERNAL_SITE=https://releases.linaro.org/13.02/components/toolchain/binaries/
 +
 +# TODO: repack relocate to git
 +# http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/exports//am335x-evm-sdk-src-06.00.00.00.tar.gz
 +# linux-3.2.0-psp04.06.00.11.tgz u-boot-2013.01.01-psp06.00.00.00.tgz #
 +
 +
 +cat<<EOF>missing.lst 
 +015f080c2e89ea9c45e372d500f64df0  u-boot-2013.01.01-psp06.00.00.00.tgz
 +5cdb9c2f0a86cfaaf701d6a5457206b6  linux-3.2.0-psp04.06.00.11.tgz
 +80b9322980a640a9beef89c27b6b970a  wilink8-utils-wl18xx-r8.a8.08.tgz
 +b391c2226c97463f309a30f910a62a4d  wilink8-wl18xx-r8.a8.08.tgz
 +
 +257b08022800441eded54d7f35e979de  ufsd_utilites_Build_for__WD_Passport_wireless_k3.2.0_2013-10-15_lke_9.0.0_r230665_b17.tar.gz
 +f8bf789d10ef612f60f29c65abc55615  ufsd_driver_package_Build_for__WD_Passport_wireless_k3.2.0_2013-10-15_lke_9.0.0_r232673_b26.tar.gz
 +
 +cb1bbbfd9448e09bee0c995c8fbd2528  western-digital-avatar-oem-7.3.1-8.zip
 +88be789897859a203215a324e5f6dbf5  ui-1.3.0-565.deb
 +a76cc3c0d820dde9ac8648c580508624  admin-rest-api-2.4.0-807.deb
 +d3110438f4b3da037e94a6327dcd5da4  wdnotifier-av-1.0.3-53.deb
 +da9d9d94d6caf2ce96f1d5878ea8e08c  wdmpserver-av-release-2.3.3-14.deb
 +EOF
 +
 +
 +cut -b40- missing.lst | while read file ; do ln -fs ../buildroot-GPL/dl/$file dl/$file ; done
 +
 +sh -x -e ./buildfwupg_img.sh
 +
 +
 +cat<<EOF>todo.lst # Extra seems unused
 +# https://ftp.gnu.org/gnu/gawk/gawk-4.0.1.tar.gz
 +bab2bda483e9f32be65b43b8dab39fa5  gawk-4.0.1.tar.gz
 +# http://pkgs.fedoraproject.org/repo/pkgs/gd/gd-2.0.35.tar.bz2/6c6c3dbb7bf079e0bb5fbbfd3bb8a71c/gd-2.0.35.tar.bz2
 +6c6c3dbb7bf079e0bb5fbbfd3bb8a71c  gd-2.0.35.tar.bz2
 +# http://www.h5l.org/dist/src/heimdal-1.5.3.tar.gz
 +30b379e3de12f332fbd201131f02ffca  heimdal-1.5.3.tar.gz
 +# http://pkgs.fedoraproject.org/repo/extras/iftop/iftop-1.0pre2.tar.gz/fef521a49ec0122458d02c64212af3c5/iftop-1.0pre2.tar.gz
 +fef521a49ec0122458d02c64212af3c5  iftop-1.0pre2.tar.gz
 +397754ba49e9e0cf4e7c190da78dda05  jquery-1.9.1.min.js
 +# http://sources.buildroot.net/json-javascript-42c18c621a411c3f39a81bb0a387fc50dcd738d9.tar.gz
 +8960a01719642dc3afc753a65de8bbae  json-javascript-42c18c621a411c3f39a81bb0a387fc50dcd738d9.tar.gz
 +435a5b16ca6198eaf01155263d855756  libaio_0.3.109.orig.tar.gz
 +82f3fcbf9f8cf3c4e25e1bdd77d65164  libjson_7.6.1.zip
 +# http://files.virt2real.ru/packages/buildroot/libpng-1.4.12.tar.bz2
 +849b14d88e1240a1b9f2cb39dd39701e  libpng-1.4.12.tar.bz2
 +f82a315b3a233e52f40d174a63211320  multi-role-empty.tgz
 +76f2ae49bf0f5745d5cb5d9507774dc9  mxml-2.7.tar.gz
 +00df80a84ec9528fcfb09498075525bc  ntp-4.2.6p5.tar.gz
 +2db735bd7eb2fb256c76b472e45e6241  pskill-0.1.tgz
 +0f20e20a38baccb874d617e4abb47d01  rxdsk-2.11.tgz
 +a5dbfe87f4cb3d9d91e15e5df99a59a1  samba-4.1.3.tar.gz
 +c807f9db3dd7af175214be0d7fece494  sdparm-1.07.tgz
 +d310abe42cbe87e76ceb69e2c7003c92  tzdata2013h.tar.gz
 +e94e0f95969cd08215b1b5ddc416eaac  wddispatcher-av-1.0.2-20140224.214525-3.deb
 +EOF
 +
 +
 +
 +</code>
 +
 +
 +
 +===== Rebuild from latest =====
 +
 +  git describe # 2016.11.2
 +  rm -rf output*
 +  make list-defconfigs 
 +  make oldconfig
 +  make -k
 +  git checkout am335xevm package/busybox/busybox-1.21AvatarFW.x.config # TODO
 +  # BR2_PACKAGE_PHP=y
 +  # BR2_PACKAGE_LIGHTTPD=y
 +  git checkout am335xevm primax_patch/source_patch_dir/uboot
 +  git checkout am335xevm primax_patch # TODO
 +  rm primax_patch/rootfs_config_patch_dir/wd_lighttpd_conf.patch 
 +  rm primax_patch/rootfs_config_patch_dir/wd_php_conf.patch 
 +  rm primax_patch/rootfs_config_patch_dir/wd_samba_conf.patch
 +  make
 +
 +
 +===== Linux kernel for Machine: am335xevm  =====
 +
 +  * https://github.com/rzr/linux/commits/linux-am33x
 +
 +  BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="linux-3.2.0-psp04.06.00.11.tgz"
 +  BR2_LINUX_KERNEL_PATCH="primax_patch/source_patch_dir/linux-primaxboard.patch"
 +
 +  make linux-menuconfig # `/root/buildroot/output/build/linux-custom'
 +  BR2_LINUX_KERNEL_CUSTOM_VERSION=N # TODO
 +  make linux-menuconfig
 +  # linux-3.2.0-psp04.06.00.11-mod3/kernel/printk.c
 +
 +  * https://github.com/rzr/linux/commits/ti
 +
 +  BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/rzr/linux/archive/ti.zip"
 +
 +Sources for linux-3.2.0-psp04.06.00.11 ?
 +
 +  * http://arago-project.org/git/projects/?p=linux-am33x.git;a=shortlog;h=refs/tags/v3.2_AM335xPSP_04.06.00.11
 +  * https://github.com/jumpnow/meta-ti/blob/dora/recipes-kernel/linux/linux-am335x-psp_3.2.bb # d5720d33bc7c434f9a023dbb62c795538f976b7a
 +
 +  git remote add linux-am33x http://arago-project.org/git/projects/linux-am33x.git
 +
 +  * arch/arm/configs/tisdk_am335x-evm_defconfig
 +    * https://e2e.ti.com/support/arm/sitara_arm/f/791/t/469970
 +    * https://gitorious.org/sitara-board-port/sitara-board-port-linux?p=sitara-board-port:sitara-board-port-linux.git;a=history;f=arch/arm/configs/tisdk_am335x-evm_defconfig;h=f46021e56bd94382291e2551fc5ed888658f17f8;hb=HEAD
 +    * http://arago-project.org/testresults/linux/next/2012-02-21_21-07-55/am335x-evm/build-log.txt
 +
 +  git diff --stat v3.2_AM335xPSP_04.06.00.11
 +  28 files changed, 1243 insertions(+), 31 deletions(-)
 +
 +  git diff --stat  v3.2 | tail -n1
 +  791 files changed, 75400 insertions(+), 8197 deletions(-)
 +
 +  git diff --stat remotes/sitara-epos-kernel/master | tail -n1
 +  117 files changed, 7725 insertions(+), 2630 deletions(-)
 +
 +  git diff --stat remotes/am335x/AM335XPSP_04.06.00.11~24
 +  # 51 files changed, 15473 insertions(+), 31 deletions(-)
 +
 +
 +  * http://arago-project.org/git/projects/?p=linux-am33x.git;a=shortlog;h=refs/tags/v3.2_AM335xPSP_04.06.00.11
 +  * https://gitlab.com/am335x/linux-am33x/commits/AM335XPSP_04.06.00.11
 +  * http://processors.wiki.ti.com/index.php/AM335x-PSP_04.06.00.11_Release_Notes
 +
 +  * files:
 +  * https://git.ti.com/sitara-linux/board-port-linux/blobs/history/7d4419a0c8aafdf0616e23190fc0d185c98aa212/arch/arm/configs/tisdk_am335x-evm_defconfig
 +  * https://gitorious.org/sitara-board-port/sitara-board-port-linux/commit/7d4419a0c8aafdf0616e23190fc0d185c98aa212?p=sitara-board-port:sitara-board-port-linux.git;a=history;f=arch/arm/configs/tisdk_am335x-evm_defconfig;hb=7d4419a0c8aafdf0616e23190fc0d185c98aa212
 +
 +
 +  * Upstream for board-am335xevm.c
 + 
 +    * http://arago-project.org/git/projects/?p=linux-am33x.git;a=history;f=arch/arm/mach-omap2/board-am335xevm.c;h=8f79e26a00e3dcb47326ee8650a6804c322dafa2;hb=refs/tags/v3.2_AM335xPSP_04.06.00.11
 +    * https://git.ti.com/sitara-epos/sitara-epos-kernel
 +    * http://gitorious.ti.com/sitara-epos/sitara-epos-kernel/blobs/history/HEAD/arch/arm/mach-omap2/board-am335xevm.c
 +    * https://gitorious.org/am335x/linux-am33x/?p=am335x:linux-am33x.git;a=history;f=arch/arm/mach-omap2/board-am335xevm.c;h=02c8f9ff68a38a9ae64481ea124aeda19f75aebd;hb=HEAD
 +    * https://gitorious.org/am335x/linux-am33x/?p=am335x:linux-am33x.git;a=shortlog;h=refs/heads/AM335XPSP_04.06.00.11
 +
 +
 +  * Patches:
 +
 +  * https://lwn.net/Articles/430094/ "Generic PWM Device API"
 +  * https://patches.linaro.org/patch/5791/
 +  * https://git.ti.com/connectivity-integration-tree/connectivity-ti-linux-kernel/commit/f20b933d2a51ffce8af1c8b77b925ce07245a575
 +  * arch/arm/configs/am335x_evm_defconfig
 +    * https://git.ti.com/sitara-linux/board-port-linux/blobs/history/c4a6536fe648b62df7614b08d3ff79783e12806a/arch/arm/configs/am335x_evm_defconfig 
 +    * https://gitorious.org/am335x/linux-am33x/history/2299a497560e9b9ac4dc7f38b3c390e82e7d69f6:arch/arm/configs/am335x_evm_defconfig
 +    * https://gitlab.com/ozgurkeles/bbb-kernel/commits/855a9a60cb67f67178081dacbca8d6e40818d0b4/arch/arm/configs/am335x_evm_defconfig
 +  * arch/arm/include/asm/cti.h
 +    * https://lists.linaro.org/pipermail/linaro-dev/2011-April/004019.html
 +  * https://github.com/torvalds/linux/commits/master/arch/arm/mach-omap1/common.h
 +  * arch/arm/mach-omap2/include/mach/board-am335xevm.h
 +    * https://git.ti.com/bms-linux/bms-kernel/blobs/history/d1a62dab80d60906083053c708c377ed7a26ccd0/arch/arm/mach-omap2/include/mach/board-am335xevm.h
 +    * https://gitorious.org/sitara-board-port/sitara-board-port-linux/commit/c4a6536fe648b62df7614b08d3ff79783e12806a?p=sitara-board-port:sitara-board-port-linux.git;a=log;h=c4a6536fe648b62df7614b08d3ff79783e12806a
 +  * https://git.ti.com/bms-linux/bms-kernel/blobs/history/9629a5914fad503a410726335f59ac0430236b2d/arch/arm/mach-omap2/board-am335xevm.c
 +  * elinux.org/BeagleBone_and_the_3.8_Kernel board-am335xevm.c
 +  * https://gitorious.org/am335x/linux-am33x/commit/b11103f3ec1402d0a4fc102bc38b4294a34a4e06?p=am335x:linux-am33x.git;a=log;h=b11103f3ec1402d0a4fc102bc38b4294a34a4e06
 +
 +MisC:
 +
 +  * http://processors.wiki.ti.com/index.php/Sitara_AM335x_Portal
 +  * http://processors.wiki.ti.com/index.php/Category:AM335x
 +  * https://wiki.gentoo.org/wiki/BeagleBone
 +  * http://elinux.org/BeagleBone_and_the_3.8_Kernel
 +  * http://www.elinux.org/BeagleBone_Community#Kernel
 +
 +===== avatar =====
 +
 +   * https://patchwork.kernel.org/patch/1295111/# ok
 +   * https://gitorious.org/omap4-v4l2-camera/omap4-v4l2-camera/commit/b2c0a863e14676fa5760c6d828fd373288e2f64a?p=omap4-v4l2-camera:omap4-v4l2-camera.git;a=commit;h=886486b792e4f6f96d4fbe8ec5bf20811cab7d6a
 +   * https://patchwork.kernel.org/patch/2166371/
 +   * https://patchwork.kernel.org/patch/2215921/
 +   * https://patchwork.ozlabs.org/patch/174391/ Disable tps65910 RTC interrupts.
 +   * https://patchwork.kernel.org/patch/1295111/
 +   * https://patchwork.kernel.org/patch/2166331/
 +   * https://bugzilla.kernel.org/show_bug.cgi?id=80711
 +   * https://lab.nexedi.cn/kirr/linux/commit/50c4e96411a6cd728f04cf70d8d6def57828b320
 +   * https://lab.nexedi.cn/kirr/linux/commit/e1bc9e50752c291a9ea602866331cd9e02049745
 +   * https://git.congatec.com/arm/imx6_kernel_4.1/commit/8eaeb21925563075ae036c2e5ba8d041b70e18fa
 +   * https://patchwork.kernel.org/patch/2323891/# TODO
 +   * http://marc.info/?l=linux-kernel&m=133921178114579&w=2#
 +   * https://ford.biologie.hu-berlin.de/matze/linux-m68k-atarinommu/commit/50c4e96411a6cd728f04cf70d8d6def57828b320
 +   * 0x0924 AM33XX_CONTROL_PADCONF_MII1_TXD1_OFFSET
 +   * https://patchwork.ozlabs.org/patch/185685/#
 +
 +  36 files changed, 2998 insertions(+), 848 deletions(-)
 +
 +
 +===== wifi =====
 +
 +  * https://layers.openembedded.org/layerindex/recipe/24027/
 +
 +  * https://github.com/TI-OpenLink/wl18xx/tree/ol_r8.a8.10
 +  * https://github.com/TI-OpenLink/compat/tree/ol_r8.a8.10
 +  * https://github.com/TI-OpenLink/compat-wireless/tree/ol_r8.a8.10
 +
 +  git clone https://github.com/TI-OpenLink/compat-wireless/ # ol_r8.a8.10
 +
 +  * https://git.busybox.net/buildroot/commit/?id=781c5952810409509ab38e0667763bd8d56cd9d5
 +  * https://git.busybox.net/buildroot/tree/package/linux-firmware/linux-firmware.mk?id=refs/heads/master
 +
 +
 +===== MISC =====
 +
 +  * https://buildroot.org/downloads/manual/manual.html#
 +  * http://free-electrons.com/doc/training/buildroot/buildroot-labs.pdf
 +  * http://free-electrons.com/doc/training/buildroot/buildroot-slides.pdf
 +
 +
 +===== MORE =====
 +
 +@TaG: [[ti]] [[linux-kernel]] BareBox
 +
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube.com/embed/lEHRIK-rwas" frameborder="0" allowfullscreen></iframe>
 +</html>
  
buildroot.txt ยท Last modified: 2022/10/13 14:18 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki