Raspberry Pi: Difference between revisions
Brian Wilson (talk | contribs) |
Brian Wilson (talk | contribs) |
||
Line 30: | Line 30: | ||
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig | make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig | ||
make menuconfig | # enabled the DisplayLink module and disable many things I will never use | ||
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig | |||
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j5 | |||
mkdir ../modules | |||
make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- INSTALL_MOD_PATH=../modules/ | |||
cd ../tools/mkimage/ | |||
# Create kernel.img | |||
./imagetool-uncompressed.py ../../linux/arch/arm/boot/Image | |||
cp kernel.img /media/bwilson/8B12-9112/ | |||
sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/modules/ | |||
sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/firmware/ | |||
sudo cp -a lib/modules/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib | |||
sudo cp -a lib/firmware/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib | |||
Zoom zoom away we go. Put SD card in Pi. Connect monitor and boot. Worked on first try for me! Fabulous. | |||
[[Category: Car Computer]] | [[Category: Car Computer]] |
Revision as of 05:03, 2 January 2013
1/1/2013 Happy New Year!
Today I am thinking that this will be used as a car computer.
I got a heavy duty 7 port USB hub for it, a nice cast al box, and now I want to make it work with my Lilliput 7" DisplayLink monitor.
To do that I will need to compile a kernel (ugh! back to doing that again!)
See also 8track and Lilliput DisplayLink monitor
DisplayLink kernel build
Some help with kernels and DisplayLink http://karuppuswamy.com/wordpress/2012/08/17/lilliput-displaylink-usb-monitor-um-70-17e902a9-with-raspberry-pi-on-raspbian/
Following Mitchtech kernel compile instructions with a few variations. I am using Linux Mint 14 as my build host. This installs the newest (4.7) compiler and creates symlinks. This step (building a working ARM tool chain) used to take days to figure out. Ah, progress! I love the Linux world I live in!
sudo apt-get install gcc-arm-linux-gnueabi git-core ncurses-dev
Fetching code
mkdir -p ~/src/raspberrypi cd ~/src/raspberrypi git clone https://github.com/raspberrypi/tools.git git clone https://github.com/raspberrypi/linux.git cd linux
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig # enabled the DisplayLink module and disable many things I will never use make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j5 mkdir ../modules make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- INSTALL_MOD_PATH=../modules/ cd ../tools/mkimage/ # Create kernel.img ./imagetool-uncompressed.py ../../linux/arch/arm/boot/Image cp kernel.img /media/bwilson/8B12-9112/ sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/modules/ sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/firmware/ sudo cp -a lib/modules/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib sudo cp -a lib/firmware/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib
Zoom zoom away we go. Put SD card in Pi. Connect monitor and boot. Worked on first try for me! Fabulous.