[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
natty has seen the end of its life and is no longer receiving any updates. Marking the natty task for this ticket as Won't Fix. ** Changed in: gcc-4.5 (Ubuntu Natty) Status: Confirmed = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/683683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
** Changed in: gcc-linaro Assignee: (unassigned) = Michael Collison (michael-collison) ** Changed in: gcc-linaro Status: Incomplete = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/683683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gcc-4.5 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/683683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gcc-4.5 (Ubuntu Natty) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/683683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
** Changed in: gcc-linaro Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
I don't have the right filesystem in front of me to debug, but this recipe should work for debugging PID 1 with gdb (assuming you have a platform already set up with a populated root filesystem etc.): Connect a keyboard and monitor before booting. Boot with rdinit=/bin/sh console=appropriate serial console device mkdir /proc /sys /mnt mount -ntproc proc /proc mount -ntsysfs sysfs /sys mknod -m0666 /dev/null c 1 3 udevd --daemon # wait a moment udevadm trigger # wait a moment ps kill pid of parent udevd process mount -oro -text4 /dev/mmcblk0p2 /mnt LD_LIBRARY_PATH=/mnt/lib:/mnt/usr/lib:/lib; export LD_LIBRARY_PATH for x in 9 10 11 12; do /mnt/usr/bin/setsid /mnt/bin/bash /dev/tty$x /dev/tty$x 21 done # now you have some usable ttys # on one of them, type: /mnt/usr/bin/gdb attach 1 tcatch exec continue # one the console, type exec /init # /bin/sh should get exec'd as PID 1, and gdb will stop it # you'll probably have to load the relevant debug symbols manually etc. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
On 6 Dec 2010, at 03:33, Michael Hope 683...@bugs.launchpad.net wrote: I'm a bit of a initrd newbie so I wrote up the steps in testing under QEMU here: https://wiki.linaro.org/MichaelHope/Sandbox/DebuggingOnInitrd Great resource Michael, thanks for putting it together. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
@dave, could you open a new bug for klibc ? this bug is not klibc related. busybox-initramfs links against glibc and given that busybox' exec behavior changes if we use -marm or not this one is rather a toolchain one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
@michael,if you only want to debug a running initrd you dont need to repack it, just boot with the break= option (some of the valid values are: top, premount, bottom). that way you can get a shell inside the initrd, do your debugging tasks and go on booting with ctrl-D note though that in case of run-init this wont help a lot, since run-init can only be started by pid 1 (break spawns a subshell with new pid) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
@ogra, there is a bug open on klibc -- the one I referenced above: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/527720 Does it need to be prodded? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
@michael - rdinit=/bin/sh is highly use for initramfs debugging too if you're not aware -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
@dave, ah, thanks, yeah, we should retarget it if that patch is complete now (note that this bug is just exposing a busybox issue, the run-init error is apparently just a side effect of exec misbehaving if busybox is built with -marm) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
I'm a bit of a initrd newbie so I wrote up the steps in testing under QEMU here: https://wiki.linaro.org/MichaelHope/Sandbox/DebuggingOnInitrd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
** Summary changed: - run-init on omap3, omap4 in natty dies with run-init: Unknown error 17718852 + run-init on omap3, omap4 in natty dies if busybox is built with -marm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 683683] Re: run-init on omap3, omap4 in natty dies if busybox is built with -marm
klibc has some outstanding ARM/Thumb interworking issues ... can someone please apply the patch from this bug: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/527720 (thumb2 porting issues identified: klibc uses mov.*pc) ... and see if it makes any difference? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/683683 Title: run-init on omap3, omap4 in natty dies if busybox is built with -marm -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs