{"id":1230,"date":"2016-04-02T15:00:07","date_gmt":"2016-04-02T13:00:07","guid":{"rendered":"http:\/\/blog.the-leviathan.ch\/?p=1230"},"modified":"2016-04-02T15:00:07","modified_gmt":"2016-04-02T13:00:07","slug":"pandaboard-es-with-upstream-u-boot-kernel-take-1","status":"publish","type":"post","link":"https:\/\/blog.the-leviathan.ch\/?p=1230","title":{"rendered":"PandaBoard-ES with upstream u-boot + kernel (take 1)"},"content":{"rendered":"<p>Hi<br \/>\nA friend of mine asked me whether I could buy for him a pandaboard from the factory in Shenzhen directly and set it up with a Linux for him. Here are the steps I went through to get it running.<\/p>\n<p>Insert the SD card for the boot media (we assume it&#8217;s \/dev\/sdX) and then do the following.<br \/>\nZero the beginning of the SD card:<\/p>\n<pre>dd if=\/dev\/zero of=\/dev\/sdX bs=1M count=8<\/pre>\n<p>Start fdisk to partition the SD card:<\/p>\n<pre>fdisk \/dev\/sdX<\/pre>\n<p>At the fdisk prompt, delete old partitions and create a new one:<br \/>\nType <strong>o<\/strong>. This will clear out any partitions on the drive.<br \/>\nType <strong>p<\/strong> to list partitions. There should be no partitions left.<br \/>\nNow type <strong>n<\/strong>, then <strong>p<\/strong> for primary, 1 for the first partition on the drive, 2048 for the first sector, and then press ENTER to accept the default last sector.<br \/>\nWrite the partition table and exit by typing <strong>w<\/strong>.<\/p>\n<p>Create and mount the ext4 filesystem:<\/p>\n<pre>mkfs.ext4 \/dev\/sdX1\r\nmount \/dev\/sdX1 \/mnt<\/pre>\n<p>Download and extract the root filesystem:<\/p>\n<pre>wget http:\/\/archlinuxarm.org\/os\/ArchLinuxARM-armv7-latest.tar.gz\r\nbsdtar -xpf ArchLinuxARM-armv7-latest.tar.gz -C \/mnt\r\nsync<\/pre>\n<p>If you don&#8217;t have yet installed a cross compiler for ARM, you should do so, for instance with<\/p>\n<pre>zypper in cross-arm-linux-gnueabi-gcc<\/pre>\n<p>then clone and compile your u(nified)-boot(loader):<\/p>\n<pre>git clone git:\/\/git.denx.de\/u-boot.git\r\ncd u-boot\r\nexport CROSS_COMPILE=arm-linux-gnueabi-\r\nmake omap4_panda_config\r\nmake\r\n<\/pre>\n<p>Then write your boot loader to the SD card:<\/p>\n<pre>dd if=MLO of=\/dev\/sdX count=1 seek=1 conv=notrunc bs=128k\r\ndd if=u-boot.img of=\/dev\/sdX count=2 seek=1 conv=notrunc bs=384k<\/pre>\n<p><span style=\"color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi A friend of mine asked me whether I could buy for him a pandaboard from the factory in Shenzhen directly and set it up with a Linux for him. Here are the steps I went through to get it running. Insert the SD card for the boot media (we assume it&#8217;s \/dev\/sdX) and then &hellip; <a href=\"https:\/\/blog.the-leviathan.ch\/?p=1230\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">PandaBoard-ES with upstream u-boot + kernel (take 1)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1230","post","type-post","status-publish","format-standard","hentry","category-daily"],"_links":{"self":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1230"}],"version-history":[{"count":2,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1233,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions\/1233"}],"wp:attachment":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}