Skip to content

linux kernel and u-boot sources for blickwerk sensors

Notifications You must be signed in to change notification settings

vmo69/blickwerk-boot

 
 

Repository files navigation

Blickwerk Boot

This repository contains the source patches for u-boot and the linux kernel that are required to boot a blickwerk sensor.

All sources are released under the terms of the GPLv3+ unless stated otherwise in the source files or patches.

Hardware

Blickwerk sensors use an i.MX 28 processor from Freescale Semiconductor (now part of NXP). All sensors are shipped with support for unencrypted bootstreams so that you can build your own u-boot and kernel image and run your software on them.

Build Instructions

make prep-source will download the u-boot and kernel sources and will apply all patches.

make build will compile u-boot and the kernel sources using an arm cross-compiler.

make dist-deb will create a deb package that can be installed in a Debian distribution.

Build Variants

The make targets support different variants that control the boot behaviour. There are currently three distinct variants that can be set via the VARIANT environment variable. These are:

  1. production

    • disables any u-boot boot delay
    • u-boot shell is deactivated
    • u-boot and kernel log are redirected to internal UART
  2. development

    • u-boot delay is set to 3 seconds
    • u-boot shell is started by typing 'foo'
    • u-boot and kernel log are redirected to the external UART
  3. init

    • u-boot delay is set to 3 seconds
    • u-boot shell is started by typing 'init'
    • u-boot mounts the ext2 filesystem on the second partition of the SD card and tries to execute the fuses.img file
    • u-boot and kernel log are redirected to the external UART

Note: The build system will build all three variants when building deb packages.

Creating a booting system image

The build targets only compile the kernel image, the u-boot image, and the kernel modules. In order to make the sensor boot an actual linux operating system there are a few prerequisites:

  1. Make sure you have these tools in your PATH:
    • cdebootstrap-static, part of the cdebootstrap-static Debian package
    • mkfs.ext4, part of the e2fsprogs Debian package
    • guestfish, part of the libguestfs-tools Debian package
    • mkimage, part of u-boot-tools Debian package
    • elftosb
    • mxsboot, a deb package named imx28-mxsboot is part of this repository
  2. If you haven’t already, run make dist-deb to build the deb packages
  3. Run scripts/image.sh create /path/to/a/linux-image-wurzelwerk-imx28-$variant.deb as root or via sudo
  4. That’s it! There’s an .img file next to the .deb that you can now write to an SD card.

Todos

  • deb packages are set to Architecture=all which indicates that they are architecture independent (they are not). This is an easy work-around to support cross-compilation on other platforms.

Legal

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

About

linux kernel and u-boot sources for blickwerk sensors

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 50.0%
  • Shell 50.0%