@pellmen i read your post on 4pda. some corrections:
@lukasz92 didn't adapt the drivers the drivers are being developed by the mt76 team. he compiled them in a release for 18.06.2 ... i compiled them as packages for openwrt/r3p (what we've been testing)... neither of us gets the credit or the blame bugs should be filed against mt76 at https://github.com/LorenzoBianconi/mt76/tree/mt7615
The drivers(5.0.2.0 etc) I've been posting/compiling/testing aren't mine ... they're Mediatek's leaked drivers. I take no responsibility or credit for them (only for compiling them... which isn't rocket science).
This is important: github interpreted my shell syntax as text formatting and screwed it up (and I didn't read it after writing it). I just fixed it, if you wouldn't mind going back and fixing your post...
That's a complete mess... (i mean... it talks of "kernel_stock" but that's part of "firmware"... so it's not saving stock firmware for recovery) if this really is pandorabox's partition table, though, to install openwrt you would do the following (download factory.bin ... also kernel0 from one of my releases pages ;))
This is because pandrabox's partition table (apparently) has different offsets than ours (because it doesn't save kernel0), so we have to move everything over by 0x400000
EDIT: @lukasz92 just very handsomely pointed out that some *.bin files are necessary for mt76/mt7615... I'll add them to the package... so wait about half an hour before installing them (if anyone is that impatient )
EDIT2: Added command to restore kernel_stock as well.. NB: I didn't test the commands I have above.. at least the first person to try it should have an UART
EDIT3: @pellmen firmware files uploaded and instructions updated. still untested.
@lolyinseo, @lukasz92 said he didn't test his binaries (because he doesn't have an R3P)... if you want to test mt76/mt7615 I'd recommend re-installing openwrt-latest and just installing the kernel packages (see my earlier post)... less risky.
So, if we want get back to the pandora, maybe we can make backup of firmware partition (sorry, I don't know with which command it would be better to do)? And than just overwrite our kernel0 and firmware???
Or maybe we just can do sysupgrade from openwrt to pandora? And after this manipulation we will have stock firmware for recover with pandora onboard?
@lolyinseo ok i guess i'll look at the source code now that I know it doesn't panic on load
maybe it names its interfaces differently (not ra0 or rai0)... what does ifconfig -a show you?
@pellmen not at all surprised it crashed can you give me the partition table from the boot log (that gives the offsets, not just the sizes) also... any bad blocks? any messages during installation i should be aware of? (and just to make sure, you're saying it crashes when "installing" openwrt from pandorabox, right?)
(also.. their kernel partition is half the size of ours... i've noticed problems booting with a kernel larger than 2MB... maybe they know something about the bootloader that i don't....)
@lolyinseo ... i'm going to need some time to see what the error message corresponds to in code... you made sure you installed the mt7615-firmware package, right?
@pellmen OK i can't see anything obviously wrong.. is this your system? are you using pb-boot instead of uboot? and how did it "crash" (ie, bootlog).... if they compiled their own bootloader, it might be hard-coded to boot from 0x200000 (ie, no "kernel0" and "kernel1" magic)... assuming that (and guessing at how it " crashed") here's a hack:
in other words, assuming the bootloader will always load from 0x200000, we'll put our openwrt kernel there (overwriting "kernel_stock"), then copy the factory.bin over so we'll end up with kernel1 + kernel1 + ubi on disk... at boot the bootloader will load the kernel from 0x200000 and then the kernel will mount rootfs at 0xa00000 ... at least, that's the idea. it's a hack. try it
@lolyinseo well it can't load the mac address either... what i hope is that the dts file is all busted up and this will give me an opportunity to discover the bugs... but then... maybe the mt7615 code is all bogus and untested remember, they didn't come out and say "hey we'd love you to test this code we think it's great..." we just grabbed their code, so it's not fair to expect it to work
but of course... maybe it's something as simple as "the package doesn't put the eeprom files in the right place"