Last active
April 14, 2023 21:34
-
-
Save madushan1000/e624fce82fbd1e62cb68c80483e2b67a to your computer and use it in GitHub Desktop.
bl808 load linux over fastboot using uuu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFG: FB: -vid 0x18d1 -pid 0x4e40 | |
FB: getvar version | |
FB: ucmd setenv fastboot_buffer 0x51000000 | |
FB: download -f out/fw_payload.elf | |
FB: ucmd setenv fastboot_buffer 0x51500000 | |
FB: download -f linux/arch/riscv/boot/Image.gz | |
FB: ucmd setenv fastboot_buffer 0x51400000 | |
FB: download -f linux/arch/riscv/boot/dts/bouffalolab/bl808-pine64-ox64.dtb | |
FB: ucmd rproc init 0 || true | |
FB: ucmd rproc load 0 51000000 1000000 | |
FB: ucmd rproc start 0 | |
FB: ucmd mw 0x2000b0A0 0x300000 | |
FB: ucmd dcache flush | |
FB: delay 1000 | |
FB: acmd go 0x58000000 | |
FB: Done | |
# mw 0x20000000 6 7 12 13 | |
# mw 0x20000000 0x8DC 0x8E0 0x8F4 0x8F8 | |
# mw 0x200008DC 0x401B03 && mw 0x200008E0 0x401B03 && mw 0x200008F4 0x401B03 && mw 0x200008F8 0x401B03 | |
# setenv kernel_comp_addr_r 0x52000000 && setenv kernel_comp_size 0x400000 && dcache flush && booti 0x51500000 - 0x51400000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IRQ forwarder has to be flashed at offset 0x300000 on flash.