Redwood-6 and 2.6
Hi!
Redwood-6 support in 2.6 is broken. I subscribed to this list just to know if somebody is working on it? 2.4.30 works ok.
If nobody is working on it please just tell me what is wrong and I would try to figure out:
---
CC arch/ppc/syslib/ppc4xx_dma.oarch/ppc/syslib/ppc4xx_dma.c: In function ppc4xx_enable_burst': arch/ppc/syslib/ppc4xx_dma.c:638: error: DMA_CTC_BTEN' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_dma.c:638: error: (Each undeclared identifier is reported only once arch/ppc/syslib/ppc4xx_dma.c:638: error: for each function it appears in.) arch/ppc/syslib/ppc4xx_dma.c: In function ppc4xx_disable_burst': arch/ppc/syslib/ppc4xx_dma.c:657: error: DMA_CTC_BTEN' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_dma.c: In function ppc4xx_set_burst_size': arch/ppc/syslib/ppc4xx_dma.c:682: error: DMA_CTC_BSIZ_MSK' undeclared (first use in this function) make[1]: *** [arch/ppc/syslib/ppc4xx_dma.o] Error 1
make: *** [arch/ppc/syslib] Error 2
---
In 2.4 'DMA_CTC_BTEN' does not exists.
Thanks.
-otto
Quoted 5 lines · Otto Solares
Hi!
Redwood-6 support in 2.6 is broken. I subscribed to this list just to know if somebody is working on it? 2.4.30 works ok.
I went ahead and fixed this compile issue in the following patch:
http://ozlabs.org/pipermail/linuxppc-embedded/2005-August/019782.html
-Matt
Quoted 9 lines · Matt Porter
Quoted 5 lines · Otto Solares
Hi!
Redwood-6 support in 2.6 is broken. I subscribed to this list just to know if somebody is working on it? 2.4.30 works ok.
I went ahead and fixed this compile issue in the following patch:
http://ozlabs.org/pipermail/linuxppc-embedded/2005-August/019782.html
Excellent!, it compiles now.
Now, when 'make znetboot' in 2.4 there was a zImage.embedded, is the same thing as zImage.treebot that appears now in 2.6?
Thank you.
-otto
Quoted 8 lines · Otto Solares
Quoted 7 lines · Matt Porter
Quoted 5 lines · Otto Solares
Hi!
Redwood-6 support in 2.6 is broken. I subscribed to this list just to know if somebody is working on it? 2.4.30 works ok.
Quoted 7 lines
Quoted 2 lines
I went ahead and fixed this compile issue in the following patch:
http://ozlabs.org/pipermail/linuxppc-embedded/2005-August/019782.htmlExcellent!, it compiles now.
Now, when 'make znetboot' in 2.4 there was a zImage.embedded, is the same thing as zImage.treebot that appears now in 2.6?
Yes, this is the image that boots on the stock OpenBIOS firmware. It has the standard "tree" header on it.
-Matt
Quoted 6 lines · Matt Porter
Quoted 2 lines · Otto Solares
Now, when 'make znetboot' in 2.4 there was a zImage.embedded, is the same thing as zImage.treebot that appears now in 2.6?
Yes, this is the image that boots on the stock OpenBIOS firmware. It has the standard "tree" header on it.
Thank you, just one more thing, do you know if the smc91x driver works for PPC? In 2.4 I had to set:
CONFIG_SMC91111=yCONFIG_SMC91111_ADVANCED=yCONFIG_SMC91111_BYTE_SWAP=y
Looking in the driver itself I think it was developed for ARM.
I am unable to netboot, I don't have serial console so my only access to this little box (MediaMVP) is the net. Thank you.
-otto
Quoted 10 lines · Otto Solares
Quoted 6 lines · Matt Porter
Quoted 2 lines · Otto Solares
Now, when 'make znetboot' in 2.4 there was a zImage.embedded, is the same thing as zImage.treebot that appears now in 2.6?
Yes, this is the image that boots on the stock OpenBIOS firmware. It has the standard "tree" header on it.
Thank you, just one more thing, do you know if the smc91x driver works for PPC?
I added smc91111 support for redwood5 and redwood6 many months ago. See the reference to CONFIG_REDWOOD_5 in smc91x.h. I haven't tested it recently though. I'll give it a try tomorrow.
If your machine is not a redwood5 or redwood6, you'll also have to add platform device initialization in your platform code. See arch/ppc/platforms/4xx/redwood6.c.
-Dale
Quoted 10 lines · Otto Solares
Quoted 6 lines · Matt Porter
Quoted 2 lines · Otto Solares
Now, when 'make znetboot' in 2.4 there was a zImage.embedded, is the same thing as zImage.treebot that appears now in 2.6?
Yes, this is the image that boots on the stock OpenBIOS firmware. It has the standard "tree" header on it.
Thank you, just one more thing, do you know if the smc91x driver works for PPC? In 2.4 I had to set:
It should work.
Quoted 5 lines
CONFIG_SMC91111=yCONFIG_SMC91111_ADVANCED=yCONFIG_SMC91111_BYTE_SWAP=yLooking in the driver itself I think it was developed for ARM.
Well, the ARM folks were the earliest users of smc9xxxx glued onto their parts. There have been multiple drivers over the years and then Nico recently unified them into smc91x. PPC has always had PCI Ethernets or on-chips Ethernet (like the other 4xx parts) so having a nasty little smc part glued onto a bus isn't that popular. :)
It should still work. Dale Farnsworth took the time to add the proper redwood specific bits to smc91x.h for accessing the regs and add the bits to instantiate an smc91x platform device in the redwood kernel ports.
Quoted 2 lines
I am unable to netboot, I don't have serial console so my only access to this little box (MediaMVP) is the net. Thank you.
What kernel port are you using? You're trying boot a Redwood 6 kernel on the MediaMVP?
-Matt
Quoted 3 lines · Dale Farnsworth
I added smc91111 support for redwood5 and redwood6 many months ago. See the reference to
CONFIG_REDWOOD_5insmc91x.h. I haven't tested it recently though. I'll give it a try tomorrow.
Just following up. I verified that current linux-2.6.git netboots fine on redwood5 using the SMC91111.
-Dale
Quoted 7 lines · Dale Farnsworth
Quoted 3 lines · Dale Farnsworth
I added smc91111 support for redwood5 and redwood6 many months ago. See the reference to
CONFIG_REDWOOD_5insmc91x.h. I haven't tested it recently though. I'll give it a try tomorrow.Just following up. I verified that current linux-2.6.git netboots fine on redwood5 using the SMC91111.
Excellent for your code! the box I'm talking about is redwood6 based, just a question, the supplied smc91xxx.c for 2.4 needs byte swapping, that works ok with your code and this unified smc91x driver?
Thank you.
-otto
Quoted 2 lines · Matt Porter
What kernel port are you using? You're trying boot a Redwood 6 kernel on the MediaMVP?
I'm using kernel.org's 2.6.12.4 + your dma patch.
Yes I'm trying to boot this redwood6 kernel on the MediaMVP, Hauppauge provides source for 2.4.18 which is plain old, my University project is boot a 2.6 kernel on this little box.
I setup netconsole to see what's going on in the boot but it doesn't work that's why I think the smc91x driver does not support PPC or probably it does not support netpoll which is the base for netconsole, I'll continue figuring out what is going on.
I really apreciate all your help. Thank you.
-otto