Difference between revisions of "Rock/Booting Linux"
< Rock
(Created page with "{{Languages|rock/Booting Linux}} __TOC__ === Requirement === * a radxa rock board(full version or lite version) * a desktop/laptop running Windows(XP 32/64bit, Windows 7 32/...") |
(→Get the kernel source code) |
||
Line 16: | Line 16: | ||
export CROSS_COMPILE=arm-linux-gnueabihf- | export CROSS_COMPILE=arm-linux-gnueabihf- | ||
− | === | + | === Build the kernel === |
git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0.git | git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0.git | ||
+ | make rk3188_radxa_rock_defconfig | ||
+ | make | ||
+ | |||
+ | === Generate the ramdisk === | ||
+ | |||
+ | git clone https://github.com/radxa/initrd.git | ||
+ | cd initrd | ||
+ | find . ! -path "./.git*" | cpio -H newc -ov > ../initrd.img | ||
+ | cd .. | ||
+ | |||
+ | === Generate the boot.img === | ||
+ | wget http://dl.radxa.com/rock/tools/linux/mkbootimg | ||
+ | chmod +x mkbootimg | ||
+ | ./mkbootimg --kernel rockchip-3.0/arch/arm/boot/Image --ramdisk initrd.img -o boot.img |
Revision as of 11:18, 2 December 2013
Contents
Requirement
- a radxa rock board(full version or lite version)
- a desktop/laptop running Windows(XP 32/64bit, Windows 7 32/64 bit)
- a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop
Install the toolchain
Install ARM toolchain and building kernel related pacakges if you don't have them on your host.
sudo apt-get install gcc-arm-linux-gnueabihf sudo apt-get install lzop libncurses5-dev export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf-
Build the kernel
git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0.git make rk3188_radxa_rock_defconfig make
Generate the ramdisk
git clone https://github.com/radxa/initrd.git cd initrd find . ! -path "./.git*" | cpio -H newc -ov > ../initrd.img cd ..
Generate the boot.img
wget http://dl.radxa.com/rock/tools/linux/mkbootimg chmod +x mkbootimg ./mkbootimg --kernel rockchip-3.0/arch/arm/boot/Image --ramdisk initrd.img -o boot.img