rua has quit [Quit: Leaving.]
<Mangix> I do wonder if it's possible to use git magic to automate this
<Mangix> eg: check for no longer existing folders one level down and explicitly revert.
<dwfreed> Habbie: fwiw, I think the comment about PKG_SOURCE was about it not being very unique; PKG_SOURCE is a destination filename (what the URL will be downloaded to), rather than a "source" filename (re https://github.com/openwrt/packages-abandoned/pull/39#issuecomment-1989003717 )
<dwfreed> it "works" because it can be anything; but when you're downloading all sources, it should be sufficiently unique (by including package name, for example) to definitely not collide with any other package's source
<Mangix> triied asking ChatGPT how to do this, didn't quite get the proper result
minimal has quit [Quit: Leaving]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #openwrt-devel
<damo22> what flag am i missing for lzma-loader? i got "error: Unsupported SoC" make -w -C lzma-loader PKG_BUILD_DIR="/home/damien/git/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-tplink_archer-mr200-v6-initramfs-kernel.bin.src" TARGET_DIR="/home/damien/git/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/" LOADER_NAME="openwrt-ramips-mt76x8-tplink_archer-mr200-v6-initramfs-kerne
<damo22> l.bin" BOARD="MT76x8 based boards" PLATFORM="ralink" LZMA_TEXT_START=0x81800000 LOADADDR=0x80000000 SUBTARGET=mt76x8 LOADER_DATA="/home/damien/git/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-tplink_archer-mr200-v6-initramfs-kernel.bin" compile loader.bin
<damo22> looks like lzma-loader does not support mt76x8 ?
damo22 has quit [Quit: Leaving.]
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
damo22 has joined #openwrt-devel
<Mangix> it seems there's already some support already
SlimeyX has quit [Remote host closed the connection]
zer0def has quit [Quit: zer0def]
zer0def has joined #openwrt-devel
tidalf has joined #openwrt-devel
<damo22> is it safe to compile u-boot and flash it over the vendor uboot?
<damo22> im having trouble with lzma
<damo22> i ported lzma-loader to mt76x8
<damo22> i still get LZMA ERROR 1
<damo22> isnt the vmlinux already a xz image, and the initramfs is lzma compressed, so what is the point of doing kernel-bin | append-dtb | lzma ?
johnf has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
johnf has joined #openwrt-devel
damo22 has quit [Quit: Leaving.]
damo22 has joined #openwrt-devel
<damo22> ok, i have a working initramfs-kernel version
<damo22> how do i test completing the port?
<damo22> ive backed up the full flash
<damo22> all buttons and leds work
<damo22> and the wwan/wlan are detected in the kernel log
cmonroe has quit [Read error: Connection reset by peer]
cmonroe has joined #openwrt-devel
KGB-2 has quit [Remote host closed the connection]
KGB-2 has joined #openwrt-devel
_lore_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
_lore_ has joined #openwrt-devel
<PaulFertser> damo22: when everything works in initrams the next logical step is to try to "sysupgrade" using the sysupgrade image from within it.
<PaulFertser> damo22: congrats on the progress!
rmilecki has quit [Quit: Konversation terminated!]
<PaulFertser> damo22: so how did you workaround the lzma error?
<PaulFertser> damo22: vmlinu_x_ isn't compressed, vmlinu_z_ is, and initramfs there is part of vmlinux, linked in.
<damo22> i removed the lzma compression so my initramfs-kernel image is 9MB instead of 5MB
<damo22> i tried with gzip instead but it failed again
<damo22> i think the sysupgrade may fail because i know the vendor header isnt supported by mktpinkfw2 tool
<PaulFertser> damo22: can you check how the vendor image (that starts at firmware) differs from what you generate?
<PaulFertser> damo22: you need to carefully compare what you generate with what's already in firmware partition.
<damo22> https://github.com/openwrt/openwrt/pull/15610 i sent this so others can collaborate
<PaulFertser> The part up to the rootfs is essential.
<PaulFertser> damo22: ok, you're on the right path
<damo22> the tplink header is at the top of the firmware
<PaulFertser> Is uImage following? What type of compression does it use?
<damo22> not sure, i think its uncompressed
<PaulFertser> You can check by extracting it with binwalk -e and then using mkimage -l
<damo22> 512 0x200 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 3738100 bytes
<damo22> 2097152 0x200000 Squashfs filesystem, little endian, version 4.0, compression:xz, size: 8759472 bytes, 689 inodes, blocksize: 65536 bytes, created: 2023-05-16 09:58:34
<PaulFertser> To figure out the header if it's really different from what's already supported you might want to grab several different versions of this firmware from vendor updates, unpack and see what bytes are different.
<PaulFertser> damo22: and no uImage header?
<damo22> thats starting at 0x20000
<damo22> i dont know what a uImage header looks like
<PaulFertser> I wonder if your lzma compressed image also has properties: 0x5D
<damo22> i could recompile one and see
rmilecki has joined #openwrt-devel
<PaulFertser> damo22: did you add full log (from startup) from vendor booting somewhere?
<PaulFertser> damo22: you can create uImage header yourself with "mkimage" tool, if vendor's u-boot isn't talking about FIT then it's probably a "legacy uImage".
<PaulFertser> But binwalk should have detected it.
<PaulFertser> damo22: have you downloaded GPL sources for u-boot on this board?
sestowner has joined #openwrt-devel
<damo22> i cant find GPL sources for this version of the board
<damo22> 82720 0x14320 U-Boot version string, "U-Boot 1.1.3 (May 16 2023 - 17:33:33)"
<Habbie> dwfreed, right, i figured it was something like that, but i don't do guessing games and this person only had guessing games for me :)
<PaulFertser> damo22: you should probably try requesting it from them, they must provide it
goliath has joined #openwrt-devel
<PaulFertser> damo22: it's quite possible tplink is doing some odd thing and using their own custom header instead of uImage or FIT header there. So to guess what might be important in that new header type you might need few examples to compare.
dermoth has joined #openwrt-devel
owrt-images-builds_ has quit [Quit: buildmaster reconfigured: bot disconnecting]
owrt-images-builds has joined #openwrt-devel
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
mcbridematt has quit [Read error: Connection reset by peer]
cmonroe has quit [Ping timeout: 480 seconds]
minimal has joined #openwrt-devel
rua has joined #openwrt-devel
rua is now known as Guest8250
rua has joined #openwrt-devel
Guest8250 has quit [Ping timeout: 480 seconds]
TianlingShen[m] has quit [Remote host closed the connection]
schmars[m] has quit [Remote host closed the connection]
rua has quit [Ping timeout: 482 seconds]
fakuivan has quit [Remote host closed the connection]
fakuivan has joined #openwrt-devel
kirdesde has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
goliath has joined #openwrt-devel
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
_lore_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
rua has quit [Remote host closed the connection]
rua has joined #openwrt-devel
_lore_ has joined #openwrt-devel
_lore_ has quit []
_lore_ has joined #openwrt-devel
rsalvaterra has joined #openwrt-devel
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
rmilecki has joined #openwrt-devel
sestowner has quit [Ping timeout: 480 seconds]
SlimeyX has joined #openwrt-devel
mrnuke has quit [Quit: ZNC 1.8.2 - https://znc.in]
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
goliath has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
_lore_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
_lore_ has joined #openwrt-devel
mrnuke has joined #openwrt-devel
minimal has quit [Quit: Leaving]
<cation> there are some devices that are being switched to use `compatible = "u-boot,env";` in their DTS files to set which partition has the u-boot environment parameters... some devices have second u-boot-env partitions (searching "u-boot-env2" in the openwrt repo finds these), is it possible to configure these second partitions in the same way (with something like `compatible = "u-boot,sys";`)?
<cation> or would you have to keep using "ubootenv_add_uci_sys_config" in package/boot/uboot-envtools/files/*?
<owrt-images-builds> Build [#241](https://buildbot.openwrt.org/images/#/builders/220/builds/241) of `master_mpc85xx/p2020` failed.
<Mangix> hmm minidlna is super dead
<Mangix> unfortunate
tidalf has quit [Remote host closed the connection]
tidalf has joined #openwrt-devel
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]