Difference between revisions of "Aria NXP imx6 kernel & uboot"

From Ariaboard Wiki
Jump to: navigation, search
(Created page with "==Pre-Requisite== Easy Install gcc Cross Compiler ==official uboot & kernel == # https://community.freescale.com/docs/DOC-95015 # https://community.freescale.com/docs/DOC...")
 
 
(3 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
  make imx6q-sabresd.dtb
 
  make imx6q-sabresd.dtb
  
 
+
  
 
==Aria mx6 uboot==
 
==Aria mx6 uboot==
Line 30: Line 30:
 
  ./build.sh
 
  ./build.sh
  
 +
#to install
 +
sudo dd if=u-boot.imx of=${DISK} bs=512 seek=2
  
 
==Aria mx6 kernel==
 
==Aria mx6 kernel==
Line 35: Line 37:
 
  git checkout imx_3.10.17_1.0.1_ga
 
  git checkout imx_3.10.17_1.0.1_ga
 
  ./build-imx6q.sh  #or ./build-imx6dl.sh
 
  ./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)==
 
==make a sd card (including latest uboot, kernel)==
 
http://www.eewiki.net/display/linuxonarm/i.MX6q+SABRE+Board+for+Smart+Devices
 
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,[email protected],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,[email protected]; 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,[email protected]; saveenv; bootm

Latest revision as of 18:40, 3 November 2020

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,[email protected],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,[email protected]; 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,[email protected]; saveenv; bootm