├── README.md ├── doc ├── BUILDING.md ├── LICENSE.sunxi-tools ├── LICENSE.u-boot └── u-boot.config ├── fel-sdboot.img ├── h3 ├── boot.scr ├── script.bin ├── u-boot-sunxi-with-spl.bin ├── uInitrd └── zImage ├── src └── mass_storage ├── start.bat ├── start.sh └── win32 └── sunxi-fel.exe /README.md: -------------------------------------------------------------------------------- 1 | # Preparations 2 | 3 | ## Linux and OS X 4 | 5 | - compile and install [sunxi-tools](https://github.com/linux-sunxi/sunxi-tools) 6 | 7 | - (optional) add udev rule to allow access to USB devices to users belonging to (previously created) "sunxi-fel" group: 8 | 9 | ``` 10 | SUBSYSTEMS=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="efe8", GROUP="sunxi-fel" 11 | ``` 12 | 13 | ## Windows 14 | 15 | - download [Zadig](http://zadig.akeo.ie/) 16 | 17 | - connect board in FEL mode to your PC 18 | 19 | - launch "Zadig" 20 | 21 | - check "Options\List all devices" 22 | 23 | - select device with VID=`1F3A` and PID=`EFE8` (i.e. `USB Device(VID_1f3a_PID_efe8)`) 24 | 25 | - install "WinUSB" driver (tested on Win8.1 x86) 26 | 27 | 28 | # Notes 29 | 30 | If eMMC is not detected, SD card will be exported instead 31 | 32 | Some boards (like [Orange Pi PC Plus](https://linux-sunxi.org/Orange_Pi_PC#Orange_Pi_PC_Plus)) which don't have FEL button require using special SD image to [enter FEL mode](https://linux-sunxi.org/FEL#Entering_FEL_mode): 33 | 34 | Use `dd`, `Rufus` or `Etcher` to flash fel-sdboot.img to SD card like any OS image and use this card to boot the board in FEL mode. 35 | -------------------------------------------------------------------------------- /doc/BUILDING.md: -------------------------------------------------------------------------------- 1 | Compiling "sunxi-fel" on Windows in cygwin: 2 | 3 | ``` 4 | PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/ make CC=i686-w64-mingw32-gcc EXTRA_CFLAGS="-static -lws2_32" sunxi-fel 5 | ``` 6 | -------------------------------------------------------------------------------- /doc/LICENSE.sunxi-tools: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /doc/LICENSE.u-boot: -------------------------------------------------------------------------------- 1 | U-Boot is Free Software. It is copyrighted by Wolfgang Denk and 2 | many others who contributed code (see the actual source code and the 3 | git commit messages for details). You can redistribute U-Boot and/or 4 | modify it under the terms of version 2 of the GNU General Public 5 | License as published by the Free Software Foundation. Most of it can 6 | also be distributed, at your option, under any later version of the 7 | GNU General Public License -- see individual files for exceptions. 8 | 9 | NOTE! This license does *not* cover the so-called "standalone" 10 | applications that use U-Boot services by means of the jump table 11 | provided by U-Boot exactly for this purpose - this is merely 12 | considered normal use of U-Boot, and does *not* fall under the 13 | heading of "derived work" -- see file Licenses/Exceptions for 14 | details. 15 | 16 | Also note that the GPL and the other licenses are copyrighted by 17 | the Free Software Foundation and other organizations, but the 18 | instance of code that they refer to (the U-Boot source code) is 19 | copyrighted by me and others who actually wrote it. 20 | -- Wolfgang Denk 21 | 22 | 23 | Like many other projects, U-Boot has a tradition of including big 24 | blocks of License headers in all files. This not only blows up the 25 | source code with mostly redundant information, but also makes it very 26 | difficult to generate License Clearing Reports. An additional problem 27 | is that even the same licenses are referred to by a number of 28 | slightly varying text blocks (full, abbreviated, different 29 | indentation, line wrapping and/or white space, with obsolete address 30 | information, ...) which makes automatic processing a nightmare. 31 | 32 | To make this easier, such license headers in the source files will be 33 | replaced with a single line reference to Unique License Identifiers 34 | as defined by the Linux Foundation's SPDX project [1]. For example, 35 | in a source file the full "GPL v2.0 or later" header text will be 36 | replaced by a single line: 37 | 38 | SPDX-License-Identifier: GPL-2.0+ 39 | 40 | Ideally, the license terms of all files in the source tree should be 41 | defined by such License Identifiers; in no case a file can contain 42 | more than one such License Identifier list. 43 | 44 | If a "SPDX-License-Identifier:" line references more than one Unique 45 | License Identifier, then this means that the respective file can be 46 | used under the terms of either of these licenses, i. e. with 47 | 48 | SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause 49 | 50 | you can choose between GPL-2.0+ and BSD-3-Clause licensing. 51 | 52 | We use the SPDX Unique License Identifiers here; these are available 53 | at [2]. 54 | 55 | [1] http://spdx.org/ 56 | [2] http://spdx.org/licenses/ 57 | 58 | Full name SPDX Identifier OSI Approved File name URI 59 | ======================================================================================================================================= 60 | GNU General Public License v2.0 only GPL-2.0 Y gpl-2.0.txt http://www.gnu.org/licenses/gpl-2.0.txt 61 | GNU General Public License v2.0 or later GPL-2.0+ Y gpl-2.0.txt http://www.gnu.org/licenses/gpl-2.0.txt 62 | GNU Library General Public License v2 or later LGPL-2.0+ Y lgpl-2.0.txt http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt 63 | GNU Lesser General Public License v2.1 or later LGPL-2.1+ Y lgpl-2.1.txt http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt 64 | eCos license version 2.0 eCos-2.0 eCos-2.0.txt http://www.gnu.org/licenses/ecos-license.html 65 | BSD 2-Clause License BSD-2-Clause Y bsd-2-clause.txt http://spdx.org/licenses/BSD-2-Clause 66 | BSD 3-clause "New" or "Revised" License BSD-3-Clause Y bsd-3-clause.txt http://spdx.org/licenses/BSD-3-Clause#licenseText 67 | IBM PIBS (PowerPC Initialization and IBM-pibs ibm-pibs.txt 68 | Boot Software) license 69 | ISC License ISC Y isc.txt https://spdx.org/licenses/ISC 70 | SIL OPEN FONT LICENSE (OFL-1.1) OFL-1.1 Y OFL.txt https://spdx.org/licenses/OFL-1.1.html 71 | X11 License X11 x11.txt https://spdx.org/licenses/X11.html 72 | -------------------------------------------------------------------------------- /doc/u-boot.config: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated file; DO NOT EDIT. 3 | # U-Boot 2016.09 Configuration 4 | # 5 | CONFIG_CREATE_ARCH_SYMLINK=y 6 | # CONFIG_ARC is not set 7 | CONFIG_ARM=y 8 | # CONFIG_AVR32 is not set 9 | # CONFIG_BLACKFIN is not set 10 | # CONFIG_M68K is not set 11 | # CONFIG_MICROBLAZE is not set 12 | # CONFIG_MIPS is not set 13 | # CONFIG_NDS32 is not set 14 | # CONFIG_NIOS2 is not set 15 | # CONFIG_OPENRISC is not set 16 | # CONFIG_PPC is not set 17 | # CONFIG_SANDBOX is not set 18 | # CONFIG_SH is not set 19 | # CONFIG_SPARC is not set 20 | # CONFIG_X86 is not set 21 | # CONFIG_XTENSA is not set 22 | CONFIG_SYS_ARCH="arm" 23 | CONFIG_SYS_CPU="armv7" 24 | CONFIG_SYS_SOC="sunxi" 25 | CONFIG_SYS_BOARD="sunxi" 26 | CONFIG_SYS_CONFIG_NAME="sun8i" 27 | 28 | # 29 | # ARM architecture 30 | # 31 | CONFIG_HAS_VBAR=y 32 | CONFIG_HAS_THUMB2=y 33 | CONFIG_CPU_V7=y 34 | CONFIG_SYS_ARM_ARCH=7 35 | CONFIG_SYS_CACHE_SHIFT_6=y 36 | CONFIG_SYS_CACHELINE_SIZE=64 37 | # CONFIG_SEMIHOSTING is not set 38 | # CONFIG_SYS_L2CACHE_OFF is not set 39 | # CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK is not set 40 | # CONFIG_ARCH_AT91 is not set 41 | # CONFIG_TARGET_EDB93XX is not set 42 | # CONFIG_TARGET_VCMA9 is not set 43 | # CONFIG_TARGET_SMDK2410 is not set 44 | # CONFIG_TARGET_ASPENITE is not set 45 | # CONFIG_TARGET_GPLUGD is not set 46 | # CONFIG_ARCH_DAVINCI is not set 47 | # CONFIG_KIRKWOOD is not set 48 | # CONFIG_ARCH_MVEBU is not set 49 | # CONFIG_TARGET_DEVKIT3250 is not set 50 | # CONFIG_TARGET_WORK_92105 is not set 51 | # CONFIG_TARGET_MX25PDK is not set 52 | # CONFIG_TARGET_ZMX25 is not set 53 | # CONFIG_TARGET_APF27 is not set 54 | # CONFIG_TARGET_APX4DEVKIT is not set 55 | # CONFIG_TARGET_XFI3 is not set 56 | # CONFIG_TARGET_M28EVK is not set 57 | # CONFIG_TARGET_MX23EVK is not set 58 | # CONFIG_TARGET_MX28EVK is not set 59 | # CONFIG_TARGET_MX23_OLINUXINO is not set 60 | # CONFIG_TARGET_BG0900 is not set 61 | # CONFIG_TARGET_SANSA_FUZE_PLUS is not set 62 | # CONFIG_TARGET_SC_SPS_1 is not set 63 | # CONFIG_ORION5X is not set 64 | # CONFIG_TARGET_SPEAR300 is not set 65 | # CONFIG_TARGET_SPEAR310 is not set 66 | # CONFIG_TARGET_SPEAR320 is not set 67 | # CONFIG_TARGET_SPEAR600 is not set 68 | # CONFIG_TARGET_STV0991 is not set 69 | # CONFIG_TARGET_X600 is not set 70 | # CONFIG_TARGET_IMX31_PHYCORE is not set 71 | # CONFIG_TARGET_MX31ADS is not set 72 | # CONFIG_TARGET_MX31PDK is not set 73 | # CONFIG_TARGET_WOODBURN is not set 74 | # CONFIG_TARGET_WOODBURN_SD is not set 75 | # CONFIG_TARGET_FLEA3 is not set 76 | # CONFIG_TARGET_MX35PDK is not set 77 | # CONFIG_ARCH_BCM283X is not set 78 | # CONFIG_TARGET_VEXPRESS_CA15_TC2 is not set 79 | # CONFIG_TARGET_VEXPRESS_CA5X2 is not set 80 | # CONFIG_TARGET_VEXPRESS_CA9X4 is not set 81 | # CONFIG_TARGET_BRXRE1 is not set 82 | # CONFIG_TARGET_BRPPT1 is not set 83 | # CONFIG_TARGET_CM_T335 is not set 84 | # CONFIG_TARGET_PEPPER is not set 85 | # CONFIG_TARGET_AM335X_IGEP0033 is not set 86 | # CONFIG_TARGET_PCM051 is not set 87 | # CONFIG_TARGET_DRACO is not set 88 | # CONFIG_TARGET_THUBAN is not set 89 | # CONFIG_TARGET_RASTABAN is not set 90 | # CONFIG_TARGET_ETAMIN is not set 91 | # CONFIG_TARGET_PXM2 is not set 92 | # CONFIG_TARGET_RUT is not set 93 | # CONFIG_TARGET_PENGWYN is not set 94 | # CONFIG_TARGET_AM335X_BALTOS is not set 95 | # CONFIG_TARGET_AM335X_EVM is not set 96 | # CONFIG_TARGET_AM335X_SHC is not set 97 | # CONFIG_TARGET_AM335X_SL50 is not set 98 | # CONFIG_TARGET_BAV335X is not set 99 | # CONFIG_TARGET_TI814X_EVM is not set 100 | # CONFIG_TARGET_TI816X_EVM is not set 101 | # CONFIG_TARGET_BCM23550_W1D is not set 102 | # CONFIG_TARGET_BCM28155_AP is not set 103 | # CONFIG_TARGET_BCMCYGNUS is not set 104 | # CONFIG_TARGET_BCMNSP is not set 105 | # CONFIG_ARCH_EXYNOS is not set 106 | # CONFIG_ARCH_S5PC1XX is not set 107 | # CONFIG_ARCH_HIGHBANK is not set 108 | # CONFIG_ARCH_INTEGRATOR is not set 109 | # CONFIG_ARCH_KEYSTONE is not set 110 | # CONFIG_ARCH_MESON is not set 111 | # CONFIG_ARCH_MX7 is not set 112 | # CONFIG_ARCH_MX6 is not set 113 | # CONFIG_ARCH_MX5 is not set 114 | # CONFIG_TARGET_M53EVK is not set 115 | # CONFIG_TARGET_MX51EVK is not set 116 | # CONFIG_TARGET_MX53ARD is not set 117 | # CONFIG_TARGET_MX53EVK is not set 118 | # CONFIG_TARGET_MX53LOCO is not set 119 | # CONFIG_TARGET_MX53SMD is not set 120 | # CONFIG_OMAP34XX is not set 121 | # CONFIG_OMAP44XX is not set 122 | # CONFIG_OMAP54XX is not set 123 | # CONFIG_AM43XX is not set 124 | # CONFIG_ARCH_RMOBILE is not set 125 | # CONFIG_TARGET_S32V234EVB is not set 126 | # CONFIG_ARCH_SNAPDRAGON is not set 127 | # CONFIG_ARCH_SOCFPGA is not set 128 | # CONFIG_TARGET_CM_T43 is not set 129 | CONFIG_ARCH_SUNXI=y 130 | # CONFIG_TARGET_TS4800 is not set 131 | # CONFIG_TARGET_VF610TWR is not set 132 | # CONFIG_TARGET_COLIBRI_VF is not set 133 | # CONFIG_TARGET_PCM052 is not set 134 | # CONFIG_ARCH_ZYNQ is not set 135 | # CONFIG_ARCH_ZYNQMP is not set 136 | # CONFIG_TEGRA is not set 137 | # CONFIG_TARGET_VEXPRESS64_AEMV8A is not set 138 | # CONFIG_TARGET_VEXPRESS64_BASE_FVP is not set 139 | # CONFIG_TARGET_VEXPRESS64_BASE_FVP_DRAM is not set 140 | # CONFIG_TARGET_VEXPRESS64_JUNO is not set 141 | # CONFIG_TARGET_LS2080A_EMU is not set 142 | # CONFIG_TARGET_LS2080A_SIMU is not set 143 | # CONFIG_TARGET_LS2080AQDS is not set 144 | # CONFIG_TARGET_LS2080ARDB is not set 145 | # CONFIG_TARGET_HIKEY is not set 146 | # CONFIG_TARGET_LS1012AQDS is not set 147 | # CONFIG_TARGET_LS1012ARDB is not set 148 | # CONFIG_TARGET_LS1012AFRDM is not set 149 | # CONFIG_TARGET_LS1021AQDS is not set 150 | # CONFIG_TARGET_LS1021ATWR is not set 151 | # CONFIG_TARGET_LS1043AQDS is not set 152 | # CONFIG_TARGET_LS1043ARDB is not set 153 | # CONFIG_TARGET_H2200 is not set 154 | # CONFIG_TARGET_ZIPITZ2 is not set 155 | # CONFIG_TARGET_COLIBRI_PXA270 is not set 156 | # CONFIG_ARCH_UNIPHIER is not set 157 | # CONFIG_STM32 is not set 158 | # CONFIG_ARCH_ROCKCHIP is not set 159 | # CONFIG_TARGET_THUNDERX_88XX is not set 160 | CONFIG_SYS_MALLOC_F_LEN=0x400 161 | CONFIG_CPU_V7_HAS_NONSEC=y 162 | CONFIG_CPU_V7_HAS_VIRT=y 163 | CONFIG_ARCH_SUPPORT_PSCI=y 164 | CONFIG_ARMV7_NONSEC=y 165 | CONFIG_ARMV7_BOOT_SEC_DEFAULT=y 166 | CONFIG_ARMV7_VIRT=y 167 | CONFIG_ARMV7_PSCI=y 168 | CONFIG_ARMV7_PSCI_NR_CPUS=4 169 | # CONFIG_ARMV7_LPAE is not set 170 | CONFIG_SUNXI_GEN_SUN6I=y 171 | # CONFIG_MACH_SUN4I is not set 172 | # CONFIG_MACH_SUN5I is not set 173 | # CONFIG_MACH_SUN6I is not set 174 | # CONFIG_MACH_SUN7I is not set 175 | # CONFIG_MACH_SUN8I_A23 is not set 176 | # CONFIG_MACH_SUN8I_A33 is not set 177 | # CONFIG_MACH_SUN8I_A83T is not set 178 | CONFIG_MACH_SUN8I_H3=y 179 | # CONFIG_MACH_SUN9I is not set 180 | # CONFIG_MACH_SUN50I is not set 181 | CONFIG_MACH_SUN8I=y 182 | CONFIG_DRAM_CLK=624 183 | CONFIG_DRAM_ZQ=3881979 184 | CONFIG_DRAM_ODT_EN=y 185 | CONFIG_SYS_CLK_FREQ=1008000000 186 | # CONFIG_UART0_PORT_F is not set 187 | CONFIG_OLD_SUNXI_KERNEL_COMPAT=y 188 | # CONFIG_MMC is not set 189 | CONFIG_MMC0_CD_PIN="PF6" 190 | CONFIG_MMC1_CD_PIN="" 191 | CONFIG_MMC2_CD_PIN="" 192 | CONFIG_MMC3_CD_PIN="" 193 | CONFIG_MMC1_PINS="" 194 | CONFIG_MMC2_PINS="" 195 | CONFIG_MMC3_PINS="" 196 | CONFIG_MMC_SUNXI_SLOT_EXTRA=-1 197 | CONFIG_INITIAL_USB_SCAN_DELAY=0 198 | CONFIG_USB0_VBUS_PIN="" 199 | CONFIG_USB0_VBUS_DET="" 200 | CONFIG_USB0_ID_DET="" 201 | CONFIG_USB1_VBUS_PIN="" 202 | CONFIG_USB2_VBUS_PIN="" 203 | CONFIG_USB3_VBUS_PIN="" 204 | # CONFIG_I2C0_ENABLE is not set 205 | # CONFIG_I2C1_ENABLE is not set 206 | # CONFIG_I2C2_ENABLE is not set 207 | # CONFIG_R_I2C_ENABLE is not set 208 | # CONFIG_AXP_GPIO is not set 209 | CONFIG_GMAC_TX_DELAY=0 210 | CONFIG_SPL_STACK_R_ADDR=0x4fe00000 211 | 212 | # 213 | # ARM debug 214 | # 215 | # CONFIG_DEBUG_LL is not set 216 | CONFIG_DM_KEYBOARD=y 217 | CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-one" 218 | # CONFIG_AHCI is not set 219 | # CONFIG_I8042_KEYB is not set 220 | 221 | # 222 | # General setup 223 | # 224 | CONFIG_LOCALVERSION="-armbian-fel-mass-storage" 225 | CONFIG_LOCALVERSION_AUTO=y 226 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y 227 | # CONFIG_DISTRO_DEFAULTS is not set 228 | CONFIG_SYS_MALLOC_F=y 229 | CONFIG_EXPERT=y 230 | # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 231 | # CONFIG_TOOLS_DEBUG is not set 232 | # CONFIG_PHYS_64BIT is not set 233 | 234 | # 235 | # Boot images 236 | # 237 | CONFIG_SUPPORT_SPL=y 238 | CONFIG_SPL=y 239 | CONFIG_SPL_SYS_MALLOC_SIMPLE=y 240 | CONFIG_SPL_STACK_R=y 241 | CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x100000 242 | # CONFIG_SPL_SEPARATE_BSS is not set 243 | # CONFIG_FIT is not set 244 | CONFIG_OF_BOARD_SETUP=y 245 | # CONFIG_OF_SYSTEM_SETUP is not set 246 | # CONFIG_OF_STDOUT_VIA_ALIAS is not set 247 | CONFIG_SYS_EXTRA_OPTIONS="" 248 | CONFIG_ARCH_FIXUP_FDT=y 249 | 250 | # 251 | # Boot timing 252 | # 253 | # CONFIG_BOOTSTAGE is not set 254 | CONFIG_BOOTSTAGE_USER_COUNT=20 255 | CONFIG_BOOTSTAGE_STASH_ADDR=0 256 | CONFIG_BOOTSTAGE_STASH_SIZE=4096 257 | 258 | # 259 | # Boot media 260 | # 261 | # CONFIG_NAND_BOOT is not set 262 | # CONFIG_ONENAND_BOOT is not set 263 | # CONFIG_QSPI_BOOT is not set 264 | # CONFIG_SATA_BOOT is not set 265 | # CONFIG_SD_BOOT is not set 266 | # CONFIG_SPI_BOOT is not set 267 | CONFIG_BOOTDELAY=0 268 | # CONFIG_CONSOLE_RECORD is not set 269 | # CONFIG_SYS_NO_FLASH is not set 270 | # CONFIG_VERSION_VARIABLE is not set 271 | 272 | # 273 | # Command line interface 274 | # 275 | CONFIG_CMDLINE=y 276 | CONFIG_HUSH_PARSER=y 277 | CONFIG_SYS_PROMPT="=> " 278 | 279 | # 280 | # Autoboot options 281 | # 282 | CONFIG_AUTOBOOT=y 283 | # CONFIG_AUTOBOOT_KEYED is not set 284 | 285 | # 286 | # FASTBOOT 287 | # 288 | # CONFIG_FASTBOOT is not set 289 | 290 | # 291 | # Commands 292 | # 293 | 294 | # 295 | # Info commands 296 | # 297 | # CONFIG_CMD_BDI is not set 298 | # CONFIG_CMD_CONSOLE is not set 299 | # CONFIG_CMD_CPU is not set 300 | # CONFIG_CMD_LICENSE is not set 301 | 302 | # 303 | # Boot commands 304 | # 305 | CONFIG_CMD_BOOTD=y 306 | CONFIG_CMD_BOOTM=y 307 | CONFIG_CMD_BOOTZ=y 308 | # CONFIG_CMD_ELF is not set 309 | CONFIG_CMD_FDT=y 310 | CONFIG_CMD_GO=y 311 | CONFIG_CMD_RUN=y 312 | # CONFIG_CMD_IMI is not set 313 | # CONFIG_CMD_IMLS is not set 314 | # CONFIG_CMD_XIMG is not set 315 | 316 | # 317 | # Environment commands 318 | # 319 | # CONFIG_CMD_ASKENV is not set 320 | # CONFIG_CMD_EXPORTENV is not set 321 | CONFIG_CMD_IMPORTENV=y 322 | # CONFIG_CMD_EDITENV is not set 323 | # CONFIG_CMD_GREPENV is not set 324 | # CONFIG_CMD_SAVEENV is not set 325 | # CONFIG_CMD_ENV_EXISTS is not set 326 | 327 | # 328 | # Memory commands 329 | # 330 | # CONFIG_CMD_MEMORY is not set 331 | # CONFIG_CMD_CRC32 is not set 332 | # CONFIG_LOOPW is not set 333 | # CONFIG_CMD_MEMTEST is not set 334 | # CONFIG_CMD_MX_CYCLIC is not set 335 | # CONFIG_CMD_MEMINFO is not set 336 | 337 | # 338 | # Device access commands 339 | # 340 | # CONFIG_CMD_DM is not set 341 | # CONFIG_CMD_DEMO is not set 342 | # CONFIG_CMD_LOADB is not set 343 | # CONFIG_CMD_LOADS is not set 344 | # CONFIG_CMD_FLASH is not set 345 | # CONFIG_CMD_ARMFLASH is not set 346 | # CONFIG_CMD_MMC is not set 347 | # CONFIG_CMD_NAND is not set 348 | # CONFIG_CMD_SF is not set 349 | # CONFIG_CMD_SPI is not set 350 | # CONFIG_CMD_I2C is not set 351 | CONFIG_CMD_USB=y 352 | # CONFIG_CMD_DFU is not set 353 | # CONFIG_CMD_USB_MASS_STORAGE is not set 354 | # CONFIG_CMD_FPGA is not set 355 | CONFIG_CMD_GPIO=y 356 | 357 | # 358 | # Shell scripting commands 359 | # 360 | CONFIG_CMD_ECHO=y 361 | CONFIG_CMD_ITEST=y 362 | CONFIG_CMD_SOURCE=y 363 | CONFIG_CMD_SETEXPR=y 364 | 365 | # 366 | # Network commands 367 | # 368 | CONFIG_CMD_NET=y 369 | # CONFIG_CMD_TFTPPUT is not set 370 | # CONFIG_CMD_TFTPSRV is not set 371 | # CONFIG_CMD_RARP is not set 372 | CONFIG_CMD_DHCP=y 373 | # CONFIG_CMD_NFS is not set 374 | # CONFIG_CMD_MII is not set 375 | # CONFIG_CMD_PING is not set 376 | # CONFIG_CMD_CDP is not set 377 | # CONFIG_CMD_SNTP is not set 378 | # CONFIG_CMD_DNS is not set 379 | # CONFIG_CMD_LINK_LOCAL is not set 380 | 381 | # 382 | # Misc commands 383 | # 384 | # CONFIG_CMD_CACHE is not set 385 | # CONFIG_CMD_TIME is not set 386 | CONFIG_CMD_MISC=y 387 | # CONFIG_CMD_TIMER is not set 388 | # CONFIG_CMD_QFW is not set 389 | 390 | # 391 | # Power commands 392 | # 393 | 394 | # 395 | # Security commands 396 | # 397 | 398 | # 399 | # Filesystem commands 400 | # 401 | # CONFIG_CMD_EXT2 is not set 402 | # CONFIG_CMD_EXT4 is not set 403 | # CONFIG_CMD_FAT is not set 404 | # CONFIG_CMD_FS_GENERIC is not set 405 | CONFIG_SUPPORT_OF_CONTROL=y 406 | 407 | # 408 | # Device Tree Control 409 | # 410 | CONFIG_OF_CONTROL=y 411 | # CONFIG_SPL_OF_CONTROL is not set 412 | CONFIG_OF_SEPARATE=y 413 | # CONFIG_OF_EMBED is not set 414 | CONFIG_NET=y 415 | # CONFIG_NET_RANDOM_ETHADDR is not set 416 | # CONFIG_NETCONSOLE is not set 417 | # CONFIG_NET_TFTP_VARS is not set 418 | CONFIG_BOOTP_PXE_CLIENTARCH=0x15 419 | CONFIG_BOOTP_VCI_STRING="U-Boot.armv7" 420 | 421 | # 422 | # Device Drivers 423 | # 424 | 425 | # 426 | # Generic Driver Options 427 | # 428 | CONFIG_DM=y 429 | # CONFIG_SPL_DM is not set 430 | CONFIG_DM_WARN=y 431 | CONFIG_DM_DEVICE_REMOVE=y 432 | CONFIG_DM_STDIO=y 433 | CONFIG_DM_SEQ_ALIAS=y 434 | # CONFIG_SPL_DM_SEQ_ALIAS is not set 435 | # CONFIG_REGMAP is not set 436 | # CONFIG_SPL_REGMAP is not set 437 | # CONFIG_DEVRES is not set 438 | CONFIG_SIMPLE_BUS=y 439 | # CONFIG_OF_TRANSLATE is not set 440 | # CONFIG_ADC is not set 441 | # CONFIG_ADC_EXYNOS is not set 442 | # CONFIG_ADC_SANDBOX is not set 443 | # CONFIG_BLK is not set 444 | # CONFIG_BLOCK_CACHE is not set 445 | 446 | # 447 | # Clock 448 | # 449 | # CONFIG_CLK is not set 450 | # CONFIG_CPU is not set 451 | 452 | # 453 | # Hardware crypto devices 454 | # 455 | # CONFIG_FSL_CAAM is not set 456 | 457 | # 458 | # Demo for driver model 459 | # 460 | # CONFIG_DM_DEMO is not set 461 | 462 | # 463 | # DFU support 464 | # 465 | # CONFIG_DFU_TFTP is not set 466 | 467 | # 468 | # DMA Support 469 | # 470 | # CONFIG_DMA is not set 471 | # CONFIG_TI_EDMA3 is not set 472 | 473 | # 474 | # GPIO Support 475 | # 476 | CONFIG_DM_GPIO=y 477 | # CONFIG_ALTERA_PIO is not set 478 | # CONFIG_DWAPB_GPIO is not set 479 | # CONFIG_ATMEL_PIO4 is not set 480 | # CONFIG_INTEL_BROADWELL_GPIO is not set 481 | # CONFIG_LPC32XX_GPIO is not set 482 | # CONFIG_MSM_GPIO is not set 483 | # CONFIG_ROCKCHIP_GPIO is not set 484 | # CONFIG_TEGRA_GPIO is not set 485 | # CONFIG_TEGRA186_GPIO is not set 486 | # CONFIG_VYBRID_GPIO is not set 487 | # CONFIG_DM_74X164 is not set 488 | # CONFIG_DM_PCA953X is not set 489 | # CONFIG_MPC85XX_GPIO is not set 490 | 491 | # 492 | # I2C support 493 | # 494 | # CONFIG_DM_I2C is not set 495 | # CONFIG_DM_I2C_COMPAT is not set 496 | # CONFIG_SYS_I2C_DW is not set 497 | # CONFIG_CROS_EC_KEYB is not set 498 | 499 | # 500 | # LED Support 501 | # 502 | # CONFIG_LED is not set 503 | 504 | # 505 | # Mailbox Controller Support 506 | # 507 | # CONFIG_DM_MAILBOX is not set 508 | 509 | # 510 | # Memory Controller drivers 511 | # 512 | 513 | # 514 | # Multifunction device drivers 515 | # 516 | # CONFIG_MISC is not set 517 | # CONFIG_CROS_EC is not set 518 | # CONFIG_FSL_SEC_MON is not set 519 | # CONFIG_MXC_OCOTP is not set 520 | # CONFIG_NUVOTON_NCT6102D is not set 521 | # CONFIG_PWRSEQ is not set 522 | # CONFIG_PCA9551_LED is not set 523 | # CONFIG_WINBOND_W83627 is not set 524 | 525 | # 526 | # MMC Host controller Support 527 | # 528 | # CONFIG_DM_MMC is not set 529 | 530 | # 531 | # MTD Support 532 | # 533 | # CONFIG_MTD is not set 534 | 535 | # 536 | # NAND Device Support 537 | # 538 | # CONFIG_NAND_DENALI is not set 539 | # CONFIG_NAND_VF610_NFC is not set 540 | # CONFIG_NAND_PXA3XX is not set 541 | # CONFIG_NAND_ARASAN is not set 542 | 543 | # 544 | # Generic NAND options 545 | # 546 | # CONFIG_SYS_NAND_U_BOOT_LOCATIONS is not set 547 | # CONFIG_SPL_NAND_DENALI is not set 548 | 549 | # 550 | # SPI Flash Support 551 | # 552 | # CONFIG_SPI_FLASH is not set 553 | # CONFIG_SPL_SPI_SUNXI is not set 554 | CONFIG_DM_ETH=y 555 | # CONFIG_PHYLIB is not set 556 | CONFIG_NETDEVICES=y 557 | # CONFIG_ALTERA_TSE is not set 558 | # CONFIG_E1000 is not set 559 | # CONFIG_ETH_DESIGNWARE is not set 560 | # CONFIG_ETHOC is not set 561 | # CONFIG_RTL8139 is not set 562 | # CONFIG_RTL8169 is not set 563 | # CONFIG_SUN8I_EMAC is not set 564 | 565 | # 566 | # PCI 567 | # 568 | # CONFIG_DM_PCI is not set 569 | 570 | # 571 | # Pin controllers 572 | # 573 | # CONFIG_PINCTRL is not set 574 | 575 | # 576 | # Power 577 | # 578 | 579 | # 580 | # Power Domain Support 581 | # 582 | # CONFIG_POWER_DOMAIN is not set 583 | # CONFIG_DM_PMIC is not set 584 | # CONFIG_DM_REGULATOR is not set 585 | CONFIG_SUNXI_NO_PMIC=y 586 | # CONFIG_SY8106A_POWER is not set 587 | # CONFIG_DM_PWM is not set 588 | # CONFIG_RAM is not set 589 | 590 | # 591 | # Remote Processor drivers 592 | # 593 | 594 | # 595 | # Reset Controller Support 596 | # 597 | # CONFIG_DM_RESET is not set 598 | 599 | # 600 | # Real Time Clock 601 | # 602 | # CONFIG_DM_RTC is not set 603 | 604 | # 605 | # Serial drivers 606 | # 607 | CONFIG_REQUIRE_SERIAL_CONSOLE=y 608 | CONFIG_SERIAL_PRESENT=y 609 | CONFIG_SPL_SERIAL_PRESENT=y 610 | CONFIG_DM_SERIAL=y 611 | # CONFIG_DEBUG_UART is not set 612 | # CONFIG_DEBUG_UART_SKIP_INIT is not set 613 | # CONFIG_ALTERA_JTAG_UART is not set 614 | # CONFIG_ALTERA_UART is not set 615 | # CONFIG_FSL_LPUART is not set 616 | CONFIG_SYS_NS16550=y 617 | # CONFIG_MSM_SERIAL is not set 618 | 619 | # 620 | # Sound support 621 | # 622 | # CONFIG_SOUND is not set 623 | 624 | # 625 | # SPI Support 626 | # 627 | # CONFIG_DM_SPI is not set 628 | # CONFIG_FSL_ESPI is not set 629 | # CONFIG_TI_QSPI is not set 630 | 631 | # 632 | # SPMI support 633 | # 634 | # CONFIG_SPMI is not set 635 | 636 | # 637 | # System reset device drivers 638 | # 639 | # CONFIG_SYSRESET is not set 640 | # CONFIG_DM_THERMAL is not set 641 | 642 | # 643 | # Timer Support 644 | # 645 | # CONFIG_TIMER is not set 646 | 647 | # 648 | # TPM support 649 | # 650 | CONFIG_USB=y 651 | CONFIG_DM_USB=y 652 | 653 | # 654 | # USB Host Controller Drivers 655 | # 656 | # CONFIG_USB_XHCI_HCD is not set 657 | # CONFIG_USB_EHCI_HCD is not set 658 | # CONFIG_USB_EHCI is not set 659 | # CONFIG_USB_OHCI_HCD is not set 660 | # CONFIG_USB_UHCI_HCD is not set 661 | 662 | # 663 | # MUSB Controller Driver 664 | # 665 | # CONFIG_USB_MUSB_HOST is not set 666 | # CONFIG_USB_MUSB_GADGET is not set 667 | 668 | # 669 | # ULPI drivers 670 | # 671 | 672 | # 673 | # USB peripherals 674 | # 675 | CONFIG_USB_STORAGE=y 676 | # CONFIG_USB_KEYBOARD is not set 677 | # CONFIG_USB_GADGET is not set 678 | 679 | # 680 | # Graphics support 681 | # 682 | # CONFIG_DM_VIDEO is not set 683 | 684 | # 685 | # TrueType Fonts 686 | # 687 | # CONFIG_VIDEO_VESA is not set 688 | # CONFIG_VIDEO_LCD_ANX9804 is not set 689 | # CONFIG_VIDEO_LCD_SSD2828 is not set 690 | # CONFIG_VIDEO_MVEBU is not set 691 | # CONFIG_DISPLAY is not set 692 | # CONFIG_VIDEO_TEGRA20 is not set 693 | # CONFIG_VIDEO_BRIDGE is not set 694 | # CONFIG_PHYS_TO_BUS is not set 695 | 696 | # 697 | # File systems 698 | # 699 | 700 | # 701 | # Library routines 702 | # 703 | # CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED is not set 704 | CONFIG_HAVE_PRIVATE_LIBGCC=y 705 | CONFIG_USE_PRIVATE_LIBGCC=y 706 | CONFIG_SYS_HZ=1000 707 | CONFIG_USE_TINY_PRINTF=y 708 | CONFIG_REGEX=y 709 | # CONFIG_LIB_RAND is not set 710 | # CONFIG_CMD_DHRYSTONE is not set 711 | # CONFIG_RSA is not set 712 | # CONFIG_TPM is not set 713 | 714 | # 715 | # Hashing Support 716 | # 717 | # CONFIG_SHA1 is not set 718 | # CONFIG_SHA256 is not set 719 | # CONFIG_SHA_HW_ACCEL is not set 720 | 721 | # 722 | # Compression Support 723 | # 724 | # CONFIG_LZ4 is not set 725 | # CONFIG_ERRNO_STR is not set 726 | CONFIG_OF_LIBFDT=y 727 | # CONFIG_OF_LIBFDT_OVERLAY is not set 728 | # CONFIG_SPL_OF_LIBFDT is not set 729 | # CONFIG_EFI_LOADER is not set 730 | # CONFIG_UNIT_TEST is not set 731 | -------------------------------------------------------------------------------- /fel-sdboot.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/fel-sdboot.img -------------------------------------------------------------------------------- /h3/boot.scr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/h3/boot.scr -------------------------------------------------------------------------------- /h3/script.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/h3/script.bin -------------------------------------------------------------------------------- /h3/u-boot-sunxi-with-spl.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/h3/u-boot-sunxi-with-spl.bin -------------------------------------------------------------------------------- /h3/uInitrd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/h3/uInitrd -------------------------------------------------------------------------------- /h3/zImage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/h3/zImage -------------------------------------------------------------------------------- /src/mass_storage: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # /etc/initramfs-tools/scripts/init-premount/mass_storage 4 | 5 | PREREQS="" 6 | 7 | prereqs() { echo "$PREREQS"; } 8 | 9 | case "$1" in 10 | prereqs) 11 | prereqs 12 | exit 0 13 | ;; 14 | esac 15 | 16 | echo 17 | echo "Starting g_mass_storage script" 18 | echo "https://github.com/zador-blood-stained/fel-mass-storage" 19 | 20 | cmdline=$(cat /proc/cmdline) 21 | 22 | case "$cmdline" in 23 | *"root=/dev/"*) 24 | echo "Kernel started with root= command line parameter, exiting" 25 | exit 0 26 | ;; 27 | esac 28 | 29 | if [ -e "/dev/mmcblk1" ]; then 30 | TARGET=/dev/mmcblk1 31 | TYPE="MMC 2 (eMMC)" 32 | elif [ -e "/dev/mmcblk0" ]; then 33 | TARGET=/dev/mmcblk0 34 | TYPE="MMC 0 (SD)" 35 | else 36 | echo "No SD/eMMC device found" 37 | exit 0 38 | fi 39 | 40 | echo "Exporting $TYPE ($TARGET)" 41 | 42 | echo "0" > /sys/bus/platform/devices/sunxi_usb_udc/otg_role 43 | 44 | modprobe -r g_mass_storage 45 | modprobe g_mass_storage file=$TARGET removable=0 ro=0 stall=0 iProduct="Allwinner device $TYPE" 46 | 47 | echo "2" > /sys/bus/platform/devices/sunxi_usb_udc/otg_role 48 | 49 | echo "Done" 50 | 51 | sh 52 | 53 | echo "Shutting down" 54 | echo "0" > /sys/bus/platform/devices/sunxi_usb_udc/otg_role 55 | modprobe -r g_mass_storage 56 | 57 | [ ! -f "/tmp/no_poweroff" ] && poweroff 58 | -------------------------------------------------------------------------------- /start.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo "Connect device in FEL mode and press " 3 | pause 4 | 5 | set BOARD=h3 6 | 7 | win32\sunxi-fel.exe -p uboot %BOARD%\u-boot-sunxi-with-spl.bin write 0x42000000 %BOARD%\zImage write 0x43000000 %BOARD%\script.bin write 0x43300000 %BOARD%\uInitrd write 0x43100000 %BOARD%\boot.scr 8 | pause 9 | -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Connect device in FEL mode and press " 4 | read 5 | 6 | BOARD=h3 7 | 8 | sunxi-fel -p uboot $BOARD/u-boot-sunxi-with-spl.bin write 0x42000000 $BOARD/zImage write 0x43000000 $BOARD/script.bin write 0x43300000 $BOARD/uInitrd write 0x43100000 $BOARD/boot.scr 9 | read 10 | -------------------------------------------------------------------------------- /win32/sunxi-fel.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zador-blood-stained/h3-fel-mass-storage/2ea9dc744452258811b562c64a50e88af7e9a4b1/win32/sunxi-fel.exe --------------------------------------------------------------------------------