liminix icon indicating copy to clipboard operation
liminix copied to clipboard

WIP: support for Ubiquiti EdgeRouter X (ER-X)

Open srd424 opened this issue 1 year ago • 2 comments

Not sure of etiquette here, but throught a draft PR might be useful to someone else (particularly in case I get distracted and don't get it finished!)

Have got this to tftpboot, haven't actually tested the networking yet but I'd be surprised if it didn't work. Haven't investigated writing to flash yet, and may well have some parameters / addresses set wrong so don't attempt it without a thorough review! Both factory firmware and openwrt use ubifs on this device so I'm assuming that will make things easier when I get around to it.

Doubtless needs tidying up, and things like useless wireless firmware removing too. Obviously I will squash when I'm happy with it.

srd424 avatar Jul 16 '24 19:07 srd424

Nice!

telent avatar Jul 17 '24 10:07 telent

Hmmm, liminix kernels which work fine when tftpbooted fail to load to when written to flash. Best guess is the built-in uboot decompresses it to a different address in that instance and it's running into something else? (See https://github.com/openwrt/openwrt/issues/12208#issuecomment-1475136019)

The OpenWRT kernels include their own 'lzma-loader' which I suspect is the key to solving this. @telent, might need your help figuring out to how build it, I don't think my nix skills are likely to be up to it!

srd424 avatar Jul 23 '24 16:07 srd424