On 12/26/2014 5:47 PM, Thorsten von Eicken wrote:
> I don't see how to make this stuff work... I used dtb-rebuilder to produce
> the provided DTB with ttyO4:
>
>> # ls -ls /boot/dtbs/`uname -r`/*tty*
>> 88 -rw-r--r-- 1 root root 86762 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-boneblack-ttyO1.dtb
>> 88 -rw-r--r-- 1 root root 86762 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-boneblack-ttyO2.dtb
>> 84 -rw-r--r-- 1 root root 85197 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-boneblack-ttyO4.dtb
>> 84 -rw-r--r-- 1 root root 85197 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-boneblack-ttyO5.dtb
>> 84 -rw-r--r-- 1 root root 85077 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-bone-ttyO1.dtb
>> 84 -rw-r--r-- 1 root root 85077 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-bone-ttyO2.dtb
>> 84 -rw-r--r-- 1 root root 85077 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-bone-ttyO4.dtb
>> 84 -rw-r--r-- 1 root root 85077 Dec 26 21:37
>> /boot/dtbs/3.14.4.1-bone-armhf.com/am335x-bone-ttyO5.dtb
>
> I edited uEnv.txt to set the dtb:
>
>> # cat /boot/uboot/uEnv.txt
>> dtb=am335x-boneblack-ttyO4.dtb
Didn't you say you're using a BeagleBone (White) and not the 'Black?
>> uenvcmd=run findmmc1; run findmmc0; if run loaduimage; then run loadfdt;
>> run mmcboot; fi;
>> optargs=fixrtc capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
>> findmmc1=if test $board_name = A335BNLT; then setenv mmc1 1; else setenv
>> mmc1 0; fi
>> findmmc0=setenv mmcdev 0; mmc dev ${mmcdev}; if mmc rescan; then setenv
>> mmc0 1; else setenv mmc0 0; fi
>> mmcroot=/dev/mmcblk0p2 rw
>> loadfdt=ext4load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
>> loaduimage=if ext4load mmc 0:2 ${loadaddr} /boot/zImage; then setenv
>> mmcdev 0; else setenv mmcdev 1; if test $mmc0 = 1; then setenv mmcroot
>> /dev/mmcblk1p2 rw; fi; ext4load mmc 1:2 ${loadaddr} /boot/zImage; fi
>
> I don't see any /dev/ttyO4 appearing after a reboot:
>
>> # ls /dev/ttyO*
>> /dev/ttyO0 /dev/ttyO1
>
> I don't see how to figure out whether uboot loaded the proper dtb, dunno
> where that ends up in any log file. Dunno how to troubleshoot this any
> further.
You can poke around in /proc/device-tree/... to see what's in the "live"
device tree. That should help figure out if you're loading the expected
file.
Also, if you've got a USB serial cable, you can pause the startup
sequence and poke around a bit with U-Boot to see what dtb file it's
trying to load.
--
Charles Steinkuehler
[email protected]
--
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].
For more options, visit https://groups.google.com/d/optout.