tips:radxa:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:radxa:linux [2016/05/29 13:15] – [custom rabian] scipiotips:radxa:linux [2016/05/29 16:56] (current) – [custom rabian] scipio
Line 54: Line 54:
 </code> </code>
  
 +===== custom kernel =====
 +
 +<code>
 +sudo apt-get install build-essential gcc-arm-linux-gnueabihf lzop libncurses5-dev libssl-dev bc parted build-essential libusb-1.0-0-dev
 +
 +# checkout linux-next
 +cd linux-next
 +export ARCH=arm
 +export CROSS_COMPILE=arm-linux-gnueabihf-
 +
 +wget http://rockchip.fr/radxa/linux/rockchip_defconfig -O arch/arm/configs/rockchip_defconfig
 +wget http://rockchip.fr/radxa/linux/rk3188-radxarock.dts -O arch/arm/boot/dts/rk3188-radxarock.dts
 +
 +cp arch/arm/configs/rockchip_defconfig .config
 +
 +# change this in .config
 +# CONFIG_CMDLINE="console=tty0 console=ttyS2,115200 debug earlyprintk root=/dev/block/mtd/by-name/linuxroot rootwait rootfstype=ext4 rw splash"
 +
 +make menuconfig
 +
 +make -j6 zImage dtbs
 +
 +
 +mkdir modules
 +export INSTALL_MOD_PATH=./modules
 +make modules && make modules_install
 +
 +cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxarock.dtb > zImage-dtb
 +mkbootimg --kernel zImage-dtb --ramdisk /dev/null -o boot.img
 +
 +wget http://dl.radxa.com/rock/images/parameter/parameter_linux_nand
 +
 +sudo rkflashtool P < parameter_linux_nand
 +sudo rkflashtool w boot < boot.img
 +sudo rkflashtool b
 +
 +
 +</code>
  
  
  • tips/radxa/linux.1464520538.txt.gz
  • Last modified: 2016/05/29 13:15
  • by scipio