Beaglebone Black - U-Boot and kernel

Linaro Toolchain

wget https://releases.linaro.org/15.02/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz
tar xf gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz
export PATH=$PWD/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/:$PATH

U-Boot

git clone git://git.denx.de/u-boot.git u-boot/
cd u-boot
./tools/genboardscfg.py

# grep bone boards.cfg
# ls configs/*bone*

export CROSS_COMPILE=arm-linux-gnueabihf-
make am335x_boneblack_defconfig
make menuconfig
time CROSS_COMPILE=arm-linux-gnueabihf- ionice -c3 nice -n10 make  -j5

# insert / mount sdcard
cp MLO u-boot.img /run/media/$USER/boot???
# umount / eject sdcard !!!

Booting:

U-Boot SPL 2015.10-rc5-00002-gf861f51 (Oct 20 2015 - 00:24:34)
MMC: block number 0x100 exceeds max(0x0)
MMC: block number 0x200 exceeds max(0x0)
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment

reading u-boot.img
reading u-boot.img


U-Boot 2015.10-rc5-00002-gf861f51 (Oct 20 2015 - 00:24:34 +0200)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

Net:    not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  0
=>

Kernel

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.2.3.tar.xz
tar xf linux-4.2.3.tar.xz
cd linux-4.2.3/

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

#defconfig
make help | grep omap2
# or
# ls arch/arm/configs/omap2*

#device tree
ls arch/arm/boot/dts/*bone*

make omap2plus_defconfig

#  for faster build (we don't need modules right now): make -j5  zImage dtbs
time ionice -c3 nice -n10 make -j5

# insert / mount sdcard
cp arch/arm/boot/zImage /run/media/$USER/boot????
cp arch/arm/boot/dts/am335x-boneblack.dtb /run/media/$USER/boot????
# umount / eject sdcard !!!

Booting

#load kernel
load mmc 0:1 0x82000000 /zImage

#load device tree
load mmc 0:1 0x88000000 /am335x-boneblack.dtb

# run kernel (finally)
setenv bootargs console=ttyO0,115200n8
bootz 0x82000000 - 0x88000000
Vim logo FireFox logo CSS XHTML
Jozef Siska @ KAI FMFI UK YoYo @ KSP KAI (DAI) KSP