Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.0.1 hits 4MB limit on Pegasos II kernels
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rchan00
n00b
n00b


Joined: 30 Jun 2004
Posts: 29

PostPosted: Tue Jul 19, 2005 8:33 am    Post subject: GCC 4.0.1 hits 4MB limit on Pegasos II kernels Reply with quote

Just a note to you Pegasos II owners that gcc4 is increasing the image size
significantly.

In my test kernel config 3.4.3 generates 0x3DXXXX bytes and 4.0.1 generates 0x417XXX
bytes (for arch/ppc/boot/vmlinux.bin). This will bite if you generate kernels
for the Pegasos II because of a call to gunzip(...) in chrpmain.c which sets a 4MB
buffer. A workaround is to increase the size of the buffer in the gunzip() call.



(My test kernel is the Fedora Core 4 PPC UP kernel config and sources; this is a highly
modular kernel config)
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Sat Aug 06, 2005 11:06 pm    Post subject: Reply with quote

Thank you very much! You saved my day! :-)
Back to top
View user's profile Send private message
rchan00
n00b
n00b


Joined: 30 Jun 2004
Posts: 29

PostPosted: Sun Aug 07, 2005 3:12 am    Post subject: ...and new yaboot may help... Reply with quote

Debian, Fedora rawhide have yaboot patches to allow Pegasos II
to boot vmlinux+initrd combinations and on ext2, so no need for vmlinuz...

Upstream probably won't take the patches as they work around
OF bugs (and the Pegasos II OF update is in the works but no ETA)...but
at least it provides another booting method if all else fails.

Glad to be of help!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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