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
Next revision
Previous revision
tips:radxa:linux [2016/05/29 10:10] – [custom rabian] scipiotips:radxa:linux [2016/05/29 16:56] (current) – [custom rabian] scipio
Line 17: Line 17:
 <code> <code>
 apt-get install qemu binfmt-support qemu-user-static apt-get install qemu binfmt-support qemu-user-static
 +sudo apt-get install git-core flex bison build-essential gcc-arm-linux-gnueabihf libncurses5-dev zlib1g-dev sharutils lzop
 </code> </code>
 +
 +<code>
 +sudo ln -s /usr/bin/arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gcc
 +</code>
 +
 +
 +All'interno di rock-bsp
  
 nel Makefile di rock-bsp/Makefile  nel Makefile di rock-bsp/Makefile 
Line 24: Line 32:
 </code> </code>
  
-recompile kernel+copiato radxa_rock_pro_linux_hdmi_defconfig in $KERNEL_SRC/arch/arm/configs/ 
 + 
 +  * make kernel-config - configure the linux kernel" 
 +  * make uboot - compile uboot" 
 +  * make kernel - compile kernel" 
 +  * make ramdisk - prepare initrd.img" 
 +  * make rootfs - prepare rootfs" 
 + 
 + 
 + 
 +  * make boot.img - prepare linux-boot.img" 
 +  * make nand.img - generate nand.img" 
 +  * make sdcard.img - generate sdcard.img" 
 + 
 +write image to nand
 <code> <code>
-BOARD_IMG=rock_pro +# optionally make format 
-cd rock-bsp  +# sudo upgrade_tool lf  
-make kernel-config +
-make  +
-mv boards/${BOARD_IMG}/rockdev ${OUT}/${BOARD_IMG}/${TODAY}/ && cd -+
  
-if [ ! -z ${OUT} ]; then +sudo upgrade_tool uf /lab/radxa/rabian-build/160527/rock-bsp/boards/rock_pro/rockdev/rock_pro_rabian_rock_pro_160529_30273dc_nand.img
- IMAGE_NAME="`basename ${OUT}/${BOARD_IMG}/${TODAY}/rockdev/${BOARD_IMG}_*.img`" +
- cd ${OUT}/${BOARD_IMG}/${TODAY}/rockdev && xz -z ${IMAGE_NAME} && cd - +
-fi+
 </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.1464509446.txt.gz
  • Last modified: 2016/05/29 10:10
  • by scipio