Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huceke/buildroot-rbp
Buildroot development environment for the Raspberry PI
https://github.com/huceke/buildroot-rbp
Last synced: 15 days ago
JSON representation
Buildroot development environment for the Raspberry PI
- Host: GitHub
- URL: https://github.com/huceke/buildroot-rbp
- Owner: huceke
- License: gpl-2.0
- Created: 2012-06-21T18:48:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-25T22:07:28.000Z (over 10 years ago)
- Last Synced: 2024-07-31T19:15:26.892Z (3 months ago)
- Language: C
- Size: 8.46 MB
- Stars: 22
- Watchers: 5
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README
- Changelog: CHANGES
- License: COPYING
Awesome Lists containing this project
- my-awesome-starred - buildroot-rbp - Buildroot development environment for the Raspberry PI (C)
README
This buildroot is for xbmc development for the Raspberry PI.
The buildroot is based on upstream buildroot git : bce34ab199dea7e8430971ae31d743e246049785
Requirements for ubuntu :
apt-get install build-essential libssl-dev git libncurses-dev bison flex texinfo zlib1g-dev gettext autoconf patch
Getting buildroot :
mkdir /opt/xbmc-bcm
cd /opt/xbmc-bcm
export BUILDROOT=/opt/xbmc-bcm/buildroot
git clone https://github.com/huceke/buildroot-rbp.git buildrootBuilding buildroot :
cd $BUILDROOT
make rbp_defconfig
makeOutput of buildroot is located at :
$BUILDROOT/output/images/
There you find the necessary binary files and the rootfs for the PI.
Prepare the nfs exports :
mkdir -p /opt/bcm-rootfs
mkdir -p /opt/xbmc-bcm/xbmc-bin
cd /opt/bcm-rootfs
tar -xpf $BUILDROOT/output/images/rootfs.tarEdit etc/fstab and add the nfs mounts :
Edit /etc/exports and add
/opt/bcm-rootfs 192.168.1.0/24(rw,no_root_squash,no_subtree_check,async)
/opt/xbmc-bcm/xbmc-bin 192.168.1.0/24(rw,no_root_squash,no_subtree_check,async)Reread exports :
exportfs -r
Partition a sd card with the following partitions :
1 -> FAT
2 -> Linux root
3 -> Linux swapCopy $BUILDROOT/output/images/{bootcode.bin,cmdline.txt.example,loader.bin,start.elf} onto the FAT partition.
Rename cmdline.txt.example to cmdline.txt.Edit cmdline.txt and change the settings to your needs.
otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 nfsroot=192.168.1.2:/opt/bcm-rootfs ip=192.168.1.3:192.168.1.2:192.168.1.1:255.255.255.0 rootwait smsc95xx.macaddr=08:00:24:00:60:03 quiet
Here 192.168.1.2 is the nfs server ip address. 192.168.1.3 is the ip address of the PI. 192.168.1.1 is the DNS server.
Getting xbmc :
cd /opt/xbmc-bcm
git clone https://github.com/xbmc/xbmc-rbp.gitcd /opt/xbmc-bcm/xbmc
vi tools/rbp/setup-sdk.sh
Change the buildroot location after "USE_BUILDROOT==1" case to :
BUILDROOT=/opt/xbmc-bcm/buildroot
Run tools/rbp/setup-sdk.shsh tools/rbp/setup-sdk.sh
make -C tools/rbp/depends/xbmc
make
make installXbmc binaries and depends are install in /opt/xbmc-bcm/xbmc-bin.
Buildroot hints :
User : root
Password : xbmcIf libnfs fails to build :
rm -rf rm -rf output/build/libnfs-345422a2e32b22119054224003655468771b15fc
make libnfs
make