Skip to content

Instantly share code, notes, and snippets.

@pasrom
Last active June 9, 2019 19:03
Show Gist options
  • Save pasrom/7c627868e7c8cdff404b3be2b6b82cf7 to your computer and use it in GitHub Desktop.
Save pasrom/7c627868e7c8cdff404b3be2b6b82cf7 to your computer and use it in GitHub Desktop.
install bcm2835

On target-plattofrm (raspberry pi) (source)

sudo apt-get install html-xml-utils curl
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
./configure
make
sudo make install

For Cross-compilation:

sudo apt-get install html-xml-utils curl gcc-arm-linux-gnueabihf
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
./configure --build=arm-linux --host=arm-rpi-linux-gnueabi
make CC="arm-linux-gnueabihf-gcc"
sudo make CC="arm-linux-gnueabihf-gcc" install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment