Skip to content

Instantly share code, notes, and snippets.

@madushan1000
Last active April 14, 2023 21:34
Show Gist options
  • Save madushan1000/e624fce82fbd1e62cb68c80483e2b67a to your computer and use it in GitHub Desktop.
Save madushan1000/e624fce82fbd1e62cb68c80483e2b67a to your computer and use it in GitHub Desktop.
bl808 load linux over fastboot using uuu
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
@madushan1000
Copy link
Author

IRQ forwarder has to be flashed at offset 0x300000 on flash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment