{"id":5579,"date":"2015-08-14T21:39:46","date_gmt":"2015-08-14T19:39:46","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5579"},"modified":"2015-08-14T21:39:46","modified_gmt":"2015-08-14T19:39:46","slug":"cross-compiling-busybox","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/08\/14\/cross-compiling-busybox\/","title":{"rendered":"cross-compiling BusyBox is a piece of cake"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/www.busybox.net\/FAQ.html\">http:\/\/www.busybox.net\/FAQ.html<\/a><\/li>\n<li><a href=\"http:\/\/landley.net\/aboriginal\/downloads\/binaries\">http:\/\/landley.net\/aboriginal\/downloads\/binaries<\/a><\/li>\n<\/ul>\n<p>The FAQ told me where to get a ready-made cross-compiler.<\/p>\n<p>I downloaded the most recent busybox sources TAR file. Within the untarred busybox sources I ran <code>make menuconfig; make; make\u00a0CONFIG_PREFIX=target_root_dir<\/code>, then I ftp-ed the statically linked busybox to my target system, and halas!, it runs like a charm.<\/p>\n<p>What did I change within menuconfig?<\/p>\n<ul>\n<li><span style=\"line-height: 1.6471\">the prefix of the gcc etc., like &#8220;mips-&#8220;<\/span><\/li>\n<li>I want a <em>statically linked<\/em> busybox<\/li>\n<li>I tried to determine the directory where to find the build utilities, but to no success, so I extended PATH outside on the command line<\/li>\n<\/ul>\n<p>Next level of competence will be building the cross-compiler itself. Not sure whether I need to go through that.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.busybox.net\/FAQ.html http:\/\/landley.net\/aboriginal\/downloads\/binaries The FAQ told me where to get a ready-made cross-compiler. I downloaded the most recent busybox sources TAR file. Within the untarred busybox sources I ran make menuconfig; make; make\u00a0CONFIG_PREFIX=target_root_dir, then I ftp-ed the statically linked busybox to my target system, and halas!, it runs like a charm. What did I change within [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[976],"class_list":["post-5579","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cross-compiling"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1rZ","jetpack_likes_enabled":true,"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=5579"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5579\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}