[ELDK] eldk and kernel 3.x-DENX

Stefan Roese sr at denx.de
Fri Aug 19 08:39:57 CEST 2011


Hi Malo,

BTW: This problem is not really ELDK related. We might consider moving this 
discussion to the linuxppc-dev list.

On Friday 19 August 2011 08:06:27 Мал Скрылёв wrote:
> i'm using ELDK 5, and trying to build the kernel 3.x-DENX for the amcc
> yosemite board. In past when i tried to build the 2.6.26.8 kernel
> using the ppc arch i used the following command:
> $ make ARCH=ppc
> CROSS_COMPILE=/opt/eldk-5.0/powerpc/sysroots/i686-oesdk-linux/usr/bin/power
> pc-linux/powerpc-linux- make yosemite_defconfig
> $ make ARCH=ppc
> CROSS_COMPILE=/opt/eldk-5.0/powerpc/sysroots/i686-oesdk-linux/usr/bin/power
> pc-linux/powerpc-linux- make uImage
> I've completely built the kernel and successfully run it on the board.
> So, since the 2.6.27 kennel yosemite for ppc arch isn't supported, and
> I tried build the kernel with powerpc arch. I made the following:
> $ make ARCH=ppc
> CROSS_COMPILE=/opt/eldk-5.0/powerpc/sysroots/i686-oesdk-linux/usr/bin/power
> pc-linux/powerpc-linux- make 44x/sam440ep_defconfig

OK, from your next mail, we already know that "ARCH=powerpc" is correct. But 
why did you use 44x/sam440ep_defconfig? You should use "ppc44x_defconfig" 
instead. No need to add Yosemite with "make menuconfig" after that.

> $ make ARCH=ppc
> CROSS_COMPILE=/opt/eldk-5.0/powerpc/sysroots/i686-oesdk-linux/usr/bin/power
> pc-linux/powerpc-linux- make menuconfig
> Here I selected yosemite board at the platform support option, and
> enabled the early debug UART physical address minor part 0xef600300:
> and major: 0x8 (as it was specified in the yosemite.dts) at the kernel
> hacking option, the I compiled the kernel, loaded it in the yosemite
> board, and got the following log:
> CPU clock-frequency <- 0x1fca0550 (533MHz)
> CPU timebase-frequency <- 0x1fca0550 (533MHz)
> /plb: clock-frequency <- 7f28154 (133MHz)
> /plb/opb: clock-frequency <- 3f940aa (67MHz)
> /plb/opb/ebc: clock-frequency <- 3f940aa (67MHz)
> /plb/opb/serial at ef600300: clock-frequency <- a8c000 (11MHz)
> /plb/opb/serial at ef600400: clock-frequency <- a8c000 (11MHz)
> /plb/opb/serial at ef600500: clock-frequency <- a8c000 (11MHz)
> /plb/opb/serial at ef600600: clock-frequency <- a8c000 (11MHz)
> Memory <- <0x0 0x0 0xffff000> (255MB)
> ethernet0: local-mac-address <- 00:10:ec:00:90:10
> ethernet1: local-mac-address <- 00:10:ec:80:90:12
> 
> zImage starting: loaded at 0x00400000 (sp: 0x0fe2fb60)
> Allocating 0x419198 bytes for kernel ...
> gunzipping (0x00000000 <- 0x0040e000:0x007236e4)...done 0x305060 bytes
> 
> Linux/PowerPC load: root=/dev/nfs rw
> nfsroot=192.168.57.2:/opt/eldk-5.0/powerpc/powerpcrfs
> ip=192.168.124.112::192.168.124.1::eolophua:eth0:off
> console=ttyS0,115200
> Finalizing device tree... flat tree at 0x730160
> 
> It is all. No loading is forward anyway. So, my quiestions are following:
> * How to enable the debgu after the kernel went to "kenry" function?
> * What problem may stop loading the kernel?

Not really sure whats going wrong here. I'll try to test it on my Yosemite 
soon. Which kernel version did you use (git tag, or commit ID)?

Best regards,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the eldk mailing list