Bcm63381b0 Firmware Guide
mips-linux-gnu-gcc -mips32r2 -msoft-float -G 0 -c minimal.c mips-linux-gnu-ld -T cfe.ld -o minimal.elf minimal.o cfe-bin2bin minimal.elf minimal.bin Then load via CFE prompt:
memory@0 device_type = "memory"; reg = <0x0 0x4000000>; // 64 MB ; bcm63381b0 firmware
Example: a minimal C program to blink an LED via GPIO. mips-linux-gnu-gcc -mips32r2 -msoft-float -G 0 -c minimal
make menuconfig # select bcm63xx target and your board make -j$(nproc) Output: openwrt-bcm63381-demo-squashfs-cfe.bin (ready to flash via CFE) To really develop firmware for BCM63381B0, you legally need: reg = <
// bcm63381_demo.dts /dts-v1/; #include "bcm63xx.dtsi" / model = "My BCM63381 Board"; compatible = "mycompany,bcm63381", "brcm,bcm63381";
CFE> load -raw -addr=0x80800000 minimal.bin CFE> go 0x80800000 If you want to develop a full router firmware , use OpenWrt (supports many BCM63xx chips).
gpio-leds compatible = "gpio-leds"; led_power label = "power"; gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; ; ; ;