{"id":21,"date":"2018-11-12T01:22:40","date_gmt":"2018-11-12T09:22:40","guid":{"rendered":"http:\/\/www.maddog187.com\/?p=21"},"modified":"2018-11-12T01:22:40","modified_gmt":"2018-11-12T09:22:40","slug":"how-to-build-qemu-u-boot-emulator","status":"publish","type":"post","link":"https:\/\/www.maddog187.com\/index.php\/2018\/11\/12\/how-to-build-qemu-u-boot-emulator\/","title":{"rendered":"How To Build QEMU U-Boot Emulator"},"content":{"rendered":"<p>How To Build QEMU U-Boot Emulator<br \/>\nDownloads<br \/>\nBuilds<br \/>\nRun Emulator<br \/>\nDownloads<br \/>\nQEMU:<\/p>\n<p>git clone git:\/\/git.qemu.org\/qemu.git<br \/>\nU-boot:<\/p>\n<p>wget ftp:\/\/ftp.denx.de\/pub\/u-boot\/u-boot-2013.01.tar.bz2<br \/>\nCross-tool Chain:<\/p>\n<p>wget http:\/\/www.codesourcery.com\/sgpp\/lite\/arm\/portal\/package7853\/public\/arm-none-linux-gnueabi\/arm-2010.09-50-arm-none-linux-gnueabi.bin arm-2010.09-50-arm-none-linux-gnueabi.bin<br \/>\nBuilds<br \/>\nMake build directory:<\/p>\n<p>mkdir ~\/Builds<br \/>\ncd ~\/Builds<br \/>\nDownload sources:<\/p>\n<p>git clone git:\/\/git.qemu.org\/qemu.git<br \/>\nwget ftp:\/\/ftp.denx.de\/pub\/u-boot\/u-boot-2013.01.tar.bz2<br \/>\nwget http:\/\/www.codesourcery.com\/sgpp\/lite\/arm\/portal\/package7853\/public\/arm-none-linux-gnueabi\/arm-2010.09-50-arm-none-linux-gnueabi.bin arm-2010.09-50-arm-none-linux-gnueabi.bin<br \/>\nQEMU:<\/p>\n<p>cd qemu<br \/>\n.\/configure &#8211;target-list=arm-softmmu,arm-linux-user &#8211;enable-debug<br \/>\nmake<br \/>\nBinary is located in arm-softmmu\/qemu-system-arm<\/p>\n<p>Cross-Tool Chain:<\/p>\n<p>chmod +x arm-2010.09-50-arm-none-linux-gnueabi.bin<br \/>\n.\/arm-2010.09-50-arm-none-linux-gnueabi.bin<br \/>\nInstall Defaults<\/p>\n<p>U-boot<\/p>\n<p>bunzip u-boot-2013.01.tar.bz2<br \/>\ntar xvf u-boot-2013.01.tar<br \/>\ncd u-boot-2013.01<br \/>\nexport PATH=~\/CodeSourcery\/Sourcery_G++_Lite\/bin\/:$PATH<br \/>\nmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- versatilepb_config<br \/>\nmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-<br \/>\nRun Emulator<br \/>\nBuild virtualization tree:<\/p>\n<p>cd ~\/<br \/>\nmkdir -p virtualization\/qemu<br \/>\ncd virtualization\/qemu<br \/>\ncp ~\/Builds\/qemu\/arm-softmmu\/qemu-system-arm .<br \/>\ncp ~\/Builds\/u-boot-2013.01\/u-boot .<br \/>\nRun the follow:<\/p>\n<p>.\/qemu-system-arm -M versatilepb -nographic -kernel u-boot<br \/>\nThe following should display:<br \/>\naudio: Could not init `oss&#8217; audio driver<br \/>\nU-Boot 2013.01 (Jan 31 2016 &#8211; 00:39:59)<br \/>\nDRAM: 128 MiB<br \/>\nWARNING: Caches not enabled<br \/>\nFlash: 64 MiB<br \/>\n*** Warning &#8211; bad CRC, using default environment<br \/>\nIn: serial<br \/>\nOut: serial<br \/>\nErr: serial<br \/>\nNet: SMC91111-0<br \/>\nWarning: SMC91111-0 using MAC address from net device<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Build QEMU U-Boot Emulator Downloads Builds Run Emulator Downloads QEMU: git clone git:\/\/git.qemu.org\/qemu.git U-boot: wget ftp:\/\/ftp.denx.de\/pub\/u-boot\/u-boot-2013.01.tar.bz2 Cross-tool Chain: wget http:\/\/www.codesourcery.com\/sgpp\/lite\/arm\/portal\/package7853\/public\/arm-none-linux-gnueabi\/arm-2010.09-50-arm-none-linux-gnueabi.bin arm-2010.09-50-arm-none-linux-gnueabi.bin Builds Make build directory: mkdir ~\/Builds cd ~\/Builds Download sources: git clone git:\/\/git.qemu.org\/qemu.git wget ftp:\/\/ftp.denx.de\/pub\/u-boot\/u-boot-2013.01.tar.bz2 wget http:\/\/www.codesourcery.com\/sgpp\/lite\/arm\/portal\/package7853\/public\/arm-none-linux-gnueabi\/arm-2010.09-50-arm-none-linux-gnueabi.bin arm-2010.09-50-arm-none-linux-gnueabi.bin QEMU: cd qemu .\/configure &#8211;target-list=arm-softmmu,arm-linux-user &#8211;enable-debug make Binary is located in arm-softmmu\/qemu-system-arm Cross-Tool Chain: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maddog187.com\/index.php\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}