Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5448 closed defect (wontfix)

Chroot to older root filessytem does not work

Reported by: amain@… Owned by: developers
Priority: normal Milestone: Kamikaze 8.09.2
Component: kernel Version: Trunk
Keywords: chroot mipsel usb ext3 Cc:

Description

chrooting from root filesystem build with trunk - revision 16670, to old 8.09.1 root filesystem does not work. The chroot command just hangs. (ctrl-c works)

  1. Build bcrm47xx flash with trunk, revision 16670, kernel 2.6.28.10
  1. Flash router
  1. opkg install usb-storage, ext3, etc...
  1. Mount usb-disk with 8.09.1(2.6.25) root filesystem
  1. chroot to the usb-disk mount-point
  • chrooting from 8.09.1 to trunk, r16670 works
  • chrooting from 8.09.1 to debian MIPSEL works
  • chrooting from trunk, r16670 to 8.09.1 does not work
  • chrooting from trunk, r16670 to debian MIPSEL does not work

Using a trunk - r16670 with kernel 2.6.28.10, with USB-storage / ext3 support build in, will not start init. It hangs where the init message should be visible on the serial console.

  • init from trunk to trunk rootfs does not work
  • init from trunk to 8.09.1 does not work
  • init from trunk to debian MIPSEL does not work

Probably not many people doing chrooting and booting from USB, but I would like to know why this doesn't work anymore / what I need to change. Thanks in advance.

Attachments (2)

strace-chroot.txt (3.5 KB) - added by amain@… 8 years ago.
strace of failing chroot
cpuinfo (463 bytes) - added by amain@… 8 years ago.
cpuinfo

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by amain@…

strace of failing chroot

Changed 8 years ago by amain@…

cpuinfo

comment:1 Changed 8 years ago by KanjiMonster

changing root to older revisions can not work since a recent commit broke compatibility by disabling the math-emu in the kernel. As this is a openwrt local change, changing to debian does not work anymore either, see r16605.
But, if you are building trunk yourself, you can reenable the math-emu in kernelconfig, and after that chrooting to older versions should work again.

comment:2 Changed 8 years ago by jow

  • Resolution set to wontfix
  • Status changed from new to closed

You need to enable in-kernel math emulation.

comment:3 Changed 8 years ago by amain@…

Thank you for your responses! I will give this a try!

comment:4 Changed 8 years ago by amain@…

Thanks a lot...it works!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.