Reply
Thread Tools
Posts: 82 | Thanked: 11 times | Joined on Oct 2009
#21
aaaaaaand I'm lost..... but it makes me excited that people are already messing around so intently! go N900 and complete freedom (or the pursuit of it)!!
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#22
Originally Posted by 白い熊 View Post
Is there a rootfs for download?
There's the SDK one: http://repository.maemo.org/stable/fremantle/armel/ .
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#23
Is there some special way of chrooting into this rootfs?

If I just bindmount dev and proc into the rootfs, then chroot into it and try to apt-get install some packages, I get:
/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such file or directory
Can not write log, openpty() failed (/dev/pts not mounted?)
Segmentation fault


I'm trying to search on chrooting onboard N900, but not much I found.
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#24
The /dev/pts thingie happens on desktop too. You have to bind mount /dev/pts or rbind mount /dev.
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#25
I tried both, same error.

BTW, I think the segfault is not because of this pts thing, I seem to remember that I could operate some chroots on other devices while getting the pts error, however they'd work.

But what's wrong here?
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#26
Well, time to experiment
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#27
Yep,

I've been trying for the past couple of hours, so far couldn't get it to work. Maybe someone here is doing it, so would know what the prob is.
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#28
Originally Posted by javispedro View Post
Well, time to experiment
So...

Only took a couple of hours of beating my head on the table, and the answer has been gotten

You need to do both, first rbind mount /dev then bind mount pty, duh...

Oh man...
 

The Following User Says Thank You to 白い熊 For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#29
Ohhh, I can chroot fine, how do I change user in the chroot, wanna change to regular user.

The user exists in the chroot, but the su command is missing, and no login package to be installed, WTF?
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#30
OK, brute force, just copy over the busybox from /bin/

Nasty, but works...
 

The Following User Says Thank You to 白い熊 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:49.