Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New TinyGentoo env-update Problems..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Wed Apr 09, 2008 10:13 pm    Post subject: New TinyGentoo env-update Problems.. Reply with quote

I've been wanting to build a TinyGentoo install for my BBS. So far, everything works well except when I try to do an env-update:

slappy / # env-update
Traceback (most recent call last):
File "/usr/sbin/env-update", line 27, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 6871, in ?
init_legacy_globals()
File "/usr/lib/portage/pym/portage.py", line 6827, in init_legacy_globals
db = create_trees(**kwargs)
File "/usr/lib/portage/pym/portage.py", line 6780, in create_trees
config_incrementals=portage_const.INCREMENTALS)
File "/usr/lib/portage/pym/portage.py", line 902, in __init__
addProfile(os.path.realpath(self.profile_path))
File "/usr/lib/portage/pym/portage.py", line 896, in addProfile
addProfile(parentPath)
File "/usr/lib/portage/pym/portage.py", line 896, in addProfile
addProfile(parentPath)
File "/usr/lib/portage/pym/portage.py", line 889, in addProfile
raise portage_exception.ParseError(
NameError: global name 'parents_file' is not defined

I've been using stage1-x86-uclibc-2006.1.tar.bz2 and the SystemRescueCD.
Back to top
View user's profile Send private message
Januszzz
Guru
Guru


Joined: 04 Feb 2006
Posts: 367
Location: Opole, Poland

PostPosted: Thu Apr 10, 2008 7:24 am    Post subject: Reply with quote

At first, consider using newer uclibc stage, its beta but I used it and works perfectly. You can take it from here:

ftp://gentoo.po.opole.pl/releases/x86/2008.0_beta1/experimental/stage3-x86-uclibc-2008.0_beta1.tar.bz2

This message (your error traceback) is definately because of some kernel option missing - I invested A LOT of time to hunt this, but I couldn't. This error I got while testing and writing this: http://gentoo-wiki.com/Embedded_x86_Gentoo_%28live_CD_with_NTFS_write_support%29

The solution for this is to take config from kernel running from Gentoo Live CD - just remember that kernel on Gentoo CD is different than you use (probably older) so adjust the config accordingly.

While you may be uncertain to do this, I assure this method will work in 100%.

Good luck.
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Thu Apr 10, 2008 3:59 pm    Post subject: Reply with quote

I went with the newer stage. I've been compiling and it's been working quite well.

Thanks.
Back to top
View user's profile Send private message
m_snoby
n00b
n00b


Joined: 22 May 2008
Posts: 4

PostPosted: Sat May 24, 2008 5:10 pm    Post subject: Reply with quote

Januszzz wrote:
At first, consider using newer uclibc stage, its beta but I used it and works perfectly. You can take it from here:

ftp://gentoo.po.opole.pl/releases/x86/2008.0_beta1/experimental/stage3-x86-uclibc-2008.0_beta1.tar.bz2

This message (your error traceback) is definately because of some kernel option missing - I invested A LOT of time to hunt this, but I couldn't. This error I got while testing and writing this: http://gentoo-wiki.com/Embedded_x86_Gentoo_%28live_CD_with_NTFS_write_support%29

The solution for this is to take config from kernel running from Gentoo Live CD - just remember that kernel on Gentoo CD is different than you use (probably older) so adjust the config accordingly.

While you may be uncertain to do this, I assure this method will work in 100%.

Good luck.


Hi,
I decided to take the newer Stage3 package (stage3-x86-uclibc-2008.0_beta2.tar.bz2) and I've attempt to follow the instructions on Embedded_x86_Gentoo, however when I execute the command:
emerge sync && emerge -Du Linux-headers gentoo-sources gcc

I get this log:
<snippet>
xfce-extra/xfwm4-themes/ChangeLog
xfce-extra/xfwm4-themes/Manifest
xfce-extra/xfwm4-themes/metadata.xml
xfce-extra/xfwm4-themes/xfwm4-themes-4.4.2.ebuild

Number of files: 126095
Number of files transferred: 107079
Total file size: 158606077 bytes
Total transferred file size: 158604020 bytes
Literal data: 158604912 bytes
Matched data: 0 bytes
File list size: 3075905
File list generation time: 27.695 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 2470057
Total bytes received: 166834354

sent 2470057 bytes received 166834354 bytes 107392.59 bytes/sec
total size is 158606077 speedup is 0.94
Traceback (most recent call last):
File "/usr/bin/emerge", line 4049, in ?
emerge_main()
File "/usr/bin/emerge", line 4006, in emerge_main
action_sync(settings, trees, mtimedb, myopts, myaction)
File "/usr/bin/emerge", line 2920, in action_sync
settings, trees, mtimedb = load_emerge_config(trees=trees)
File "/usr/bin/emerge", line 3679, in load_emerge_config
trees = portage.create_trees(trees=trees, **kwargs)
File "/usr/lib/portage/pym/portage.py", line 6780, in create_trees
config_incrementals=portage_const.INCREMENTALS)
File "/usr/lib/portage/pym/portage.py", line 902, in __init__
addProfile(os.path.realpath(self.profile_path))
File "/usr/lib/portage/pym/portage.py", line 896, in addProfile
addProfile(parentPath)
File "/usr/lib/portage/pym/portage.py", line 896, in addProfile
addProfile(parentPath)
File "/usr/lib/portage/pym/portage.py", line 889, in addProfile
raise portage_exception.ParseError(
NameError: global name 'parents_file' is not defined
gentoo / #
</snippet>

I've got a brand new install of gentoo 2008 beta2, i haven't done any type of updating to the system. Any suggestions?
Thanks,
Back to top
View user's profile Send private message
m_snoby
n00b
n00b


Joined: 22 May 2008
Posts: 4

PostPosted: Mon May 26, 2008 1:04 pm    Post subject: Reply with quote

I’m not 100% sure how to get the kernel config off of the live CD or where to copy it to in the chroot'ed tree.
I guess I'm pretty much off in the weeds right now on this topic.
Can someone point me to a webpage to help me get past this problem?
Thanks,
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu May 29, 2008 10:58 am    Post subject: Reply with quote

m_snoby wrote:
I’m not 100% sure how to get the kernel config off of the live CD or where to copy it to in the chroot'ed tree.
I guess I'm pretty much off in the weeds right now on this topic.
Can someone point me to a webpage to help me get past this problem?
Thanks,
If I am not wrong, then in /proc you should have the kernel config as a tar.gz or gz file. Just extract it into the unpacked source tree in the chroot environment and then continue as you would do with a normal kernel update.

// SteveB
Back to top
View user's profile Send private message
m_snoby
n00b
n00b


Joined: 22 May 2008
Posts: 4

PostPosted: Sun Jun 01, 2008 3:52 pm    Post subject: Reply with quote

The Stage3 uclibc 2006 that I extracted didn't have any kernel sources in them /usr/src, that i could find, ( I'm sure I'm going to get flamed for this)l, but where in the chroot should I extract the config.gz file to?
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sun Jun 01, 2008 10:19 pm    Post subject: Reply with quote

m_snoby wrote:
The Stage3 uclibc 2006 that I extracted didn't have any kernel sources in them /usr/src, that i could find,
This is normal. The stages do not have the kernel sources included.

m_snoby wrote:
( I'm sure I'm going to get flamed for this)
You have a wrong impression of the Gentoo community. I allow myself to write in the name of our community telling you that we don't flame anyone here.

m_snoby wrote:
l, but where in the chroot should I extract the config.gz file to?
First you need to install/emerge any of the available kernel sources and then you extract the config.gz into /usr/src/linux/ directory.

// SteveB
Back to top
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Mon Jul 07, 2008 11:37 pm    Post subject: Reply with quote

Januszzz wrote:
At first, consider using newer uclibc stage, its beta but I used it and works perfectly. You can take it from here:
ftp://gentoo.po.opole.pl/releases/x86/2008.0_beta1/experimental/stage3-x86-uclibc-2008.0_beta1.tar.bz2


umm..., does anybody know where these magic 2008 uclibc stages can be found now that 2008.0 has gone live? none of the mirrors have the beta1 or beta2 links anymore, and i cant find something like, stage3-x86-uclibc-2008.0.tar.bz2 and neither can google :(

if someone could show where one of these is, or offer their previous download of one of the beta builds, that would be awesome ;)

~quickshiftin
Back to top
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Wed Jul 09, 2008 7:00 am    Post subject: Reply with quote

to answer my own question,

http://gentoo.mirrors.pair.com/experimental/x86/embedded/stages/

:P

~quickshiftin`
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum