buildroot_bouffalo
buildroot_bouffalo copied to clipboard
Please consider to combined all firmwares together and get rid of depending on bldevcube.
Combine m0/d0 lowload and bl808-firmware.bin together:
- create a empty image with size 0x800000, fill it with "0xFF". 0x800000 is the start addr of "bl808-firmware.bin", it will be appended later.
dd if=/dev/zero bs=8388608 count=1| tr "\000" "\377" >openbouffalo-bl808.bin
- copy "m0_lowload_bl808_m0.bin" to the start of whole firmware.
dd conv=notrunc if=m0_lowload_bl808_m0.bin of=openbouffalo-bl808.bin
- copy d0 lowload to 0x100000 of whole firmware
dd conv=notrunc if=d0_lowload_bl808_d0.bin of=openbouffalo-bl808.bin seek=1048576 bs=1
- append bl808-firmware.bin to the end
cat bl808-firmware.bin >> openbouffalo-bl808.bin
The final 'openbouffalo-bl808.bin' can be programed from CLI as:
bflb-iot-tool --chipname bl808 --interface uart --port /dev/ttyUSB1 --baudrate 2000000 --firmware openbouffalo-bl808.bin --addr 0x0 --single
it can also able to be programmed by BLDevCube from IOT page.