en:bpi-r3:uboot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r3:uboot [2023/04/07 11:01] – [kernel/initrd] frank | en:bpi-r3:uboot [2024/04/07 09:39] (current) – [writing emmc] frank | ||
---|---|---|---|
Line 69: | Line 69: | ||
BPI-R3> run newboot | BPI-R3> run newboot | ||
- | # | + | #using dt-overlay |
BPI-R3> setenv bootconf "# | BPI-R3> setenv bootconf "# | ||
Line 258: | Line 258: | ||
</ | </ | ||
===== writing emmc ===== | ===== writing emmc ===== | ||
+ | |||
+ | :!: newest atf for mediatek needs gpt with fip partition so it must be created first (maybe copy first 1M from sdcard to emmc). | ||
get emmc/gpt information: | get emmc/gpt information: | ||
Line 405: | Line 407: | ||
now flash bl2 to boot0 block and fip to fip partition | now flash bl2 to boot0 block and fip to fip partition | ||
+ | |||
+ | short way using my environment: | ||
+ | < | ||
+ | MT7986> setenv bl2file 2023.04/ | ||
+ | MT7986> setenv fipfile 2023.04/ | ||
+ | MT7986> run wremmc | ||
+ | bl2file=2023.04/ | ||
+ | 195976 bytes read in 20 ms (9.3 MiB/ | ||
+ | | ||
+ | MMC erase: dev # 0, block # 0, count 1024 ... 1024 blocks erased: OK | ||
+ | | ||
+ | MMC write: dev # 0, block # 0, count 1024 ... 1024 blocks written: OK | ||
+ | fipfile=2023.04/ | ||
+ | 645001 bytes read in 58 ms (10.6 MiB/ | ||
+ | | ||
+ | MMC erase: dev # 0, block # 13312, count 4096 ... 4096 blocks erased: OK | ||
+ | | ||
+ | MMC write: dev # 0, block # 13312, count 4096 ... 4096 blocks written: OK | ||
+ | </ | ||
+ | manual way: | ||
+ | < | ||
< | < | ||
BPI-R3> mmc dev 0 | BPI-R3> mmc dev 0 | ||
Line 431: | Line 454: | ||
BPI-R3> | BPI-R3> | ||
</ | </ | ||
+ | </ | ||
If boot from emmc does not work,maybe bootbus needs to be changed to 0: | If boot from emmc does not work,maybe bootbus needs to be changed to 0: |
en/bpi-r3/uboot.1680858119.txt.gz · Last modified: 2023/06/08 17:06 (external edit)