On Fri, May 3, 2019 at 12:35 AM Sharvin Shah <[email protected]> wrote:
>
> Okay, I see your point.
>
> Just for verification purpose, you are talking about check_uboot_overlays
> from the script right?
so let's look at your script, and what u-boot did
uenvcmd=\
run loadall; \
run findroot; \
echo Using root partition ${rootpart}; \
if run loadfdt; then \
echo Loaded ${fdtfile}; \
if run loadimage; then \
run mmcargs; \
bootz ${loadaddr} - ${fdtaddr}; \
fi; \
fi;
loadadd:
loadall=run loaduEnvtxt; run check_dtb; run check_uboot_overlays; run loadxrd;
Okay, so we load /boot/uEnv.txt, select the defined dtb, check if
"enable_uboot_overlays" is enabled.. Finally we load the initrd..
loadxrd=echo debug: [/boot/initrd.img-${uname_r}] ... ; load mmc 0:1
${rdaddr} /boot/initrd.img-${uname_r}; setenv rdsize ${filesize}
findroot;
Set's root mmc..
loadfdt;
Loads the device tree:
loadfdt=echo debug: [/boot/dtbs/${uname_r}/${fdtfile}] ... ;load mmc
0:1 ${fdtaddr} /boot/dtbs/${uname_r}/${fdtfile}
loadimage
Loads the zImage..
loadimage=echo debug: [/boot/vmlinuz-${uname_r}] ... ; load mmc 0:1
${loadaddr} /boot/vmlinuz-${uname_r}
mmcargs, set's the mmcargs var..
mmcargs=setenv bootargs console=${console} ${optargs} ${cape_disable}
${cape_enable} root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline}
bootz ${loadaddr} - ${fdtaddr};
aka boot into linux..
Then we look at what u-boot did:
********************************************
Running uenvcmd ...
2113 bytes read in 3 ms (687.5 KiB/s)
debug: [/boot/initrd.img-4.14.71-ti-r80] ...
4799493 bytes read in 303 ms (15.1 MiB/s)
Using root partition 0:2
debug: [/boot/dtbs/4.14.71-ti-r80/am335x-bonegreen-wireless.dtb] ...
60067 bytes read in 8 ms (7.2 MiB/s)
Loaded am335x-bonegreen-wireless.dtb
debug: [/boot/vmlinuz-4.14.71-ti-r80] ...
10416640 bytes read in 652 ms (15.2 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Using Device Tree in place at 88000000, end 88011aa2
********************************************
So your "run check_uboot_overlays;" did nothing...
> Also, How can I enable the overlay path through uboot?
/uEnv.txt = uenvcmd = YOU WRITE IT
/boot/uEnv.txt = (default) we take care of it..
"Current Loaded" *.dtb in address ${fdtaddr} and a second scratch
adddress using ${rdaddr}
setenv fdt_buffer 0x60000;
load ${devtype} ${bootpart} ${rdaddr} ${uboot_overlay}
fdt addr ${fdtaddr}
fdt resize ${fdt_buffer}
fdt apply ${rdaddr}
fdt resize ${fdt_buffer}
Regards,
--
Robert Nelson
https://rcn-ee.com/
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/CAOCHtYijR-SeQWV2Cvxey8vXw4uCWJhuNp_1YqSzkTA88rfHDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.