On Mon, 10 Feb 2020 17:25:33 +0000 "lovell.joshyyy" <[email protected]> wrote:
I checked in u-boot v2019.10 and we have CONFIG_DISTRO_DEFAULTS=y: > $ export ARCH=arm > $ make A10-OLinuXino-Lime_defconfig > $ grep CONFIG_DISTRO_DEFAULTS .config > CONFIG_DISTRO_DEFAULTS=y So this means that we can use /boot/extlinux/extlinux.conf instead of boot.scr as it is easier to work with. Else you would need the boot.scr to conform to u-boot's distro boot requirements. > ##Download the stuff > wget > https://www.parabola.nu/packages/libre/armv7h/uboot4extlinux-a10-olinuxino-lime/download/ > wget > https://repomirror.parabola.nu/iso/systemd-cli-2018-02-06/parabola-systemd-cli-armv7h-tarball-2018-02-06.tar.gz It'd be better to check that stuff with packan-key or gpg. > wget > https://git.parabola.nu/abslibre.git/plain/libre/uboot-sunxi/boot.txt I've quoted that script below: > part uuid ${devtype} ${devnum}:${bootpart} uuid I did a quick look, and bootpart is probably not part of the u-boot environment anymore. Also it seems that we don't have compatibility with old boot scripts: $ grep CONFIG_OLD_SUNXI_KERNEL_COMPAT .config # CONFIG_OLD_SUNXI_KERNEL_COMPAT is not set > setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait > > if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} > /boot/vmlinuz-linux-libre; then > if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} > /boot/dtbs/linux-libre/${fdtfile}; then > if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} > /boot/initramfs-linux-libre.img; then > bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}; > else > bootz ${kernel_addr_r} - ${fdt_addr_r}; > fi; > fi; > fi So that probably fails because of the bootpart. The addresses look compliant, devtype and devnum probably works as they are widely used, but I didn't see them mentioned in doc/README.distro. > if load ${devtype} ${devnum}:${bootpart} 0x48000000 /boot/uImage; then There is no /boot/uImage + the bootpart probably fails too here, it would also need the devicetree and so on to work. > if load ${devtype} ${devnum}:${bootpart} 0x43000000 /boot/script.bin; then > setenv bootm_boot_mode sec; > bootm 0x48000000; > fi; > fi > cp -a boot.txt mnt/boot > mnt/boot/boot.txt > mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d > mnt/boot/boot.txt boot.scr > cp -a boot.scr mnt/boot Try to rm mnt/boot/boot.scr, because u-boot probably tries that script first, before trying /boot/extlinux/extlinux.conf. Denis.
pgpuzHCjuu9sQ.pgp
Description: OpenPGP digital signature
_______________________________________________ Dev mailing list [email protected] https://lists.parabola.nu/mailman/listinfo/dev
