On Wed, Jan 21, 2015 at 7:53 AM, Ziqiang Patrick Huang < [email protected]> wrote:
> Hi Olof, > > Thanks so much for your suggestion ! I followed the instructions you > poitnted to me and were able to build musl toolchain and also boot linux in > or1ksim. I noticed there were 2 versions of gccs: or1k-linux-musl-gcc & > or1k-musl-linux-gcc. I'm not sure which one is for compiling linux > application, so I tried using both of them to compile a simple hello c > program and put them under initramfs. However when I tried to run them > inside the booted linux, neither were able to run. I assume I can just do > ./hello But got "bin/sh: ./hello: not found". > > You will need to copy the dynamic libraries from musl into your initramfs (at the very minimum, you'll at least need libc.so). Regarding or1k-musl-linux-gcc vs or1k-linux-musl-gcc, I had never noticed the or1k-musl-linux-gcc, but you are right, it's there. It's however just a symlink to or1k-linux-musl-gcc. Stefan
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
