On 10/1/2013 5:13 PM, Bit Pusher wrote: > Trying to run instructions by Shabaz ( > http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/05/22/bbb--working-with-the-pru-icssprussv2) > > on compiling device tree. I'm on Linux ubuntu-armhf 3.8.13-bone20 #1 SMP > Wed May 29 06:14:59 UTC 2013 armv7l armv7l armv7l GNU/Linux (previously I > went all the ways through compiling a kernel version > > ubuntu-13.04-minimal-armhf-2013-08-25.tar.xz to the point of booting it, > but I was unable to get any ports open (usb0 or eth0) from host despite > editing both /etc/network/interfaces and /etc/resolve.conf on sd card prior > to booting and couldn't find a way around). On the current 3.8.13-bone20 > based on an image download, I got eth0 working but not usb0. Anyways, am > now stuck again at: > > > /boot/dtbs\> sudo dtc -I dtb -O dts am335x-boneblack.dtb > > am335x-boneblack.dts_orig > > -bash: am335x-boneblack.dts_orig: Permission denied > > any ideas? Thanks.
The redirection happens before you sudo. Just compile the dtc as a standard user, then use sudo to copy the file to where you want it. ...or, coerce the redirection to occur after the sudo, perhaps with something like: sudo -A su -c "dtc -I dtb -O dts am335x-boneblack.dtb > am335x-boneblack.dts_orig" -- Charles Steinkuehler [email protected]
signature.asc
Description: OpenPGP digital signature
