From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Tue, 5 Jan 2016 12:08:24 +0800 Subject: [U-Boot] Pull request: u-boot-net In-Reply-To: <20160104142425.GC4093@bill-the-cat> References: <20160102170929.GW4093@bill-the-cat> <20160104034659.GA4093@bill-the-cat> <20160104142425.GC4093@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, On Mon, Jan 4, 2016 at 10:24 PM, Tom Rini wrote: > On Mon, Jan 04, 2016 at 04:31:05PM +0800, Bin Meng wrote: > [snip] >> $ ./install.sh -d /share/toolchain/eldk-5.6 -s toolchain -r - -a i686 >> powerpc-4xx >> *** Installing ./targets/powerpc-4xx/eldk-eglibc-i686-powerpc-toolchain-5.6.sh >> into /share/toolchain/eldk-5.6/powerpc-4xx >> tar: ./sysroots: Cannot mkdir: Read-only file system > [snip] >> Lots of 'Cannot mkdir: No such file or directory' message are shown on >> the console. I am pretty sure I have RW rights on the >> /share/toolchain/eldk-5.6 directory. Anything I am missing here? > > Well, please confirm that you can write to /sysroots/ :) IIRC the > installer doesn't invoke sudo by itself, btw.. The install.sh prompts ./sysroots/, not /sysroots/. ./sysroots/ should point to the installation root where I definitely have the write permission. Today I switched to another machine with a Ubuntu 12.04, and with the same iso and command I installed ELDK successfully without any error message like "Cannot mkdir: Read-only file system". But when I used the ELDK toolchain to build U-Boot iocon, I got: /buildarea1/bmeng/eldk-5.6/powerpc-4xx/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-linux-ld.bfd -m32 -melf32ppclinux -g -Ttext 0x40000 -o examples/standalone/hello_world -e hello_world examples/standalone/hello_world.o examples/standalone/libstubs.o -L . -lgcc /buildarea1/bmeng/eldk-5.6/powerpc-4xx/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-linux-ld.bfd: cannot find -lgcc make[2]: *** [examples/standalone/hello_world] Error 1 make[1]: *** [examples/standalone] Error 2 make: *** [examples] Error 2 It did not help whether I just source "environment-setup-ppc440e-linux" in the ELDK installation tree, or just simply "export CROSS_COMPILE=path/to/ELDK/toolchain" before building U-Boot. Regards, Bin