<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dsm</id>
		<title>Radxa Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dsm"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/Dsm"/>
		<updated>2026-06-13T10:57:58Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/Rock/Booting_Linux</id>
		<title>Rock/Booting Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Booting_Linux"/>
				<updated>2014-03-02T00:17:18Z</updated>
		
		<summary type="html">&lt;p&gt;Dsm: /* Modify the parameter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|rock/Booting Linux}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
* a radxa rock board(full version or lite version)&lt;br /&gt;
* a desktop/laptop running Linux(64bit preferred)&lt;br /&gt;
* 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&lt;br /&gt;
&lt;br /&gt;
=== Install the toolchain ===&lt;br /&gt;
Install ARM toolchain and building kernel related pacakges if you don't have them on your host. &lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
&lt;br /&gt;
=== Build the kernel ===&lt;br /&gt;
&lt;br /&gt;
    git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0.git&lt;br /&gt;
    cd rockchip-3.0&lt;br /&gt;
    make rk3188_radxa_rock_defconfig&lt;br /&gt;
    make -j8&lt;br /&gt;
The kernel will be at '''arch/arm/boot/Image'''&lt;br /&gt;
=== Build the kernel modules ===&lt;br /&gt;
    mkdir modules&lt;br /&gt;
    export INSTALL_MOD_PATH=./modules&lt;br /&gt;
    make modules &amp;amp;&amp;amp; make modules_install&lt;br /&gt;
    cd ..&lt;br /&gt;
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.&lt;br /&gt;
&lt;br /&gt;
=== Generate the ramdisk ===&lt;br /&gt;
&lt;br /&gt;
    git clone https://github.com/radxa/initrd.git&lt;br /&gt;
    make -C initrd&lt;br /&gt;
&lt;br /&gt;
=== Generate the boot.img ===&lt;br /&gt;
    wget http://dl.radxa.com/rock/tools/linux/mkbootimg&lt;br /&gt;
    sudo apt-get install lib32stdc++6&lt;br /&gt;
    chmod +x mkbootimg&lt;br /&gt;
    ./mkbootimg --kernel rockchip-3.0/arch/arm/boot/Image --ramdisk initrd.img -o boot.img&lt;br /&gt;
&lt;br /&gt;
Done. Now we have the kernel '''boot.img''' for RR.&lt;br /&gt;
&lt;br /&gt;
=== Modify the parameter ===&lt;br /&gt;
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:&lt;br /&gt;
    root=/dev/block/mtd/by-name/linuxroot        # rootfs in the nand partition named &amp;quot;linuxroot&amp;quot;&lt;br /&gt;
    root=/dev/mmcblk0p1          # rootfs in the uSD card first partition&lt;br /&gt;
    root=/dev/sda1                # rootfs in the U disk or the USB hard drive first partition&lt;br /&gt;
    root=LABEL=linuxroot         # rootfs in the partition with label &amp;quot;linuxroot&amp;quot;, can be in uSD, U disk or USB hard drive.&lt;br /&gt;
&lt;br /&gt;
=== Next step ===&lt;br /&gt;
&lt;br /&gt;
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to &amp;quot;boot&amp;quot; [[rock/partitions | partition]] parameter to &amp;quot;parameter&amp;quot; partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.&lt;/div&gt;</summary>
		<author><name>Dsm</name></author>	</entry>

	</feed>