**** BEGIN LOGGING AT Sun May 03 02:59:57 2020 May 03 03:08:27 build #122 of lantiq/xrx200 is complete: Failure [failed kmodconfig] Build details are at http://buildbot.openwrt.org/openwrt-19.07/images/builders/lantiq%2Fxrx200/builds/122 blamelist: Petr ?tetiar , Chuanhong Guo , Sungbo Eo , Antonio Quartulli , Kevin Darbyshire-Bryant @darbyshire-bryant.me.uk>, Henrique de Moraes Holschuh , Felix Fietkau , Pawel Dembicki May 03 16:20:03 build #123 of lantiq/xrx200 is complete: Success [build successful] Build details are at http://buildbot.openwrt.org/openwrt-19.07/images/builders/lantiq%2Fxrx200/builds/123 May 03 17:31:44 hope someone can help. i built 19.07.2 from tarball. my uname is now Linux OpenWrt 4.14.171, however now I can't install kernel module from http://downloads.openwrt.org/releases/19.07.2/targets/ramips/rt305x/kmods/4.14.171-1-9a90d552f1e8ed4f201155596f60004e/, due to error kernel (= 4.14.171-1-9a90d552f1e8ed4f201155596f60004e) May 03 17:32:23 i guess my question is, why is official kmod url this long kernel revision string, or why does the tarball string not match up? and how can I fix this? May 03 17:34:44 previously i installed from snapshot and had the long kernel version, but then i couldn't install standard packages because uname was not simply "4.14.171". so i'm going in circles here :/ May 03 17:36:00 fragtion: because kernel modules embed hash of config to ensure compatibility May 03 17:36:16 fragtion: so when you self-build a kernel, install kmods that you build along with it. May 03 17:37:13 thanks @PaulFertser.. is there any way to get the kmod installed to device at this point besides rebuilding the whole rom with that kmod implemented? May 03 17:37:52 fragtion: you do not need to rebuild the whole "rom". You enable it in your menuconfig, build, copy to /tmp and opkg install it. May 03 17:38:20 so i should basically build any modules manually rather than depend on downloads.openwrt.org kmod repo ? May 03 17:38:36 what use is the repo then? I'm a bit confused May 03 17:43:04 okay according to https://forum.archive.openwrt.org/viewtopic.php?id=39961, it seems the 'bad news' I'm interpreting from what you are saying is true, in that I will need to build my own kernel mods because my .config differs from release's? if i'm wrong please correct me to save time & headache XD May 03 17:45:28 last post of that thread is suggesting it is possible to override .vermagic hash.. hrm..? May 03 17:48:46 fragtion: the repo is for the kernel built by autobuilders. May 03 17:49:09 fragtion: why is that you're willing to build your own kernel but not modules? May 03 17:49:39 unsupported device so i had to build own kernel/rom May 03 17:49:56 was hoping that by using official source, i could utilize repo kmods for 'convenience' aspect May 03 17:50:17 Not having vermagic as a safe guard leads to many obscure bug reports. May 03 17:50:34 I can imagine yeah May 03 17:51:05 but I need a workaround :) May 03 17:51:12 You can force depends May 03 17:51:19 In opkg May 03 17:52:20 hrm, just tried that but same error unfortunately May 03 17:53:00 --force-checksum seems to work May 03 17:55:19 ok perfect thanks for your help, this will do :D May 03 17:56:45 Here is my work for the device in question btw (Tenda A6) -> https://github.com/fragtion/openwrt-hardware/tree/master/tenda-a6 -- it would be nice if official support could be added. it is very similar to already supported device "A5-V11" May 03 18:09:08 fragtion: official support will depend on you sending patches to add it. May 03 18:09:16 Most probably May 03 18:11:44 is a pull request to github repo fine, as a mirror of the official openwrt git? if so which branch do I clone and push to? sorry if these are elementary FAQ/rtfm questions lol May 03 18:13:47 fragtion: sometimes sending patches to the mailing list is faster but github pull requests work too, please check the wiki about more details. May 03 18:14:04 ty May 03 18:34:59 PaulFertser: Hi. Do you happen to know what's the reset / power vector address on these mipsel 32 shipped with Acher C50? May 03 18:35:22 from Uboot I've tried these two addresses I've found in the docs: https://pastebin.com/raw/y6Ut21ye May 03 18:35:43 but I understand the MMU is actually disabled when on Uboot prompt? May 03 18:38:15 fragtion: send patches against master. May 03 18:40:06 gromero: yes, MMU is normally disabled there, and SPI flash is sometimes mapped with a special hardware block to some address. If you have vendor u-boot sources you can see what address it's linked for. May 03 18:42:43 aparcar[m]: hm, indeed https://openwrt.org/submitting-patches is not super-clear on the topic. May 03 18:43:43 PaulFertser: :) May 03 18:44:11 PaulFertser: oh so even tho MMU is off there is another mechanism to map the SPI flash, I see. But since these two addresses I've pointed out are the first ones (MMU on or MMU off) CPU must fetch the first instruction shoudn't I be able to read from either of them from Uboot? May 03 18:44:54 (regardless how SPI flash map is) May 03 18:45:22 gromero: you should be if the flash is indeed mapped there and doesn't have that badd data. May 03 18:45:33 gromero: but probably the flash is mapped elsewhere? May 03 18:47:01 probably is mapped elsewhere, but can the map (or by another mechanism or setup) change the vector / power address two? unless it got unmapped at that point I'm trying to examine the mem? May 03 18:47:24 s/address two/address too/ May 03 18:47:50 gromero: why are you sure the reset vector is there? May 03 18:53:23 PaulFertser: because of the mips32 docs I've found + https://www.nulltrace.org/2013/04/mips-bootstrapping.html plus a series of defines and hardcoded values in the uboot / qemu code: May 03 18:53:24 https://pastebin.com/raw/QuhYtfUk May 03 18:53:45 but I'm not really a mips expert May 03 18:53:49 gromero: do you have serial boot log of vendor firmware on that specific device? May 03 18:54:17 nope, just the log from uboot May 03 18:54:32 I was not able to flash the original vendor fw back May 03 18:54:40 gromero: so please show the log May 03 18:54:55 gromero: and probably printenv May 03 18:56:15 PaulFertser: https://hastebin.com/raw/iberajezar May 03 18:56:50 gromero: and when you do not interrupt the boot please May 03 18:57:40 PaulFertser: if I don't interrupt the boot it gets stuck forever on: May 03 18:57:41 continue to starting system. May 03 18:57:42 0 May 03 18:57:52 gromero: and no addresses printed? May 03 18:57:57 nope May 03 18:58:07 I can boot initramfs too if it helps... May 03 18:58:52 gromero: if you can boot initramfs then you can change the flash contents obviously. May 03 18:59:19 gromero: normally the reset vector points to some code in the boot rom of the chip May 03 18:59:25 PaulFertser: yes, I've tried using mtd as you said but I got "erase error" when trying to flash back the stock fw May 03 18:59:34 then the code from the rom gets executed and that loads something from some flash May 03 18:59:57 updated openwrt/upstream, https://sdwalker.github.io/uscan/index.html May 03 19:00:04 gromero: so probably the flash is indeed damaged and your "md" shows accurate data. May 03 19:00:19 gromero: or are you seeing different contents when booted? May 03 19:00:35 Erase error is odd May 03 19:01:12 PaulFertser: you mean different comparing two different boots and inspecting a same given address? May 03 19:02:00 gromero: I mean is Linux driver able to read anything at all from those flash areas? May 03 19:02:00 Hauke: I see, but isn't the vector address something static which can't be changed and so I should be able to at least read it on uboot? May 03 19:02:26 PaulFertser: ah, I didn't try let me check May 03 19:02:39 I believe I can check that by dumping /dev/mem ? May 03 19:02:51 PaulFertser: ^ May 03 19:02:53 gromero: hexdump -C /dev/mtd2 May 03 19:02:55 greearb: it could be that you can configure these adresses when you integarte the MIPS core into the SoC May 03 19:02:58 Or something along the lines May 03 19:03:00 or that they are execute only May 03 19:03:05 and not readable May 03 19:03:05 PaulFertser: right, let me try May 03 19:04:08 Hauke: ok, if we can configure the address that's new to me and an additional complication I need to be aware. thanks. May 03 19:04:31 gromero: not we, but SoC designer May 03 19:05:54 yes, PaulFertser is right I was talking about the time when the MIPS core gets inteagrted into the SoC, but I do not know what can be configured, I never saw these tools May 03 19:05:55 PaulFertser: sorry, yeah, I mean 'we' was a kind of unknown entity. sadly it don't see it mentioned on the MT7628 datasheet, but it's not really great May 03 19:05:55 gromero: probably you can try lower frequency in DTS for the flash IC May 03 19:06:16 gromero: and then flashing with mtd will start working May 03 19:06:21 (hopefully) May 03 19:07:05 PaulFertser: what DTS you mean? May 03 19:07:24 or how : ) May 03 19:08:48 PaulFertser: btw, before using the stock firmware with 'mtd' I skipped the 512 bytes May 03 19:08:58 (as in the owrt docs) May 03 19:09:13 although I think it can't be the cause for the "erase error" May 03 19:09:30 gromero: you're booting OpenWrt initramfs and your flash is detected but somehow erasing fails, right? I suggest you change DTS file of OpenWrt to use much lower SPI frequency and retry. May 03 19:10:44 PaulFertser: got it. Btw ' hexdump -C /dev/mtd2' seems to work ok, I see at some point the strings of Uboot, for instance May 03 19:11:13 I'll give a try with a lower frequency May 03 19:15:58 PaulFertser: fyi, that's what happens currently: May 03 19:15:59 root@OpenWrt:/# mtd -r write /tmp/tplink.bin firmware May 03 19:15:59 Unlocking firmware ... May 03 19:15:59 Writing from /tmp/tplink.bin to firmware ... [e]Failed to erase block May 03 19:16:21 it takes like 15 seconds to happens May 03 19:16:48 gromero: check /proc/mtd to see what device corresponds to firmware May 03 19:17:40 PaulFertser: https://hastebin.com/raw/igaqetofin May 03 19:17:50 mtd2 so May 03 19:18:02 and: May 03 19:18:03 root@OpenWrt:/# mtd -r write /tmp/tplink.bin mtd2 May 03 19:18:03 Could not open mtd device: mtd2 May 03 19:18:03 Can't open device for writing! May 03 19:18:12 gromero: what's in dmesg? May 03 19:20:10 PaulFertser: https://hastebin.com/raw/ikohanidun (full log) May 03 19:26:03 Hauke: PaulFertser well, I can also play a bit harder and desolder the SPI flash, writing it fully with a simple crafted code that prints to the serial it's location, that would give me with some luck the approximated real address where the core starts, right? May 03 19:26:33 (but naturally I'll check if I can find the vendor's uboot souce first) May 03 19:26:42 *source May 03 19:28:53 gromero: if you can get initramfs running it's all you need for development. May 03 19:29:03 gromero: just sort out the issues with mtd. May 03 19:29:12 My first guess is that trying lower speed might be beneficial. May 03 19:29:56 PaulFertser: ok. I'll follow that direction. thanks! May 03 19:30:13 gromero: you still need to get OpenWrt working on that board right? May 03 19:31:25 PaulFertser: well, yes, and one idea was to compare what stock firmware is doing in special to get the 2.4GHz working ok and that's not being done on openwrt May 03 19:31:49 that's why I want to flash the stock image ultimately (to compare settings etc) May 03 19:32:31 gromero: you'll need proper mtd support in any case, so that's the first to fix, and then you'll be able to flash whatever at any moment. May 03 19:32:39 although I don't understand yet how I can flash an openwrt sysupgrade image from initramfs (thought sysupgrade tools would work for that but it didn't ) May 03 19:33:08 gromero: sysupgrade is using "mtd" under the hood for SPI NOR flash. May 03 19:33:35 ah, that's might explain why sysupgrade didn't work too May 03 19:33:50 great. I'll sort out what's happening with mtd May 03 19:34:03 PaulFertser: really appreciate your help May 03 19:34:47 gromero: really wish you luck with your project :) May 03 19:35:13 PaulFertser: thanks :) May 03 19:42:57 aparcar[m]: ping May 03 19:43:31 Hauke: I just sent you an email May 03 19:43:33 amazing rtt May 03 19:44:16 aparcar[m]: I am just answering May 03 19:45:18 aparcar[m]:what do they want to know? May 03 19:45:26 aparcar[m]: will do thanks May 03 19:46:21 Hauke: I think some overall project description and concrete ideas for what should be done. If you are available for the next hour I'll update you May 03 19:46:32 ok May 03 19:46:34 haven't looked to deep into it as I wasn't sure if this is of interest overall May 03 19:47:12 I think you have to finish in 15 minutes May 03 19:47:33 ah no it is tomorrow at 8 PM UTC May 03 19:47:58 :) May 03 19:49:53 Hauke: you have access to contact@openwrt.org right? May 03 19:51:20 yes May 03 20:23:03 PaulFertser: just to be sure I've got you right, you meant experiment with a tweak like that right: https://hastebin.com/umuvigupud.diff ? May 03 20:23:42 gromero: exactly May 03 20:23:48 PaulFertser: k **** ENDING LOGGING AT Mon May 04 02:59:57 2020