{"id":475,"date":"2014-05-17T14:40:24","date_gmt":"2014-05-17T23:40:24","guid":{"rendered":"\/blog\/?p=475"},"modified":"2023-09-21T09:38:45","modified_gmt":"2023-09-21T00:38:45","slug":"openwrt-boot-sequence","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=475","title":{"rendered":"OpenWRT Boot Sequence"},"content":{"rendered":"\n<p><span style=\"font-family: Courier New; font-size: 10pt;\">1) Bootloader (uboot, redboot, adam2, grub, ...)<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">2) Linux kernel starts, tries to find the mtd partition called \"rootfs\", mounts it<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">3) Linux executes \/etc\/preinit<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">4) Preinit waits a few seconds for failsafe triggering<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">5) Preinit mounts or initializes the jffs2 overlay<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">6) Preinit loads kernel modules specified in \/etc\/modules.d\/<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">7) Preinit executes hotplug2, a kernel uevent handler<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">8) Preinit hands control off to init to start the main boot<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">9) The init process executes all \/etc\/rc.d\/ scripts to bring up services<\/span><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) Bootloader (uboot, redboot, adam2, grub, &#8230;) 2) Linux kernel starts, tries to find the mtd partition called &#8220;rootfs&#8221;, mounts it 3) Linux executes \/etc\/preinit 4) Preinit waits a few seconds for failsafe triggering 5) Preinit mounts or initializes the jffs2 overlay 6) Preinit loads kernel modules specified in \/etc\/modules.d\/ 7) Preinit executes hotplug2, a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[21],"tags":[],"class_list":["post-475","post","type-post","status-publish","format-standard","hentry","category-development_openwrt"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}