This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tips:radxa:linux [2016/05/12 13:59] – created scipio | tips:radxa:linux [2016/05/29 16:56] (current) – [custom rabian] scipio | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| # upload image | # upload image | ||
| sudo upgrade_tool uf rock_pro_rabian_150725_2ce6708_nand.img | sudo upgrade_tool uf rock_pro_rabian_150725_2ce6708_nand.img | ||
| + | </ | ||
| + | |||
| + | ===== custom rabian ===== | ||
| + | |||
| + | * http:// | ||
| + | * https:// | ||
| + | |||
| + | < | ||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo ln -s / | ||
| + | </ | ||
| + | |||
| + | |||
| + | All' | ||
| + | |||
| + | nel Makefile di rock-bsp/ | ||
| + | < | ||
| + | KERNEL_SRC=/ | ||
| + | </ | ||
| + | |||
| + | copiato radxa_rock_pro_linux_hdmi_defconfig in $KERNEL_SRC/ | ||
| + | |||
| + | * 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 | ||
| + | < | ||
| + | # optionally make format | ||
| + | # sudo upgrade_tool lf | ||
| + | |||
| + | sudo upgrade_tool uf / | ||
| + | </ | ||
| + | |||
| + | ===== custom kernel ===== | ||
| + | |||
| + | < | ||
| + | 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:// | ||
| + | wget http:// | ||
| + | |||
| + | cp arch/ | ||
| + | |||
| + | # change this in .config | ||
| + | # CONFIG_CMDLINE=" | ||
| + | |||
| + | make menuconfig | ||
| + | |||
| + | make -j6 zImage dtbs | ||
| + | |||
| + | |||
| + | mkdir modules | ||
| + | export INSTALL_MOD_PATH=./ | ||
| + | make modules && make modules_install | ||
| + | |||
| + | cat arch/ | ||
| + | mkbootimg --kernel zImage-dtb --ramdisk /dev/null -o boot.img | ||
| + | |||
| + | wget http:// | ||
| + | |||
| + | sudo rkflashtool P < parameter_linux_nand | ||
| + | sudo rkflashtool w boot < boot.img | ||
| + | sudo rkflashtool b | ||
| + | |||
| + | |||
| </ | </ | ||