Hi again! Szabolcs Hubai <[email protected]> ezt írta (időpont: 2020. ápr. 26., V, 16:43): > > Hi David! > > David Bauer <[email protected]> ezt írta (időpont: 2020. ápr. 26., V, > 14:42): > > > > Hi Szabolcs, > > > > On 4/19/20 8:49 PM, Szabolcs Hubai wrote: > > > - KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage > > > lzma > > > + LOADER_TYPE := bin > > > + KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | \ > > > + relocate-kernel | lzma -a0 | uImage lzma > > > > Sorry for going over this one more time. Is there a specific reason > > to pack the resulting uImage using lzma? Also the lzma-loader relocates > > itself afaik, so relocate-kernel shouldn't be necessary when using our > > own loader (i might be wrong here). > > > > Could you try the attached patch on your device? > > > > No problem at all, as it's still not landed. :) > Meanwhile I started playing with that loader-okli what Guo was referring. > Looks like it needs more magic. :D > > > I tried your proposed path when the recipe hit master, without lack. [0] > Will try again for you. >
Forgot to mention that Guo also noted his original thread [0] that DIR-860L is an exception. [0] http://lists.infradead.org/pipermail/openwrt-devel/2020-April/022834.html BR, Szabolcs > About the lzma repack: I found out that the U-Boot accepts > uncompressed and lzma compressed initramfs images. > It doesn't accepts gzip initramfs, but I didn't tested other compressions. > I also found that the U-Boot expects lzma compressed kernel images > from the flash and doesn't care about uImage header. > > About relocate-kernel: without it the router hangs after "transferring > control to Linux", like below! > > > Please choose the operation: > 1: Load system code to SDRAM via TFTP. > 2: Load system code then write to Flash via TFTP. > 3: Boot system code via Flash (default). > 4: Entr boot command line interface. > 7: Load Boot Loader code then write to Flash via Serial. > 9: Load Boot Loader code then write to Flash via TFTP. > 0 > > 3: System Boot system code via Flash. > ## Booting image at bfc50000 ... > addr:80500000 > We have SEAMA, Image Size = 4759794 > Verifying Checksum ... > Uncompressing SEAMA linux.lzma ... OK > ## Transferring control to Linux (at address 00000000) ... > ## Giving linux memsize in MB, 128 > > Starting kernel ... > > (hang) > > > > [0] > https://forum.openwrt.org/t/optimized-build-for-the-d-link-dir-860l/948/1089?u=xabolcs > > > Regards, > Szabolcs > > > Best wishes > > David _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
