Aria NXP imx6 kernel & uboot

From Ariaboard Wiki
(Redirected from Aria mx6 kernel & uboot)
Jump to navigation Jump to search

Pre-Requisite

Easy Install gcc Cross Compiler

official uboot & kernel

  1. https://community.freescale.com/docs/DOC-95015
  2. https://community.freescale.com/docs/DOC-95017/version/16


official uboot build

cd u-boot
export CROSS_COMPILE=arm-linux-gnueabihf-
make mx6qsabresd_config
make

ofiicial kernel build

git clone git://git.freescale.com/imx/linux-2.6-imx.git
cd linux-2.6-imx
git checkout imx_3.10.17_1.0.0_ga
make imx_v7_defconfig
make -j16 uImage LOADADDR=0x10008000
make -j16 modules
make imx6q-sabresd.dtb


Aria mx6 uboot

git clone https://github.com/c2h2/aria-imx6-uboot.git
git checkout imx_3.10.17_1.0.0_ga_sdcard
./build.sh
#to install
sudo dd if=u-boot.imx of=${DISK} bs=512 seek=2

Aria mx6 kernel

git clone https://github.com/c2h2/aria-imx6-kernel.git
git checkout imx_3.10.17_1.0.1_ga
./build-imx6q.sh  #or ./build-imx6dl.sh
#kernel install:
dd if=uImage of=/dev/sde bs=512 seek=2048
#also extract kernel modules into your rootfs


make a sd card (including latest uboot, kernel)

http://www.eewiki.net/display/linuxonarm/i.MX6q+SABRE+Board+for+Smart+Devices


uboot args

setenv bootargs_mmc setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off fbmem=28M ip=dhcp
setenv bootargs_mmc setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb0:dev=hdmi,1024x768M@60; saveenv; boot
setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait run bootargs_base bootargs_mmc; mmc dev 2; mmc read ${loadaddr} 0x800 0x2000; setenv video mxcfb0:dev=hdmi,1920x1080M@60; saveenv; bootm