Copy the gzipped SD-Card image to the rootfs of the SD-Card:
gzip sd.hdimg cp sd.hdimg.gz $SD_MOUNT
On the target:
dd if=sd.hdimg | gunzip | dd of=/dev/mmcblk1
Alternative: copy the running image from SD-Card to the MMC:
dd if=/dev/mmcblk0 of=/dev/mmcblk1 bs=1M count=400
Change the DIP-Switches to boot from eMMC.
Hit any key to stop autoboot: 0 U-Boot# mmc dev 1 mmc1(part 0) is current device U-Boot# set bootpart 1:1 U-Boot# run loaduimage reading /uImage 3102000 bytes read in 351 ms (8.4 MiB/s) U-Boot# run mmcboot Booting from mmc ...
Boot-Order: eMMC, SD
1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|
ON | ON | OFF | OFF | OFF |
Boot-Order: SD, SPI-NOR
1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|
OFF | OFF | OFF | ON | OFF |
Boot-Order: SPI-NOR, eMMC
1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|
ON | ON | ON | OFF | OFF |
to configure the TI Kernel use the following command
ptxdist menuconfig kernel-ti
There are two RTC's on the TQMa335x:
hwclock -w hwclock -f /dev/rtc0 -w
hwclock -f /dev/rtc0 --show
hwclock -w hwclock -f /dev/rtc1 -w
hwclock -f /dev/rtc1 --show
Devicetree can be edit with the fdt commands under U-Boot.
1) At first the fdt file has to be loaded from the current boot medium (mmc) into RAM.
U-Boot# run loadfdt
2) Next step is to set the predefined U-Boot environment variable fdtaddr through the fdt addr command.
U-Boot# fdt addr $fdtaddr
3) Afterwards the size of the fdt has to be increased (to the next 4K divider) in order to have some space for modifications. This is simply done by entering:
U-Boot# fdt resize
4) List device in the tree you want to change to have a look at the default settings.
5) To modify a value of a propertie use the fdt set command.
U-Boot# fdt set <path> <property> <value>
6) Optional: If you want to save your modified Devicetree back to mmc you'll have to run the following command:
U-Boot# fatwrite mmc $bootpart $fdtaddr $fdtfile <totalsize>
You can find out <totalsize> of the modified fdt by entering the command fdt header
Otherwise you can boot your module with the changed Devicetree right after the modification.