My image should already contain gcc-4.1.1-r1 as far as I remember.. Might wanna try that out..

Okay, I have no idea what squawkeer's image is like, is it dependant on openslug or what..
But you can't hold kernel in initrd or hd and expect nslu2 to load it from there..
Kernel must be uploaded with upslug2 tool.. Check it's command line options..

I would keep using openslug instead of trying my own kernel, it's already optimized for nslu2 and it's known to work..

But I realize that you are missing some modules and need them..
So don't compile a new kernel..

Get kernel that was used with openslug, then download gcc from openslug ipk repository, unpack it somewhere and
use that gcc to compile modules you are missing (modules need to be compiled with same version of gcc that was used for kernel).. That's how I compiled spca5xx module (tested it with creative's webcam, it worked just great)

I would suggest that method, I once tried to use my own kernels too but I just was able to render my slug to useless piece of plastic, so that's why I decided to stick with kernel provided by nslu2-linux dev team. If you do your own kernel, you need to get rid of openslug propably too, and hardcode root=/dev/sda1 to kernel..

Sounds simple and so on, but I didn't like this way, as using upslug allows me to have root=/dev/sda1 or /dev/sda2 or what ever I want.. If you want to publish your work, I wouldn't recommend forcing end-users to use /dev/sda1..
It might already be used for NTFS partition full of data and there's nowhere space enough for saving all that stuff

Sorry guys, 2 long and boring messages.. Must be because I'm so tired..

My whole system now is compiled with gcc 4.1.1-r3, with distcc running on my desktop also. The only problem is that I am still using the kernel from squawker, which can be found in the first page of this thread. The kernel is 2.6.14.7, and compiled with gcc 3.4.5.

Although the system is working so far, with rTorrent, apache, php, mysql, samba, I am still afraid that something bad would happen if I don't have an updated kernel. Squawker made the kernel following chilla's guide. But the guide has become so outdated that many of the files are not accessable anymore.

Can you show me how to compile Openslug kernel with gcc 4?

BTW, my slug, de-underclocked, has never crashed my hard drive. I don't remember it has crashed at all.

My whole system now is compiled with gcc 4.1.1-r3, with distcc running on my desktop also. The only problem is that I am still using the kernel from squawker, which can be found in the first page of this thread. The kernel is 2.6.14.7, and compiled with gcc 3.4.5.

Although the system is working so far, with rTorrent, apache, php, mysql, samba, I am still afraid that something bad would happen if I don't have an updated kernel. Squawker made the kernel following chilla's guide. But the guide has become so outdated that many of the files are not accessable anymore.

Can you show me how to compile Openslug kernel with gcc 4?

BTW, my slug, de-underclocked, has never crashed my hard drive. I don't remember it has crashed at all.

bxwen

To compile kernel for openslug with gcc4.. You would need to compile openslug. Go to nslu2-linux, read information about MasterMakefile, join their yahoo group, there's a lot of information about next version of openslug that will make many things better than now.. Get to their irc channel ( irc.freenode.net #nslu2-linux and #openslug or #slugos ) people there might be able to help you.. Current (3.10 beta) openslug kernel is compiled with 3.x.x version, but is better than squawker's kernel. Squawker's image won't work "out of the box" with openslug, you need to do what my image does for openslug ( was it in /etc/init.d/nslu2-init if I remember correctly? )

This should get you a nice start.. And you DON'T want to compile MasterMakefile on your slug.. It takes ages even on PC Good luck.

To compile kernel for openslug with gcc4.. You would need to compile openslug. Go to nslu2-linux, read information about MasterMakefile, join their yahoo group, there's a lot of information about next version of openslug that will make many things better than now.. Get to their irc channel ( irc.freenode.net #nslu2-linux and #openslug or #slugos ) people there might be able to help you.. Current (3.10 beta) openslug kernel is compiled with 3.x.x version, but is better than squawker's kernel. Squawker's image won't work "out of the box" with openslug, you need to do what my image does for openslug ( was it in /etc/init.d/nslu2-init if I remember correctly? )

This should get you a nice start.. And you DON'T want to compile MasterMakefile on your slug.. It takes ages even on PC Good luck.

Jake:

I tried your tar ball and encountered two problems:

1. hwclock freezes. I have to copy hwclock from the openslug image, but the syntax doesn't really match. I'll try to edit /etc/init.d/clock to correct the syntax.

2. in the nslu2init, there is a line copy IxNpeMicrocode.dat to /dev/ixNpe. It complains that /dev/ixNpe doesn't exist, although there is a node under /dev/ called ixNpe. So I didn't get network connection. Any idea how to correct this problem?

I got the information from serial port. I have to edit /etc/inittab to enable s0.

since chilla's howto helped me a lot with installing gentoo on my slug, I took some efforts and continued the english version, which now includes the milestones. My small kernel-howto is now also integrated into the wiki:
http://gentoo-wiki.com/Gentoo_on_NSLU2

HTH,

-XoF-

Hi XoF:

Would you please update your kernel how to? I cannot follow it. Some links are not accessable. Thanks.

1. hwclock freezes. I have to copy hwclock from the openslug image, but the syntax doesn't really match. I'll try to edit /etc/init.d/clock to correct the syntax.

2. in the nslu2init, there is a line copy IxNpeMicrocode.dat to /dev/ixNpe. It complains that /dev/ixNpe doesn't exist, although there is a node under /dev/ called ixNpe. So I didn't get network connection. Any idea how to correct this problem?

I got the information from serial port. I have to edit /etc/inittab to enable s0.

Now everything runs perfect:
1. a simbolic link rtc->rtc0 solved the hwclock problem
2. as you suggested I just switched to the openslug kernel, and copied over the ixp400 and ixp400_eth modules. No microcode needed.
Thanks a lot.
bxwen

My image should already contain gcc-4.1.1-r1 as far as I remember.. Might wanna try that out..

Okay, I have no idea what squawkeer's image is like, is it dependant on openslug or what..
But you can't hold kernel in initrd or hd and expect nslu2 to load it from there..
Kernel must be uploaded with upslug2 tool.. Check it's command line options..

i know a bunch of people had problems with their slug where after applying jake's image, eth2 was showing instead of eth0. i've had the same problem and i've fixed it by unmerging udev 103 and removing all the udev files from /etc. Re-emerging udev 103, rebooted and eth0 now shows. hope this helps someone.

i know a bunch of people had problems with their slug where after applying jake's image, eth2 was showing instead of eth0. i've had the same problem and i've fixed it by unmerging udev 103 and removing all the udev files from /etc. Re-emerging udev 103, rebooted and eth0 now shows. hope this helps someone.

Yeah, I would had also tried to fix this but as I wasn't able to replicate this problem with my slug.. It was kind of impossible..
How about someone would fix this into a clean installation of my gentooSlug and put it somewhere so I could update my slug so it would work on slugs from both generations..?

Yeah, I would had also tried to fix this but as I wasn't able to replicate this problem with my slug.. It was kind of impossible..
How about someone would fix this into a clean installation of my gentooSlug and put it somewhere so I could update my slug so it would work on slugs from both generations..?

I never had this problem either. As suggested by you I am now using the original openslug so it is eth0 always.

i know a bunch of people had problems with their slug where after applying jake's image, eth2 was showing instead of eth0. i've had the same problem and i've fixed it by unmerging udev 103 and removing all the udev files from /etc. Re-emerging udev 103, rebooted and eth0 now shows. hope this helps someone.

I have been able to duplicate the issue on my two slugs. Interestingly, at one point, one of them was showing eth3....

In any case, your fix worked for me in both cases..... MANY THANKS!_________________Red
-----
Registered Linux User #16422,
Oldest Registered machine #5166

ok, never mind, i got it up already but im having problems getting iptables installed, it is asking me for the kernel sources or the kernel module however there is no sources in /usr/src does some one know a way to do this without installing gentoo-sources ? if not, do i use gentoo-sources or some other sources for the kernel, do i have to patch it afterwards ?

how do i check if its using true-usb-2.0 (does it mean anything saying it his way?)

even then, <if possible> can u try connecting the usb-drive to a normal pc and checking hdparm. i am sure u will get a lot higher. i want to understand why. i dont need a fast disk access, but, would be nice to know the limitation

Does anyboy know how to change the default 115000 baud setting on bootup.
I attached a lcd display onto the serial port, but it can not handle 115000 it can only handle up to 57000 and the default is 9600.

I there a way to change the bootup command to reflect a slower baudrate?

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-libs/uclibc-0.9.28.1/temp/build.log'.

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-libs/uclibc-0.9.28.1/temp/build.log'.

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-libs/uclibc-0.9.28.1/temp/build.log'.

kk, i did a stage4 backup and decided to start from scratch. if i can duplicate this error this time i will try this, if not i will try to narrow down what caused this problem so that it can be documented._________________http://orvtech.comhttp://www.linuxevolution.org

i know a bunch of people had problems with their slug where after applying jake's image, eth2 was showing instead of eth0. i've had the same problem and i've fixed it by unmerging udev 103 and removing all the udev files from /etc. Re-emerging udev 103, rebooted and eth0 now shows. hope this helps someone.

It looks like /etc/udev/rules.d/70-persistent-net.rules contains several rules like:

The copy of the file found in jake's image already had eth0 and eth1 defined, so when I started gentoo on my NSLU2, it added a new line for it's MAC address and assigned it eth2. To fix this, you can either reorganize the eth assignments, or just delete the file, and udev 103 will use /etc/udev/rules.d/persistent-net-generator.rules to generate a new 70-persistent-net.rules on the next reboot. I don't know if this will work on older udev builds.