**** BEGIN LOGGING AT Sat Apr 17 02:59:57 2021 Apr 17 08:26:08 Build [#54](https://buildbot.openwrt.org/master/images/#builders/64/builds/54) of `realtek/generic` failed. Apr 17 12:09:26 hurricos: thanks for the info, I will check that oct-pci-boot out Apr 17 12:09:53 too bad I got those without 1GiB NAND Apr 17 17:04:59 hurricos: geez first attemtps to do something with that SDK ... yikes Apr 17 17:53:29 Hey folks Apr 17 17:53:56 I'm attempting to build the homehub3 image but its failing to build the kernel image fully Apr 17 17:54:11 (complains the .bin file is too large) Apr 17 18:03:22 the build appears to have built an initramfs+kernel .bin file, but not a standalone kernel image Apr 17 18:04:09 where can I find the kernel its building, and how do I trigger a rebuild? (Im not familiar with the build system Apr 17 18:23:59 no-one about? Apr 17 19:12:52 no buildsystem guru about today? Apr 17 19:24:14 Spyro1248: the kernel is built in build_dir/target*/linux*/linux*/ Apr 17 19:26:46 Spyro1248: plain "make" should be enough to rebuild whatever you changed in there Apr 17 19:27:28 PaulFertser: hi :) Apr 17 19:28:15 PaulFertser: I think I may have had some issue with serial - I've just tried pasting the initial few lines of the u-boot image I found online, and it actually responded with * characters. no idea why its behaving differently... Apr 17 19:29:14 huh... and now its actually "working" (assuming the u-boot image is good) Apr 17 19:29:38 holy shit, I'm in :) Apr 17 19:29:45 Spyro1248: probably the ground connection was unreliable Apr 17 19:30:03 Spyro1248: so you booted your self-compiled u-boot on the target after loading it via serial ROM bootloader? Cool! Apr 17 19:30:06 PaulFertser: possibly, although I can't see why - waveforms looked fine on the scope etc. Apr 17 19:30:21 Its not my u-boot - but it worked... Apr 17 19:30:44 I *should* be able to follow the HH3.0 instructions to flash an image now... Apr 17 19:37:40 hm. no network. bummer. Apr 17 19:38:41 lets try the WAN port :) Apr 17 19:42:38 aha! dhcp worked... Apr 17 19:54:29 install kernel booted! getting somewhere! Apr 17 19:56:36 ok, pingable, loginable environment on the router... Apr 17 19:56:39 now what... Apr 17 20:18:04 hmm. no mtd-utils in the base image... Apr 17 20:18:06 annoying. Apr 17 20:18:24 some tool called "mtd" though Apr 17 20:19:01 Spyro1248: yes, OpenWrt uses custom "mtd" tool to handle all the usual usecases Apr 17 20:19:10 Spyro1248, oh, that's for brewing coffee Apr 17 20:19:24 Spyro1248: it's supposed that once you boot initramfs image you can just use "sysupgrade" and regular "sysupgrade" image to flash. Apr 17 20:19:36 PaulFertser: isnt "backing up the original NAND" considered a usual case? Apr 17 20:19:50 PaulFertser: I will do that, but I have no backup image yet Apr 17 20:20:32 PaulFertser: Im looking for something like nanddump Apr 17 20:21:08 Spyro1248: hm, you can install additional packages with "opkd" if you need that, works on initramfs too. Apr 17 20:21:29 Ive tried that, but there doesnt appear to be a mtd-utils package? Apr 17 20:22:01 aaahhhh, is it nand-utils? Apr 17 20:22:57 yes, yes it is... Apr 17 20:23:22 Spyro1248: yes, I just did "git grep nanddump" in the OpenWrt git repo and saw the makefile and took a peek inside and nand-utils were there Apr 17 20:24:19 right, now I just have to remember how nanddump works (its been almost 20 years...) Apr 17 20:35:38 I guess I can just dump the mtdblock* devices really... Apr 17 20:36:02 I found a neat trick actually... Apr 17 20:36:25 now that I'm booted, I can just remove silent=1 from the u-boot config in /dev/mtdblock2 Apr 17 20:39:45 ok, mtdblock5 has errors and is not dumpable that way (presumably needs dumping with the ubi tools, but I dont really care about whats in it... Apr 17 21:48:37 AHA! I have unlocked u-boot on the BT Businesshub 3.0 Apr 17 21:49:41 This file is a u-boot that can be serial downloaded to the device: https://sourceforge.net/projects/hh2b4ever/files/uboot%20for%20v3a/u-boot.asc/download Apr 17 21:56:11 Spyro1248: do you already have an OpenWrt wiki account to document the procedure? Apr 17 21:58:40 PaulFertser: I do not. I would like one... Apr 17 21:58:53 Spyro1248: please send me your desired wiki nick and e-mail. Apr 17 22:23:58 Ooooh, so close... I can run the sysupgrade, but it fails. Apr 17 22:30:18 Probably the ubi names do not match or something like that Apr 17 22:30:41 volume names I mean Apr 17 22:32:09 I think its the bootloader... Apr 17 22:32:21 the partitioning looks... wrong. Apr 17 22:32:44 I wonder if the serial bootloader will boot from my nand, its env is rather different Apr 17 22:33:12 Do you mean sysupgrade worked but booting failed? Apr 17 22:38:28 yes Apr 17 22:39:04 Probably it's just the bootenv that needs tweaking a bit. Apr 17 22:39:15 PaulFertser: yeah, I expect so Apr 17 22:43:01 looks like shes a winner... Apr 17 22:43:13 OpenWrt 19.07.7, r11306-c4a6851c72 Apr 17 22:43:39 I'll just go and make those changes to the uboot env permanent... Apr 17 22:45:17 Spyro1248: congrats :) Apr 17 22:47:37 Yep, direct boot from nand, all working! :) Apr 17 22:47:53 I'll write that up tomorrow, after I've had a bit of a play and made sure everything works. Apr 17 22:54:38 Hmmm. no wifi... Apr 17 22:54:41 seems suspect. Apr 17 23:05:05 Spyro1248: ath9k needs calibration data Apr 17 23:05:22 Spyro1248: or if it's not detected at all, owl-loader to fix the pci pid. Apr 17 23:05:42 ah, thats most likeley - whats owl ? Apr 17 23:06:39 hm. owl-laoder is loaded. Apr 17 23:06:56 Spyro1248: check dmesg to see whether it's wrong pid or lack of calibration data Apr 17 23:07:00 aha - owl loader complained in the log about calib data Apr 17 23:07:17 right, so I need to work out how to feed it that... Apr 17 23:08:19 Spyro1248: check /etc/hotplug.d/firmware/10-ath9k-eeprom Apr 17 23:08:54 Or 12-eeprom Apr 17 23:09:40 Spyro1248: apparently you're supposed to have a partition called art-copy Apr 17 23:19:39 PaulFertser: I do have one named that, but its blank (even in my backup) Apr 17 23:21:29 Spyro1248: in general lantiq older than vr9 (xrx2xx) is seeing very little usage and testing, so you're likely to be the first to use it in quite a while Apr 17 23:22:05 Spyro1248: then you should try finding that art data in the other partitions. Apr 17 23:22:11 indeed Apr 17 23:22:22 I wonder if its got the board name wrong (doubtful) Apr 17 23:24:03 board name looks reasonable Apr 17 23:38:33 Weird. Apr 17 23:38:56 Looks like the businesshub 3.0 doesnt keep the calib. data in art-copy Apr 17 23:39:08 will have to look in the main filesystem (what a pain) Apr 18 00:20:46 I dont suppose anyone here is running a HomeHub 3 ? Apr 18 00:21:12 If so, I'd really appreciate a copy of the /dev/mtdblock2 partition Apr 18 00:21:41 I can't seem to restore my mtd backup :( Apr 18 00:29:46 Bollocks to it. Just bought a spare one so I can see where this went wrong. Apr 18 00:29:51 (maybe recover this one) Apr 18 00:30:29 PaulFertser: I'll hold off updating anything online until I've got an idea what went wrong here. Apr 18 00:30:47 I could *swear* I saw wifi interfaces up at one point in this process... Apr 18 00:31:09 this time I'm going to make sure I have a good nand dump :) Apr 18 00:36:00 The BT HH5A tends to be dirt cheap in the UK as well - and is much better hardware Apr 18 00:39:54 pkgadd: I am using two of them here :) Apr 18 00:40:16 pkgadd: its a matter of priciple... the BT Businesshub is going to give up its secrets :) Apr 18 00:41:48 In the meantime, I guess I'll have to lend my neighbours one of my hh5a devices :) Apr 18 00:46:58 hehe **** ENDING LOGGING AT Sun Apr 18 03:00:04 2021