02:15.06 | *** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who) |
05:54.28 | *** join/#elinux linac (n=lin@117.24.2.98) |
06:54.45 | *** join/#elinux emil|k (i=emil@e179235235.adsl.alicedsl.de) |
08:11.43 | *** join/#elinux lyakh (n=lyakh@p57BD2536.dip0.t-ipconnect.de) |
09:50.08 | *** join/#elinux emil|k (i=emil@e179235235.adsl.alicedsl.de) |
11:32.26 | *** join/#elinux criccaSalentina (n=10408F82@d83-184-183-167.cust.tele2.it) |
11:32.34 | *** part/#elinux criccaSalentina (n=10408F82@d83-184-183-167.cust.tele2.it) |
12:10.03 | *** join/#elinux GPSFan (n=kenm@12.10.255.246) |
16:21.57 | *** join/#elinux dijenerate (n=dijenera@72.22.128.194) |
18:03.04 | *** join/#elinux Redhatter (n=vk4fsjl@2001:388:f000:0:0:0:0:279) |
19:20.16 | *** join/#elinux pleemans (n=peter@d51A5E76A.access.telenet.be) |
19:50.22 | *** join/#elinux GPSFan (n=kenm@12.10.255.246) |
23:23.08 | *** join/#elinux ashes (n=ashes@modemcable123.78-80-70.mc.videotron.ca) |
23:26.57 | *** join/#elinux gth (n=geir@195.0.160.170) |
23:33.02 | gth | Hello, I have an odd problem with a PXA255 based board. I created a small system from scratch some years ago, with a linux 2.4 kernel/uclibc/busybox. Now I have been told to port the system to a 2.6 kernel, and update gcc, etc. I have used buildroot to create a new toolchain, and ported linux 2.6.25.x to the system. Everything looks ok, and the kernel boots and runs the old userspace just fine. |
23:33.43 | gth | Next is getting a new userspace. I am using buildroot to build a complete user space, but without luck |
23:34.21 | gth | The kernel halts with: "Failed to execute /bin/sh. Attempting defaults..." |
23:35.06 | gth | I have checked the root file system and everything looks ok |
23:35.35 | gth | I have tried every combination of softfloat/hardware floting point |
23:36.07 | gth | I have checked that libgcc is in place (I stuggled with that one last time I did this) |
23:36.51 | gth | I am sure the kernel finds /bin/sh, but for some reason it fails to run |
23:37.27 | gth | Any ideas for what to look for? |
23:37.30 | ali_as | Check the file info to see if it's been compiled for the right cpu/OS enviroment? |
23:38.28 | gth | Buildroot build both the toolchain (used for the kernel) and userspace in one go, so I would expect the toolchain to be ok .. |
23:40.16 | gth | #file busybox |
23:40.17 | gth | busybox: ELF 32-bit LSB executable, ARM, version 1, statically linked, stripped |
23:40.21 | gth | looks ok |
23:40.51 | ali_as | And it's a little endian chip? |
23:41.17 | gth | Yes, the intel xscale architecture is LE |
23:41.22 | gth | arm-linux-objdump -f busybox |
23:41.22 | gth | busybox: file format elf32-littlearm |
23:41.22 | gth | architecture: arm, flags 0x00000102: |
23:41.22 | gth | EXEC_P, D_PAGED |
23:41.22 | gth | start address 0x00008730 |
23:41.37 | ali_as | Is there a symbolic link for sh? |
23:42.40 | gth | yes, it is in place |
23:44.11 | gth | And since bb is statically linked, all dependencies should be ok ... |
23:44.52 | ali_as | I think you need someone who isn't me, but last dumb question - bb has been built with sh support? |
23:45.56 | gth | checks /bin/sh support |
23:48.26 | gth | hmm. bb is build with a shell called ash. |
23:49.20 | gth | FEATURE_SH_IS_ASH=y so look ok |
23:51.10 | gth | ali_as: those questions are not dumb.... |
23:54.28 | ali_as | It's mounting the root filesystem ok? |
23:54.59 | gth | It looks ok from the console messages |
23:55.27 | gth | and the kernel boots the old userspace ok |
23:55.41 | gth | with the same kernel messages |
23:56.12 | ali_as | Ok and you have /dev/console and /dev/null present? |
23:57.04 | ali_as | Aparently these should have been generated by buildroot, but you may need to be root for that to be successful. I'm flicking through some posts with the same error. |
23:58.02 | gth | yes, but I do get a: "Warning: unable to open an initial console." before the "Failed to execute /bin/sh." message |
23:58.41 | gth | console is char, major=5 minor=1 |
23:58.52 | gth | and it is the same on the old userspace |