BuildRoot and OCG
Home › Forums › MultiConnect OCG › BuildRoot and OCG
Tagged: buildroot
- This topic has 3 replies, 3 voices, and was last updated 11 years, 7 months ago by
Tim Scott.
-
AuthorPosts
-
April 4, 2014 at 1:57 pm #5715
Tim Scott
ParticipantThought I’d post this here in case anyone in the future wants to do something similar: It’s possible to build a kernel and file system image for use on the OCG using the buildroot build tool. I’m successfully running a build based on buildroot 2014.02 with the MT100EOCG-H5-GP board.
Why buildroot vs bitbake? I’m personally more familiar with buildroot and didn’t want to have to learn the ins-and-outs of bitbake. I also find the ncurses menus of buildroot easier to deal with than bitbake recipes.
Anyhow, here are the steps for those that are interested:
1) Clone the buildroot repo. Go to the buildroot root folder.
2) “make at91sam9g20dfc_defconfig” to configure the AT91SAM9G20 defaults.
3) Create the dir board/multitech/mt100eocg/patches/linux
4) Get a copy of the CoreCDP 2.2.2 and extract/copy the following files to the dir created in the previous step:
linux-2.6.32.3-at25.patch
linux-2.6.32.3-atmel_serial_disable_hwhs.patch
linux-2.6.32.3-atmel_spi.patch
linux-2.6.32.3-option-telit.patch
linux-2.6.35.14-at91-gpio-pullup.patch
linux-2.6.35.14-mach-at91-mt100eocg.patch
linux-2.6.35.14-option-zte.patch
linux-2.6.35-sierra-1.7.40.patch
patch-2.6.35.14.bz26) “make menuconfig”. Change Linux kernel version to 2.6.35. Define Custom Kernel Patches to the dir created above.
7) “make”. This first time build will also include the toolchain so it might take a while to complete. Subsequent builds shouldn’t take nearly as long.
8) Deploy your kernel and file system to the target. I’m doing this using NFS support which makes development really quick and easy.
All of this, of course, is unsupported by MultiTech. Just another option for those that are daring. Doing this, I have been able to easily add tools and tweak kernel options for my system. This includes running Python 2.7.3 vs the 2.6.6 that is part of CoreCDP Python build. One of my deployed packages refused to install using Python 2.6.6, but had no issues with 2.7.3. Go figure.
Cheers,
–timApril 4, 2014 at 4:03 pm #5719Jesse Gilles
BlockedThanks for sharing!
Jesse
May 17, 2014 at 1:30 am #5800lewis wight
Participant@Tim Scott, did everything else on your device still work, like the gps and GPIO’s?
May 19, 2014 at 7:17 am #5801Tim Scott
ParticipantI haven’t messed with the GPIOs so I haven’t verified them. GPS works fine — either through Minicom or the recompilation of Venus GPS.
–tim
-
AuthorPosts
- You must be logged in to reply to this topic.