You are here

build new firmware for new device

3 posts / 0 new
Last post
YD0BCX
YD0BCX's picture
build new firmware for new device
hi everyone,

i've been trying to compile my own aredn firmware. folowing the github https://github.com/aredn/aredn
i'm using ubuntu(focal).building firmware images was okay(success, not really tested it though)

further more, i want to build my own firmware, with my own device that's not listed on supported hardware.
it's mikrotik RB951G-2HnD and RB951UI-2HnDboth has wireless and 5 ethernets). after digging for days this is what i added to existing files.
i cannot find any exact procedures/tutorial on how to build a new device firmware.

configs/ath79-mikrotik.config
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-951g-2hnd=y
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-951ui-2hnd=y

files/etc/radios.json
  "mikrotik routerboard RB951G-2HnD": {
    "wlan0": {
      "maxpower": 22,
      "bandwidths": [ 5, 10, 20 ],
      "antenna": {
        "description": "1.5 dBi Omni",
        "gain": 1.5,
        "beamwidth": 360
      }
    }
  },
  "mikrotik routerboard RB951UI-2HnD": {
    "wlan0": {
      "maxpower": 22,
      "bandwidths": [ 5, 10, 20 ],
      "antenna": {
        "description": "1.5 dBi Omni",
        "gain": 1.5,
        "beamwidth": 360
      }
    }
  },

after that i just execute the build
make SUBTARGET=mikrotik

it compiled without error(that stop compile process)

results:
hari@APRS aredn ((HEAD detached at 3.24.6.0)) $ ls firmware/targets/ath79/mikrotik/
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-951g-2hnd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-951g-2hnd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-951ui-2hnd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-951ui-2hnd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-952ui-5ac2nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-952ui-5ac2nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-ldf-2nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-ldf-2nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-ldf-5nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-ldf-5nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-2nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-2nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-2nd-xl-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-2nd-xl-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5hpnd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5hpnd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5hpnd-xl-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5hpnd-xl-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-lhg-5nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-2nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-2nd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-5hpnd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-5hpnd-squashfs-sysupgrade.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-5nd-initramfs-kernel.bin
aredn-yd0bcx--b3298b1-ath79-mikrotik-mikrotik_routerboard-sxt-5nd-squashfs-sysupgrade.bin
config.buildinfo
feeds.buildinfo
packages
profiles.json
sha256sums
version.buildinfo

my builds listed on the directory.

the questions are, am i missed the steps?, or what exactly procedures for building new firmware/devices.
i cannot find any tutorial for adding new aredn firmware. try to flashed it using tinypxe, console said DoReadfile: rt.bin
ACT led blinking and then ACT led on steadily, there's red light trin on inside the devices.i think process stopped.
rebooted devices and my winbox still can access routeOS :D. it failed but not bricking the devices.i've been retry so many times.
until i post this.

maybe someone can give me enlightenment and lead me to the right directions.
anyway, it's fun though, i once built native openwrt firmware for those devices and it work, forgot which one RB92G or RB951UI :-) 

TIA
Hari
w6bi
w6bi's picture
Build procedure
The build procedure is listed on this page.   Make sure you didn't miss any steps.  https://github.com/aredn/aredn
Orv W6BI
 
YD0BCX
YD0BCX's picture
Build procedure
Build procedure
The build procedure is listed on this page.   Make sure you didn't miss any steps.  https://github.com/aredn/aredn
Orv W6BI
 
Hi, thanks for your responses,
yes i knew AREDN's github. i referred to those page on how to get source, steps to build devices that listed.
i mean i want to build device that not listed there. is there any specific procedure for doing that. what can do or don't..
i do not creating patches or features. simply just want to add my own device/s to this AREDN f/w list.
i've mentioned my attempt/steps on my previous post.
it was successfully built, but i'm not too sure it's the way it supposed to be laugh
i'm new to this AREDN stuffs, but i've had some experiences with openwrt fw and packages build.(not expert though)

Thanks in Advance.
Hari YD0BCX

 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer