Skip to content

Instantly share code, notes, and snippets.

@lisovy lisovy/imx53_voipac
Last active Aug 29, 2015

Embed
What would you like to do?
Barebox bootloader
==================
sudo apt-get install lzop, libusb-1.0-0-dev
Build it
''''''''
git clone git://git.pengutronix.de/git/barebox.git
cd barebox/
mkdir _build
CROSS_COMPILE=arm-linux-gnueabihf- make ARCH=arm O=_build imx_v7_defconfig
cd _build
make menuconfig ARCH=arm
#configure
CONFIG_ARCH_IMX_USBLOADER = y // USB loader
CONFIG_CONSOLE_ACTIVATE_NONE = n // Activate the console (might be disable on production system)
CONFIG_CONSOLE_ACTIVATE_FIRST = y
(!) CONFIG_MMU_EARLY = n // Otherwise the loader just hangs
# Compile
CROSS_COMPILE=arm-linux-gnueabihf- make -j8 ARCH=arm
Load it to the device
'''''''''''''''''''''
sudo ./scripts/imx/imx-usb-loader -c images/barebox-freescale-imx53-vmx53.img
Flash it
''''''''
# Either from TFTP
eth0.ipaddr=192.168.5.55
eth0.netmask=255.255.255.0
eth0.gateway=192.168.5.0
eth0.serverip=192.168.5.1
mkdir tmp
tftp /vmx53/barebox.bin /tmp/barebox-freescale-imx53-vmx53.img
# Or USB
usb
mount -a
ls /mnt/disk0
mkdir tmp
cp /mnt/disk0/barebox-freescale-imx53-vmx53.img /tmp
barebox_update -l
barebox_update -y -t nand /tmp/barebox-freescale-imx53-vmx53.img
How to build the documentation
''''''''''''''''''''''''''''''
sudo apt-get install python-sphinx
make docs
#read Documentation/html/index.html
Useful commands
'''''''''''''''
devinfo
devinfo nand0
devinfo eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.